]> git.proxmox.com Git - grub2.git/blob - ChangeLog
grub_ufs_mount: Check that sblock.ino_per_group is not 0.
[grub2.git] / ChangeLog
1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/fs/ufs.c (grub_ufs_mount): Check
4 that sblock.ino_per_group is not 0.
5
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7
8 Reject NILFS2 superblocks with over 1GiB blocks.
9
10 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
11 block size is <= 1GiB.
12
13 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14
15 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
16 is sane when using CHS addressing.
17
18 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
21
22 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
25 division by zero.
26
27 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28
29 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
30 potentially returning 0.
31
32 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
33
34 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
35 the end of file.
36
37 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
40 past the end of file.
41
42 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
45 synchronously with line.
46
47 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
48
49 Replace explicit sizeof divisions by ARRAY_SIZE.
50
51 2015-01-19 Kris Moore <kris@pcbsd.org>
52
53 * grub-core/disk/geli.c: Support GELI v6 and v7.
54
55 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
56
57 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
58 option processing.
59
60 2014-12-07 David Kozub <zub.272@gmail.com>
61
62 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
63 in __aeabi_uidivmod
64 Fixes Savannah bug #43632.
65
66 2014-12-07 Peter Nelson <peterdn>
67
68 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
69 chunks.
70
71 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
72
73 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
74 non-portable '-n' echo option.
75 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
76 non-portable 'echo -n.
77 * util/grub.d/10_linux.in: Likewise (closes 43668).
78 * util/grub.d/20_linux_xen.in: Likewise.
79 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
80 non-portable 'echo -n'.
81
82 2014-12-07 Curtis Larsen <larsen@dixie.edu>
83
84 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
85 free when multiple empty segments were received (closes 42765).
86
87 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
88
89 * tests/util/grub-shell.in: Support --files also for netboot.
90 * tests/file_filter_test.in: New file with file filters tests.
91 * Makefile.util.def: Add file_filter_test.
92 * conf/Makefile.extra-dist: ... and here.
93 * tests/file_filter/file.gz: Test file for file_filter_test.
94 * tests/file_filter/file.gz.sig: Likewise.
95 * tests/file_filter/file.lzop: Likewise.
96 * tests/file_filter/file.lzop.sig: Likewise.
97 * tests/file_filter/file.xz: Likewise.
98 * tests/file_filter/file.xz.sig: Likewise.
99 * tests/file_filter/keys: Likewise.
100 * tests/file_filter/keys.pub: Likewise.
101 * tests/file_filter/test.cfg: Likewise.
102 * grub-core/commands/verify.c: Fix memory corruption doing
103 signature check for network files (closes 43601).
104
105 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
106
107 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
108 memory leak (CID 73645, 73782).
109 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
110 (CID 73635).
111
112 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
113
114 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
115 inline array (CID 73610).
116
117 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
118
119 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
120 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
121 (Coverity CID 73813, 73710)
122 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
123 and use after free (Coverity CID 73813, 73710, 73730)
124 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
125 CID 73854)
126 * util/grub-install-common.c (grub_install_get_target): Check return
127 value of grub_util_fd_read (Coverity CID 73819).
128 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
129 to hd.magic (Coverity CID 73587, 73888, bug 43690).
130
131 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
132
133 * tests/util/grub-fs-tester.in: Consistently print output
134 of grub ls if test fails.
135
136 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
137
138 * grub-core/kern/efi/init.c: check value of *path before
139 dereferencing.
140
141 2014-11-03 Michael Chang <mchang@suse.com>
142
143 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
144 of neighbor solicitation packet in grub_netbuff_pull.
145
146 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
147
148 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
149 avoid fatal warnings with older gcc (probably before 4.7).
150 * grub-core/loader/arm64/linux.c: Likewise.
151 * grub-core/loader/i386/linux.c: Likewise.
152 * grub-core/loader/i386/pc/linux.c: Likewise.
153 * grub-core/loader/ia64/efi/linux.c: Likewise.
154 * grub-core/loader/mips/linux.c: Likewise.
155 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
156 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
157
158 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
159
160 Fix in-tree --platform=none
161
162 * configure.ac: Only remove include/grub/cpu and
163 include/grub/machine in the --platform=none case, not all of
164 include/grub.
165
166 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
167
168 Add a new "none" platform that only builds utilities
169
170 * configure.ac: Add "none" platform. Default to it for unsupported
171 CPUs rather than stopping with a fatal error. Don't downgrade
172 x86_64-none to i386. Define COND_real_platform Automake conditional
173 if the platform is anything other than "none". Don't do any include
174 directory linking for "none".
175 * Makefile.am: Skip building grub-core and all bootcheck targets if
176 !COND_real_platform.
177 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
178 is defined.
179
180 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
181
182 Use grub_cpu_to_XXX_compile_time for constants.
183
184 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
185
186 The AML parser implements only a small subset of possible AML
187 opcodes. On the Fujitsu Lifebook E744 this and another bug in
188 the parser (incorrect handling of TermArg data types) would lead
189 to the laptop not turning off (_S5 not found).
190
191 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
192 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
193 aren't always simply strings!); Add function to skip TermArgs
194 * include/grub/acpi.h: Add new opcodes
195
196 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
197
198 * grub-core/normal/main.c: Don't drop to rescue console in
199 case of password-protected prompt and no menu entries.
200
201 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
202
203 * grub-core/commands/keylayouts.c: Ignore unknown keys.
204
205 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * grub-core/gmodule.pl.in: Accept newer binutils which output
208 empty column rather than 0x0.
209
210 2014-09-21 Michael Chang <mchang@suse.com>
211
212 * grub-core/osdep/unix/config.c: Remove extraneous comma.
213
214 2014-09-21 Peter Jones <pjones@redhat.com>
215
216 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
217 we don't free a random pointer from the stack.
218 * grub-core/loader/arm64/linux.c: Likewise.
219 * grub-core/loader/i386/linux.c: Likewise.
220 * grub-core/loader/i386/pc/linux.c: Likewise.
221 * grub-core/loader/ia64/efi/linux.c: Likewise.
222 * grub-core/loader/mips/linux.c: Likewise.
223 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
224 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
225
226 2014-09-15 Khem Raj <raj.khem@gmail.com>
227
228 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
229 _BSD_SOURCE to avoid warnings under glibc 2.20+.
230
231 2014-09-08 Michael Chang <mchang@suse.com>
232
233 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
234 check; comparing &data->extent against addresses in the region it
235 points to is unpredictable.
236
237 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
238
239 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
240
241 * configure.ac: Remove -m64 from checks for -mcmodel=large and
242 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
243 already in TARGET_CFLAGS at this point, and they produce incorrect
244 results when building for x32.
245 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
246 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
247 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
248 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
249
250 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
251
252 * configure.ac: Remove several unnecessary semicolons.
253
254 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
255
256 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
257 Initialise pend to pacify GCC.
258
259 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
260
261 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
262 gettext_printf).
263
264 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
265
266 * grub-core/term/at_keyboard.c: Retry probing keyboard if
267 scancode setup failed.
268
269 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
270
271 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
272
273 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
274
275 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
276 safety to avoid triggerring VirtualBox bug.
277
278 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
281
282 Fixes hang on virtualbox.
283
284 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
285
286 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
287 kernels whose paths contain regex metacharacters.
288 * util/grub.d/10_kfreebsd.in: Likewise.
289 * util/grub.d/10_linux.in: Likewise.
290 * util/grub.d/20_linux_xen.in: Likewise.
291
292 Reported by: Heimo Stranner.
293
294 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
295
296 * docs/grub-dev.texi (Finding your way around): The build system no
297 longer uses AutoGen directly.
298
299 2014-06-21 Роман Пехов <roman_pekhov>
300
301 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
302
303 2014-06-21 Glenn Washburn <development@efficientek.com>
304
305 * util/grub-install.c: Fix handling of --disk-module.
306
307 2014-06-21 Stephane Rochoy <sheda>
308
309 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
310 EFI system table.
311
312 2014-06-21 Stephane Rochoy <sheda>
313
314 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
315 EFI system table physical address.
316
317 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
318
319 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
320
321 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
322
323 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
324
325 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
328 check.
329
330 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
331
332 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
333
334 Reported by: Yves Blusseau <blusseau@zetam.org>.
335
336 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
337
338 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
339 GDT in conventional memory.
340
341 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
342
343 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
344 UUID. Other parts of grub-mkconfig tolerate these, they were
345 previously allowed here up to commit
346 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
347 practice when the system has active LVM snapshots.
348 Fixes Ubuntu bug #1287436.
349
350 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
351
352 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
353 "logical_volumes" block a little more accurately.
354
355 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
356
357 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
358
359 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
360
361 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
362 pulled from libgcc.
363
364 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
365
366 Replace few instances of memcmp/memcpy in the code that should be
367 grub_memcmp/grub_memcpy.
368
369 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
372 device names.
373
374 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
375
376 btrfs: fix get_root key comparison failures due to endianness
377
378 * grub-core/fs/btrfs.c (get_root): Convert
379 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
380
381 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
382
383 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
384
385 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
386 no longer to be forgiving of trailing spaces on grub-probe output
387 lines, which among other things means that util/grub.d/10_linux.in
388 no longer detects LVM. To fix this, make grub-probe's output
389 delimiting more consistent. As a bonus, this improves the coverage
390 of the -0 option.
391
392 Fixes Debian bug #735935.
393
394 * grub-core/disk/cryptodisk.c
395 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
396 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
397 Likewise.
398 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
399 Update prototype.
400 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
401 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
402 probe_mods): Adjust for extra user-data arguments.
403 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
404 probe_abstraction): Use configured delimiter. Update callers.
405
406 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
407
408 * util/grub-probe,c (options): Make -0 work again (broken by
409 conversion to argp).
410 (main): Simplify logic.
411
412 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
413
414 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
415
416 2014-03-26 Fu Wei <fu.wei@linaro.org>
417
418 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
419
420 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
423 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
424
425 Suggested by: Markus Müller.
426
427 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
430 if E820 failed to return any regions.
431
432 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
435 tables for low memory calculations.
436
437 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
438
439 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
440 location to 640K.
441
442 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
443
444 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
445 region.
446
447 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
448
449 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
450 exclusively.
451
452 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
453
454 Add bootpath parser for open firmware.
455
456 It enables net boot even when there is no bootp/dhcp server.
457
458 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
459 and call it at grub_ieee1275_net_config_real.
460 * grub-core/kern/ieee1275/init.c: Add bootpath to
461 grub_ieee1275_net_config.
462 * include/grub/ieee1275/ieee1275.h: Likewise.
463
464
465 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
466
467 Add grub_env_set_net_property function.
468
469 * grub-core/net/bootp.c: Remove set_env_limn_ro.
470 * grub-core/net/net.c: Add grub_env_set_net_property.
471 * include/grub/net.h: Likewise.
472
473 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
474
475 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
476
477 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
478
479 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
480
481 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
484 7 seconds to recover if last poweroff was bad.
485
486 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
487
488 * grub-core/disk/ahci.c: Properly handle transactions with no
489 transferred data.
490
491 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
492
493 * grub-core/disk/ahci.c: Add safety cleanups.
494
495 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
496
497 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
498 slots to avoid pointing to uninited area.
499
500 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
501
502 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
503 enabling busmaster for the end.
504
505 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
506
507 * util/grub-mkfont.c: Downgrade warnings about unhandled features
508 to debug.
509
510 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
511
512 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
513
514 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
515
516 * .gitignore: add missing files and .exe variants.
517
518 2014-01-26 Mike Gilbert <floppym@gentoo.org>
519
520 grub-install: support for partitioned partx loop devices.
521
522 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
523 /dev/loopX as being the parent of /dev/loopXpY.
524
525 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
528 Ensure that pointers are inited to NULL and that pointers are not
529 accessed after free.
530
531 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
532
533 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
534 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
535 * include/grub/emu/misc.h: ... and here.
536 * include/grub/err.h: ... and here.
537 * util/import_gcry.py: ... and here (in files g10lib.h).
538
539 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
540
541 * util/grub-mkimage.c: Make prefix argument mandatory.
542
543 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
544
545 Fix several translatable strings.
546
547 Suggested by: D. Prévot.
548
549 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
550
551 * util/grub-install.c: List available targets.
552
553 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
554
555 * util/grub-install.c (write_to_disk): Add an info message.
556
557 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
558
559 * Makefile.am: Allow adding extra files to generated Windows ZIP
560 archive by setting GRUB_WINDOWS_EXTRA_DIST.
561
562 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
563
564 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
565 Show detected font path in summary.
566
567 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
568
569 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
570 interval gradually.
571 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
572 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
573 * grub-core/net/tftp.c (tftp_open): Likewise.
574 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
575
576 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
577
578 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
579 infinite loops.
580
581 In net/net.c there is a while (1) that only exits if there is a stop
582 condition and more then 10 packages or if there is no package received.
583
584 If GRUB is idle and enter in this loop, the only condition to leave is
585 if it doesn't have incoming packages. In a network with heavy traffic
586 this never happens.
587
588 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
589
590 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
591 EPERM when modifying kern.geom.debugflags. It is only a problem for
592 such things as installing GRUB to the MBR, in which case there'll be
593 an error later anyway, not for opening files during tests.
594
595 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
596
597 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
598 instead of MOD_FILES.
599 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
600 both with and without .exe.
601 * grub-core/genemuinitheader.sh: Same.
602
603 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
604
605 * util/grub-install.c: Fix a typo.
606
607 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
608
609 * grub-core/normal/main.c (read_config_file): Buffer config file.
610 Reduces boot time.
611
612 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
613
614 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
615 symbolic link to directory. It fails in Msys shell on Windows 2003.
616
617 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
618
619 * Makefile.am (default_payload.elf): Add modules
620 multiboot cbmemc linux16 gzio echo help.
621
622 2014-01-18 Mike Gilbert <floppym@gentoo.org>
623
624 * Makefile.util.def: Link grub-ofpathname with zfs libs.
625
626 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
629 conflicts.
630
631 Reported by: Andrey Borzenkov.
632
633 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
634
635 * include/grub/misc.h: Move macros for compiler features to ...
636 * include/grub/compiler.h: ... new file.
637 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
638 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
639 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
640 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
641 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
642 * grub-core/video/capture.c: Include <grub/misc.h>.
643 * include/grub/command.h: Include <grub/misc.h>.
644 * include/grub/dl.h: Include <grub/misc.h>.
645 * include/grub/procfs.h: Include <grub/misc.h>.
646
647 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
648
649 * configure.ac: Add support for BUILD_EXEEXT and use it ...
650 * Makefile.am: ... here.
651 * Makefile.util.def: ... and here.
652 * grub-core/Makefile.am: ... and here.
653
654 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
655
656 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
657 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
658
659 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
660
661 * grub-core/term/terminfo.c: Recognize keys F1-F12.
662
663 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
664
665 * configure.ac: Add support for BUILD_LDFLAGS.
666 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
667 * grub-core/Makefile.am: ... and here.
668 * INSTALL: Mention BUILD_LDFLAGS.
669
670 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
673
674 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
675
676 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
677 and has no //.
678
679 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
680
681 * NEWS: Add few missing entries.
682
683 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
684
685 * util/grub.d/00_header.in (make_timeout): Use && rather than test
686 -a.
687 * util/grub.d/10_windows.in: Likewise.
688 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
689 than test -o.
690 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
691 rather than test -o.
692
693 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
694
695 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
696 redundant preprocessor conditional.
697
698 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
699
700 * Makefile.util.def (grub-macbless): Change mansection to 8.
701
702 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
703
704 * grub-core/loader/arm64/linux.c: correctly set device path end length.
705
706 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
707
708 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
709 arm64 to comply with EFI specification. Also use grubaa64.efi for
710 consistency.
711 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
712
713 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
714
715 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
716 on MinGW-64 when compiling for 32 bits.
717
718 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
719
720 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
721
722 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
723
724 * NEWS: Add few missing entries. Correct existing ones.
725
726 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
727
728 Don't abort() on unavailable coreboot tables if not running on coreboot.
729
730 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
731
732 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
733 on mingw.
734
735 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
736
737 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
738 mention of it from 2.02.
739
740 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
741
742 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
743
744 As these functions are used on pre-ARMv6 CPUs as well we don't want
745 to make assembler assume that architecture is higher than default one.
746
747 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
748
749 * NEWS: First draft of 2.02 entry.
750
751 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
752
753 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
754 * docs/grub.texi (Getting the source code): Likewise.
755
756 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
757
758 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
759 detection.
760
761 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * configure.ac: Set version to 2.02~beta2.
764
765 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
768
769 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
770
771 * util/grub-probe.c: Improve help message and simplify list handling.
772
773 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
774
775 Fix buffer overflow in grub_efi_print_device_path.
776
777 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
778
779 Show SATA device path.
780
781 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
782
783 Revert grub-file usage in grub-mkconfig.
784
785 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
786
787 Make newly-created files other than grub.cfg world-readable.
788
789 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
790
791 * util/grub.d/00_header.in: Improve compatibility with old config.
792
793 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
794
795 Make rijndael.c respect aliasing rules.
796
797 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
798
799 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
800
801 Make grub_util_device_is_mapped_stat available in grub-emu core.
802
803 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
804
805 Add -Qn to TARGET_CFLAGS if it's supported.
806 Fixes compilation on cygwin.
807
808 Reported by: Andrey Borzenkov.
809 Suggested by: Andrey Borzenkov.
810
811 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
812
813 Save TARGET_CC version in modinfo.sh.
814
815 Suggested by: Andrey Borzenkov.
816
817 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
818
819 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
820 follow the same algorithm to avoid method mismatch. Don't assume
821 DMRAID- UUID to mean full disk but instead check that mapping is linear.
822
823 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
824
825 Declare GRUB_EFI_VENDOR_APPLE_GUID.
826
827 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
828
829 Dump type and vendor specific data when printing device path.
830
831 2013-12-23 Colin Watson <cjwatson@debian.org>
832
833 Update some documentation to refer to Git rather than Bazaar.
834
835 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
836 than Bazaar.
837 * po/README: Likewise. Fix spelling mistake.
838
839 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
840
841 Don't distribute config.h.
842
843 * Makefile.am (platform_HEADERS): Move to ...
844 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
845 failure when building from a distributed tarball.
846
847 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
848
849 * configure.ac: Fix spelling.
850 * grub-core/commands/parttool.c: Fix grammar.
851 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
852 Embedding Partition".
853
854 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
855
856 ARM64 support for grub-mkrescue.
857
858 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
859
860 Install modinfo.sh to keep build information around.
861
862 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * grub-core/modinfo.sh.in: Add build config information.
865
866 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
867
868 ARM64 grub-file and grub-mkconfig support.
869
870 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
871
872 Remove leftover options defines.
873
874 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
875
876 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
877
878 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
879
880 * grub-core/loader/arm64/linux.c: Add missing bracket.
881
882 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
883
884 Add arm64-efi recognition to grub-file.
885
886 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
887
888 Fix ia64-efi recognition in grub-file.
889
890 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
891
892 Recognize raspberry pi kernel in grub-file.
893
894 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
895
896 Enable cache on ARM U-Boot port.
897
898 Without it the port is reidiculously slow.
899
900 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
901
902 Fix ARM cache maintainance.
903
904 More code was converted from ASM to C for easier handling.
905
906 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
907
908 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
909 algorithm on v5.
910
911 Suggested by: Leif Lindholm.
912
913 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
914
915 * util/grub-mkconfig.in: Fix Xen platform conditions.
916
917 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
918
919 * util/grub-mkrescue.c: Split single help message string in several
920 strings used in previous shell version.
921
922 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
923
924 Add arm64 Linux loader.
925
926 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
927
928 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
929
930 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
931
932 Add module loading and parsing boot time checkpoints.
933
934 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
937 platforms.
938
939 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
940
941 * util/grub-mkconfig.in: Skip non-executable files.
942
943 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
944
945 Workaround buggy timer in raspberry pie by using our own timer
946 implementation.
947
948 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
951 Increase to 16 MiB to allow loading the whole memdisk.
952
953 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
954
955 Fix ARM Linux Loader on non-FDT platforms.
956
957 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
958
959 * configure.ac: Choose link format based on host_os on emu.
960
961 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
962
963 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
964
965 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * grub-core/kern/emu/main.c: Build fix for emu.
968
969 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
970
971 Build fixes for argp.h with older gcc.
972
973 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
976 in strings.
977
978 Suggested by: David Prévot.
979
980 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
981
982 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
983
984 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
985
986 Enable -Wformat=2 if it's supported.
987
988 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
991 -Wmissing-declarations if supported.
992
993 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
994
995 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
996 u32 as both HFS and HFS+ have 32-bit inodes.
997
998 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * include/grub/misc.h (grub_strtol): Fix overflow.
1001
1002 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1005 as return type in both conditionals.
1006
1007 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1010 to use uint8_t for color.
1011
1012 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1013
1014 * util/misc.c (grub_util_get_image_size): Check for overflow.
1015
1016 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1019 for size.
1020
1021 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1024 for pointer difference.
1025
1026 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * util/import_gcry.py: Skip sample keys.
1029
1030 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1033
1034 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 * configure.ac: Remove duplicate warning arguments.
1037
1038 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 Add missing static qualifiers.
1041
1042 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 Add missing includes.
1045
1046 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 Inline printf templates when possible to enable format checking.
1049
1050 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * include/grub/crypto.h: Don't discard const attribute.
1053
1054 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1057 was intended.
1058
1059 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * grub-core/lib/crypto.c: Don't discard const attribute.
1062
1063 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * grub-core/lib/disk.c: Fix potential overflow.
1066
1067 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * grub-core/lib/arg.c: Don't discard const attribute.
1070
1071 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * grub-core/kern/dl.c: Don't discard const attribute.
1074
1075 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * grub-core/kern/disk.c: Fix potential overflow.
1078
1079 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1080
1081 * conf/Makefile.common: Don't include non-existing directory
1082 grub-core/lib/libgcrypt-grub/include.
1083
1084 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 Clarify several translatable messages.
1087
1088 2013-12-21 David Prévot <david@tilapin.org>
1089
1090 Correct some translatable strings.
1091
1092 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1093
1094 * util/grub-mkrescue.c: Rephrase mkrescue description.
1095
1096 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1097 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1098
1099 Clarify several translatable messages.
1100
1101 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1102
1103 Be more verbose about some configure failures.
1104
1105 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1106
1107 Fix various build problems on GNU/Hurd.
1108
1109 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1110 !defined (__GNU__).
1111 (xgetcwd): Likewise.
1112 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1113 [__GNU__]: Add prototype.
1114 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1115 long int using %ld rather than %d.
1116
1117 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 * util/grub-install.c: Inform user about install platform.
1120
1121 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * configure.ac: Set version to 2.02~beta1.
1124
1125 2013-12-18 Allen Pais <allen.pais@oracle.com>
1126 2013-12-18 Bob Picco <bob.picco@oracle.com>
1127
1128 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1129
1130 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 Make grub_zlib_decompress handle incomplete chunks.
1133
1134 Fixes squash4.
1135
1136 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1139 on i386-multiboot.
1140
1141 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1142
1143 * grub-core/disk/usbms.c: Retry on unknown errors.
1144 Reuse the same tag on retries.
1145
1146 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1147
1148 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1149
1150 Avoid confusing them with already completed transfers.
1151
1152 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 Remove xen VFB.
1155
1156 Due to XEN bug it prevents Linux boot. Remove it at least, until
1157 workaround is found.
1158
1159 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * po/exclude.pot: Add 2 missing excludes.
1162
1163 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 Add missing license section in macbless.mod and macho.mod.
1166
1167 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 Allow compilation without thumb-interwork as long as no thumb is
1170 involved or only thumb2 is used.
1171
1172 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1175
1176 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 Add __attribute__ ((sysv_abi)) only if it's really needed.
1179
1180 Some compilers don't support it.
1181
1182 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1185
1186 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 Remove -Wold-style-definition.
1189
1190 Not very useful and interaction of it with regexp depends on GCC
1191 version.
1192
1193 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 Make grub_util_get_windows_path_real static.
1196
1197 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * grub-core/commands/fileXX.c: Silence cast-align.
1200 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1201
1202 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1205 rather than LL suffix.
1206
1207 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1210
1211 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 * grub-core/loader/arm/linux.c: Use common initrd functions.
1214
1215 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 Decrease number of strings to translate.
1218
1219 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1222
1223 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 Mark strings for translation and add remaining ones to exclude list.
1226
1227 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 * util/grub-file.c (main): Fix sizeof usage.
1230
1231 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1232
1233 Silence spurious warning.
1234
1235 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 Remove check_nt_hiberfil as it's been superseeded by file command.
1238
1239 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1242
1243 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 Implement syslinux parser.
1246
1247 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1250
1251 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 Support cpuid --pae.
1254
1255 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 Use AT keyboard on Yeeloong 3A.
1258
1259 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 Add Yeeloong 3A reboot and halt.
1262
1263 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1264
1265 Add Radeon Yeeloong 3A support.
1266
1267 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 Add bonito 3A support.
1270
1271 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1272
1273 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1274
1275 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1278
1279 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * grub-core/loader/macho.c: Fix compilation on non-i386.
1282
1283 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 Add missing format_arg attribute to check that printf with translated
1286 messages has proper arguments.
1287
1288 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 Use grub_xasprintf to format translated error messages containing
1291 64-bit quantity.
1292
1293 2013-12-17 Jon McCune <jonmccune@google.com>
1294
1295 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1296
1297 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 Unify message for unsupported relocation.
1300
1301 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 Mark miscompile error for translation.
1304
1305 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 Use %I64 and not %ll when using OS printf if compiling for windows.
1308
1309 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 Update Mac code to match new register_efi prototype.
1312
1313 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 Implement better integration with Mac firmware.
1316
1317 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1320 load_addr.
1321
1322 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 Include serial module in default_payload.elf.
1325
1326 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 Add explicit thumb interwork bx in asm files.
1329
1330 Shouldn't matter for armv >= 5 but let's be safe.
1331
1332 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 Implement Truecrypt ISO loader.
1335
1336 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1339
1340 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 Implement grub_file tool and use it to implement generating of config
1343 in separate root.
1344
1345 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 Change to v1 xen grants.
1348
1349 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1352
1353 GRUB relied on %ebx being preserved across hypercall which isn't true.
1354
1355 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1358
1359 GRUB relied on %rdi being preserved across hypercall which isn't true.
1360
1361 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 Implement XEN VFB support.
1364
1365 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 Remove grub_bios_interrupt on coreboot.
1368
1369 It's not used currently and cannot be used safely currently.
1370
1371 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1372
1373 Update exclude.pot and mark few strings for translation.
1374
1375 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1378
1379 Reported by: Jon McCune
1380
1381 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1382
1383 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1384 Add verbose information which firmware directories were tried.
1385
1386 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1387
1388 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1389 function to optionally redirect all three standard descriptors.
1390 Redefine grub_util_exec, grub_util_exec_redirect and
1391 grub_util_exec_redirect_null to use it.
1392 * include/grub/emu/exec.h: Define it.
1393 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1394 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1395 Use grub_util_exec_redirect_all to redirect error to NULL.
1396
1397 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 * grub-core/tests/sleep_test.c: Silence spurious warning.
1400
1401 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1404 linker trying to "fixup" the code.
1405
1406 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1407
1408 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1409
1410 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1411
1412 Add support for converting PE+ to Elf64.
1413
1414 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1415
1416 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1417
1418 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 Remove practice of assigning random const pointers to device id.
1421
1422 This is not required as cache code already checks driver id as well.
1423
1424 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1427 with mingw.
1428
1429 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1432 mingw or cygwin as API already matches.
1433
1434 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1437
1438 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1441 not on long.
1442
1443 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 Handle X86_64_PC64 relocation.
1446
1447 Those are generated by some cygwin compilers.
1448
1449 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 Determine the need for mingw-related stubs at compile time rather than
1452 using not very significant $target_os.
1453
1454 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1457 may not work with ELF.
1458
1459 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 Use unix functions for temporary files and special files on cygwin.
1462
1463 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 Define functions explicitly rather than using --defsym in tests
1466 whenever possible. Respect locality in remaining cases.
1467
1468 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1471
1472 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1473
1474 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1475 unlikely errors when getting EFI variables and make exhaustive search
1476 for all BootNNNN variables to find matching one.
1477
1478 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1479
1480 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1481
1482 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 New functional test for sleep function.
1485
1486 This test allows to check sleep without qemu. Keep qemu version as
1487 well as functional test won't notice if all clocks are going too fast
1488 or too slow.
1489
1490 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 Add explicit sysv_abi on amd64 asm routines.
1493
1494 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1497 num_table_entries.
1498
1499 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1502 functions.
1503
1504 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/loader/i386/linux.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/loader/i386/linux.c: Use %p rather than %lx for pointers.
1512
1513 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1516 appropriate.
1517
1518 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1521
1522 In case of quick removal of loopback and adding another one it may
1523 get same ID, confusing the cache system.
1524
1525 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1528 appropriate.
1529
1530 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1533 than converting to long.
1534
1535 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1538
1539 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1542 than almost useless pointer.
1543
1544 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 Add gcc_struct to all packed structures when compiling with mingw.
1547
1548 Just "packed" doesn't always pack the way we expect.
1549
1550 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1553
1554 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 * util/grub-pe2elf.c: Fix handling of .bss.
1557
1558 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 Implement windows flavour of EFI install routines.
1561
1562 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1563
1564 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1565
1566 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1567
1568 Change grub_install_register_efi interface to pass GRUB device.
1569
1570 This allows grub_install_register_efi to request partition info
1571 directly.
1572
1573 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1576
1577 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 Do not use TCHAR string functions as they are not available on cygwin.
1580
1581 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 Workaround windows bug when querying EFI system partition parameters.
1584
1585 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1586
1587 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1588 by using bitfields.
1589
1590 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1593
1594 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 Make i386-* other than i386-pc compileable under cygwin.
1597
1598 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1599
1600 Fix definition of grub_efi_hard_drive_device_path. Take care that
1601 existing code would work even if by some reason bogus definition is
1602 used by EFI implementations.
1603
1604 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1607
1608 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1611 invocation.
1612
1613 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * util/config.c: Remove trailing newline from distributor in simple
1616 parsing.
1617
1618 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * include/grub/efi/api.h: Rename protocol and interface to avoid
1621 conflict.
1622
1623 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * .gitignore: add .exe variants. add missing files. remove few outdated
1626 entries.
1627
1628 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * grub-core/osdep/exec.c: Use unix version on cygwin.
1631
1632 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 Implement multiboot2 EFI BS specification.
1635
1636 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1639 Crash happened only in some cases like a string starting at the
1640 half of the screen of same length.
1641
1642 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1643
1644 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1645 with EFI counterpart.
1646
1647 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 Propagate the EFI commits to x86-efi specific parts.
1650
1651 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1654
1655 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 Introduce grub_efi_packed_guid and use it where alignment is not
1658 guaranteed.
1659
1660 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1663 unaligned u16 rather than u8[2].
1664
1665 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1668 for relocation range.
1669
1670 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1673 non-function pcrel21b relocation. It happens with .text.unlikely
1674 section.
1675
1676 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1677
1678 * make MAX_USABLE_ADDRESS platform-specific
1679 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1680
1681 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1682
1683 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1684
1685 2013-12-09 Jon McCune <jonmccune@google.com>
1686
1687 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1688 in grub-install and grub-bios-setup for x86 BIOS targets.
1689
1690 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1691
1692 Add missing compile and link options for sparc64-emu.
1693
1694 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 Implement sparc64 trampolines (needed for sparc64-emu).
1697
1698 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1701 range of R_SPARC_HI22.
1702 Implement R_SPARC_LM22.
1703
1704 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1707 Do not explicitly check for symbol table as it's already checked in
1708 platform-independent layer.
1709
1710 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1713 on ia64 as __clear_cache is a dummy on ia64.
1714
1715 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1718 Do not explicitly check for symbol table as it's already checked in
1719 platform-independent layer.
1720
1721 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1722
1723 * util/grub-mkconfig.in: Add missing newline to output.
1724
1725 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1728 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1729
1730 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1733 compilation with GCC <= 4.2.
1734 * grub-core/kern/emu/argp_common.c: Likewise.
1735
1736 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1739 right platform rather than leaking to sparc64-emu.
1740
1741 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1744 But ensure that the variables in question are indeed unsigned.
1745
1746 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1749
1750 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 Remove grub_memalign on emu.
1753
1754 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1757 truncate incomplete lines but instead flushes them.
1758
1759 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1760
1761 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1762 and implement windows variant.
1763
1764 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 Fix mips-emu compilation.
1767
1768 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1769
1770 * configure.ac: Check for freetype library usability.
1771
1772 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 Make arm-emu work.
1775
1776 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1777
1778 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1779
1780 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1781
1782 * docs/grub.texi (Environment): Update color_normal and color_highlight
1783 defaults (light-gray instead of white).
1784
1785 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1786
1787 * grub-core/normal/main.c (INIT): Set default color to light-gray
1788 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1789 and apparently BIOS defaults.
1790
1791 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1792
1793 Transform -C option to grub-mkstandalone to --core-compress available
1794 in all grub-install flavours.
1795
1796 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 Merge GRUBFS and GRUB_FS variables.
1799
1800 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1801
1802 Revert commit 69ca97c820, it caused failures when using OS device name
1803 in grub-install. Instead just strip off parenthesis in grub-install
1804 if (hdX) was passed.
1805
1806 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1807
1808 * util/grub-install.c (push_partmap_module): Add helper to convert
1809 partmap names to module names and use it in probe_mods(). Fixes
1810 failure to find partmap modules in diskfilter case.
1811
1812 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * configure.ac: Make unifont mandatory on coreboot.
1815
1816 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * configure.ac: Skip unifont 6.3 pcf and bdf.
1819
1820 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * Makefile.am: Remove partial font files if generation failed.
1823
1824 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1825
1826 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1827 strings.
1828 * include/grub/util/misc.h: Define it ...
1829 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1830
1831 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1832
1833 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1834 ${grub_probe}.
1835
1836 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 Don't add -mlong-calls when compiling with clang.
1839
1840 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 * configure.ac: Fix a typo.
1843
1844 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 Revamp relocation handling.
1847
1848 Move more code to common dl.c. Add missing veneers for arm and arm64.
1849 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1850
1851 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1852
1853 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1854
1855 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1856
1857 * INSTALL: Raise minimum python version to 2.6.
1858 * gentpl.py: Use python3-style print function.
1859
1860 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * util/grub-install.c: Mention Boot* variable.
1863
1864 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1865
1866 * grub-core/osdep/linux/hostdisk.c
1867 (grub_util_find_partition_start_os): Initialise start to avoid
1868 spurious compiler warning.
1869
1870 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1871
1872 On Linux, read partition start offsets from sysfs if possible, to
1873 cope with block device drivers that don't implement HDIO_GETGEO.
1874 Fixes Ubuntu bug #1237519.
1875
1876 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1877 function.
1878 (sysfs_partition_start): Likewise.
1879 (grub_util_find_partition_start_os): Try sysfs_partition_start
1880 before HDIO_GETGEO.
1881
1882 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1883
1884 * grub-core/kern/fdt.c: Update struct size when adding node.
1885
1886 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1887
1888 Handle unaligned .bss on sparc64.
1889
1890 Current code improperly assumes that both __bss_start and _end are
1891 aligned to 8-bytes. Eliminating this assumption and explicitly align
1892 modules.
1893
1894 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1897 so it doesn't land in the middle of loaded image.
1898
1899 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 * configure.ac: Move all warning options that may be absent in
1902 gcc >= 3.1 to optional.
1903
1904 Note: while this allows to compile with older GCC, official requirements
1905 remain the same and no support for older GCC.
1906
1907 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1908
1909 Copying the themes directory in grub-shell isn't
1910 parallel-test-friendly and breaks on the second test when the source
1911 directory is read-only (as in "make distcheck"). Instead, add a
1912 hidden --themes-directory option to grub-mkrescue et al, and use it
1913 in grub-shell.
1914
1915 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1918 as it's no longer necessarry.
1919
1920 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 * configure.ac: Allow compilation with older GCC for ARM.
1923
1924 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1927 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1928 ppc.
1929
1930 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1933
1934 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 Pass font config to config.h and not by TARGET_CFLAGS as adding
1937 arguments doesn't work if TARGET_CFLAGS is specified on command
1938 line.
1939
1940 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1941
1942 * configure.ac: Add -Wvla if compiler supports it.
1943
1944 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1947 Remove variable length arrays.
1948 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1949
1950 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1951
1952 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1953
1954 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * include/grub/types.h: Declare all byteswaps as inline functions
1957 except compile-time ones.
1958
1959 Solves variable shadowing in constructions like
1960 cpu_to_le (le_to_cpu(x) + 1).
1961
1962 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1965
1966 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1969 minutes.
1970
1971 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1974 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1975
1976 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1977
1978 * grub-core/Makefile.core.def (setjmp): Distribute
1979 lib/arm64/setjmp.S.
1980
1981 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1982
1983 Add a new timeout_style environment variable and a corresponding
1984 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1985 controls hidden-timeout handling more simply than the previous
1986 arrangements, and pressing any hotkeys associated with menu entries
1987 during the hidden timeout will now boot the corresponding menu entry
1988 immediately.
1989
1990 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1991 generates a warning, and if it shows the menu it will do so as if
1992 the second timeout were not present. Other combinations are
1993 translated into reasonable equivalents.
1994
1995 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1996
1997 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1998
1999 * util/config.c: Add missing pointer adjustment.
2000 Reported by: qwertial
2001
2002 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2003
2004 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2005 directly, not via `cpu' link, to fix libgrub.pp generation.
2006
2007 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2008
2009 New port arm64-efi.
2010
2011 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2012
2013 * docs/grub.texi (sleep): Document exit codes.
2014
2015 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 Ensure that -mno-unaligned-access or some equivalent option is used.
2018
2019 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2022 -march=armv3.
2023
2024 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2027
2028 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2029
2030 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2031 builds, since we don't have an EPS version of font_char_metrics.png.
2032 Add leading dot to image extension per the Texinfo documentation.
2033
2034 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2035
2036 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2037 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2038 * util/grub-gen-widthspec.c: Likewise.
2039 * util/grub-mkfont.c: Likewise.
2040
2041 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2042
2043 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2044 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2045 failed to install on (hdX).
2046 * util/grub-setup.c (get_device_name): Remove, not needed after
2047 above change.
2048
2049 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2050
2051 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2052
2053 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 * util/grub-fstest.c: Remove variable length arrays.
2056
2057 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2060
2061 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2062
2063 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2064 computing crc32 rather than handling with md fundtions directly.
2065
2066 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2069 checking fwstart.img rather than md fundtions directly.
2070
2071 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2072
2073 * util/grub-mkrescue.c (main): Check that fread succeeded.
2074
2075 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 * conf/Makefile.common: Remove -mexplicit-relocs and
2078 -DUSE_ASCII_FALLBACK on yeeloong.
2079
2080 -DUSE_ASCII_FALLBACK is already added by font snippets.
2081 -mexplicit-relocs isn't needed is compiler/assemblera are
2082 configured properly.
2083 If they're not we shouldn't attempt to fix it by ourselves.
2084 Binary compare between before and after shows no difference.
2085
2086 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2089 sources in dependencies directly.
2090
2091 This was the only instance of "library" in core config. A bug was
2092 reported that -fno-stack-protector wasn't passed to it. Instead of
2093 figuring out why it failed just remove this construction used
2094 needlessly.
2095
2096 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2099 fgets succeeded.
2100
2101 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2102
2103 * docs/grub.texi (ls): Fix command description in case of a device name
2104 passed as argument.
2105
2106 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 Eliminate variable length arrays in grub_vsnprintf_real.
2109
2110 A bit tricky because this function has to continue to work without
2111 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2112 but make all stack references use 32-bit offset rather than 8-bit one.
2113 So split va_args preparsing to separate function and put the prealloc
2114 into the caller.
2115
2116 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2119 Fixes build for windows.
2120
2121 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2122
2123 * gentpl.py: Don't generate platform-dependent conditionals for
2124 platform-independent targets.
2125
2126 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2127
2128 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2129 references to mdadm from otherwise generic code.
2130 (grub_util_exec_pipe): Likewise.
2131 (grub_util_exec_pipe_stderr): Likewise.
2132 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2133 This function calls vgs, not mdadm; adjust variable names
2134 accordingly.
2135
2136 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2137
2138 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2139 of Autogen. The Autogen definitions files remain intact as they
2140 offer a useful abstraction.
2141
2142 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2143
2144 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2145 into no-ops, and use it in programs that copy files but do not need
2146 to take special care to sync writes (grub-mknetdir, grub-rescue,
2147 grub-mkstandalone).
2148
2149 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2150
2151 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2152 than hardcoding /usr/local/bin/xorriso.
2153
2154 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 Add PCI command activation to all PCI drivers as required for coreboot
2157 and maybe some other firmwares.
2158
2159 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2162 and non-Apple variants of efiemu compile.
2163
2164 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2165
2166 * configure.ac: Add explicit check for linking format of
2167 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2168 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2169 hardcoding linking format.
2170
2171 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2174 and not pkgdatadir.
2175
2176 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2177 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Add a --locale-directory option to grub-install and related tools.
2180
2181 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2182 --locale-directory option.
2183 (enum grub_install_options): Add
2184 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2185 * util/grub-install-common.c (grub_install_help_filter): Handle
2186 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2187 (grub_install_parse): Likewise.
2188 (get_localedir): New function to check for a user-provided option
2189 before trying grub_util_get_localedir.
2190 (copy_locales): Use get_localedir rather than
2191 grub_util_get_localedir. Handle differing locale directory layouts.
2192 (grub_install_copy_files): Likewise.
2193
2194 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2197 Don't rely on PATH_MAX.
2198
2199 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 * grub-core/genmoddep.awk: Use more portable && rather than and.
2202
2203 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2206 an object after data. While it doesn't seem right solution, it
2207 works well enough and OSX isn't main compilation platform.
2208
2209 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2212 While it doesn't seem right solution, it works well enough and
2213 OSX isn't main compilation platform.
2214
2215 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2216
2217 * configure.ac: Add -static to LDFLAGS when using apple linker to
2218 prevent it from pulling in dynamic linker.
2219
2220 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 Apple assembly doesn't handle symbol arithmetic well. So define an
2223 offset symbol in boot.S and use it.
2224
2225 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 Apple assembly doesn't handle symbol arithmetic well. So instead
2228 of getting addres of kernel_sector + 4 define kernel_sector_high.
2229 It also makes code more readable.
2230
2231 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 With Apple assembly in .macro environvemnt you have to use $$ instead
2234 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2235 to $$x on Apple and to $x on everything else.
2236
2237 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2240 OBJCONV.
2241
2242 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2245 and non-Apple. This instruction is shorter and faster,
2246 so no reason not to use it on both.
2247
2248 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2251 .text when compiling for Apple.
2252
2253 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2256
2257 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2260 %dx restore the probe worked on non-existant drive. Reorganize the
2261 code a little bit to free 2 bytes necessary for push/pop.
2262
2263 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2266 Add missing cast to silence warning.
2267
2268 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2269
2270 * util/grub-install.c (update_nvram): Support --no-nvram flag
2271 for EFI targets.
2272
2273 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2276
2277 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * util/garbage-gen.c: Add missing include of sys/time.h.
2280
2281 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 Don't add -mflush-func if it's not supported by compiler.
2284
2285 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2286
2287 Move common BIOS/coreboot memory map declarations to
2288 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2289
2290 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2291
2292 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2293
2294 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * INSTALL: Document why older clang versions aren't appropriate.
2297
2298 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * INSTALL: Document about clang for mips.
2301
2302 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2303
2304 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2305 clang.
2306
2307 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 Add *-xen to the list of grub-install-common platforms.
2310
2311 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2314 3 last commits.
2315
2316 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2319
2320 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2323 with -mcmodel=large.
2324
2325 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2326
2327 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2328 range-checking for 32-bit quantities.
2329
2330 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2331
2332 * configure.ac: Compile with -fPIC when compiling with clang on
2333 mips.
2334
2335 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2338 when compiling with clang.
2339
2340 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 clang emits calls to abort () under some unknown conditions.
2343 Export abort () when compiling with clang.
2344
2345 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2346
2347 * docs/grub-dev.texi: Document stack and heap sizes.
2348
2349 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2350
2351 * include/grub/i386/pc/memory.h: Decrease
2352 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2353 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2354 The binary doesn't change (checked). It's more to better reflect actual
2355 usage.
2356
2357 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2360 at compile time that enough of scratch size is available.
2361
2362 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2363
2364 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2365 Previously we misaligned stack by 8 in startup.S and compensated
2366 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2367 right behaviour is to align stack in startup.S and keep it aligned
2368 in callwrap.S. startup.S part was committed few commits before. This
2369 takes care of callwrap.S.
2370 Reported by: Gary Lin.
2371
2372 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2375 .data and .bss. May happen if compiler and assembly use different
2376 alignment.
2377
2378 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2381 way.
2382
2383 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 Add support for a new magic symbol _gp_disp on mips to handle PIC
2386 binaries.
2387
2388 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2391
2392 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2395 when rest of GRUB is compiled for hisher stepping. Instead use
2396 .set mips3/.set mips1 around cache and sync opcodes.
2397
2398 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2401 do essentially the same thing, do it in similar way.
2402
2403 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2404
2405 * util/grub-mkrescue.c (main): If a source directory is not
2406 specified, read platform-specific files from subdirectories of
2407 pkglibdir, not pkgdatadir.
2408
2409 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2410
2411 * grub-core/normal/progress.c: Remove unused file.
2412
2413 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2416 array.
2417
2418 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2421 than grub.cfg.
2422
2423 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * coreboot.cfg: Add missing file.
2426
2427 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2428
2429 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2430
2431 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2432
2433 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2434 selectively skipping systems.
2435
2436 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2437
2438 * Makefile.util.def (grub-mkimage): Add
2439 grub-core/osdep/aros/config.c to extra_dist.
2440 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2441 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2442 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2443 grub-core/gnulib-no-gets.diff.
2444
2445 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2446
2447 Add automated filesystem checking based on scripts I've used now for
2448 quite some time locally. Most of the test require root so they are
2449 skipped when run without necessarry privelegies.
2450
2451 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2452
2453 * util/grub-install.c (main): Adjust info messages to match
2454 installed paths of grub-bios-setup and grub-sparc64-setup.
2455
2456 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2457
2458 * util/grub-install-common.c (copy_locales): Consistently use
2459 grub_util_get_localedir () rather than LOCALEDIR.
2460 (grub_install_copy_files): Likewise.
2461
2462 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2463
2464 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2465 16-byte boundary, as required by the x86-64 ABI, before calling
2466 grub_main. In some cases, GCC emits code that assumes this
2467 alignment, which crashes if not aligned. The EFI firmware is also
2468 entitled to assume that stack alignment without checking.
2469
2470 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2471
2472 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2473 4k page boundaries as expected by firmware rather than 1k
2474 boundaries.
2475 (grub_mmap_malign_and_register): Likewise.
2476
2477 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2480 fragmentation 512M is enough.
2481
2482 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2485 pointer to 32K. This is the size of cache element which is the most
2486 common allocation >1K. This way the pointer is always around blocks
2487 of 32K and so we keep performance while decreasing fragmentation.
2488
2489 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2490
2491 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2492 current memory when allocating large chunks. This significantly
2493 decreases memory fragmentation.
2494
2495 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2496
2497 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2498 but for symmetry).
2499 * tests/lzocompress_test.in: Skip if lzop is not installed.
2500 * tests/xzcompress_test.in: Skip if xz is not installed.
2501
2502 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2503
2504 * util/grub-mkrescue.c (main): Fix typo.
2505
2506 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2509 clock frequency to 200 MHz,
2510
2511 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2512
2513 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2514
2515 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2516
2517 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2518 Load config file from (cbfsdisk)/etc/grub.cfg.
2519
2520 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 * util/grub-install-common.c (grub_install_copy_files): Fix module
2523 destination directory.
2524
2525 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2526
2527 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2528 files have not been built.
2529
2530 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2531
2532 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2533 Handle errors from mkstemp.
2534 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2535
2536 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2537
2538 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2539 on primary master on pseries.
2540
2541 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2544 already loaded. This saves memory needed for tests,
2545
2546 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2549 work again.
2550
2551 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2552
2553 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2554 work again.
2555
2556 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2559 master since with some combinations of qemu and firmware only primary
2560 IDE channel is available.
2561
2562 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2565 low-memory platforms where we don't have enough memory for them.
2566 * grub-core/tests/videotest_checksum.c: Likewise.
2567
2568 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2571 already loaded. This saves memory needed for tests,
2572
2573 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 Fix handling of install lists.
2576
2577 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2580
2581 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2584 the devices before accessing them.
2585
2586 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2589 as file argument.
2590
2591 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2594
2595 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2598 (grub_file_close): Free file->name.
2599
2600 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2601
2602 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2603 (grub_load_public_key): Likewise.
2604 (grub_verify_signature_real): Likewise.
2605 (grub_cmd_verify_signature): Likewise.
2606
2607 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2610 memory leak.
2611
2612 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2615 (grub_longjmp): Restore r31.
2616 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2617
2618 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2621 modules to be in line with make_image_abs.
2622
2623 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2626
2627 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2628
2629 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2630
2631 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2632
2633 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2636 to leave some memory to firmware.
2637
2638 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2641 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2642 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2643 Load gfxmenu.
2644
2645 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2648 now needs full arguments.
2649
2650 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * util/grub-mkrescue.c (main): Add trailing \n in
2653 .disk_label.contentDetails to be in line with previous shell script.
2654
2655 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2658
2659 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2660
2661 * util/grub-install-common.c (grub_install_parse): Recognize
2662 --compress=none like shell script did.
2663
2664 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 * include/grub/misc.h: Replace check for __sparc64__ with one for
2667 __sparc__ as __sparc64__ isn't actually defined.
2668
2669 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2672 counterpart of fixing the naming of escc ports.
2673
2674 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 * util/grub-install-common.c (platforms): Fix the order of entries and
2677 remove useless field val.
2678
2679 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 * util/grub-install.c: Add new option --no-bootsector to skip
2682 installing of bootsector. Accept --grub-setup=/bin/true as
2683 backwards-compatible synonym.
2684
2685 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2686
2687 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2688 order of qsort arguments (number of elements vs. element size).
2689
2690 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2693 the function of these files exceeds what can be sanely handled in shell
2694 in posix-comaptible way. Also writing it in C extends the functionality
2695 to non-UNIX-like OS and minimal environments.
2696
2697 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2700 compiling to thumb2.
2701 * grub-core/kern/arm/cache_armv7.S: Likewise.
2702 * grub-core/lib/arm/setjmp.S: Likewise.
2703
2704 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2705
2706 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2707 in grub_uboot_syscall
2708
2709 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 Decrease stack usage in lexer.
2712
2713 We have only 92K of stack and using over 4K per frame is wasteful
2714
2715 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2716 as macros so that compiler would remove useless structure on stack.
2717 Better solution would be to fix flex not to put this structure on
2718 the stack but flex is external program.
2719
2720 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 Decrease stack usage in signature verification.
2723
2724 We have only 92K of stack and using over 4K per frame is wasteful
2725
2726 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2727 rather than stack.
2728 (grub_verify_signature_real): Likewise.
2729
2730 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 Decrease stack usage in mdraid 0.9x.
2733
2734 We have only 92K of stack and using over 4K per frame is wasteful
2735
2736 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2737 rather than stack.
2738
2739 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 Decrease stack usage in BtrFS.
2742
2743 We have only 92K of stack and using over 4K per frame is wasteful
2744
2745 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2746 rather than stack.
2747
2748 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2749
2750 Decrease stack usage in JFS.
2751
2752 We have only 92K of stack and using over 4K per frame is wasteful
2753
2754 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2755 stack. Note: this function is recursive.
2756 (grub_jfs_read_inode): Read only part we care about.
2757
2758 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2759
2760 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2761 handling
2762
2763 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2764
2765 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2766
2767 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2768
2769 * docs/grub.texi (Environment): Document cmdpath.
2770
2771 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2772
2773 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2774 Remove "unused" attribute from arguments, they are used.
2775
2776 2013-11-15 Colin Watson <cjwatson@debian.org>
2777
2778 * .gitignore: Only ignore grub-mk* at the top level.
2779
2780 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2781
2782 * util/grub-reboot.in (usage): Fix a typo.
2783
2784 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 Replace libgcc version of ctz with our own.
2787
2788 On upcoming arm64 port libgcc ctz* are not usable in standalone
2789 environment. Since we need ctz* for this case and implementation is
2790 in C we may as well use it on all concerned platforms.
2791
2792 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * configure.ac: Probe for linking format rather than guessing it based
2795 on target_os.
2796
2797 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2800 "1" prior to handoff.
2801
2802 Reported by: M A Young.
2803
2804 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2807 \0 to all files.
2808
2809 Reported by: M A Young.
2810
2811 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2814 compilation on NetBSD.
2815
2816 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 * acinclude.m4: Don't add -P on initial nm test.
2819
2820 Note: even though this patch postdates Andrey's it bears 14 Nov as
2821 date due to timezone difference.
2822
2823 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2824
2825 * grub-core/Makefile.core.def (signature_test): Add missing
2826 tests/signatures.h.
2827
2828 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2829
2830 * util/grub-install_header: Set localedir here, since this file is
2831 where it's used.
2832 * util/grub-install.in: Remove setting of localedir.
2833 * util/grub-mkrescue.in: Likewise.
2834
2835 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2838
2839 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 * configure.ac: Move nm checks to the end.
2842 Call grub_PROG_NM_WORKS.
2843 * acinclude.m4: New check grub_PROG_NM_WORKS.
2844 Use $TARGET_CFLAGS -c when compiling test binary.
2845
2846 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2847
2848 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2849 unused variables.
2850
2851 2013-11-14 Matthew Garrett <mjg@redhat.com>
2852
2853 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2854 cmdpath to firmware directory.
2855
2856 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2859 at the start of second iteration.
2860
2861 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2862
2863 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2864
2865 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * Makefile.am (default_payload.elf): New target for easier coreboot
2868 build.
2869
2870 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2873 clang (not necessarry with -no-integrated-as).
2874 * include/grub/symbol.h [__arm__]: Likewise.
2875
2876 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * configure.ac: Use -no-integrated-as on arm with clang.
2879 * INSTALL: Mention ARM compilation with clang.
2880
2881 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2884 -mthumb-interwork.
2885
2886 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2887
2888 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2889 code for indirect block handling.
2890
2891 Saves 185 bytes on compressed image.
2892
2893 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2894
2895 Fix make clean.
2896
2897 * Makefile.am: Remove build-grub-* in make clean.
2898
2899 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2900
2901 New files to gitignore.
2902
2903 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2904 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2905
2906 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2907
2908 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2909
2910 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2911
2912 * .gitignore: fix rules for .dep* and add *.a post git migration
2913
2914 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2915
2916 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2917 to match INSTALL.
2918
2919 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2920
2921 * grub-core/kern/misc.c: Don't redirect divisions in the
2922 GRUB_UTIL case.
2923 * include/grub/misc.h: Likewise.
2924
2925 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2926
2927 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2928 systems that require checking the return value of write.
2929
2930 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2931
2932 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2933 efibootmgr quiet when --debug is not used, rather than when it is.
2934
2935 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2936
2937 * gentpl.py (define_macro_for_platform_dependencies): Remove
2938 first (and thus unused) of two definitions for this function.
2939 (platform_dependencies): Likewise.
2940
2941 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2942
2943 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2944 functions, we only need to check this for the target, not the host.
2945 * configure.ac (grub_apple_cc): Likewise.
2946
2947 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2950 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2951 asm to stay in arm even if surrounding is thumb.
2952
2953 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2954
2955 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2956 helper functions are needed for thumb.
2957
2958 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2961 level / 3 division explicitly unsigned. Saves few bytes.
2962
2963 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2964
2965 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2966
2967 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2970 division.
2971
2972 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2973
2974 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2975 grub_uboot_boot_data to asm part.
2976
2977 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2978
2979 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2980 literal load.
2981 (grub_uboot_syscall): Save/restore r9 and align stack.
2982
2983 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2986
2987 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2990 occurencies with END.
2991
2992 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2993
2994 * util/grub-editenv.c (help_filter, argp): Document how to delete
2995 the whole environment block.
2996 Reported by Dan Jacobson. Fixes Debian bug #726265.
2997
2998 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2999
3000 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3001 sectioning.
3002
3003 2013-11-13 Josh Triplett <josh@joshtriplett.org>
3004
3005 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3006 increment/decrement.
3007
3008 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3011 compiling with clang.
3012
3013 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3016 ".".
3017
3018 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 Redirect all divisions to grub_divmod64.
3021
3022 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3025
3026 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 Add missing includes of loader.h.
3029
3030 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 * configure.ac: Allow disabling themes.
3033
3034 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3035
3036 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3037
3038 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3041 until it becomes operational.
3042
3043 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * grub-core/Makefile.core.def (legacy_password_test): Disable
3046 on platforms where no legacycfg is compiled.
3047 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3048 load legacy_password_test.
3049
3050 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3051
3052 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3053
3054 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3057
3058 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3059
3060 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3061 strict-aliasing warning.
3062 (fsync): Silence cast warning.
3063
3064 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/commands/verify.c: Remove variable length arrays.
3067 Load gcry_dsa/gcry_rsa automatically.
3068
3069 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * grub-core/tests/signature_test.c: New test.
3072
3073 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3076 API.
3077
3078 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3081 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3082
3083 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3086
3087 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/fs/proc.c: Allow \0 in proc files.
3090
3091 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3094
3095 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3098
3099 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/fs/ext2.c: Remove variable length arrays.
3102
3103 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3106 length arrays.
3107
3108 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3111 * grub-core/disk/cryptodisk.c: Likewise.
3112 * grub-core/disk/geli.c: Likewise.
3113 * grub-core/disk/luks.c: Likewise.
3114
3115 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/tests/legacy_password_test.c: New test.
3118 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3119
3120 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3123
3124 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * grub-core/tests/pbkdf2_test.c: New test.
3127
3128 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3131
3132 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3133
3134 * grub-core/io/lzopio.c: Remove variable length arrays.
3135
3136 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * include/grub/crypto.h: Add maximums on hash size and cipher block
3139 size.
3140
3141 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3144
3145 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * grub-core/tests/xnu_uuid_test.c: New test.
3148
3149 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3152 covers it).
3153
3154 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/commands/hashsum.c: Remove variable length arrays.
3157
3158 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3161 condition.
3162 * tests/grub_func_test.in: Increase memory allocation.
3163
3164 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3167 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3168 sys/mount.h.
3169
3170 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3173 (grub_util_get_fd_size_os): ...this.
3174 (grub_hostdisk_flush_initial_buffer): New empty function.
3175
3176 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3179 without --defined-only.
3180
3181 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3184 rip-relative addressing in prologue.
3185
3186 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3189 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3190
3191 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3194 Add missing semicolon.
3195
3196 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3199
3200 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * configure.ac: Check for lzma.h for enabling liblzma and allow
3203 manual disabling.
3204
3205 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 Add missing includes of loader.h.
3208
3209 2013-11-11 Fam Zheng <famcool@gmail.com>
3210
3211 * util/grub.d/30_os-prober.in: Add minix entry.
3212
3213 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3216 right buffer for temporary load.
3217
3218 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3221
3222 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3225 payload.
3226
3227 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3230 not Types.h.
3231 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3232 environment.
3233 (LzmaDec_InitDicAndState): Make static.
3234
3235 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3238
3239 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3242
3243 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3244
3245 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * docs/grub-dev.texi: Replace bzr references with git ones.
3248
3249 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3250
3251 * docs/grub.texi (Simple configuration): Remove reference to
3252 grub-reboot from saved default entry description - grub-default
3253 does not use it anymore.
3254
3255 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3256
3257 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3258 compiled with.
3259
3260 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3261
3262 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3263
3264 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 Fix grub_machine_fini bitrot.
3267
3268 Reported by: Glenn Washburn.
3269
3270 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3271
3272 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3273
3274 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3275
3276 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3277 -DELF.
3278 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3279 instead of ELF*.
3280
3281 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3284 Add -march=core2 when testing compile of efiemu64.
3285
3286 Thanks Andrey Borzenkov for spotting this.
3287
3288 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3291 XEN PV environment and load kernels.
3292
3293 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3294
3295 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3296 * grub-core/loader/multiboot_mbi2.c: Likewise.
3297
3298 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3301 handling.
3302
3303 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3306
3307 Tested by: Denis 'GNUtoo' Carikli.
3308
3309 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3312
3313 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3316 Use to get rounded angle rather than truncated.
3317
3318 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * grub-core/term/serial.c: Add option for enabling/disabling
3321 RTS/CTS flow control.
3322
3323 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3326 divisions.
3327
3328 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3331 Use grub_fatal rather than divide by zero.
3332 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3333
3334 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3337 truncate.
3338 (grub_fixed_fsf_divide): Likewise.
3339
3340 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3343 division by-zero and senseless negative divisions.
3344
3345 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3348 division by-zero and senseless negative divisions.
3349 (circprog_set_property): Don't accept negative num_ticks.
3350
3351 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3352
3353 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3354 division by-zero and senseless negative divisions.
3355
3356 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3357
3358 * configure.ac: Use elf_*_fbsd on kfreebsd.
3359
3360 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * grub-core/tests/div_test.c: New test.
3363
3364 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3365
3366 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3367 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3368 * grub-core/gfxmenu/view.c: Likewise.
3369 * grub-core/video/fb/video_fb.c: Introduce new functions:
3370 grub_video_set_area_status, grub_video_get_area_status,
3371 grub_video_set_region, grub_video_get_region.
3372 * grub-core/video/bochs.c: Likewise.
3373 * grub-core/video/capture.c: Likewise.
3374 * grub-core/video/video.c: Likewise.
3375 * grub-core/video/cirrus.c: Likewise.
3376 * grub-core/video/efi_gop.c: Likewise.
3377 * grub-core/video/efi_uga.c: Likewise.
3378 * grub-core/video/emu/sdl.c: Likewise.
3379 * grub-core/video/radeon_fuloong2e.c: Likewise.
3380 * grub-core/video/sis315pro.c: Likewise.
3381 * grub-core/video/sm712.c: Likewise.
3382 * grub-core/video/i386/pc/vbe.c: Likewise.
3383 * grub-core/video/i386/pc/vga.c: Likewise.
3384 * grub-core/video/ieee1275.c: Likewise.
3385 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3386 * include/grub/video.h: Likewise.
3387 * include/grub/video_fb.h: Likewise.
3388 * include/grub/fbfill.h: Updated render_target structure.
3389 grub_video_rect_t viewport, region, area
3390 int area_offset_x, area_offset_y, area_enabled
3391 * include/grub/gui.h: New helper function
3392 grub_video_bounds_inside_region.
3393 * docs/grub-dev.texi: Added information about new functions.
3394
3395 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3398 for alignment.
3399
3400 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3403 missing attribute.
3404 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3405
3406 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3409 simple division on arm and ia64.
3410
3411 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3412
3413 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3414 link with libgcc.
3415
3416 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3419
3420 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3423 prefix symbol, not @.
3424
3425 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3426
3427 * INSTALL: Add note about older gcc and clang.
3428
3429 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3430
3431 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3432
3433 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3436 NULL pointer dereference.
3437
3438 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3439
3440 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3441 clang.
3442
3443 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3444
3445 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3446 warnings.
3447
3448 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3449
3450 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3451 function.
3452 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3453 * grub-core/disk/geli.c (ascii2hex): Likewise.
3454
3455 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * configure.ac: Run linker tests without -Werror.
3458 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3459 Change all occurences of -static-libgcc resp -lgcc to
3460 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3461
3462 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3465
3466 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 Allow compiling with clang (not really supported though).
3469
3470 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3471 unconditionally.
3472 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3473 Add -mrtd -mregparm=3 on i386 when not using clang.
3474 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3475
3476 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3479 bindings.
3480 * grub-core/lib/reed_solomon.c: Likewise.
3481 * include/grub/i386/gdb.h: Likewise.
3482 * include/grub/i386/pc/int.h: Likewise.
3483 * include/grub/i386/pc/pxe.h: Likewise.
3484 * include/grub/ieee1275/ieee1275.h: Likewise.
3485
3486 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 Import libgcrypt 1.5.3.
3489
3490 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * configure.ac: Don't add -Wcast-align on x86.
3493
3494 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * configure.ac: Add -freg-struct-return on all platforms that
3497 support it.
3498
3499 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3500
3501 * acinclude.m4: Use -Werror on parameter tests.
3502 * configure.ac: Likewise.
3503
3504 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3507
3508 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * configure.ac: Check that -malign-loops works rather than assuming that
3511 either -falign-loops or -malign-loops work.
3512
3513 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3516
3517 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * configure.ac: Prevent cflags leaking to subsequent tests by always
3520 resetting cflags to target_cflags in target tests.
3521
3522 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3525 function.
3526
3527 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3530
3531 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3534
3535 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * grub-core/normal/cmdline.c (grub_cmdline_get):
3538 Remove nested functions.
3539
3540 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * tests/test_sha512sum.in: Make it work on emu.
3543
3544 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3547 functions.
3548 (grub_bidi_line_logical_to_visual): Likewise.
3549
3550 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 Remove vestiges of -Wunsafe-loop-optimisations.
3553
3554 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3555 -Wno-unsafe-loop-optimisations.
3556 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3557 pragma.
3558 * grub-core/io/gzio.c: Likewise.
3559 * grub-core/script/parser.y: Likewise.
3560 * grub-core/script/yylex.l: Likewise.
3561 * util/grub-mkfont.c: Likewise.
3562
3563 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3564
3565 * util/grub-mkfont.c (process_cursive): Remove nested function.
3566
3567 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3570 (grub_boot_time): Likewise.
3571
3572 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * include/grub/symbol.h (FUNCTION): Use @function rather than
3575 "function".
3576 (VARIABLE): Likewise.
3577
3578 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3581
3582 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3583
3584 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3585 (parse_dhcp_vendor): Likewise.
3586
3587 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3590
3591 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3594 Define after defining type and not before.
3595
3596 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3599 type.
3600 (grub_gcm_decrypt): Likewise.
3601 (algo_decrypt): Likewise.
3602 (grub_zfs_decrypt_real): Transform error type.
3603
3604 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3607
3608 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3611 (grub_usbms_cbi_reset): Likewise.
3612 (grub_usbms_bo_reset): Likewise.
3613 (grub_usbms_reset): Likewise.
3614 (grub_usbms_attach): Likewise.
3615 (grub_usbms_transfer_cbi): Likewise.
3616
3617 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3620 "checksum = checksum;".
3621
3622 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3623
3624 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3625 entry_type.
3626
3627 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3630 BIOS disk check.
3631
3632 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3635 type.
3636 (grub_ehci_fini_hw): Likewise.
3637 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3638
3639 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3640
3641 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3642 return grub_usb_err_t for cosistency. All users updated.
3643
3644 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3645
3646 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3647 assigning to itself.
3648
3649 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3650 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3651
3652 Issue separate DNS queries for ipv4 and ipv6
3653
3654 Adding multiple questions on a single DNS query is not supportted by
3655 most DNS servers. This patch issues two separate DNS queries
3656 sequentially for ipv4 and then for ipv6.
3657
3658 Fixes: https://savannah.gnu.org/bugs/?39710
3659
3660 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3661 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3662 * (grub_net_dns_lookup): Now using separated dns packages.
3663 * (grub_cmd_nslookup): Add error condition.
3664 * (grub_cmd_list_dns): Print DNS option.
3665 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3666 --prefer-ipv4, and --prefer-ipv6.
3667 * include/grub/net.h (grub_dns_option_t): New enum.
3668 * (grub_net_network_level_address): option added.
3669
3670 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3671
3672 * grub-core/video/fb/video_fb.c: Merge two blit functions
3673 into one.
3674
3675 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * grub-core/term/terminfo.c: Add sequences for home and end.
3678
3679 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3682 graphics console.
3683
3684 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3685
3686 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3687 add mode 0x12.
3688
3689 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3690
3691 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3692 e-mail by Per Öberg.
3693
3694 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3697 name.
3698
3699 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3700
3701 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3702 emu platforms.
3703 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3704
3705 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 * docs/grub.texi: Document usage of menuentry id.
3708
3709 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3710
3711 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3712
3713 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3714
3715 * grub-core/commands/i386/nthibr.c: New command.
3716
3717 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3720
3721 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3724 coordinate.
3725
3726 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 Support GRUB_DISABLE_SUBMENU config.
3729
3730 Inspired by patch from Prarit Bhargava.
3731
3732 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * docs/grub.texi: Mention RSA support.
3735
3736 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * grub-core/commands/verify.c: Add RSA support.
3739
3740 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3743 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3744 device is known to be ATAPI.
3745
3746 2013-11-03 Mike Frysinger <vapier>
3747
3748 * configure.ac: Don't add target-prefix.
3749
3750 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3753 variables.
3754
3755 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3758 if language is English.
3759
3760 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3763
3764 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 * configure.ac: Don't add -m32/-m64 on emu.
3767
3768 2013-11-02 neil
3769
3770 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3771 broken linux headers.
3772
3773 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3776
3777 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3780 Reed-Solomon recovery if more than half of redundancy info is 0.
3781
3782 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * util/grub-mount.c: Handle symlinks to directories.
3785
3786 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3789 find_file recursively for symlink.
3790
3791 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * tests/util/grub-shell.in: Copy themes.
3794
3795 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3798
3799 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3800
3801 * configure.ac: Use 0x8000 for address instead of 8000.
3802
3803 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3804
3805 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3806 signature.
3807
3808 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3811 variable.
3812
3813 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3816
3817 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3818
3819 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3820 file_progress_read_hook.
3821 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3822
3823 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3826 and double.
3827
3828 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3831
3832 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 Rewrite blocklist functions in order to get progress when
3835 reading large extents and decrease amount of blocklist hook calls.
3836
3837 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3840 of SI suffixes.
3841
3842 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 Support --base-clock for serial command to handle weird cards with
3845 non-standard base clock.
3846
3847 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3848
3849 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3850 strncpy.
3851 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3852 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3853 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3854 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3855 + strcpy rather than strncpy.
3856
3857 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3860 (check_pool_label): Likewise. Fixes overflow.
3861 (nvlist_find_value): Fix comparison.
3862
3863 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3866 more appropriate functions.
3867
3868 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3871 realloc.
3872
3873 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3876
3877 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3880 on core size.
3881
3882 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3885
3886 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3889 (initialize_tables): reset tl and td to NULL after freeing.
3890
3891 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3894
3895 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3896
3897 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3898 of supported tags.
3899
3900 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3903
3904 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3907 quirks.
3908
3909 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3912 a page in protected space.
3913
3914 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3917 allocate space for zero-sized modules.
3918
3919 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3922
3923 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3924
3925 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3926
3927 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3930 safeguards. Fixes a crash with i386/pc/console.c.
3931
3932 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3935 and grub_hostfs_init.
3936
3937 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3940 windows method on other platforms without good stat as well.
3941
3942 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3943
3944 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3945
3946 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 Make / in btrfs refer to real root, not the default volume.
3949 Modify mkrelpath to work even if device is mounted with subvolid option.
3950
3951 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3952
3953 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3954 extra_dist.
3955 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3956 extra_dist.
3957
3958 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3961 fails.
3962
3963 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3964
3965 * docs/autoiso.cfg: New file.
3966
3967 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3970 COND_GRUB_PE2ELF conditions.
3971
3972 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3975 "vnd", "rd" and "fd" disks.
3976
3977 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 Move grub_disk_write out of kernel into disk.mod.
3980
3981 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3984 handling.
3985
3986 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * grub-core/kern/misc.c (grub_abort): Make static
3989
3990 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3993 transform invalid unicode codepoints.
3994
3995 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3998 \0 checking.
3999
4000 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4003
4004 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 Consolidate cpuid code.
4007
4008 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4009
4010 Move cpuid code to cpuid.h and TSC code to tsc.c.
4011
4012 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4013
4014 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4015
4016 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4017
4018 * util/grub-mkconfig.in: Replace $0 with $self.
4019 * util/grub-reboot.in: Likewise.
4020 * util/grub-set-default.in: Likewise.
4021
4022 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4023
4024 * docs/osdetect.cfg: New file.
4025
4026 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4027
4028 * tests/util/grub-shell.in: Add new --debug option.
4029
4030 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4031
4032 * tests/test_unset.in: New test.
4033
4034 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4035
4036 * tests/test_sha512sum.in: New test.
4037
4038 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4041 * include/grub/misc.h: Remove strncat.
4042 * grub-core/lib/posix_wrap/string.h: Likewise.
4043
4044 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4045
4046 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4047 Try to handle more than 0xFFFF packets.
4048 Reported by: Bernhard Übelacker <bernhardu>.
4049 He also spotted few overflows in first version of this patch.
4050
4051 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 * tests/date_unit_test.c: New test.
4054
4055 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4058 of first three years after start of validity of unixtime.
4059
4060 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4063 division as the one making more sense.
4064 (update_screen): Likewise.
4065 (complete): Likewise.
4066
4067 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4068
4069 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4070
4071 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 Make char and string width grub_size_t rather than grub_ssize_t.
4074
4075 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4078 unsigned.
4079 (grub_history_replace): Likewise.
4080
4081 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4082
4083 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4084 appropriate.
4085
4086 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4089 appropriate.
4090
4091 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4094 Use unsigned divisions rather than signed variants.
4095
4096 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4099 unsigned arithmetics.
4100 Add missing break.
4101
4102 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4105
4106 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4109 rather than signed one.
4110 (recovery): Likewise.
4111
4112 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4115
4116 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4119 than signed.
4120
4121 2013-10-25 Jon McCune <jonmccune@google.com>
4122
4123 * docs/grub.texi: Cleanup security documentation around signatures.
4124
4125 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4128
4129 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4132 than int.
4133
4134 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4137 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4138 functions when compiling for kernel.
4139
4140 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4141
4142 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4143 unsigned long long when using %llu.
4144
4145 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4148 terminal after updating progress.
4149
4150 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4153 argument. We don't disable Gate A20 in this code.
4154
4155 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4156
4157 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4158 Conceptually based on change in branch "vbe-on-coreboot".
4159
4160 2013-10-24 Robert Millan <rmh@gnu.org>
4161
4162 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4163 numeric constants with their symbolic equivalent.
4164 Taken from branch "vbe-on-coreboot".
4165
4166 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4167
4168 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4169
4170 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4173 divmod64 for offset division.
4174
4175 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4176
4177 Rename .bzrignore to .gitignore. Add "*.o" rule.
4178
4179 * .bzrignore: Renamed to...
4180 * .gitignore: ...this.
4181
4182 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4183
4184 Add new progress module that displays the load progress of files.
4185
4186 * grub-core/lib/progress.c: New file.
4187 * grub-core/Makefile.core.def (progress): New module.
4188 * grub-core/kern/file.c (grub_file_open): File name added.
4189 * (grub_file_read): Progress hook added.
4190 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4191 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4192 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4193 * include/grub/file.h (struct grub_file): Add progress module members.
4194 * include/grub/term.h (struct grub_term_output): Likewise.
4195 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4196 Terminal velocity added.
4197 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4198 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4199 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4200 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4201 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4202 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4203 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4204 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4205 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4206 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4207 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4208 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4209
4210 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4211
4212 Verify signatures of signatures unless --skip-sig is specified.
4213
4214 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4217 \0 checking.
4218
4219 Saves 70 bytes on compressed image.
4220
4221 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4222
4223 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4224 check.
4225
4226 Saves 10 bytes on compressed image.
4227
4228 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 * grub-core/kern/misc.c (grub_isprint): Move to ...
4231 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4232
4233 Saves 20 bytes on compressed image due to remving exporting.
4234
4235 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4238
4239 Saves 5 bytes on compressed image.
4240
4241 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4244 function get_utf8.
4245
4246 Saves 379 bytes on compressed image.
4247
4248 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4249
4250 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4251
4252 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4253
4254 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4255
4256 Saves 40 bytes on compressed image.
4257
4258 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4261 mask rather than 64-bit type.
4262
4263 Saves 20 bytes on compressed image.
4264
4265 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4268 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4269
4270 Saves 273 bytes on compressed image.
4271
4272 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4275 variable length arrays.
4276
4277 Saves 50 bytes on compressed image.
4278
4279 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4282
4283 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 * grub-core/fs/ufs.c: Remove variable length arrays.
4286
4287 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4290
4291 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/fs/zfs.c: Remove variable length arrays.
4294 Reduces zfs.mod by 160 bytes (208 compressed).
4295
4296 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4299
4300 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * grub-core/net/arp.c: Remove variable length arrays.
4303 * grub-core/net/bootp.c: Likewise.
4304 * grub-core/net/dns.c: Likewise.
4305 * grub-core/net/icmp6.c: Likewise.
4306 * grub-core/net/net.c: Likewise.
4307
4308 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * grub-core/fs/ntfs.c: Remove variable length arrays.
4311 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4312 compressed).
4313
4314 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4315
4316 * grub-core/fs/hfs.c: Remove variable length arrays.
4317 Reduces hfs.mod by 8 bytes (52 compressed).
4318
4319 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * grub-core/fs/udf.c: Remove variable length arrays.
4322 Increases udf.mod by 128 bytes (but decreases by 13 when
4323 compressed).
4324
4325 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 * grub-core/fs/iso9660.c: Remove variable length arrays.
4328 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4329 compressed).
4330
4331 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4332
4333 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4334 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4335 compressed).
4336
4337 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * grub-core/fs/xfs.c: Remove variable length arrays.
4340 Reduces xfs.mod by 40 bytes (43 compressed).
4341
4342 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4343
4344 * grub-core/fs/fshelp.c: Remove variable length arrays.
4345 Reduces fshelp.mod by 116 bytes (23 compressed).
4346
4347 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 * grub-core/normal/completion.c: Remove variable length arrays.
4350 * grub-core/normal/menu_entry.c: Likewise.
4351
4352 Reduces normal.mod by 496 bytes.
4353
4354 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4357 by 356 bytes (158 compressed).
4358
4359 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4360
4361 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4362 by 364 bytes (169 compressed).
4363
4364 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4367 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4368 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4369
4370 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4371
4372 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4373 bitmasks to small structures of size chosen to fit in registers.
4374
4375 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 * conf/Makefile.common: Use -freg-struct-return on i386. This
4378 decreases code size and improves performance.
4379
4380 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4381
4382 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4383
4384 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4385
4386 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4387 "(null)" string.
4388 Simplify expressions to save around 256 bytes in kernel.img.
4389 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4390
4391 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4394 Use GRUB_UTIL_FD_O_* rather than O_*.
4395
4396 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 Add haiku-specific functions.
4399
4400 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4403
4404 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4405
4406 Move stat () and device mode checking into OS-dependent files as
4407 long as performance doesn't suffer.
4408
4409 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 Split make_system_path_relative_to_its_root into separate file
4412 relpath.c from getroot.c as it's common between unix and haiku
4413 but otherwise haiku doesn't use any functions from unix getroot.c.
4414
4415 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4418 New function.
4419 (grub_util_is_special_file): Likewise.
4420
4421 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4424 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4425
4426 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4429 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4430
4431 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4434 (load_image): Likewise.
4435
4436 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * util/grub-render-label.c: Move backend part to ...
4439 * util/render-label.c: ... here.
4440
4441 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4444 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4445
4446 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4449
4450 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4453 CD-ROM in case when it's declared as having subpartitions.
4454
4455 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 Don't add -lm on haiku.
4458
4459 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4460 and empty on haiku.
4461 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4462 -lm.
4463
4464 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4465
4466 * configure.ac: Use -melf_*_haiku as target on haiku.
4467
4468 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 * Makefile.util.def: Add util/setup.c to extra_dist.
4471
4472 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4475 unknown types through.
4476
4477 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4480 (grub_util_check_char_device): Likewise.
4481 * include/grub/emu/getroot.h: Likewise.
4482
4483 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4484
4485 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4486 memset rather than inline static function.
4487
4488 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4491 not doing embedded decompressor.
4492
4493 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4494
4495 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4496 shadowing.
4497 * grub-core/kern/disk.c: Likewise.
4498 * grub-core/kern/misc.c: Likewise.
4499 * include/grub/parser.h: Likewise.
4500 * include/grub/script_sh.h: Likewise.
4501 * include/grub/zfs/zfs.h: Likewise.
4502
4503 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4506
4507 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4510 defined before trying to use it.
4511
4512 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4513
4514 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4515 warning.
4516
4517 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4518
4519 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4520 Use __unused__ rather than __used__ on gcc < 3.2.
4521
4522 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4523
4524 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4525 gcc < 4.0.
4526 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4527
4528 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4531
4532 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4535 * include/grub/emu/misc.h: Likewise.
4536
4537 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4538
4539 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4540 cur_color.
4541
4542 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4543
4544 * grub-core/tests/checksums.h: Regenerated due to progress bar
4545 get_minimal_size changes.
4546
4547 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4548
4549 Added `tr' command support.
4550
4551 * grub-core/commands/tr.c: New file.
4552 * grub-core/Makefile.core.def: Build rules for new module.
4553
4554 * tests/grub_cmd_tr.in: New test.
4555 * Makefile.util.def: Build rules for new test.
4556
4557 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4558
4559 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4560
4561 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4562
4563 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4564 * docs/gurb.texi: Likewise.
4565
4566 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4567
4568 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4569 Pixmap highlighted section with east and west slices was displayed
4570 incorrectly due to negative width of the central slice.
4571
4572 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4573
4574 * docs/grub.texi: Graphical options information update.
4575 Removed outdated. Updated current. Inserted missed.
4576
4577 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * docs/grub.texi: Mention few new platform-specific commands.
4580
4581 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4584 currently used so this doesn't really have any effect.
4585 Reported by: Douglas Ray <dougray>
4586
4587 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4588
4589 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4590 compilation but prevents gcc from displaying messages in non-Latin
4591 alphabets.
4592 * conf/Makefile.common: Likewise.
4593
4594 2013-10-16 Hiroyuki YAMAMORI
4595
4596 Handle Japanese special keys.
4597 Reported by: Hiroyuki YAMAMORI.
4598 Codes supplied by: Hiroyuki YAMAMORI.
4599
4600 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4601
4602 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4603
4604 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4605
4606 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4607 * docs/grub.texi: Likewise.
4608
4609 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4612 value in case of incomplete read.
4613 (grub_util_fd_write): Likewise.
4614
4615 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4616
4617 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4618
4619 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * util/grub-editenv.c (create_envblk_file): More from here ...
4622 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4623
4624 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4625
4626 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4627 canonicalize file name before doing the rest.
4628
4629 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4630
4631 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4632 mingw32.
4633
4634 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 Define grub_util_is_directory/regular/special_file and
4637 use OS-dependent versions rather than to rely on stat().
4638
4639 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4640
4641 * util/grub-mkimage.c: Move backend part to ...
4642 * util/mkimage.c: ... here.
4643
4644 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4645
4646 Allow compilation with mingw64 albeit with warnings due to lack of
4647 %llx/%llu.
4648
4649 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4650 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4651 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4652 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4653 on mingw64.
4654 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4655
4656 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 Remove leftover references to some of the system headers.
4659
4660 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4663 read.
4664
4665 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4666
4667 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4668 of strerror.
4669
4670 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4671
4672 Split out blocklist retrieving from setup.c to
4673 grub-core/osdep/blocklist.c and add windows implementation since
4674 generic version doesn't work on NTFS on Windows due to aggressive
4675 unflushable cache.
4676
4677 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4680 files.
4681
4682 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4683
4684 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4685 Cut tailing newline. Remove arbitrary limitation. Always use
4686 grub_util_tchar_to_utf8.
4687
4688 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4691 * tests/printf_unit_test.c (printf_test): Add %% tests.
4692 Reported by: Paulo Flabiano Smorigo.
4693
4694 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4697 implement fsync.
4698
4699 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4702 use nvlist_lookup_string and don't use nvlist_print.
4703
4704 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4707 closedir to handle filename charset translation.
4708
4709 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 * include/grub/emu/hostdisk.h: Move file operations to
4712 * include/grub/emu/hostfile.h: ... here.
4713
4714 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4717 unicode path.
4718
4719 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4722
4723 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4726 and remove export.h.
4727
4728 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * grub-core/kern/emu/error.c: Removed.
4731 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4732 explicitly as it's already in libgnu.a.
4733
4734 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4737 config-util.h include.
4738
4739 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4740
4741 Split emunet into platform-dependent and GRUB-binding parts. Keep
4742 platform-dependent part in kernel for easy access to OS functions.
4743
4744 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4745
4746 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4747 open/read/write.
4748
4749 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 * grub-core/osdep/windows/emuconsole.c: New file.
4752
4753 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4754
4755 * conf/Makefile.extra-dist: Add osdep/*/init.c
4756
4757 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4758
4759 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4760
4761 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4762
4763 * util/grub-probe.c (probe): Separate different drives in hint-str
4764 by spaces and not newlines.
4765 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4766
4767 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4768
4769 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4770 Handle CD-ROMs.
4771
4772 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 Pass-through unknown E820 types. It required reorganisation of mmap
4775 module.
4776
4777 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4778
4779 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4780
4781 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4784 fseeko.
4785
4786 2013-10-14 qwertial <qwertial>
4787
4788 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4789
4790 2013-10-14 Jon McCune <jonmccune@google.com>
4791
4792 * docs/grub.texi: Document new signatures possibility.
4793
4794 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4797
4798 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4799
4800 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4801 missing prototype.
4802 (grub_util_tchar_to_utf8): Likewise.
4803
4804 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4807 * grub-core/kern/emu/main.c: Add missing include.
4808 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4809 Don't call grub_util_init_nls.
4810 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4811 Likewise.
4812
4813 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4816 stat.
4817
4818 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4819
4820 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4821
4822 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4823
4824 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4825
4826 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4827
4828 Add a wrapper for fopen. On unix-like systems just pass-through. On
4829 windows use unicode version.
4830
4831 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4832
4833 Move set_program_name and init_nls to host_init. On windows
4834 fix in this fuction console and argument charset as well.
4835
4836 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4837
4838 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4839 GRUB_ENABLE_CRYPTODISK.
4840
4841 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4842 GRUB_ENABLE_CRYPTODISK.
4843 * util/grub-mkconfig_lib.in: Likewise.
4844
4845 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4846
4847 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4848
4849 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4850
4851 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4852 error when enabling debug.
4853
4854 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4855
4856 * configure.ac: Use -melf_*_obsd on openbsd.
4857
4858 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4859
4860 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4861
4862 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 * include/grub/misc.h: Use gnu_printf rather than printf as format
4865 template since our functions are independent of libc.
4866
4867 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 * util/grub-setup.c (setup): Move copying of partition table as
4870 futher up as possible to avoid possible overwrite by floppy routines.
4871
4872 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4875
4876 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4877
4878 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4879 * docs/grub.texi: Likewise.
4880
4881 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4884 it's mostly unused. Move vestiges to the callers.
4885
4886 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4889 version of salt and hash. Use grub_snprintf rather than snprintf.
4890
4891 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * docs/grub.texi: Fix problem with braces.
4894
4895 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4896
4897 * conf/Makefile.extra-dist: Fix extra-dist list.
4898 * grub-core/Makefile.core.def: Likewise.
4899
4900 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4901
4902 * docs/grub.texi: Document disk names used on Windows and AROS.
4903
4904 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4905
4906 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4907 with AROS devs.
4908 * grub-core/osdep/aros/hostdisk.c: Likewise.
4909
4910 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4911
4912 Avoid including hostfile.h when not necessarry as it pulls
4913 in OS-specific headers which may redefine generic names
4914 like "far".
4915
4916 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4917
4918 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4919 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4920 scrollbar_bottom_pad
4921 * docs/grub.texi: Likewise.
4922
4923 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4924
4925 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4926
4927 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4928
4929 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4930
4931 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4934 Removed.
4935 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4936 Made static.
4937
4938 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4939
4940 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4941 leftover.
4942
4943 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 Move OS-specific driver configuration to grub_util_fd_open. This
4946 moves OS-dependent parts from kern/emu/hostdisk.c to
4947 grub-core/osdep/*/hostdisk.c.
4948
4949 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * util/grub-mkimage.c (generate_image): Use size_t instead of
4952 grub_size_t.
4953 * util/grub-mkimagexx.c (locate_sections): Likewise.
4954 (load_image): Likewise.
4955
4956 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4959 size_t.
4960 (grub_util_write_image): Likewise.
4961
4962 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4965 get random when no RNG is available.
4966 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4967
4968 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4969
4970 * include/grub/util/lvm.h: Removed.
4971
4972 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4973
4974 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4975 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4976
4977 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4980
4981 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4984
4985 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 * grub-core/net/drivers/emu/emunet.c: Move to ..
4988 * grub-core/osdep/linux/emunet.c: ..here.
4989
4990 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4991
4992 * util/ieee1275/ofpath.c: Move to ...
4993 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4994 * grub-core/osdep/basic/ofpath.c: ..here.
4995
4996 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 Move password-querying (util-version) routines to grub-core/osdep.
4999
5000 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 Move sleep routines to grub-core/osdep.
5003
5004 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5005
5006 Move OS-dependent files to grub-core/osdep and document it.
5007
5008 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5009
5010 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5011 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5012
5013 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5014
5015 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5016
5017 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5018
5019 * util/misc.c: Remove leftover inclusion of malloc.h.
5020
5021 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 * include/grub/setjmp.h: Remove leftover GRUBOF.
5024
5025 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5026
5027 * util/raid.c: Fold into ...
5028 * util/getroot_linux.c: ... here. Make all functions static.
5029
5030 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5031
5032 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5033 macros to GRUB ones.
5034
5035 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5036
5037 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5038 occasional bug. If there are too many boot entries or too low
5039 scrollbar height then we need to use another formula to calculate
5040 the position and size of the scrollbar thumb.
5041
5042 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5045
5046 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5047
5048 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5049 * docs/grub.texi: Likewise.
5050
5051 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5052
5053 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5054 viewport.
5055
5056 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5057
5058 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5059 minimal width calculations.
5060
5061 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5062
5063 * docs/grub.texi: Update note on colors on emu console.
5064
5065 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5066
5067 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5068 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5069 it's FS and not GRUB limitation.
5070
5071 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5074
5075 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5078
5079 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5080
5081 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5082 kernels by version order.
5083
5084 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5085
5086 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5087
5088 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 Add AROS hostdisk and getroot routines.
5091
5092 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 Make cryptodisk and diskfilter probe data retrievable programmatically
5095 and not just printable.
5096
5097 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 Split random retrieving code into separate files.
5100
5101 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5102
5103 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5104 R_ARM_V4BX.
5105
5106 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5107
5108 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5109 condition.
5110 * grub-core/tests/fake_input.c: Likewise.
5111 * grub-core/tests/cmdline_cat_test.c: Likewise.
5112
5113 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * grub-core/video/capture.c: Do not do finalization when .fini
5116 is called as there is explicit capture_end.
5117
5118 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5119
5120 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5121 changing windows to avoid crash.
5122
5123 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5124
5125 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5126
5127 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5128
5129 * po/exclude.pot: Add several strings to exclude.
5130
5131 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5134
5135 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5138 ./util/grub-gen-asciih.c to exclude list.
5139
5140 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5143 and don't mark error strings for translation.
5144
5145 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5146
5147 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5148 properly in case of missing block size.
5149
5150 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * grub-core/lib/arm/setjmp.S: Add missing license section.
5153
5154 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 * po/swiss.sed: Add replacement for key names and for term computer.
5157
5158 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5159
5160 * grub-core/gfxmenu/theme_loader.c: New global options for the
5161 theme background image handling. desktop-image-scale-method,
5162 desktop-image-h-align, desktop-image-v-align.
5163 * grub-core/gfxmenu/view.c: Likewise.
5164 * include/gfxmenu_view.h: Likewise.
5165 * include/bitmap_scale.h: Proportional scale functions introduced.
5166 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5167 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5168 cases of unexpected input variables for scale functions.
5169 * docs/grub.texi: Updated documentation for new options.
5170
5171 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5174
5175 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5176
5177 * grub-core/tests/checksums.h: Corrected due to changes in
5178 bilinear interpolation function.
5179
5180 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5181
5182 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5183 to eliminate artefacts in bilinear interpolation.
5184
5185 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5186
5187 * grub-core/video/readers/tga.c: Support paletted tga.
5188
5189 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5192 incorrect cbcr setting when in color mode.
5193
5194 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * grub-core/video/readers/png.c: Support paletted images and clean up
5197 greyscale support.
5198
5199 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5202 usage of wrong table which resulted in mishandling of 4-byte
5203 sequences.
5204
5205 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5206
5207 * grub-core/term/terminfo.c: Add Home and End key sequences.
5208
5209 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5212 Fix formula for computing total number of bytes.
5213
5214 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5217 image processing, fix big-endian and support grayscale.
5218
5219 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5222 Correctly will with maximum transparency when using index color.
5223
5224 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 * grub-core/video/readers/png.c: Support grayscale
5227
5228 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 * grub-core/video/readers/jpeg.c: Support grayscale.
5231
5232 2013-09-26 Jon McCune <jonmccune@google.com>
5233
5234 * grub-core/commands/loadenv.c: Support skipping signature check
5235 and variable names filtering.
5236
5237 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5238
5239 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5240 * grub-core/kern/emu/hostfs.c: Likewise.
5241 * util/getroot_unix.c: Likewise.
5242
5243 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5244
5245 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5246 Migrate all explicit defines to this new one.
5247
5248 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5249
5250 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5251 grub_util_fd_strerror when using grub_util_fd_*.
5252 (grub_util_fd_open_device): Likewise.
5253 (grub_util_biosdisk_read): Likewise.
5254 (grub_util_biosdisk_write): Likewise.
5255 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5256 (grub_util_fd_strerror): Likewise.
5257 (grub_util_fd_sync): Likewise.
5258 (grub_util_fd_close): Likewise.
5259 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5260 (grub_util_fd_close): Likewise.
5261 (grub_util_fd_strerror): Likewise.
5262 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5263 function proto rather than macro.
5264 (grub_util_fd_sync): Likewise.
5265 (grub_util_fd_open): Likewise.
5266 (grub_util_fd_strerror): New proto.
5267
5268 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5269
5270 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5271 platforms on which it doesn't work.
5272
5273 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5274
5275 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5276 stat immediately to where it's used.
5277
5278 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5279
5280 * util/getroot.c (grub_util_check_block_device): Move to ...
5281 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5282 * util/getroot.c (grub_util_check_char_device): Move to ...
5283 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5284
5285 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5286
5287 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5288 disk closing logic.
5289
5290 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5291
5292 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5293
5294 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5295
5296 * docs/grub.texi (File name syntax): Document ZFS filenames
5297 (/volume@snapshot/...).
5298
5299 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5302 Always return full path. Fixes a problem with mkrelpath.
5303
5304 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5305
5306 * util/grub-install.in: Add GPT PReP support.
5307 * util/grub-probe.c (probe): Support GPT partition type.
5308 (main): Support -t gpt_parttype.
5309
5310 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5311
5312 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5313
5314 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5315
5316 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5317
5318 2013-09-23 Tim Hardeck <thardeck>
5319
5320 * util/grub.d/10_hurd.in: Filter out character for the class.
5321 * util/grub.d/10_kfreebsd.in: Likewise.
5322 * util/grub.d/10_linux.in: Likewise.
5323 * util/grub.d/20_linux_xen.in: Likewise.
5324
5325 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5326
5327 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5328 "changed".
5329
5330 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5331
5332 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5333 boot partition.
5334
5335 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5338 doesn't use posix_wrap. Keep literal -fno-builtin however.
5339
5340 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5343
5344 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5345 2013-09-23 neil
5346
5347 * configure.ac: Do not enable -Wmissing-noreturn as its
5348 usefulness is limited and creates problems on some OS notably with
5349 code generated by bison.
5350
5351 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5352 2013-09-23 neil
5353
5354 * configure.ac: Do not explicitly enable -Waddress as it's not
5355 supported by all gcc and when it is, it's already enabled by -Wall.
5356
5357 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5360 desactivated use of EDID at all.
5361
5362 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5363 2013-09-23 neil
5364
5365 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5366 video if no text is available.
5367
5368 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5369 2013-09-23 neil
5370
5371 * configure.ac: Substitute TARGET_RANLIB.
5372
5373 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5374 2013-09-23 neil
5375
5376 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5377
5378 Based on patches from AROS.
5379
5380 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5381 2013-09-23 neil
5382
5383 * grub-core/Makefile.am: Override STRIP and RANLIB.
5384 * configure.ac: compute TARGET_RANLIB.
5385 * INSTALL: Document TARGET_RANLIB
5386
5387 Based on patches from AROS.
5388
5389 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5390
5391 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5392 that floppies are unpartitioned.
5393
5394 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5395
5396 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5397 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5398
5399 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5402 less nice but more portable.
5403 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5404
5405 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5408 for cheat_fd.
5409 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5410 functions.
5411 (grub_cryptodisk_cheat_insert): Likewise.
5412 (grub_cryptodisk_close): Likewise.
5413
5414 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5415
5416 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5417 Use windows path for DEFAULT_DIRECTORY.
5418
5419 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5422 difference was likely just gcc version, not anything mingw-related.
5423
5424 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 Use Winapi on both cygwin and mingw32 to share more code between both.
5427
5428 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5429
5430 * util/grub-install.in: Add --grub-editenv option.
5431 * util/grub-install_header (grub_compress_file): Explicitly check for
5432 plain file to avoid cp error.
5433
5434 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5435
5436 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5437 names; fix LVM driver name (lvm, not lv).
5438 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5439 names.
5440
5441 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5442
5443 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5444 files rather than one file with loads of #if's.
5445 * util/getroot.c: Likewise.
5446
5447 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5450
5451 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5452
5453 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5454 GNU/Hurd to the list of checked PRNG.
5455
5456 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5459
5460 2013-09-21 Ales Nesrsta <starous@volny.cz>
5461
5462 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5463
5464 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5467 * grub-core/disk/lvm.c: Add LVM UUIDs.
5468 * util/getroot.c: Use LVM UUIDs whenever possible.
5469
5470 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5471
5472 * docs/grub.texi (Networking commands): Add documentation for
5473 network related commands.
5474
5475 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5478 to determine if device is handled by devmapper.
5479 (convert_system_partition_to_system_disk): Likewise.
5480 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5481 already done in grub_util_open_dm.
5482
5483 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5484
5485 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5486 Clean up stack manipulation (sync_caches_armv*)
5487
5488 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5489
5490 * util/lvm.c: Remove since unused. Remove remaining references.
5491
5492 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 Handle the case of partitioned LVM properly.
5495
5496 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5497 Stop on meeting LVM, mpath or DMRAID.
5498 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5499 (read_device_map): Likewise.
5500 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5501 device is full disk rather than erroring out on LVM and similar cases.
5502
5503 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5504
5505 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5506
5507 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5510 4K before the end.
5511 Reported by: Leif Lindholm
5512
5513 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5514 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5515
5516 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5517 codes.
5518
5519 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5520
5521 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5522 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5523
5524 2013-09-18 Douglas Ray <dougray@cpan.org>
5525
5526 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5527 as secure.
5528
5529 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5530
5531 * docs/grub.texi: Fix broken link.
5532
5533 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5534
5535 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5536 to break endless loop.
5537
5538 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 * util/grub-fstest.c: Fix several printf formats.
5541 * util/grub-mkimage.c: Likewise.
5542 * util/grub-mkimagexx.c: Likewise.
5543 * util/grub-script-check.c: Likewise.
5544
5545 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5546
5547 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5548 error.
5549
5550 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5553
5554 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5557 removed in current versions cygwin_conv_*.
5558
5559 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 * configure.ac: Disable efiemu runtime on cygwin.
5562
5563 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5566 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5567
5568 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5571 error message.
5572
5573 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5576 windows variant.
5577 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5578 data.
5579
5580 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5581
5582 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5583 when on x86 and not cygwin.
5584 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5585 -Wl,-melf_x86_64.
5586
5587 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * configure.ac: Set CPP to build one when checkoing for freetype for
5590 build.
5591
5592 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5595 [!GRUB_BUILD]: Remove has_argument.
5596
5597 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5598
5599 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5600 Replace with a dummy.
5601
5602 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 * configure.ac: Don't change host_os from mingw to cygwin.
5605
5606 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * configure.ac: Change target_os from windows to cygwin.
5609
5610 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5613
5614 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5615 (build-grub-gen-asciih): Likewise.
5616 (build-grub-gen-widthspec): Likewise.
5617 * Makefile.util.def (grub-pe2elf): Remove.
5618 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5619 * configure.ac: Separate tests for build.
5620 Move ./build-grub-pe2elf to grub-core.
5621 Fix typo.
5622 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5623 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5624 defined.
5625 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5626 constants.
5627 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5628 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5629 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5630
5631 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5634 mingw32 as well based on grub_util_get_disk_size.
5635 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5636 grub_util_get_fd_size.
5637 (sync): Removed.
5638 (fsync): Moved to ...
5639 * grub-core/kern/emu/misc.c (fsync): ... here.
5640
5641 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * include/grub/mm.h (grub_extend_alloc): Remove.
5644 * grub-core/loader/i386/pc/plan9.c: Use own version of
5645 grub_extend_alloc with appropriate types.
5646
5647 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5650
5651 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5652
5653 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5654
5655 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 Fix dependencies on cygwin.
5658
5659 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5660 dependencies when used and defined.
5661 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5662
5663 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5666 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5667
5668 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5671 implementation available to cause compile-time rather than runtime
5672 error.
5673
5674 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5675
5676 * util/grub-fstest.c: Don't check for symlinks on windows.
5677
5678 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5679
5680 * INSTALL: Mention unavailability of man pages when cross-compiling.
5681
5682 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5685 and gcry_log_bug.
5686 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5687
5688 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 * INSTALL: Document cross-compilation.
5691 * acinclude.m4: Determine whether nm support -P and --defined-only.
5692 * configure.ac: Add TARGET_ to all variables pertaining to target
5693 that don't have it yet.
5694 * gentpl.py: Likewise.
5695 * grub-core/Makefile.am: Likewise.
5696 * grub-core/genmod.sh.in: Likewise.
5697 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5698 as well.
5699
5700 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5701
5702 * configure.ac: Remove -Wempty-body. It's not essential and needs
5703 recent gcc.
5704
5705 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5706
5707 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5708 * util/getroot.c: Likewise.
5709
5710 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5711
5712 * grub-core/disk/ahci.c: Add needed explicit cast.
5713 * grub-core/lib/backtrace.c: Likewise.
5714 * grub-core/net/ip.c: Likewise.
5715 * grub-core/net/tcp.c: Likewise.
5716 * grub-core/net/udp.c: Likewise.
5717
5718 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5721
5722 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 * util/import_gcry.py: Add final newline in visibility.h.
5725
5726 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * conf/Makefile.common: Fix typo.
5729
5730 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5733
5734 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 * Makefile.am (widthspec.h): Fix typo.
5737 * util/grub-gen-widthspec.c: Likewise.
5738
5739 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 Move ascii.h and widthspec.h generation to a separate build-time-only
5742 tool.
5743
5744 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5745
5746 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5747 Always fill bootdisk info and improve check for NetBSD disklabel.
5748
5749 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 * conf/Makefile.extra-dist: Add util/bin2h.c.
5752 Reported by: floppym.
5753
5754 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5755
5756 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5757
5758 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5759
5760 * configure.ac: Disable unifont and starfield if no freetype was found.
5761
5762 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5763
5764 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5765 on NetBSD and OpenBSD.
5766
5767 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5768
5769 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5770
5771 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5772
5773 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5774 reduced. Inheritant options are processed during the theme loading.
5775
5776 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5777
5778 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5779
5780 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5781
5782 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5783
5784 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5785
5786 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5787 using qemu.
5788
5789 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5790
5791 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5792 remove-potcdate.sed.
5793
5794 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5795
5796 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5797 unused attribute from pull argument.
5798
5799 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5800
5801 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5802 memory leak.
5803
5804 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5805
5806 * util/getroot.c (pull_lvm_by_command): add --separator option
5807 to vgs call to disable padding of output to 10 characters.
5808
5809 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5810
5811 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5812 here ...
5813 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5814 here.
5815
5816 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5819 length.
5820
5821 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5822
5823 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5824 full Canadian cross. Tested with build=x86_64, host=arm,
5825 target=ppc-ieee1275.
5826
5827 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * configure.ac: Error if no $BUILD_CC could be found.
5830 Reported by: DevHC.
5831
5832 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5835 i386-multiboot.
5836
5837 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5840 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5841
5842 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5843
5844 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5845 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5846 falling back to the partition device, otherwise a later call to this
5847 function may fail spuriously.
5848 Reported by Axel Beckert. Fixes Debian bug #708614.
5849
5850 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5851
5852 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5853
5854 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5855
5856 Prevent shadowing of stdlib's devname(3) on BSD.
5857
5858 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5859 and devlast to diskname and disklast, respectively.
5860
5861 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5862
5863 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5864
5865 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5866
5867 * docs/grub.texi: Introduce terminal window position options:
5868 terminal-left: terminal window's left position
5869 terminal-top: terminal window's top position
5870 terminal-width: terminal window's width
5871 terminal-height: terminal window's height
5872 terminal-border: terminal window's border width
5873 * grub-core/gfxmenu/theme-loader.c: Likewise.
5874 * include/grub/gfxmenu_view.h: Likewise.
5875 * po/exlude.pot: Likewise.
5876 * grub-core/gfxmenu/view.c: Likewise.
5877 Also updated minimal window size.
5878 Also terminal_sanity_check function has been introduced.
5879 * grub-core/tests/checksums.h: Update (terminal window height
5880 is adjusted now for low resolution screen)
5881
5882 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5883
5884 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5885 position).
5886
5887 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 * po/exclude.pot: Add few recent exceptions.
5890
5891 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5892
5893 * tests/grub_func_test.in: Add unicode.pf2.
5894
5895 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5898 standard rather than noral color, in line with other terminals.
5899
5900 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5901
5902 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5903 analysis.
5904
5905 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5908
5909 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5910
5911 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5912 inappropriate printf.
5913
5914 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5915
5916 * .bzrignore: Remove grub-core/lib/dtc-grub,
5917 grub-core/Makefile.libfdt.def
5918 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5919
5920 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * include/grub/video.h (grub_video_register): Keep double-linked as
5923 well as single-linked invariants.
5924 Reported by: qwertial.
5925
5926 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5927
5928 * grub-core/commands/nativedisk.c (get_uuid): Handle
5929 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5930
5931 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5932
5933 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5934 maximum of NW, N, NE heights instead of N's height and maximum of
5935 NW, W, SW widths instead of W's width. (So the box will be always
5936 correctly drawn)
5937
5938 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5939
5940 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5941 Fix misuse of variable count.
5942
5943 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5944 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5945 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 New ports to arm-uboot and arm-efi.
5948 Mostly by Leif Lindholm with some additions from
5949 Francesco Lavra and cleanup by Vladimir Serbinenko.
5950
5951 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5954 and not before.
5955 Reported by: Leon Drugi.
5956
5957 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5958
5959 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5960 Reported by: Paulo Flabiano Smorigo.
5961
5962 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5963
5964 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5965
5966 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5967
5968 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5969
5970 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5973
5974 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5977
5978 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5979
5980 * grub-core/net/bootp.c: Export net_* variables.
5981 * grub-core/net/net.c: Likewise.
5982
5983 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5986
5987 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5990
5991 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5994
5995 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5998
5999 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6000
6001 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6002 <= 0.
6003
6004 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6005
6006 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6007 functions.
6008
6009 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6010
6011 * grub-core/fs/zfs/zfs_lz4.c: New file.
6012 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6013
6014 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6015
6016 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6017
6018 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6019
6020 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6021 (check_pool_label): Likewise.
6022 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6023
6024 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6025
6026 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6027
6028 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6029
6030 * docs/grub.texi (Commands): Document postition parameters
6031 for menuentry command.
6032
6033 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6034
6035 * util/grub-mknetdir.in: Remove stray line from help output.
6036
6037 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 Remove early sm712 init as there is no reason for it (the "watchdog"
6040 effect was due to wrong GPIO map).
6041
6042 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/commands/pcidump.c: Remove static variables.
6045
6046 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6049
6050 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 * configure.ac: Move delimiter after the infos.
6053
6054 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6055
6056 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6057
6058 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6061 not filling whole 8x16 space.
6062
6063 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6066
6067 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6068
6069 * configure.ac: Indicate which liblzma is used if any.
6070
6071 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6072 2013-06-21 Craig Sanders <savannah@taz.net.au>
6073
6074 * util/grub-reboot.in: Document submenu usage.
6075
6076 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6077
6078 * .bzrignore: Update with a number of new test-related files.
6079
6080 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6081
6082 * util/grub-script-check.c: Fail on scripts containing no
6083 commands, to guard against corrupted grub-mkconfig setups that
6084 produce no useful output.
6085 * tests/grub_script_no_commands.in: New test.
6086 * Makefile.util.def (grub_script_no_commands): Add.
6087 Reported by Hans Putter. Fixes Debian bug #713886.
6088
6089 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6090
6091 * grub-core/disk/diskfilter.c: Forgot to remove comment
6092 from previous commit.
6093
6094 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6095
6096 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6097 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6098
6099 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6100
6101 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6102
6103 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6104
6105 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6106 rescan diskfilter devices until nothing new is found.
6107
6108 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6111
6112 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6113
6114 Don't try to detect cbfs on *-emu.
6115
6116 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6119
6120 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 Add support for processed coreboot payload chainloading.
6123
6124 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 Enable coreboot information commands even when not loaded as
6127 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6128
6129 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 Support for cbfs. Also factor out the part which is common
6132 for all archives to a separate module. This splits tar from cpio
6133 as they are very different but keeps cpio, cpio_be, odc and newc
6134 together since they're very similar.
6135
6136 2013-06-15 David Michael <fedora.dm0@gmail.com>
6137
6138 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6139 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6140
6141 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6142
6143 * tests/grub_script_eval.in: Really add the eval test.
6144
6145 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 Move flavour-specific parts out of common cpio.c file and
6148 rename remaining to cpio_common.c
6149
6150 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6151
6152 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6153 off new function grub_script_execute_new_scope. Change callers to use
6154 either of them as appropriate.
6155 * grub-core/commands/eval.c: New command eval.
6156 * docs/grub.texi (Commands): Document it.
6157
6158 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6159
6160 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6161 to fetch values when listing.
6162
6163 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6164
6165 Fix make dist on non-pc.
6166
6167 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6168
6169 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6170 without a device name.
6171
6172 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 Remove enable_executable_check as it's not needed anymore.
6175 Reported by: dougray.
6176
6177 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6180 ambigouos RAID before discovering RAIDs on top of it.
6181 Reported by: bodom.
6182
6183 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 Fix typo (failback vs fallback).
6186
6187 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6188
6189 * util/grub.d/30_os-prober.in: Add support for probing EFI
6190 System Partition (as of os-prober 1.58).
6191
6192 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6193
6194 * configure.ac: Add yet another path to unifont. For parabola.
6195
6196 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6197
6198 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6199 handling to copy the killed characters to the kill buffer as
6200 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6201 stored as char. Eliminates UCS4 truncation and corruption
6202 observed when killing characters with Ctrl-u and yanking them
6203 back with Ctrl-y.
6204
6205 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 Detach optional parts of gfxterm and integrate in with coreboot init.
6208
6209 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6210
6211 Move blit and fill dispatcher to appropriate files to decrease export
6212 and relocation overhead.
6213
6214 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6215
6216 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6217 functions.
6218
6219 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6220
6221 * grub-core/Makefile.am: Fix compilation problem with some
6222 automake versions.
6223
6224 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6227
6228 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6231 automake versions.
6232
6233 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6236 SSDT.
6237
6238 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6239
6240 * grub-core/partmap/dfly.c: New partition map.
6241
6242 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6245 checking.
6246 Reported by: Francesco Lavra.
6247
6248 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6249
6250 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6251 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6252 false conditions.
6253 * conf/Makefile.common: define dist_grubconf_DATA
6254
6255 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 Progressively skip menu elements on small terminals rather
6258 than crashing.
6259
6260 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6263 to avoid losing last column.
6264
6265 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * po/exclude.pot: Add missing string "%C".
6268
6269 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6272 after the test.
6273
6274 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * util/grub-install.in: Gettextize "Not found" message.
6277
6278 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 Fix distfiles list.
6281 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6282
6283 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6284
6285 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6286 present.
6287 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6288
6289 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6290
6291 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6292
6293 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6296 attribute since structure is not necessarily aligned.
6297
6298 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6299
6300 * docs/grub.texi (Device syntax): Clarify description of network
6301 drives.
6302
6303 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6306 for vasprintf presence.
6307
6308 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * util/grub-install.in: Handle efibootmgr presence check.
6311 Reported by: Leif Lindholm.
6312
6313 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6314
6315 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6316 new strings to translate.
6317
6318 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6319
6320 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6321 yet another string (pun intended) to translate.
6322
6323 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6324
6325 * po/POTFILES-shell.in: Autogenerate it.
6326
6327 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6330
6331 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6334 misnomer.
6335
6336 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6337
6338 * docs/grub.texi (Network): Add description of net_default_interface,
6339 net_default_ip and net_default_mac. Rewrite variables description
6340 to emphasize that they are per-interface.
6341
6342 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 New test: cmdline and cat.
6345
6346 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 * grub-core/commands/cat.c: Show UTF-8 characters.
6349
6350 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 * conf/Makefile.common: Poison float and double on non-emu.
6353
6354 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6355
6356 * configure.ac: Don't disable extended registers on emu.
6357
6358 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 * configure.ac: Don't use extended registers on x86_64.
6361 Reported by: Peter Jones.
6362
6363 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 * grub-core/term/efi/console.c: Fix compile error.
6366
6367 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 Compressed HFS+ support.
6370
6371 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6372
6373 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6374 pixel".
6375
6376 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 Menu color test.
6379
6380 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * grub-core/tests/setjmp_test.c: New test.
6383
6384 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 New variables 'net_default_*' to determine MAC/IP of default interface.
6387
6388 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 * tests/gettext_strings_test.in: A test to check for strings not
6391 marked for translation.
6392
6393 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6394
6395 * autogen.sh: Exclude unused libgcrypt files from translation.
6396
6397 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6398
6399 Simplify few strings.
6400
6401 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6402
6403 Mark few forgotten strings for translation.
6404
6405 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6406
6407 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6408 rather than printf.
6409
6410 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6413 rather than printf.
6414 * grub-core/video/readers/tga.c: Likewise.
6415
6416 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 * tests/priority_queue_unit_test.cc: New test.
6419
6420 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6423 than printf.
6424
6425 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6426
6427 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6428 variable for one time boot menu entry.
6429
6430 2013-05-05 Bean <bean123ch@gmail.com>
6431
6432 * grub-core/commands/testspeed.c: New command testspeed.
6433
6434 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 Factor-out human-size printing.
6437
6438 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 Agglomerate more mallocs to speed-up gfxterm.
6441
6442 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 Speed-up gfxterm by slightly agglomerating mallocs.
6445
6446 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 More video checks.
6449
6450 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6451
6452 Speed-up gfxterm by saving intermediate results in index+alpha
6453 format.
6454
6455 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6458 test.
6459
6460 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6461
6462 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6463 line of timeout as it may contain the rest of long line.
6464
6465 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6466
6467 * grub-core/normal/main.c: Fix freed memory dereference.
6468
6469 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 Fix several memory leaks.
6472
6473 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6476
6477 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6480
6481 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 Fix test -a and -o precedence.
6484 Reported by: adrian15.
6485
6486 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6489
6490 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6491
6492 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6493 and add it as source to functional_test module.
6494
6495 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6496
6497 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6498
6499 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6500
6501 New series of tests for gfxterm and gfxmenu.
6502
6503 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6506 the theme path relative to $prefix/themes.
6507
6508 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6509
6510 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6511 Fix order bug.
6512 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6513
6514 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6517 descriptor.
6518
6519 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6520
6521 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6522 grub_gfxmenu_timeout_notifications.
6523 (grub_gfxmenu_view_destroy): Likewise.
6524
6525 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6528
6529 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 Several fixes to ieee1275 and big-endian video.
6532
6533 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 Add missing exports on mips.
6536
6537 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6540 if no unifont is found.
6541 Restore original keyboard.
6542
6543 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6546 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6547
6548 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 First automated video test (running videotest and comparing results)
6551
6552 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6555 instead of 2 to have full RGB/CMY test pattern.
6556
6557 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 Add few more tests.
6560
6561 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6564 ARCS. All users updated.
6565
6566 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6569
6570 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6571
6572 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6573
6574 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6577 Reported by: qwertial.
6578
6579 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6580
6581 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6582 with syntax "XXX deg"/"XXX °".
6583
6584 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 Make PCI init in i386-qemu port more robust.
6587
6588 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6589
6590 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6591 cached view is reused.
6592 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6593 open boot menus.
6594
6595 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 Unify more code in grub-install_header.
6598
6599 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 Add few new tests.
6602
6603 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 Enforce disabling of firmware disk drivers when native drivers kick in.
6606
6607 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * grub-core/commands/nativedisk.c: Customize the list of modules on
6610 platform. Don't try to search for disks already using native drivers.
6611
6612 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6615 platforms.
6616
6617 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6620 handling of variables containing backslash.
6621
6622 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6625 dereference.
6626 Reported by: qwertial.
6627
6628 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6631
6632 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6633
6634 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6635 dereference.
6636 Reported by: qwertial.
6637
6638 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6641
6642 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6645
6646 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6647
6648 New command `nativedisk'.
6649
6650 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6651
6652 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6653 * grub-core/loader/i386/bsd.c: Likewise.
6654
6655 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6658
6659 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6662 grub_get_unaligned16 rather than shifts.
6663
6664 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6665
6666 * grub-core/kern/file.c: Use const char * rather than casting to
6667 non-const.
6668
6669 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6670
6671 * grub-core/commands/probe.c: Add missing grub_device_close.
6672
6673 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * INSTALL: Document linguas.sh.
6676
6677 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6678
6679 Remove POTFILES.in and regenerate it in autogen.sh.
6680
6681 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6682
6683 Move --directory/--override-directorry to grub-install_header and unify.
6684
6685 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 * grub-core/term/morse.c: Macroify dih and dah.
6688
6689 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6690
6691 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6692
6693 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * grub-core/term/ns8250.c: Systematically probe ports by writing
6696 to SR before using them.
6697
6698 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6699
6700 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6701 disks.
6702 (check_sas): Get sas_adress info.
6703
6704 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6705
6706 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6707 ports.
6708
6709 2013-04-27 Leon Drugi <eyak>
6710
6711 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6712 BSS clearing.
6713
6714 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6715
6716 Core compression test.
6717
6718 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 Implement grub_machine_get_bootlocation for ARC.
6721
6722 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 Improve AHCI detection and command issuing.
6725
6726 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 Fix pseries test.
6729
6730 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 Make 'make check' work on emu.
6733
6734 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6735
6736 Replace libcurses with our own vt100 handling for the ease of testing
6737 and decreasing prerequisites.
6738
6739 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6742
6743 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6744
6745 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6746 compile when not needed.
6747
6748 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * tests/pseries_test.in: New test.
6751
6752 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 Add test to check that different boot mediums work.
6755
6756 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6759 ofw limited ISO support.
6760
6761 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 * configure.ac: Fix loongson conditional.
6764
6765 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6766
6767 Enable mipsel-arc.
6768
6769 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6770
6771 Add serial on ARC platform.
6772
6773 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6774
6775 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6776 commit.
6777
6778 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * tests/partmap_test.in: Add missing double semicolon.
6781
6782 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 * util/grub-mkrescue.in: Fix loongson filename.
6785
6786 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 * util/grub-mkrescue.in: Move all files that don't have a location
6789 set in stone under /boot/grub. Use ISO hard links rather than copies
6790 to save some space.
6791
6792 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6795 bogus SLOF values.
6796
6797 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 Make check work on mips-arc.
6800
6801 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * util/grub-mkrescue.in: Alias sashARCS as sash.
6804
6805 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6806
6807 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6808 it's serial.
6809
6810 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6811
6812 * util/grub-install.in: Fix target fo qemu_mips.
6813 Fix extension on EFI.
6814
6815 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6818 in front of chosen entry to mark it even if highlighting is lost.
6819
6820 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6821
6822 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6823 gfxpayload=keep if cbfb is active.
6824
6825 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6828
6829 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 Add missing video ids to coreboot and ieee1275 video.
6832
6833 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 * util/grub-mkrescue.in: Add mips-arc support.
6836
6837 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6840
6841 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6842
6843 Move mips-arc link address. Previous link address was chosen
6844 in belief that RAM on SGI platforms grows down while in fact it
6845 grows up from an unusual base.
6846
6847 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6850 Fix a type which prevented CD-ROM and floppy boot.
6851
6852 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 Support coreboot framebuffer.
6855
6856 * grub-core/video/i386/coreboot/cbfb.c: New file.
6857
6858 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6861 detecting too small regions.
6862
6863 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6864
6865 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6866
6867 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6868
6869 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6870 Remove dprintf.
6871 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6872
6873 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6876 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6877 * grub-core/loader/powerpc/ieee1275/linux.c
6878 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6879
6880 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6883 Look for /boot-rom as well as /rom/boot-rom.
6884
6885 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6886
6887 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6888 handling when creating text_layer failed.
6889 * grub-core/video/video.c (grub_video_create_render_target):
6890 Set result to 0 on error.
6891 (grub_video_delete_render_target): Do not dereference NULL.
6892
6893 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6896 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6897 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6898 (grub_linux_load64): Mask out 2 high bits.
6899
6900 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6901
6902 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6903 more place.
6904
6905 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6906
6907 Add support for pseries and other bootinfo machines to grub-mkrescue.
6908
6909 Tested by: Paulo Flabiano Smorigo.
6910
6911 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6912
6913 * util/grub-mkrescue.in: Add GPT for EFI boot.
6914
6915 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6916
6917 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6918 It improves performance in qemu.
6919
6920 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6921
6922 * build-aux/snippet: Add missing gnulib files.
6923
6924 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6925
6926 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6927
6928 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6929
6930 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6931
6932 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6933 2013-04-15 Peter Jones <pjones@redhat.com>
6934
6935 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6936 sectors.
6937 Based on patch by Peter Jones.
6938
6939 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 Fix DMRAID partition handling.
6942
6943 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * tests/grub_cmd_date.in: Skip on sparc64.
6946
6947 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6950 firmware error messages.
6951
6952 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6955 source and destination differ.
6956
6957 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6960 detection.
6961
6962 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6963
6964 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6965 match config-util.h to avoid warnings and increase compatibility.
6966
6967 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6968 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 Add option to compress files on install/image creation.
6971
6972 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6973
6974 * docs/grub-dev.texi: Rearrange menu to match the section order.
6975 Reported by: Bryan Hundven.
6976
6977 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6978
6979 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6980
6981 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6982
6983 Move GRUB out of system area when using xorriso 1.2.9 or later.
6984
6985 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 * tests/grub_cmd_date.in: Add missing exit 1.
6988
6989 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6990
6991 * tests/partmap_test.in: Skip on sparc64.
6992
6993 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6994
6995 Support grub-shell on sparc64.
6996
6997 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 Support mkrescue on sparc64.
7000
7001 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7004 Needed on OpenBIOS due to incomplete device tree.
7005
7006 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7007
7008 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7009 would be otherwise excluded.
7010
7011 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7012
7013 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7014 Inline name defines used only once.
7015
7016 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7017
7018 Fix memory leaks in ofnet.
7019 Reported by: Francesco Lavra.
7020
7021 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7022
7023 * docs/man/grub-glue-efi.h2m: Add missing file.
7024
7025 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7026
7027 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7028
7029 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 Better support Apple Intel Macs on CD.
7032
7033 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 Replace stpcpy with grub_stpcpy in tools.
7036
7037 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7038
7039 Handle Japanese special keys.
7040 Reported by: Hiroyuki YAMAMORI.
7041 Codes supplied by: Hiroyuki YAMAMORI.
7042
7043 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7044
7045 * util/grub-mkimage.c: Document memdisk implying --prefix.
7046
7047 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7048
7049 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7050 much we can do about it anyway.
7051
7052 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7053
7054 Fix handling of split transfers.
7055
7056 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7057
7058 * grub-core/net/http.c: Fix bad free.
7059
7060 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7063 than buffer size.
7064
7065 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7068
7069 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * tests/util/grub-shell.in: Fix it on powerpc.
7072
7073 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 Turn off QEMU ACPI-way since new releases don't have shutdown port
7076 anymore.
7077
7078 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * docs/grub.texi: Update coreboot status info.
7081
7082 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 * tests/grub_cmd_date.in: New test for datetime.
7085
7086 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7087
7088 * tests/partmap_test.in: Fix missing qemudisk setting.
7089
7090 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7091
7092 Support i386-ieee1275 grub-mkrescue and make check on it.
7093
7094 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7097 feature for it.
7098
7099 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7100
7101 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7102 GRUB_CMDLINE_XEN_DEFAULT.
7103 Reported by: Marc Warne (GigaTux) <gigatux>
7104
7105 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7106
7107 Import new gnulib.
7108
7109 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7110
7111 Use ACPI shutdown intests as traditional port was removed.
7112
7113 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7114
7115 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7116 distinction.
7117
7118 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7119
7120 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7121 Fix few warining messages and leaks while on it.
7122
7123 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7124
7125 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7126 links under grub-core/lib/libgcrypt-grub/mpi.
7127
7128 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 Fix ia64-efi image generation on big-endian machines. Deduplicate
7131 some code while on it.
7132 Reported by: Leif Lindholm.
7133
7134 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7135
7136 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7137 as extra_dist.
7138
7139 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7140
7141 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7142
7143 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7144
7145 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7146 texinfo-5.1.
7147
7148 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 * grub-core/normal/term.c: Few more fixes for menu entry editor
7151 rendering.
7152 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7153
7154 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 * grub-core/normal/term.c: Few more fixes for menu entry editor
7157 rendering.
7158 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7159
7160 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7161
7162 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7163 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7164
7165 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7166
7167 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7168 instead of hardcoding grub.mo.
7169
7170 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7171
7172 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7173
7174 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7177 grub-core/disk/geli.c.
7178
7179 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7180
7181 * util/grub-mkfont.c: Prefer enum to #define.
7182
7183 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7184
7185 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7186
7187 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7188
7189 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7190
7191 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7192
7193 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7194
7195 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7196
7197 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7198
7199 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * include/grub/bsdlabel.h: Use enums.
7202
7203 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 Move GRUB_CHAR_BIT to types.h.
7206
7207 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7208
7209 * docs/grub.texi: Document more user commands.
7210
7211 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7212
7213 * docs/grub.texi: Document menuentry --id option.
7214
7215 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7216
7217 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7218
7219 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7220
7221 Unify file copying setup across different install scripts. Add
7222 options for performing partial install.
7223
7224 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7225 2013-04-04 Peter Jones <pjones@redhat.com>
7226
7227 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7228
7229 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 Use TSC as a possible time source on i386-ieee1275.
7232
7233 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7236 Init err.
7237
7238 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7239
7240 * util/grub-setup.c (setup): Handle some corner cases.
7241
7242 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7243
7244 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7245
7246 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7247
7248 * grub-core/commands/verify.c: Save verified file to avoid it being
7249 tampered with after verification was done.
7250
7251 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7252
7253 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7254 reported width by one to compensate for curesor algorithm problem.
7255
7256 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7257
7258 Fix screen corruption in menu entry editor and simplify the code
7259 flow while on it.
7260
7261 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7262
7263 * util/grub-mount.c (fuse_init): Return error if fuse_main
7264 failed.
7265
7266 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7267
7268 * include/grub/elf.h: Add missing ARM relocation codes and fix
7269 existing ones.
7270
7271 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7272
7273 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7274
7275 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7276 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7279 into account when calculating radius.
7280
7281 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7282
7283 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7284
7285 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7286
7287 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7288
7289 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7290
7291 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7292 missing closing bracket.
7293
7294 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7295
7296 * INSTALL: Mention xorriso requirement.
7297
7298 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7299
7300 * grub-core/commands/verify.c: Fix hash algorithms values for
7301 the first three hashes - they start with 1, not with 0.
7302
7303 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7304
7305 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7306 Try terminating EFI services several times due to quirks in some
7307 implementations.
7308
7309 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7310
7311 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7312 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7313 BankField extended opcodes.
7314 (get_sleep_type): Add minimal scope handling (just enough to
7315 handle setting the scope to the root path).
7316 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7317 * include/grub/acpi.h: Add enumeration values for Event, Device,
7318 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7319
7320 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7321
7322 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7323 memory leak.
7324
7325 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 * grub-core/disk/ahci.c: Give more time for AHCI request.
7328
7329 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7330
7331 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7332 command.
7333
7334 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 Replace the region at 0 from coreboot tables to available in BSD
7337 memory map.
7338
7339 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7342 non-BIOS platforms.
7343
7344 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7347 platforms.
7348
7349 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7352 handling of multi-device filesystems.
7353
7354 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7357 platforms.
7358
7359 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 Add new 'proc' filesystem framework and put luks_script into it.
7362
7363 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7366 and qemu.
7367
7368 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7371
7372 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7373
7374 Add ability to generate newc additions on runtime.
7375
7376 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7377
7378 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7379 description.
7380
7381 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7382
7383 * po/POTFILES.in: Regenerate.
7384
7385 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * grub-core/commands/verify.c (hashes): Add several hashes
7388 from the spec.
7389
7390 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 Slight improve in USB-related boot-time checkpoints.
7393
7394 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * grub-core/commands/boottime.c: Fix copyright header.
7397
7398 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7401 coreboot tables content. Support for cbmemc.
7402
7403 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 Fix a conflict between ports structures with 2 controllers of
7406 same kind.
7407
7408 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 * include/grub/boottime.h: Add missing file.
7411
7412 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7413
7414 Initialize USB ports in parallel to speed-up boot.
7415
7416 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 Fix USB devices not being detected when requested
7419 due to delayed attach.
7420
7421 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 Implement boot time analysis framework.
7424
7425 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 Remove get_endpoint_descriptor and change all functions needing
7428 descriptor to just receive it as argument rather than endpoint
7429 address.
7430
7431 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7432
7433 Better estimate the maximum USB transfer size.
7434
7435 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 Resend a packet if we got the wrong buffer in status.
7438
7439 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7442 multiplication rather than division.
7443
7444 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7447 than divisions.
7448
7449 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7452 operations to have intended shifts and not divisions.
7453
7454 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7457 intended shifts rather than division.
7458
7459 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7462 computation for some years before epoch. Avode confusing division
7463 while on it.
7464
7465 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/video/i386/pc/vbe.c
7468 (grub_video_vbe_print_adapter_specific_info): Replace division by
7469 shifts.
7470
7471 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7472
7473 Adjust types in gdb module to have intended unsigned shifts rather than
7474 signed divisions.
7475
7476 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7477
7478 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7479 maximum size is 4G - 1 on hfs
7480
7481 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7484
7485 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7488 function.
7489
7490 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7491
7492 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7493 causing gcc error with gcc 4.7.1.
7494
7495 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7496
7497 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7498 dereference null pointer. While the code is technically correct, gcc
7499 may eliminate a null check if pointer is already dereferenced.
7500
7501 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7502
7503 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7504 OOM check.
7505 * grub-core/normal/term.c (read_terminal_list): Likewise.
7506
7507 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 Lift up core size limits on some platforms. Fix potential memory
7510 corruption with big core on small memory systems. Document remaining
7511 limits.
7512
7513 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7516 gotoxy to 0,0.
7517
7518 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 Remove all trampoline support. Add -Wtrampolines when
7521 present. Remove symbols used for trampolines to make
7522 link fail if trampolines are present.
7523
7524 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7527 append out of its parent.
7528
7529 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7532 parent.
7533
7534 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7537 all vars to a macro. All users updated.
7538
7539 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7540
7541 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7542 i386-ieee1275.
7543
7544 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7547
7548 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7551
7552 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 Move to more hookless approach in IEEE1275 devices handling.
7555
7556 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 * grub-core/kern/term.c (grub_term_normal_color),
7559 (grub_term_highlight_color): Add back lost defaults.
7560
7561 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7562
7563 Make elfload not use hooks. Opt for flags and iterators instead.
7564
7565 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7566
7567 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7568 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7569
7570 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7573
7574 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7577 hook pass-through parameter. All users updated and unnested.
7578
7579 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7582 out of its parent.
7583
7584 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * grub-core/fs/hfs.c: Remove nested functions.
7587
7588 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7591 the context through.
7592 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7593
7594 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * util/grub-editenv.c (list_variables): Move print_var out of its
7597 parent.
7598
7599 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7602 function.
7603
7604 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/gentrigtables.c: Make tables const.
7607
7608 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7609
7610 Remove nested functions from videoinfo iterators.
7611
7612 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7615 for 64-bit platforms.
7616
7617 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7618
7619 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7620 a FOR_CHILDREN macro.
7621
7622 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7625 platform from firmware path.
7626
7627 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 Enable linux16 on non-BIOS systems for i.a. memtest.
7630
7631 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7632 correctly.
7633 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7634
7635 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7638 Fix end of table condition.
7639
7640 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7643 out of its parent.
7644
7645 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * grub-core/fs/jfs.c: Remove nested functions.
7648
7649 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7650
7651 * grub-core/fs/minix.c: Remove nested functions.
7652
7653 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 * grub-core/fs/iso9660.c: Remove nested functions.
7656
7657 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7658
7659 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7660 of parent function.
7661
7662 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7663
7664 * util/grub-fstest.c: Remove nested functions.
7665
7666 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7667
7668 * grub-core/loader/machoXX.c: Remove nested functions.
7669
7670 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7671
7672 Remove nested functions from disk and file read hooks.
7673
7674 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7675 (struct grub_disk): Add read_hook_data member.
7676 * include/grub/file.h (struct grub_file): Likewise.
7677 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7678 argument.
7679
7680 Update all callers.
7681
7682 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7683
7684 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7685 Fix off by one error in enumerating extended partitions.
7686
7687 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7688
7689 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7690 memory leak if device name is not found.
7691
7692 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7693
7694 * grub-core/normal/menu_entry.c (update_screen): remove
7695 unused variable `off' which caused scroll down arrow to be always shown.
7696
7697 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7698
7699 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7700 access to unallocated memory.
7701
7702 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7703
7704 * Makefile.util.def: Add partmap/msdos.c to common library.
7705 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7706 * grub-core/disk/ldm.c: Check for existence of
7707 GRUB_PC_PARTITION_TYPE_LDM.
7708
7709 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7712 sizes and display sector size.
7713
7714 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7715
7716 Implement new command cmosdump.
7717
7718 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7719
7720 Support Openfirmware disks with non-512B sectors.
7721
7722 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7723 size of the disk.
7724 * (grub_ofdisk_get_block_size): New function.
7725 * (grub_ofdisk_prepare): Use the correct block size.
7726 * (grub_ofdisk_read): Likewise.
7727 * (grub_ofdisk_write): Likewise.
7728 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7729 New proto.
7730
7731 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7732
7733 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7734
7735 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7736
7737 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7738 on first error.
7739
7740 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7743 freeing it.
7744
7745 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7746
7747 Implement USBDebug (full USB stack variant).
7748
7749 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7750
7751 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7752 unless they have unexpected values.
7753
7754 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7755
7756 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7757 grub_print_error.
7758
7759 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7762 zero-out of port structure.
7763
7764 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7765
7766 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7767 of extended attributes.
7768
7769 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7770
7771 * util/grub-install.in: change misleading comment about
7772 device.map creation
7773
7774 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7775
7776 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7777 when menu highlight color isn't set.
7778
7779 2013-01-27 C. Masloch <pushbx@38.de>
7780
7781 Improve FreeDOS direct loading support compatibility.
7782
7783 * include/grub/i386/relocator.h (grub_relocator16_state):
7784 New member ebp.
7785 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7786 variable.
7787 (grub_relocator16_boot): Handle %ebp.
7788 * grub-core/lib/i386/relocator16.S: Likewise.
7789 * grub-core/loader/i386/pc/freedos.c:
7790 Load BPB to pass kernel which partition to load from.
7791 Check that kernel file is not too large.
7792 Set register dl to BIOS unit number as well.
7793
7794 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7795
7796 * util/grub-reboot.in (usage): Document the need for
7797 GRUB_DEFAULT=saved.
7798 * util/grub-set-default.in (usage): Likewise.
7799 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7800
7801 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7804 than defining WORDS_BIGENDIAN manually.
7805
7806 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7809 invariants.
7810
7811 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7812
7813 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7814 nested.
7815 (blit_comb: add_device_width): Likewise.
7816
7817 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7818
7819 Remove nested functions from USB iterators.
7820
7821 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7822 (grub_usb_controller_iterate_hook_t): Likewise.
7823 (grub_usb_iterate): Add hook_data argument.
7824 (grub_usb_controller_iterate): Likewise.
7825 (struct grub_usb_controller_dev.iterate): Likewise.
7826
7827 Update all implementations and callers.
7828
7829 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7832 margin when not needed.
7833
7834 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 Make color variables global instead of it being per-terminal.
7837
7838 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7839
7840 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7841 asterisk.
7842
7843 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7844
7845 Fix powerpc and sparc64 build failures caused by un-nesting memory
7846 map iterators.
7847
7848 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7849
7850 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7851 parameter declarations.
7852
7853 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7854
7855 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7856
7857 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 Improve spkmomdem reliability by adding a separator between bytes.
7860
7861 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7862
7863 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7864 an Acer registration utility with several sightings in the wild.
7865 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7866
7867 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7868
7869 Remove nested functions from filesystem directory iterators.
7870
7871 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7872 (struct grub_fs.dir): Add hook_data argument.
7873
7874 Update all implementations and callers.
7875
7876 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7877
7878 * docs/grub.texi (Multi-boot manual config): Fix typo for
7879 "recommended".
7880
7881 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7882
7883 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7884 until after its use in generate_image.
7885
7886 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7887
7888 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7889 initrd size to addr_min, since the initrd will be allocated after
7890 this address.
7891
7892 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7893
7894 * conf/Makefile.common: Fix autogen rules to pass definition
7895 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7896
7897 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7898
7899 * include/grub/elf.h: Update ARM definitions based on binutils.
7900
7901 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7902
7903 Split long USB transfers into short ones.
7904
7905 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7906
7907 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7908 is interrupted by ESC.
7909
7910 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7911
7912 * util/grub-script-check.c (main): Uniform the error message.
7913
7914 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7915
7916 Remove nested functions from ELF iterators.
7917
7918 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7919
7920 Remove nested functions from device iterators.
7921
7922 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7923 (grub_arc_iterate_devs): Add hook_data argument.
7924 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7925 (struct grub_ata_dev.iterate): Add hook_data argument.
7926 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7927 (grub_device_iterate): Add hook_data argument.
7928 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7929 (struct grub_disk_dev.iterate): Add hook_data argument.
7930 (grub_disk_dev_iterate): Likewise.
7931 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7932 Likewise.
7933 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7934 Likewise.
7935 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7936 type.
7937 (struct grub_partition_map.iterate): Add hook_data argument.
7938 (grub_partition_iterate): Likewise.
7939 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7940 (struct grub_scsi_dev.iterate): Add hook_data argument.
7941
7942 Update all callers.
7943
7944 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7945
7946 Fix typos for "developer" and "development".
7947
7948 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7949
7950 Add license header to spkmodem-recv.c.
7951
7952 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 Rewrite spkmodem to use PIT for timing. Double the speed.
7955
7956 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7957
7958 Add new command pcidump.
7959
7960 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7961
7962 New terminal outputs using serial: morse and spkmodem.
7963
7964 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 Improve bidi handling in entry editor.
7967
7968 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7969
7970 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7971 argument to prevent name collision.
7972
7973 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7974
7975 Remove nested functions from script reading and parsing.
7976
7977 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7978 getline_data argument, passed to getline.
7979 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7980 getline_data argument, passed to grub_parser_split_cmdline.
7981 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7982 lexerstate->getline_data to lexerstate->getline.
7983 (grub_script_lexer_init): Add getline_data argument, saved in
7984 lexerstate->getline_data.
7985 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7986 argument, passed to grub_script_parse.
7987 * grub-core/script/script.c (grub_script_parse): Add getline_data
7988 argument, passed to grub_script_lexer_init.
7989 * include/grub/parser.h (grub_parser_split_cmdline): Update
7990 prototype. Update all callers to pass appropriate getline data.
7991 (struct grub_parser.parse_line): Likewise.
7992 (grub_rescue_parse_line): Likewise.
7993 * include/grub/reader.h (grub_reader_getline_t): Add void *
7994 argument.
7995 * include/grub/script_sh.h (struct grub_lexer_param): Add
7996 getline_data member.
7997 (grub_script_parse): Update prototype. Update all callers to pass
7998 appropriate getline data.
7999 (grub_script_lexer_init): Likewise.
8000 (grub_normal_parse_line): Likewise.
8001
8002 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8003 data argument.
8004 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8005 static instead of nested. Rename to ...
8006 (grub_parser_execute_getline): ... this.
8007 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8008 data argument.
8009 * grub-core/normal/main.c (read_config_file: getline): Make static
8010 instead of nested. Rename to ...
8011 (read_config_file_getline): ... this.
8012 (grub_normal_read_line): Add unused data argument.
8013 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8014 getline): Make static instead of nested. Rename to ...
8015 (grub_script_execute_sourcecode_getline): ... this.
8016 * util/grub-script-check.c (main: get_config_line): Make static
8017 instead of nested.
8018
8019 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8020
8021 Remove nested functions from memory map iterators.
8022
8023 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8024 argument, passed to hook.
8025 * grub-core/kern/i386/coreboot/mmap.c
8026 (grub_linuxbios_table_iterate): Likewise.
8027 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8028 instead of nested.
8029 (grub_machine_mmap_iterate): Add hook_data argument.
8030 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8031 Add hook_data argument, passed to hook.
8032 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8033 Likewise.
8034 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8035 Likewise.
8036 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8037 Likewise.
8038 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8039 Likewise.
8040 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8041 Likewise.
8042 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8043 Likewise.
8044 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8045 (grub_machine_mmap_iterate): Likewise.
8046 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8047 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8048 prototype.
8049 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8050 Remove NESTED_FUNC_ATTR from here and from all users.
8051 (grub_mmap_iterate): Update prototype.
8052 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8053 pass appropriate hook data.
8054 (grub_machine_mmap_iterate): Likewise.
8055
8056 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8057 static instead of nested.
8058 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8059 Rename to ...
8060 (lsmmap_hook): ... this.
8061 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8062 Likewise.
8063 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8064 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8065 heap_init): Likewise.
8066 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8067 Rename to ...
8068 (mmap_iterate_hook): ... this.
8069 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8070 Likewise.
8071 * grub-core/lib/ieee1275/relocator.c
8072 (grub_relocator_firmware_get_max_events: count): Likewise.
8073 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8074 to ...
8075 (grub_relocator_firmware_fill_events_iter): ... this.
8076 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8077 hook): Likewise. Rename to ...
8078 (grub_relocator_alloc_chunk_align_iter): ... this.
8079 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8080 Rename to ...
8081 (generate_e820_mmap_iter): ... this.
8082 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8083 Rename to ...
8084 (count_hook): ... this.
8085 (grub_linux_boot: hook): Likewise. Rename to ...
8086 (grub_linux_boot_mmap_find): ... this.
8087 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8088 (grub_linux_boot_mmap_fill): ... this.
8089 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8090 hook): Likewise. Rename to ...
8091 (grub_fill_multiboot_mmap_iter): ... this.
8092 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8093 hook): Likewise. Rename to ...
8094 (count_hook): ... this.
8095 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8096 hook): Likewise. Rename to ...
8097 (grub_fill_multiboot_mmap_iter): ... this.
8098 * grub-core/loader/powerpc/ieee1275/linux.c
8099 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8100 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8101 Likewise. Rename to ...
8102 (alloc_phys_choose): ... this.
8103 (determine_phys_base: get_physbase): Likewise.
8104 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8105 find_hook): Likewise.
8106 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8107 (malloc_hook: count_hook): Likewise.
8108 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8109 Likewise. Rename to ...
8110 (lower_hook): ... this.
8111 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8112 (upper_hook): ... this.
8113 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8114 (post64_hook): ... this.
8115 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8116 Likewise. Rename to ...
8117 (lower_hook): ... this.
8118 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8119 (upper_hook): ... this.
8120 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8121 (grub_mmap_iterate: fill_hook): Likewise.
8122 (fill_mask): Pass addr and mask within a single struct.
8123 (grub_cmd_badram: hook): Make static instead of nested. Rename
8124 to ...
8125 (badram_iter): ... this.
8126 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8127 (cutmem_iter): ... this.
8128
8129 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8130
8131 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8132 delimit path in strings using quotes.
8133 * util/getroot.c (grub_guess_root_devices): Likewise.
8134 (grub_make_system_path_relative_to_its_root): Likewise.
8135 * util/grub-probe.c (probe): Likewise.
8136 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8137 (xrealpath): Likewise.
8138
8139 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8140
8141 Fix compilation with older compilers.
8142
8143 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8144 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8145 declarations.
8146 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8147 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8148 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8149 identifier with b.
8150 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8151 * include/grub/crypto.h: Add type defines.
8152 * util/import_gcrypth.sed: Remove duplicate type defines.
8153
8154 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 New command list_trusted.
8157
8158 * grub-core/commands/verify.c (grub_cmd_list): New function.
8159
8160 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8161
8162 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8163 info message.
8164
8165 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8166
8167 Remove nested functions from PCI iterators.
8168
8169 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8170 passed to hook. Update all callers to pass appropriate hook data.
8171 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8172 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8173 Remove NESTED_FUNC_ATTR from here and from all users.
8174 (grub_pci_iterate): Update prototype.
8175 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8176 instead of nested. Rename to ...
8177 (grub_cs5536_find_iter): ... this.
8178 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8179 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8180 Likewise.
8181 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8182 Likewise.
8183 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8184 Likewise.
8185 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8186 Likewise.
8187 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8188 * grub-core/video/radeon_fuloong2e.c
8189 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8190 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8191 find_card): Likewise.
8192 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8193 Likewise.
8194
8195 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8196
8197 * grub-core/commands/verify.c: Mark messages for translating.
8198
8199 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8200
8201 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8202 fatal.
8203
8204 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8207 fatal.
8208
8209 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8210
8211 * autogen.sh: Do not try to delete nonexistant files.
8212 * util/import_gcrypth.sed: Add some missing header removals.
8213
8214 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8215
8216 Clean up dangling references to grub-setup.
8217 Fixes Ubuntu bug #1082045.
8218
8219 * docs/grub.texi (Images): Refer generally to grub-install rather
8220 than directly to grub-setup.
8221 (Installing GRUB using grub-install): Remove direct reference to
8222 grub-setup.
8223 (Device map) Likewise.
8224 (Invoking grub-install): Likewise.
8225 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8226 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8227 * util/grub-install.in (usage): Likewise.
8228
8229 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8230 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8231 grub-setup.
8232 * configure.ac: Remove grub_setup output variable.
8233
8234 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8235 to grub-bios-setup.
8236 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8237 grub-setup to grub-sparc64-setup.
8238
8239 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8240
8241 Import gcrypt public-key cryptography and implement signature checking.
8242
8243 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * grub-core/fs/ntfs.c: Ue more appropriate types.
8246 * grub-core/fs/ntfscomp.c: Likewise.
8247 * include/grub/ntfs.h: Likewise.
8248
8249 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8250
8251 Support Apple FAT binaries on non-Apple platforms.
8252
8253 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8254 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8255 Likewise.
8256 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8257 Apple FAT binaries.
8258
8259 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8260
8261 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8262 sector devices.
8263
8264 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8265
8266 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8267 explicitly zeroing elements.
8268 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8269 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8270 of elements in a structure already allocated using grub_zalloc.
8271 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8272
8273 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8274
8275 * docs/grub.texi (grub_cpu): New subsection.
8276 (grub_platform): Likewise.
8277
8278 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8281
8282 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8283
8284 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8285 divisions.
8286
8287 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8290 * grub-core/fs/ntfscomp.c: Likewise.
8291 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8292 (grub_ntfs_comp): Likewise.
8293
8294 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8295
8296 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8297 Rename to ...
8298 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8299 of groups_per_block. All users updated.
8300
8301 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8302
8303 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8304 grub_error properly.
8305 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8306 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8307
8308 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8309
8310 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8311 always in /boot/zfs.
8312 Reported by: Yuta Satoh.
8313
8314 2013-01-03 Yuta Satoh <nigoro>
8315
8316 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8317 ${grub_probe}
8318
8319 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8320
8321 * configure.ac: Extend -Wno-trampolines to host.
8322
8323 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8326 entry->len = 0.
8327
8328 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8329
8330 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8331 (Invoking grub-script-check): Likewise.
8332
8333 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8334
8335 * docs/grub.texi (Invoking grub-mount): New section.
8336 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8337
8338 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8339
8340 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8341 test failures, so that a failing unit test correctly causes 'make
8342 check' to fail.
8343
8344 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8345
8346 Fix failing printf test.
8347
8348 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8349 '$' in the correct order when collecting type information.
8350
8351 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8352
8353 * docs/grub.texi (configfile): Explain environment variable
8354 handling.
8355 (source): New section.
8356 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8357
8358 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8359
8360 Remove several trivially-unnecessary uses of nested functions.
8361
8362 * grub-core/commands/i386/pc/sendkey.c
8363 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8364 instead of nested.
8365 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8366 Rename to ...
8367 (legacy_file_getline): ... this.
8368 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8369 Likewise.
8370 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8371 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8372 to ...
8373 (probe_dummy_iter): ... this.
8374 * grub-core/kern/i386/coreboot/mmap.c
8375 (grub_linuxbios_table_iterate: check_signature): Likewise.
8376 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8377 check_varstate): Likewise. Mark inline.
8378 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8379 an additional parameter.
8380 (find_long: fnd_long): Likewise. Pass two additional parameters.
8381 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8382 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8383 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8384 Likewise. Rename to ...
8385 (grub_cmos_find_port_iter): ... this.
8386 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8387 Rename to ...
8388 (find_rtc_iter): ... this.
8389
8390 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8391 function directly into the function body, since it is only called
8392 once.
8393
8394 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8395
8396 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8397 __attribute__ ((unused)).
8398 * grub-core/video/bochs.c (find_card): Likewise.
8399 * grub-core/video/cirrus.c (find_card): Likewise.
8400 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8401 * grub-core/video/sis315pro.c (find_card): Likewise.
8402 * grub-core/video/sm712.c (find_card): Likewise.
8403
8404 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8405
8406 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8407 Fixes Savannah bug #37821.
8408
8409 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8410
8411 Apply program name transformations at build-time rather than at
8412 run-time. Fixes Debian bug #696465.
8413
8414 * acinclude.m4 (grub_TRANSFORM): New macro.
8415 * configure.ac: Create output variables with transformed names for
8416 most programs.
8417 * util/bash-completion.d/grub-completion.bash.in: Use
8418 pre-transformed variables for program names.
8419 * util/grub-install.in: Likewise.
8420 * util/grub-kbdcomp.in: Likewise.
8421 * util/grub-mkconfig.in: Likewise.
8422 * util/grub-mkconfig_lib.in: Likewise.
8423 * util/grub-mknetdir.in: Likewise.
8424 * util/grub-mkrescue.in: Likewise.
8425 * util/grub-mkstandalone.in: Likewise.
8426 * util/grub-reboot.in: Likewise.
8427 * util/grub-set-default.in: Likewise.
8428 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8429 * tests/util/grub-shell-tester.in: Remove unused assignment.
8430 * tests/util/grub-shell.in: Likewise.
8431 * util/grub.d/00_header.in: Likewise.
8432
8433 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8434
8435 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8436
8437 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8438 HAVE_RAW_DECL_GETS.
8439 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8440
8441 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8442
8443 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8444 Reported by: Eriks Latosheks <foresterlv>.
8445
8446 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8447
8448 * docs/grub.texi (Network): Update instructions on generating netboot
8449 image.
8450
8451 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8454 around device name if necessarry.
8455
8456 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8457
8458 * util/grub-install.in: Follow the symbolic link parameter added
8459 to the file command.
8460
8461 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8462
8463 * util/grub-install.in: Remove stale TODO.
8464
8465 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8466
8467 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8468 dynamic allocation for the bootpath buffer.
8469
8470 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8471
8472 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8473 window too small.
8474
8475 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8478 argument rather than font name. All users updated.
8479 (grub_gfxterm_set_window): Likewise.
8480
8481 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8482
8483 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8484 from working.
8485
8486 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8487
8488 * util/getroot.c (convert_system_partition_to_system_disk): Support
8489 nbd disks.
8490
8491 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8492
8493 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8494 infinite loop on corrupted FS.
8495
8496 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8497
8498 Fix big-endian mtime.
8499
8500 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8501 together sec and usec.
8502 (grub_ufs_dir): Use correct byteswapping for UFS time.
8503
8504 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8505
8506 Support big-endian UFS1.
8507
8508 * Makefile.util.def (libgrubmods): Add ufs_be.c
8509 * grub-core/Makefile.core.def (ufs1_be): New module.
8510 * grub-core/fs/ufs_be.c: New file.
8511 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8512 the file.
8513
8514 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8515
8516 * include/grub/types.h: Fix functionality unaffecting typo in
8517 GRUB_TARGET_WORDSIZE conditional macro.
8518
8519 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8520
8521 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8522
8523 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8524
8525 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8526 that /netbsd appears first (when it exists).
8527
8528 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8529
8530 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8531 Fixes Savannah bug #37558.
8532
8533 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8534
8535 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8536 description of extract_entries_configfile.
8537
8538 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8539
8540 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8541 preferred_address.
8542 (grub_cmd_linux): Likewise.
8543 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8544 preferred_lifetime. Update all users.
8545
8546 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8547
8548 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8549 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8550
8551 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8552
8553 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8554 errors from grub-probe to /dev/null, not stdout.
8555
8556 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8557
8558 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8559 sector 1.
8560
8561 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8562
8563 * util/grub-install.in: Make the error message if $source_dir
8564 doesn't exist more useful.
8565
8566 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8567
8568 Fix grub-emu build on FreeBSD.
8569
8570 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8571 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8572 headers on Linux.
8573 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8574 implementation is currently Linux-specific.
8575 * util/getroot.c (exec_pipe): Define only on Linux or when either
8576 libzfs or libnvpair is unavailable.
8577 (find_root_devices_from_poolname): Remove unused path variable.
8578
8579 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8580
8581 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8582 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8583 should fit before end == 63.
8584
8585 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8586
8587 * util/grub-setup.c (write_rootdev): Remove unused core_img
8588 parameter. Update all callers.
8589 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8590 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8591 GRUB_SETUP_BIOS.
8592
8593 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8596 (grub_add_tab): New function.
8597 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8598 * util/grub.d/10_illumos.in: Likewise.
8599 * util/grub.d/10_kfreebsd.in: Likewise.
8600 * util/grub.d/10_linux.in: Likewise.
8601 * util/grub.d/10_netbsd.in: Likewise.
8602 * util/grub.d/10_windows.in: Likewise.
8603 * util/grub.d/10_xnu.in: Likewise.
8604 * util/grub.d/20_linux_xen.in: Likewise.
8605 * util/grub.d/30_os-prober.in: Likewise.
8606
8607 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8610 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8611 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8612 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8613 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8614 ieee1275-nocursor.
8615 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8616 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8617
8618 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8621 le-conversion.
8622 Reported by: BURETTE, Bernard.
8623
8624 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8625
8626 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8627 from comment.
8628
8629 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8630
8631 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8632 IEEE1275 machines. Fixes powerpc-emu compilation.
8633 * include/grub/terminfo.h: Likewise.
8634
8635 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8636
8637 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8638 a const pointer.
8639 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8640 const pointer.
8641 (efiemu_set_variable): Make vendor_guid a const pointer.
8642
8643 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8644
8645 Don't require grub-mkconfig_lib to generate manpages for programs.
8646
8647 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8648 dependencies, don't add grub-mkconfig_lib.
8649 (program): Pass empty adddeps.
8650 (script): Pass grub-mkconfig_lib as adddeps.
8651
8652 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8653
8654 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8655 * util/getroot.c (grub_find_device): Likewise.
8656 (get_mdadm_uuid): Likewise.
8657 (grub_util_is_imsm): Likewise.
8658 (grub_util_pull_device): Likewise.
8659 * util/grub-probe.c (probe): Likewise.
8660
8661 2012-09-10 Benoit Gschwind <gschwind>
8662
8663 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8664 (devs): Add devpath_8.
8665
8666 2012-09-08 Peter Jones <pjones@redhat.com>
8667
8668 * grub-core/Makefile.core.def (efifwsetup): New module.
8669 * grub-core/commands/efi/efifwsetup.c: New file.
8670 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8671 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8672 New define.
8673 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8674
8675 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8676
8677 * configure.ac: Add SuSe path.
8678
8679 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8680
8681 * NEWS: Fix typo.
8682
8683 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8684
8685 * util/import_gcry.py: Sort cipher_files, to make build system
8686 generation more deterministic.
8687
8688 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8691 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8692 (grub_set_datetime): Likewise.
8693
8694 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8695
8696 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8697 warnings.
8698
8699 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8702
8703 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8704
8705 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8706
8707 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8708
8709 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8710 required for checkouts from bzr, but it may be useful for users or
8711 distributors wishing to update translations against a tarball
8712 distribution, and it can be helpful for the tarball to be a superset
8713 of what's in bzr.
8714
8715 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8716
8717 * Makefile.am (EXTRA_DIST): Add
8718 grub-core/tests/boot/linux.init-mips.S,
8719 grub-core/tests/boot/linux.init-ppc.S, and
8720 grub-core/tests/boot/linux-ppc.cfg.
8721
8722 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8723
8724 * grub-core/mmap/mips/loongson: Remove empty directory.
8725
8726 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8727
8728 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8729 gone.
8730
8731 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8732
8733 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8734 grub-sparc64-setup.
8735
8736 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8737
8738 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8739
8740 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8741
8742 * po/POTFILES.in: Regenerated.
8743
8744 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8745
8746 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8747 (NetBSD): New subsection.
8748
8749 2012-07-22 Ales Nesrsta <starous@volny.cz>
8750
8751 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8752 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8753
8754 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8755
8756 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8757 * util/grub.d/10_hurd.in: Add missing quoting.
8758 * util/grub.d/10_illumos.in: Likewise.
8759 * util/grub.d/10_kfreebsd.in: Likewise.
8760 * util/grub.d/10_linux.in: Likewise.
8761 * util/grub.d/20_linux_xen.in: Likewise.
8762
8763 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8764
8765 New command `lsefi'.
8766
8767 * grub-core/Makefile.core.def (lsefi): New module.
8768 * grub-core/commands/efi/lsefi.c: New file.
8769 * include/grub/efi/api.h: Add more GUIDs.
8770
8771 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8772
8773 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8774 (grub_bsd_elf32_hook): Likewise.
8775 (grub_bsd_elf64_size_hook): Likewise.
8776 (grub_bsd_elf64_hook): Likewise.
8777 (grub_bsd_load_elf): Likewise.
8778
8779 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8782 if hash function is unavailable.
8783 (dec_stream_header): Likewise.
8784
8785 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8788 filter state.
8789
8790 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8791
8792 Fix coreboot compilation.
8793
8794 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8795 (grub_vga_text_init_real): ... this.
8796 (grub_vga_text_fini): Rename to ...
8797 (grub_vga_text_fini_real): ... this.
8798
8799 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8802
8803 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * grub-core/lib/legacy_parse.c: Support clear and testload.
8806
8807 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8808
8809 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8810
8811 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8812
8813 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8814
8815 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 * grub-core/net/tftp.c (ack): Fix endianness problem.
8818 (tftp_receive): Likewise.
8819 Reported by: Michael Davidsaver.
8820
8821 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8822
8823 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8824
8825 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8828 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8829 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8830
8831 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8834 efi_mmap_size.
8835 Reported by: Stuart Hayes.
8836
8837 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8840
8841 * grub-core/Makefile.core.def (mda_text): New module.
8842 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8843 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8844 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8845 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8846 here.
8847 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8848 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8849 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8850 here.
8851 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8852 to ..
8853 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8854 ... here
8855 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8856 here.
8857 * grub-core/term/i386/vga_common.c: Removed.
8858 * include/grub/i386/vga_common.h: Likewise.
8859 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8860 (grub_vga_cr_bw_read): Likewise.
8861 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8862 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8863 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8864 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8865 grub_vga_cr_read/grub_vga_cr_write.
8866 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8867
8868 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * configure.ac: Bump version to 2.00.
8871 * grub-core/normal/main.c (features): Add feature_200_final.
8872
8873 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8874 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8875
8876 * NEWS: Fix unclarity and language mistakes.
8877
8878 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8881 additional size to 3 pages.
8882 Reported by: Stuart Hayes.
8883
8884 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8885
8886 * NEWS: Add 2.00 entry.
8887
8888 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8889
8890 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8891 put explicit "/" for empty path.
8892 (wildcard_expand): Improve dprintf.
8893
8894 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8897 it's equal to currnode. This can happen with "" symlink.
8898
8899 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8900
8901 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8902 echo shell command by printf command.
8903
8904 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8907 the value returned by firmware is the maximal position, not diumension.
8908 (grub_terminfo_output_state): Use a more sane fallback.
8909
8910 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8913
8914 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8917 frequency to 150 MHz.
8918
8919 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8920
8921 Apple fixes.
8922
8923 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8924 __APPLE_
8925 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8926 definition.
8927 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8928
8929 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8930
8931 Handle slash in HFS label.
8932
8933 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8934 (grub_hfs_dir): Tanslate slash.
8935 (grub_hfs_label): Don't translate slash.
8936
8937 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8940 network protocol listing since it introduces problematic dependency on
8941 net module.
8942
8943 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8946
8947 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8948
8949 Init video early on yeeloong to avoid being rebooted by watchdog.
8950
8951 * grub-core/Makefile.am (gensm712): New target.
8952 (sm712_start.S): Likewise.
8953 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8954 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8955 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8956 description.
8957 * include/grub/vga.h: Move registry definitions to...
8958 * include/grub/vgaregs.h: ... here.
8959
8960 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8961
8962 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8963 signedness.
8964
8965 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8968 platforms with firmware disk drivers in the core.
8969
8970 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8971
8972 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8973 informative verbose message.
8974 (read_lv): Handle 64-bit segment size.
8975
8976 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8977
8978 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8979
8980 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8983 character but still remove trainling spaces.
8984 (grub_fat_label): Ignore archive flag.
8985
8986 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8987
8988 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8989 cast between linux_kernel_header and linux_kernel_params.
8990
8991 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8994 type for size.
8995 (grub_raid6_recover_func_t): Likewise.
8996 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8997 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8998
8999 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9002
9003 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9004
9005 Fix overflow.
9006
9007 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9008 [__NetBSD__]: Add explicit cast before bitshift.
9009
9010 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9011
9012 * configure.ac: Bump to 2.00~rc1.
9013
9014 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9015
9016 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9017 half of $a0.
9018
9019 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9020 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9021
9022 * docs/grub.texi: Fix search syntax.
9023 (Multi-boot manual config): Put msdos rather than GPT example.
9024 Grammar corrections.
9025
9026 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9029
9030 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9031
9032 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9033
9034 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9037 message on double free. Put the value of magic in case of mismatch.
9038
9039 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9040
9041 Speed-up video on yeeloong.
9042
9043 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9044 add cached_ptr.
9045 (grub_video_sm712_video_fini): Unmap cached_ptr.
9046 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9047 (grub_video_sm712_set_active_render_target): Removed.
9048 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9049 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9050 sync caches.
9051
9052 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9053
9054 Avoid flushing the same line multiple times on loongson.
9055
9056 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9057 Step in 32 bytes and not 1 byte.
9058 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9059 Likewise.
9060
9061 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9062
9063 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9064 subvolumes.
9065
9066 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 Implement flow control for http.
9069
9070 * grub-core/net/http.c (parse_line): Handle response 206.
9071 (http_receive): Stall if too many packets are in the queue.
9072 (http_establish): Fix range header.
9073 (http_seek): Fix double free.
9074 (http_close): Likewise.
9075 (http_packets_pulled): New function.
9076 (grub_http_protocol): Set http_seek
9077 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9078 (ack_real): Set window depending on i_stall.
9079 (grub_net_send_tcp_packet): Likewise.
9080 (grub_net_tcp_stall): New function.
9081 (grub_net_tcp_unstall): Likewise.
9082 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9083 (grub_net_tcp_unstall): Likewise.
9084
9085 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9088
9089 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9092
9093 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * tests/util/grub-shell.in: Fix a typo.
9096
9097 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 Implement flow control for tftp.
9100
9101 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9102 packets but stop only if stop condition is satisfied.
9103 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9104 `stall' instead of `eof' as stop condition.
9105 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9106 (http_err): Likewise.
9107 * grub-core/net/tftp.c (ack): Replace the first argument with data
9108 instead of socket.
9109 (tftp_receive): Stall if too many packets are in wait queue.
9110 (tftp_packets_pulled): New function.
9111 (grub_tftp_protocol): Set packets_pulled.
9112 * include/grub/net.h (grub_net_packets): New field count.
9113 (grub_net_put_packet): Increment count.
9114 (grub_net_remove_packet): Likewise.
9115 (grub_net_app_protocol): New field `packets_pulled'.
9116 (grub_net): New field `stall'.
9117
9118 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9121 sync part to handle them.
9122
9123 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9126 * grub-core/net/drivers/ieee1275/ofnet.c
9127 (grub_ieee1275_net_config_real): Likewise.
9128
9129 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9132 the direct route for server/gateway.
9133
9134 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9137 IP address to server name since we may not hame the DNS.
9138
9139 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9140
9141 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9142 freeing random buffer on failure.
9143 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9144
9145 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9148
9149 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9152 reserved bytes.
9153 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9154 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9155 Handle malloc error correctly.
9156
9157 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9158
9159 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9160 blocks.
9161
9162 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9163
9164 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9165 increment.
9166
9167 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9168
9169 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9170 none is explicitly specified.
9171
9172 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9173
9174 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9175 while reallocating.
9176
9177 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9178
9179 Respect netmask from bootp/dhcp.
9180
9181 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9182 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9183 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9184 into ...
9185 (grub_net_add_ipv4_local): ... this.
9186 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9187 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9188 (grub_net_add_ipv4_local): New proto.
9189
9190 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9191
9192 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9193 determining EFI memory map size.
9194
9195 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9198
9199 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9202 when looking for partition separator.
9203
9204 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9207 Escape commas.
9208
9209 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9210
9211 Restructure FAT driver to avoid hook in label reading as it hits a
9212 GCC bug.
9213
9214 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9215 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9216 (grub_fat_iterate_dir): Split into ...
9217 (grub_fat_iterate_init): ... this, ...
9218 (grub_fat_iterate_fini): ... this, ...
9219 (grub_fat_iterate_dir_next): ... and this. All users updated.
9220
9221 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9222
9223 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9224 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9225 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9226 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9227 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9228 New fields last_key and last_key_time.
9229 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9230 extended key-esc into extended key-extended key.
9231
9232 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 Avoid unnecessary memcpy of whole video buffer.
9235
9236 * grub-core/video/fb/video_fb.c (dirty): New struct.
9237 (framebuffer): Add members current_dirty and previous_dirty.
9238 (dirty): New function.
9239 (grub_video_fb_fill_rect): Update dirty.
9240 (common_blitter): Likewise.
9241 (grub_video_fb_scroll): Likewise.
9242 (doublebuf_blit_update_screen): Copy only dirty part.
9243 (doublebuf_pageflipping_update_screen): Likewise.
9244 (grub_video_fb_doublebuf_blit_init): Init dirty.
9245 (doublebuf_pageflipping_init): Likewise.
9246 (grub_video_fb_setup): Likewise.
9247
9248 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9251 poll rate.
9252
9253 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9254
9255 Fix wildcard regexp dot and other special characters handling.
9256 Reported by: Robert Mabee.
9257
9258 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9259 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9260 (split_path): Trigger expansion on '?'.
9261 (unescape): New function.
9262 (wildcard_expand): Unescape parts copied without globbing.
9263 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9264 (grub_script_arglist_to_argv): Don't unescape expansions.
9265
9266 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 * include/grub/net.h (grub_net_card): New member txbufsize.
9269 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9270 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9271 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9272 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9273 txbufsize.
9274 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9275 compatible property to check for macs. Set
9276 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9277 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9278 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9279 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9280 (send_card_buffer): Use txbuf.
9281 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9282 nested function out of the parent while on it.
9283
9284 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9285
9286 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9287 presence check.
9288 (grub_ieee1275_net_config_real): Fix config pointer.
9289
9290 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9291
9292 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9293 filename parsing to non-block devices.
9294
9295 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9296
9297 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9298
9299 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9302 All users updated.
9303
9304 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9307 UUID search command even if hints probing failed.
9308
9309 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 * po/POTFILES.in: Regenerated.
9312
9313 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 Speed-up video on fuloong.
9316
9317 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9318 New function.
9319 (grub_pci_device_unmap_range): Handle non-cached address.
9320 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9321 add direct_ptr.
9322 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9323 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9324 (grub_video_sis315pro_set_active_render_target): Removed.
9325 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9326 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9327 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9328 sync caches.
9329 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9330 New proto.
9331
9332 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * docs/grub.texi (Multi-boot manual config): New section.
9335
9336 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 Avoid slow read-back from VRAM.
9339
9340 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9341 Move from here ...
9342 * grub-core/video/fb/video_fb.c
9343 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9344 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9345 (front_target): Remove front_target. Add pages.
9346 (grub_video_fb_init): Skip setting front_pages.
9347 (grub_video_fb_fini): Likewise.
9348 (doublebuf_blit_update_screen): Use pages.
9349 (grub_video_fb_doublebuf_blit_init): Likewise.
9350 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9351 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9352 (grub_video_fb_setup): Prefer doublebuffing.
9353
9354 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9357 gzio.
9358
9359 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 Add loongson tests.
9362
9363 * tests/util/grub-shell.in: Handle loongson.
9364 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9365 drivers.
9366 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9367 Reboot instead of shutdown if REBOOT is defined.
9368
9369 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9372 sized ports since unlike on real hardware qemu supports only 32-bit
9373 regs.
9374
9375 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9376
9377 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9378 * util/grub-mkrescue.in: Handle loongson.
9379
9380 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9381
9382 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9383 Set is_part appropriately.
9384 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9385 names. Canonicalize partition without full disk.
9386
9387 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 Revert usb-quiesce since it's wrong.
9390
9391 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9392 (grub_ofdisk_init): Don't do quiesce.
9393
9394 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9395
9396 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9397 PowerMac workaround to Xserves as well.
9398 Information supplied by: Benjamin Herrenschmidt.
9399
9400 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 Don't assume that beginning address is also the entry point on ppc.
9403
9404 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9405 (grub_linux_boot): Use linux_entry.
9406 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9407 (grub_linux_load64): Likewise.
9408
9409 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9410
9411 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9412
9413 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9416 needlessly lose the console.
9417
9418 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9421 space.
9422
9423 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9426 than current grub_get_rtc() not implemented when booted with
9427 coreboot without TSC.
9428
9429 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9430 Add machine/time.h to kernel headers on loongson.
9431 * grub-core/Makefile.core.def (kernel): Remove
9432 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9433 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9434 (grub_get_rtc): Likewise.
9435 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9436 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9437 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9438 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9439 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9440 rather than installing known non-working time source.
9441 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9442 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9443 * include/grub/time.h: Don't include machine/time.h.
9444 * include/grub/efi/time.h: Removed.
9445 * include/grub/i386/efi/time.h: Likewise.
9446 * include/grub/i386/ieee1275/time.h: Likewise.
9447 * include/grub/powerpc/ieee1275/time.h: Likewise.
9448 * include/grub/sparc64/ieee1275/time.h: Likewise.
9449 * include/grub/x86_64/efi/time.h: Likewise.
9450
9451 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 Remove dot on i and j when combining with above diacritics.
9454
9455 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9456 value.
9457 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9458 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9459 with dotless variants when any combining above is present.
9460
9461 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9464 text and not binary.
9465
9466 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 Stop polling as soon as we have the packet we were waiting for.
9469
9470 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9471 All users updated.
9472 * grub-core/net/arp.c (have_pending): New var.
9473 (pending_req): Likewise.
9474 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9475 stop indicator.
9476 (grub_net_arp_receive): Set have_pending.
9477 * grub-core/net/dns.c (recv_data): New field stop.
9478 (recv_hook): Set stop.
9479 (grub_net_dns_lookup): Init stop and use as stop condition.
9480 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9481 condition.
9482 * grub-core/net/net.c (grub_net_poll_cards): New argument
9483 stop_condition. Stop when it goes true.
9484 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9485 indicator.
9486 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9487
9488 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 Keep TX and RX buffers on EFI rather than always allocate new ones.
9491
9492 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9493 card. All users updated.
9494 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9495 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9496 (get_card_packet): Likewise.
9497 (grub_efinet_findcards): Init new fields.
9498
9499 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9502 compilation error on sparc64.
9503
9504 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9505
9506 Use ITC on IA64 rather than broken routine based on daytime.
9507
9508 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9509 ia64.
9510 (grub_get_rtc) [__ia64__]: Likewise.
9511 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9512 (get_itc): New function.
9513 (grub_rtc_get_time_ms): Likewise.
9514 (grub_machine_init): Calibrate ITC.
9515 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9516 Keep only on non-ia64. Don't export since it's broken and used only
9517 if TSC is unavailable.
9518
9519 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9520
9521 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9522 even if it's used.
9523 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9524 Skip if parent is unused.
9525
9526 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9529
9530 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 Fix wildcard escaping.
9533
9534 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9535 * grub-core/script/execute.c (wildcard_escape): .. to here.
9536 Don't escape dot.
9537 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9538 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9539 Don't escape dot.
9540 * grub-core/script/execute.c (gettext_append): Always escape.
9541 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9542 * grub-core/script/yylex.l: Don't cut away the escaping.
9543 * tests/grub_script_echo1.in: Add tests with wildcard.
9544
9545 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9546
9547 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9548 (ftdi_hw_configure): Likewise.
9549 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9550 define.
9551 (real_config): Handle 1.5 stop bits.
9552 (pl2303_hw_configure): Likewise.
9553
9554 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9555
9556 * Makefile.am: Add ppc linux bootcheck.
9557 * grub-core/tests/boot/linux-ppc.cfg: New file.
9558 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9559
9560 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * tests/grub_script_expansion.in: Skip network protocols.
9563
9564 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9567
9568 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9569
9570 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9571 --rom-directory.
9572 Add -graft-points.
9573
9574 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9575
9576 ESCC serial driver for conducting sautomated tests in qemu.
9577 Not tested on real hardware.
9578
9579 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9580 * grub-core/term/ieee1275/escc.c: New file.
9581 * grub-core/Makefile.core.def (escc): New module.
9582
9583 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9586 invalid on error.
9587 (serial_hw_fetch): Don't read invalid handle.
9588 (serial_hw_put): Don't write into invalid handle.
9589
9590 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 Add a 1.5 stop bits value.
9593
9594 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9595 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9596 GRUB_SERIAL_STOP_BITS_1_5.
9597
9598 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9601 value rather than let it uninited.
9602
9603 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9604
9605 * grub-core/commands/wildcard.c (+check_file): New function.
9606 (wildcard_expand): Don't expand to non-existing files, expand with
9607 suffix and not attempt to expand if not needed.
9608
9609 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9612 out of partitions containing other partitions.
9613
9614 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9617 on some qemu versions with GRUB.
9618
9619 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9620 define.
9621 (grub_openbsd_bootarg_pcibios): New struct.
9622 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9623 Add PCIINFO.
9624
9625 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 * tests/util/grub-shell.in: Trim firmware output on EFI.
9628
9629 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9632 and coreboot since it's already in kernel.
9633
9634 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9637 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9638 to here. New return value start. All users updated.
9639 Recursively scan linear mappings.
9640 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9641 proto.
9642 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9643 Use grub_util_get_dm_node_linear_info.
9644 * util/getroot.c (convert_system_partition_to_system_disk): Use
9645 grub_util_info rather than grub_dprintf.
9646 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9647
9648 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9649
9650 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9651
9652 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9653 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9654
9655 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 * include/grub/types.h (grub_set_unaligned64): New function.
9658 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9659 (setup): Likewise.
9660
9661 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9664 (grub_ofdisk_fini): Quiesce USB devices.
9665
9666 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9669 caches.
9670
9671 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9674
9675 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9676
9677 * grub-core/disk/pata.c (grub_pata_pio_read)
9678 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9679 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9680
9681 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 Extend automated tests to qemu-mips.
9684
9685 * Makefile.am: reorganise tests and enable qemu-mips.
9686 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9687 * grub-core/tests/boot/linux.init-mips.S: New file.
9688 * tests/partmap_test.in: Handle ata0 disks.
9689 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9690 non-pc i386.
9691
9692 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9693
9694 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9695 ia64.
9696 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9697 quotes while on it.
9698
9699 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9700
9701 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9702 (grub_halt): Likewise.
9703 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9704
9705 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * grub-core/term/serial.c (grub_serial_register)
9708 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9709 the behaviour in line with x86 platforms.
9710
9711 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9714 (grub_ata_strncpy): Likewise.
9715 (grub_ata_identify): Add missing byteswaps.
9716
9717 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9718
9719 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9720 byte-swap.
9721 (screen_read_char): Likewise.
9722 (grub_vga_text_cls): Likewise.
9723
9724 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9727 filenames.
9728 (make_file_path): Likewise.
9729
9730 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9733 machines.
9734 Tested by: Paulo Flabiano Smorigo.
9735 Crucial information about API supplied by: Coleen <Last name unknown>.
9736 Reviewed by: Coleen <Last name unknown>.
9737
9738 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9739
9740 * util/grub-mkimage.c: Disable -Wcast-align.
9741
9742 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9743
9744 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9745 as they are fatal.
9746
9747 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9750
9751 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 * util/grub-probe.c (escape_of_path): Fix double free.
9754
9755 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9756
9757 * grub-core/commands/videoinfo.c (hook): Show pitch.
9758
9759 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9762
9763 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9764
9765 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9766 (probe): Add ieee1275 to OFW devices.
9767
9768 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9769
9770 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9771
9772 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9773
9774 Handle IBM OFW path.
9775
9776 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9777 available.
9778 (of_path_of_scsi): Handle vdevice.
9779
9780 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9781
9782 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9783 Allocate in multiples of 16 to avoid adding a few bytes free region the
9784 windows bugs upon.
9785
9786 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9789 Allocate in multiples of 16 to avoid adding a few bytes free region the
9790 windows bugs upon.
9791 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9792
9793 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9794
9795 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9796 resolutions.
9797 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9798 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9799
9800 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9801
9802 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9803
9804 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9805
9806 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9807 resulted in \\ at the end of the line.
9808
9809 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9812 (grub_parser_cmdline_state): Likewise.
9813 (grub_parser_split_cmdline): Likewise.
9814
9815 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9818 /dev/root and /dev/dm-*.
9819
9820 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9821
9822 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9823 fix partially stale display.
9824
9825 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9828 substraction.
9829
9830 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9833 Fix MBR remapping workaround.
9834 (grub_util_biosdisk_read) [__linux__]: Likewise.
9835
9836 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9837
9838 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9839
9840 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 * configure.ac: Bump to beta6.
9843
9844 2012-05-31 Christer Weinigel <christer@weinigel.se>
9845
9846 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9847
9848 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9849
9850 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9851 (grub_cmd_linux): Likewise.
9852
9853 2012-05-31 Christer Weinigel <christer@weinigel.se>
9854
9855 Fix EHCI low-speed.
9856
9857 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9858 (GRUB_EHCI_MULT_TWO): Likewise.
9859 (GRUB_EHCI_MULT_THREE): Likewise.
9860 (GRUB_EHCI_CMASK_MASK): New enum value.
9861 (GRUB_EHCI_SMASK_MASK): Likewise.
9862 (GRUB_EHCI_CMASK_OFF): Likewise.
9863 (GRUB_EHCI_SMASK_OFF): Likewise.
9864 (grub_ehci_pci_iter): Enable periodic schedule.
9865 (grub_ehci_parse_notrun): Likewise.
9866 (grub_ehci_restore_hw): Likewise.
9867 (grub_ehci_setup_qh): Set flags for low speed transfers.
9868 (grub_ehci_find_qh): Use periodic list for low speed.
9869 (grub_ehci_setup_transfer): Check periodic queue as well.
9870 (grub_ehci_check_transfer): Likewise.
9871 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9872
9873 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9874
9875 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9876 parameter is used.
9877
9878 2012-05-31 Peter Jones <pjones@redhat.com>
9879
9880 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9881 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9882 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9883
9884 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9887 uninited variable. Allocate at least setup_sects.
9888
9889 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 Fix handling of EFI with big memory maps.
9892
9893 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9894 (real_mode_mem): Likewise.
9895 (real_mode_target): Likewise.
9896 (real_mode_pages): Likewise.
9897 (prot_mode_pages): Likewise.
9898 (linux_params): New var.
9899 (linux_cmdline): Likewise.
9900 (free_pages): Don't set real mode variables.
9901 (allocate_pages): Don't allocate real mode memory.
9902 (grub_e820_add_region): Remove the limit.
9903 (grub_linux_boot): Allocate and copy real mode memory.
9904 (grub_linux_unload): Free linux_cmdline.
9905 (grub_cmd_linux): Use temporary storage for parameters.
9906 (grub_cmd_initrd): Likewise.
9907 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9908 (linux_kernel_params): Make it 1K big.
9909
9910 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * Makefile.util.def: Remove -Wno-format.
9913 * grub-core/Makefile.core.def: Likewise.
9914
9915 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 * tests/cmp_unit_test.c: Add missing failure message.
9918 * tests/example_unit_test.c: Likewise.
9919 * tests/printf_unit_test.c: Likewise.
9920
9921 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9924 relaxation of protective MBR requirements.
9925
9926 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * configure.ac: Add condition for COND_HOST_XNU.
9929 * Makefile.util.def (10_xnu): New script.
9930 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9931
9932 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9933
9934 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9935 objconv bug.
9936
9937 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9938
9939 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9940 Binary on other platforms stays identical.
9941
9942 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9943
9944 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9945 Apple.
9946
9947 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9948
9949 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9950
9951 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9952
9953 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9954 rather than defining size_t ourselves to avoid conflict.
9955
9956 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9959 initialisation to avoid __bzero reference.
9960
9961 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9962
9963 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9964 version.
9965 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9966 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9967 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9968 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9969 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9970
9971 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9972
9973 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9974 * grub-core/kern/misc.c: Likewise.
9975 * grub-core/loader/i386/xnu.c: Likewise.
9976 * include/grub/i386/tsc.h: Likewise.
9977 * include/grub/symbol.h: Likewise.
9978
9979 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9982 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9983 on older compiler.
9984
9985 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9986
9987 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9988 Implement Apple flavour.
9989 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9990
9991 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9992
9993 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9994 (memmove) [__APPLE__]: Likewise.
9995 (memcpy) [__APPLE__]: Likewise.
9996 (memset) [__APPLE__]: Likewise.
9997 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9998 (memmove) [__APPLE__]: Likewise.
9999 (memcpy) [__APPLE__]: Likewise.
10000 (memset) [__APPLE__]: Likewise.
10001
10002 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10005 dependency discard.
10006
10007 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * grub-core/normal/main.c (read_config_file): Provide config_file and
10010 config_directory.
10011 * util/grub.d/41_custom.in: Use config_directoy when available.
10012
10013 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10016 (grub_bfs_dir): Likewise.
10017
10018 2012-05-27 Peter Jones <pjones@redhat.com>
10019
10020 The old code gives arguments to a printf function which can't work
10021 correctly, and the compiler complains.
10022
10023 * grub-core/tests/example_functional_test.c (example_test): Add
10024 missing text.
10025 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10026 * include/grub/test.h (grub_test_assert_helper): New declaration.
10027 (grub_test_assert): Use grub_test_assert_helper.
10028
10029 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10032 (exfctest): ... this to avoid overlong filenames.
10033 All users updated.
10034
10035 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 Handle "." and ".." on squashfs.
10038
10039 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10040 Make inode numbers into stack.
10041 (grub_squash_read_symlink): Use stack.
10042 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10043 (make_root_node): Fill stack.
10044 (grub_squash_open): Use stack.
10045
10046 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10049 freeing.
10050
10051 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10054 stderr on test calls.
10055
10056 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10059
10060 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10063
10064 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10067 "..".
10068
10069 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10072 (grub_hfsplus_iterate_dir): Add "." and "..".
10073
10074 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10077 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10078
10079 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10080
10081 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10082 (find_path): Handle "." and "..".
10083
10084 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10087 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10088 (grub_affs_iterate_dir): Handle hardlinks.
10089
10090 2012-05-26 Matthew Garrett <mjg@redhat.com>
10091
10092 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10093 (grub_efi_console_fini): Likewise.
10094 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10095 (grub_video_gop_fill_mode_info): Rename to ...
10096 (grub_video_gop_fill_real_mode_info): ... this.
10097 (grub_video_gop_fill_mode_info): New function.
10098 (grub_video_gop_setup): Setup double framebuffer.
10099 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10100 Free offscreen.
10101 (grub_video_gop_swap_buffers): Copy framebuffer.
10102 (grub_video_gop_fini): Free offscreen buffer.
10103 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10104 New enum.
10105 (grub_efi_gop_blt_pixel): New struct.
10106
10107 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * gentpl.py: Remove error disabling for objconv.
10110
10111 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 * configure.ac: Remove -Wunitialized as it's not available on older
10114 compilers.
10115
10116 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10117
10118 Fix extent overflow comparator.
10119
10120 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10121 (grub_hfsplus_read_block): Set type.
10122 (grub_hfsplus_cmp_extkey): Compare type.
10123
10124 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10125
10126 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10127
10128 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10129
10130 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10131 than 0.
10132
10133 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10136 (dejavu_bold_14.pf2): New target.
10137
10138 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 * configure.ac: Fix djvu font detection.
10141
10142 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10143
10144 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10145 ext* instead of ext2.
10146
10147 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10150 name with \0.
10151
10152 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10153
10154 * docs/grub-dev.texi: Remove dot from .png.
10155
10156 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10159 protective entry in any slot.
10160 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10161 if protective entry is found in any slot.
10162
10163 Protective entry in non-first slot make no sense but is a widespread
10164 brain damage.
10165
10166 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10169
10170 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10173 with old reiserfs.
10174 (grub_reiserfs_open): Don't free root.
10175
10176 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10179 after freeing for safety.
10180
10181 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10184 Reported by: Jordan Uggla.
10185
10186 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10187
10188 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10189 actual implementation. Specifically, clarify that the grub menu will
10190 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10191 passed.
10192
10193 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10194
10195 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10196 of r0.
10197
10198 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 Remove unjustified hard dependency of normal.mod on gfxterm.
10201
10202 * include/grub/term.h (grub_term_output): New member fullscreen.
10203 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10204 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10205 (grub_gfxterm): Set .fullscreen.
10206 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10207 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10208
10209 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10212 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10213 Mention case-insensitive AFFS, SFS and JFS.
10214
10215 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10216
10217 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10218
10219 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10222 a bad FS.
10223
10224 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10225
10226 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10227 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10228
10229 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10232 (grub_jfs_mount): Fill caseins.
10233 (grub_jfs_find_file): Respect caseins.
10234
10235 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10236
10237 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10238 through UTF-16.
10239
10240 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10243 New argument origpath. All users updated.
10244
10245 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10248 (read_attr): Ensure that we read start of possibly compressed block.
10249
10250 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10251
10252 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10253 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10254 All users updated.
10255
10256 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10257
10258 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10259 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10260 (dejavu.pf2): Replace with ...
10261 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10262 this.
10263
10264 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10265
10266 * util/grub.d/20_linux_xen.in: Add missing line.
10267
10268 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10269
10270 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10271 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10272 (grub_utf16_to_utf8): Likewise.
10273
10274 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10277 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10278 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10279 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10280 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10281 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10282
10283 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10286 a bad FS.
10287
10288 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10291 (grub_udf_read_symlink): Handle read_string failure.
10292
10293 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10294
10295 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10296 comment.
10297
10298 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10299
10300 Fix handling of UDF symlinks.
10301
10302 * grub-core/fs/udf.c (read_string): New argument outbuf.
10303 All users updated.
10304 (grub_ufs_read_symlink): Rename to ...
10305 (grub_udf_read_symlink): ... this. All users updated.
10306 Handle symlinks with more than one component.
10307
10308 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10309
10310 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10311 symlinks. Replace leading colon with a slash.
10312
10313 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10314
10315 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10316 filename.
10317
10318 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10319
10320 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10321 match in inner node.
10322
10323 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10324
10325 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10326 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10327 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10328 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10329 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10330 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10331 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10332 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10333 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10334
10335 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 Use grub-probe and not cmp to check that disk is empty.
10338
10339 * util/grub-install.in: Use grub-probe for zero-check.
10340 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10341 (probe): Handle PRINT_ZERO_CHECK.
10342 (argp_parser): Handle -t zero_check.
10343
10344 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 Flush block cache on adding disk to device map.
10347
10348 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10349 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10350 adding.
10351 (read_device_map): Likewise.
10352 (open_device): Flush on opening.
10353
10354 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10357 (handle_symlink): Fix off-by-one error.
10358 Canonicalize the target.
10359 (grub_cpio_dir): Canonicalize the name.
10360 Fix memory leak.
10361 Set directory.
10362 (grub_cpio_open): Canonicalize the name.
10363
10364 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10367 handling.
10368
10369 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10372 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10373
10374 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10375
10376 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10377 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10378 All users updated.
10379
10380 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10383 counterpart.
10384
10385 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 Fix UFS1 big file support.
10388
10389 * grub-core/fs/ufs.c (INODE): Removed.
10390 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10391 64-bit.
10392 (INODE_MODE): Simplify.
10393 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10394 (grub_ufs_lookup_symlink): Don't use INODE.
10395
10396 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10399
10400 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10401 (grub_minix_data): Replace log_block_size with block_size.
10402 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10403 (grub_minix_mount): Fill block_size.
10404
10405 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10406
10407 * configure.ac: Bump to beta5.
10408
10409 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10410
10411 Fix wrapped HFS+ handling.
10412
10413 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10414 blocks_start. All users updated.
10415 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10416 wrapping offset.
10417 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10418
10419 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 Fix long symlinks on reiserfs.
10422
10423 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10424 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10425 (grub_reiserfs_iterate_dir): Save size for non-directories.
10426 (grub_reiserfs_open): Don't reread stat block as we already know the
10427 size.
10428 (grub_reiserfs_read): Split into...
10429 (grub_reiserfs_read_real): ... and ...
10430 (grub_reiserfs_read): ...this.
10431
10432 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10433
10434 Fix non-indexed JFS.
10435
10436 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10437 (grub_jfs_data): New field namecomponentlen.
10438 (grub_jfs_mount): Fill namecomponentlen.
10439 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10440
10441 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10442
10443 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10444 * tests/grub_script_echo1.in: Add tests.
10445
10446 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10447
10448 * util/grub-install.in: Ignore empty devicetree directory.
10449
10450 2012-05-08 Bean <bean123ch@gmail.com>
10451
10452 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10453 All users updated.
10454 (free_rsm): Free header as well.
10455 (free_old_fragments): Fix memory leak.
10456 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10457 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10458 (destroy_pq): Likewise.
10459 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10460
10461 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10464 resulting hash as a precaution.
10465
10466 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10467
10468 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10469 '_' in variable names.
10470 * grub-core/net/net.c (grub_net_network_level_interface_register):
10471 Likewise.
10472
10473 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10474
10475 Fix AFFS with non-512B blocks.
10476
10477 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10478 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10479 (grub_affs_data): Replace blocksize with log_blocksize.
10480 (grub_affs_read_block): Fix non-512B blocks.
10481 (grub_affs_read_symlink): Likewise.
10482 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10483 (grub_affs_read): Fix non-512B blocks.
10484 (grub_affs_label): Likewise.
10485 (grub_affs_mtime): Likewise.
10486 (grub_affs_mount): Fix block detection routine.
10487
10488 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10489
10490 Add filesystem mtime to AFFS.
10491
10492 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10493 (aftime2ctime): New function.
10494 (grub_affs_dir): Use aftime2ctime.
10495 (grub_affs_label): Fix return value.
10496 (grub_affs_mtime): New function.
10497 (grub_affs_fs): Add mtime.
10498
10499 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10500
10501 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10502 UTF-8.
10503
10504 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10505
10506 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10507 UTF-8.
10508
10509 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10510
10511 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10512
10513 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10514
10515 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10516 flags.
10517 (FLAGS_CASE_SENSITIVE): New enum value.
10518 (cache_entry): New struct.
10519 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10520 cache_size and cache.
10521 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10522 Add log_blocksize and fshelp_flags.
10523 (grub_sfs_read_extent): Handle non-512 blocks.
10524 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10525 (grub_sfs_read_file): Handle non-512 blocks.
10526 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10527 fshelp_flags.
10528 (grub_sfs_read_symlink): Handle non-512 blocks.
10529 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10530 (grub_sfs_dir): Free cache.
10531 (grub_sfs_close): Likewise.
10532
10533 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10536 filesystems.
10537
10538 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10539
10540 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10541
10542 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10545
10546 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10549 (grub_sfs_read_extent): Likewise.
10550 (grub_sfs_read_block): Likewise.
10551 (grub_sfs_mount): Likewise.
10552 (grub_sfs_iterate_dir): Likewise.
10553 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10554 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10555
10556 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10557
10558 Fix errors on compressed NTFS with 512B clusters.
10559
10560 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10561 types.
10562 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10563 not 0.
10564 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10565 Relax check for inline extents.
10566 (ntfscomp): Return correct -1 on error and not 0.
10567
10568 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10569
10570 * util/grub-install.in: Fix handling of prefix containing spaces.
10571
10572 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10575 (grub_squash_read_data): Fix offset byte-swapping.
10576
10577 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10578
10579 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10580 per common usage and preffered in several parts of code.
10581 (grub_memcmp): Likewise.
10582 (grub_strncmp): Likewise.
10583 * include/grub/misc.h (grub_strcasecmp): Likewise.
10584 (grub_strncasecmp): Likewise.
10585 * Makefile.util.def (cmp_test): New test.
10586 (grub_script_strcmp): Likewise.
10587 * tests/cmp_unit_test.c: New file.
10588 * tests/grub_script_strcmp.in: Likewise.
10589 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10590
10591 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10592
10593 * include/grub/pci.h: Move enums into no-asm part.
10594
10595 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10596
10597 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10598
10599 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10600
10601 * util/getroot.c (find_hurd_root_device): Try to make error message
10602 and comments to translators clearer.
10603
10604 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10607
10608 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10609
10610 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10611 btrfs.
10612
10613 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10614
10615 * docs/grub.cfg: Update.
10616
10617 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * docs/grub.texi (PXE): Remove not present variables.
10620
10621 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 * grub-core/net/net.c (defserver_set_env): New function.
10624 (defserver_get_env): Likewise.
10625 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10626
10627 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10630 entries.
10631
10632 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10633
10634 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10635 * grub-core/kern/emu/hostdisk.c: Likewise.
10636
10637 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10638
10639 Handle hurd userspace partitions.
10640
10641 * util/getroot.c (find_hurd_root_device): New function.
10642 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10643
10644 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10645
10646 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10647 names.
10648 Reported by: Bastian Blank.
10649
10650 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10651
10652 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10653 crossing page boundary.
10654
10655 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 Fix B-tree search in BFS, especially in presence of non-ASCII
10658 characters.
10659
10660 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10661 (find_in_b_tree): Use standard bsearch + btree algorithm.
10662
10663 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10666 and so on.
10667
10668 2012-05-03 Matthew Garrett <mjg@redhat.com>
10669 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10670
10671 Suspend broadcom cards in order to stop their DMA.
10672
10673 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10674 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10675 (pci): Don't build on x86 EFI.
10676 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10677 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10678 New function.
10679 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10680 stop_broadcom if running on EFI.
10681 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10682 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10683 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10684 (grub_pci_find_capability): New proto.
10685
10686 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 * docs/grub.texi: Remove dot from the extension as it apparently
10689 doesn't work with some makeinfo versions.
10690
10691 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10692
10693 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10694 with GRUB expectance.
10695
10696 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10699
10700 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10703 zero after directory block since last entry may be not 0-terminated if
10704 it ends on block boundary. Use continue instead of if spanning whole
10705 loop.
10706
10707 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10708
10709 Support 4K sectors UDF inline files.
10710
10711 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10712 (grub_udf_extended_file_entry): Likewise.
10713 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10714 All users updated.
10715 (get_fshelp_size): New function.
10716 (grub_udf_read_icb): Read whole block.
10717 (grub_udf_iterate_dir): Likewise.
10718 (grub_udf_dir): Likewise.
10719 (grub_udf_open): Likewise.
10720
10721 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10724
10725 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10726
10727 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10728 inline symlinks in addition to workaround.
10729
10730 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10733
10734 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10735
10736 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10737
10738 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10739
10740 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10741
10742 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 Fix reiserfs big seek times.
10745
10746 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10747 exact. All users updated.
10748 (grub_reiserfs_read): Use nearest btree search for seeking.
10749 Fix return value on error.
10750
10751 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10754 entries.
10755 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10756 * docs/grub.texi: Update menuentry description.
10757
10758 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10761 crash when embedding onto filesystem.
10762
10763 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10764
10765 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10766 name.
10767
10768 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10769
10770 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10771
10772 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10773
10774 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10775 commit.
10776
10777 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10778 2012-05-01 Bean <bean123ch@gmail.com>
10779
10780 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10781
10782 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10783
10784 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10785 Special behaviour for len = 0 to read whole file isn't used anywhere and
10786 can cause buffer ovewrflows in several places.
10787
10788 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10791
10792 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10793
10794 Handle RAIDZ on non-512B sectors.
10795
10796 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10797 max_children_ashift.
10798 (fill_vdev_info_real): Fill max_children_ashift.
10799 (read_device): Use max_children_ashift.
10800
10801 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10802
10803 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10804
10805 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10806
10807 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10808 disk names.
10809 * docs/grub.texi: Update device.map parts.
10810
10811 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10812
10813 Don't scan into non-diskfilter devices having diskfilter names.
10814
10815 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10816 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10817 handling.
10818 (scan_disk_hook): New function.
10819
10820 2012-04-29 Bean <bean123ch@gmail.com>
10821
10822 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10823 allocation.
10824
10825 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10826
10827 * configure.ac: Detect starfield theme font path
10828 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10829
10830 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10833 geometry on serial consoles.
10834
10835 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10838 because of network consoles.
10839
10840 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10843 handling.
10844
10845 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10848 falls on Q syndrom.
10849
10850 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10853 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10854
10855 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10858 Allocate at lest 8192 for temporary buffer as required for lzo.
10859
10860 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10863 to cluster_bits, since it's already added in.
10864 (grub_fat_read_data): Likewise.
10865
10866 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10869 as long as cluster size is multiple of 512 bytes.
10870
10871 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * util/grub-mkrescue.in: Fix locale directory.
10874
10875 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10876
10877 * grub-core/kern/emu/hostdisk.c (map): Make static.
10878
10879 2012-04-23 Bean <bean123ch@gmail.com>
10880
10881 * util/grub-fstest.c (fstest): Add missing break.
10882
10883 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10884
10885 Fix hurd build.
10886
10887 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10888 not define nr variable.
10889 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10890 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10891 grub_find_device): Do not define.
10892
10893 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 Fix kfreebsd compile and behaviour.
10896
10897 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10898 format-security.
10899 * util/getroot.c: Fix wait.h include.
10900 (grub_guess_root_devices): Error if grub_find_device fails.
10901 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10902 (grub_util_get_dev_abstraction): Likewise.
10903 (grub_util_pull_device): Likewise.
10904 (grub_util_get_grub_dev): Likewise.
10905 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10906
10907 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10908
10909 Fix and unify wholedisk detection.
10910
10911 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10912 is_part. All users updated.
10913 (device_is_wholedisk): Removed.
10914 (grub_util_biosdisk_get_grub_dev): Use is_part.
10915
10916 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10917
10918 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10919 mode.
10920
10921 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10922
10923 * configure.ac: Bump to beta4.
10924
10925 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10926
10927 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10928 --fs-uuid --set UUID syntax.
10929
10930 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10931
10932 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10933 disunification.
10934
10935 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10936
10937 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10938
10939 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10940
10941 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10942
10943 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10944
10945 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10946
10947 2012-04-18 Bean <bean123ch@gmail.com>
10948
10949 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10950 place.
10951
10952 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10955 users updated.
10956 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10957 corresponding to GRUB partitions.
10958 (grub_util_biosdisk_write): Likewise.
10959
10960 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10961
10962 Scan mdraid before LVM.
10963
10964 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10965 (grub_diskfilter_register_front): ... this.
10966 (grub_diskfilter_register_back): New function.
10967 All users of grub_diskfilter_register updated.
10968
10969 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10970
10971 * util/grub-install.in: Fix an automatic target detection bug.
10972
10973 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10974
10975 * util/grub-install.in: New option --efi-directory.
10976
10977 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10978
10979 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10980 boot services if we have no other choice.
10981
10982 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10983
10984 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10985 document it.
10986 * tests/util/grub-shell.in: Update to --directory.
10987
10988 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10989
10990 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10991
10992 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10995 (grub_minix_read_file): Likewise.
10996 (grub_minix_read_inode): Likewise.
10997 (grub_minix_find_file): Likewise.
10998 (grub_minix_dir): Likewise.
10999
11000 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11001
11002 * util/grub-setup.c (setup): Fix partition handling and blocklist
11003 check.
11004
11005 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11008 redundant buggy overlap check.
11009
11010 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11013 and grub-mknetdir.
11014
11015 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11018 kh.loadflags on pre-2.00 kernels.
11019
11020 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11021
11022 Terminate UNDI and PXE before launching the payload to avoid problems
11023 with DMA.
11024
11025 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11026 (grub_loader_flags): ... this. All users updated.
11027 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11028 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11029 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11030 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11031 function.
11032 (grub_pxe_restore): Likewise.
11033 (fini_hnd): New var.
11034 (GRUB_MOD_INIT): Register shutdown hook.
11035 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11036 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11037 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11038 (grub_loader_set): Rename second argument to flags.
11039
11040 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11041
11042 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11043 written bytes.
11044 (grub_get_num_of_utf8_bytes): New function.
11045 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11046 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11047 executing it.
11048 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11049 (grub_ucs4_to_utf8): Change return type.
11050
11051 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11052
11053 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11054 warning.
11055 * grub-core/fs/bfs.c (hop_level): Likewise.
11056 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11057
11058 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11059
11060 * grub-core/lib/adler32.c: Recode due to license unclearness.
11061
11062 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11063
11064 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11065 (test_header): Likewise.
11066
11067 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 Fix --help formatting.
11070
11071 * util/grub-mkconfig_lib.in (print_option_help): New function.
11072 (grub_fmt): Likewise.
11073 * util/grub-install.in: Use print_option_help and grub_fmt.
11074 * util/grub-kbdcomp.in: Likewise.
11075 * util/grub-mkconfig.in: Likewise.
11076 * util/grub-mknetdir.in: Likewise.
11077 * util/grub-mkrescue.in: Likewise.
11078 * util/grub-mkstandalone.in: Likewise.
11079 * util/grub-reboot.in: Likewise.
11080 * util/grub-set-default.in: Likewise.
11081 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11082
11083 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 * linguas.sh: Remove autogenerated *.po.
11086
11087 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11088
11089 * po/README: Move language fetcing to ...
11090 * linguas.sh: ... here.
11091 * po/README: Point to linguas.sh.
11092
11093 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 * po/README: Exclude ko.po due to disclaimer problems.
11096
11097 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11098
11099 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11100 len = 0.
11101 (grub_gettext_translate_real): Handle 0th string.
11102 (grub_gettext_translate): Ensure that "" isn't translated.
11103
11104 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11105
11106 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11107 TRANSLATORS comment.
11108 (grub_diskfilter_print_partmap): Propagate changing of error into
11109 warning.
11110
11111 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11112
11113 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11114 to uint64_t to prevent overflow.
11115 (grub_diskfilter_lv): Increase start_extent and extent_count
11116 to uint64_t to prevent overflow.
11117
11118 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11119
11120 * configure.ac: Increase version.
11121
11122 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11123
11124 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11125
11126 * po/Rules-translit: New file.
11127 * po/arabic.sed: Likewise.
11128 * po/cyrillic.sed: Likewise.
11129 * po/greek.sed: Likewise.
11130 * po/hebrew.sed: Likewise.
11131 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11132 * po/Makefile.in.in: Add extra_dist4.
11133
11134 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11135
11136 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11137
11138 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11139 modify names. Introduce MODE_BIGENDIAN.
11140 * grub-core/fs/minix_be.c: New file.
11141 * grub-core/fs/minix2_be.c: Likewise
11142 * grub-core/fs/minix3_be.c: Likewise.
11143 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11144 minix3_be.
11145 * grub-core/Makefile.core.def (minix_be): New module.
11146 (minix2_be): Likewise.
11147 (minix3_be): Likewise.
11148
11149 2012-04-01 Felix <email@hamburg.de>
11150
11151 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11152 (devs): Add MBP 2011.
11153
11154 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11155
11156 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11157
11158 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 * grub-core/normal/cmdline.c (print_completion): New field
11161 prompt_len.
11162 (grub_cmdline_get): Handle width properly.
11163
11164 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11167
11168 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11171 after 29th of February.
11172
11173 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11174
11175 Fix exfat endianness handling.
11176
11177 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11178 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11179 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11180 Byte-swap utf16 when necessary.
11181 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11182
11183 2012-03-31 Anton Blanchard <anton@samba.org>
11184 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 Fix btrfs endianness handling.
11187
11188 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11189 (lower_bound): Make root uint64_t. Use root in le.
11190 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11191 (find_path): Fix template key init.
11192 (grub_btrfs_dir): Fix mtime byteswap.
11193 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11194
11195 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11196
11197 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11198 recursion_depth. Break infinite resursions. All users updated.
11199
11200 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11201
11202 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11203 after free.
11204 Reported by: Peter Jones.
11205
11206 2012-03-31 Anton Blanchard <anton@samba.org>
11207
11208 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11209 8 bit values.
11210
11211 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11212
11213 * util/grub-install.in: Fix nvram call for PreP.
11214
11215 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11218 the error when some elements are missing into a warning.
11219
11220 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11223
11224 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11225
11226 * docs/grub.texi (Invoking grub-probe): New section.
11227 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11228
11229 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 Fix tab and wide character handling in editor and menu.
11232
11233 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11234 agglomerate control characters with combining marks.
11235 (bidi_line_wrap): Allow break on tab.
11236 (grub_unicode_get_comb_start): New function.
11237 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11238 and tab correctly.
11239 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11240 with a space.
11241 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11242 fixed_tab_size. All users updated.
11243 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11244 (grub_term_getcharwidth): Handle \t.
11245 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11246 and copy.
11247
11248 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11249
11250 Handle big-endian mdraid.
11251
11252 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11253 * grub-core/Makefile.core.def (mdraid09_be): New module.
11254 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11255 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11256 * grub-core/disk/mdraid_linux_be.c: New file.
11257
11258 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11259
11260 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11261
11262 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11263
11264 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11265 missing quotes which caused confusion among translators.
11266
11267 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 * util/grub-mkconfig_lib.in: Fix typo.
11270
11271 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11274 spaces.
11275 * tests/grub_script_leading_whitespace.in: New file.
11276 * Makefile.util.def (grub_script_leading_whitespace): New test.
11277
11278 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11279
11280 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11281 to work.
11282
11283 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11284
11285 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11286 starts with control character.
11287
11288 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11291 overflow.
11292 (grub_gdb_outbuf): Likewise.
11293
11294 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11295
11296 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11297 zero terminator. Fixes a crash.
11298
11299 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11300
11301 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11302 beyond 4 GiB.
11303 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11304 images independently of preffered adderss field.
11305
11306 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11307
11308 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11309 * grub-core/commands/regexp.c: Likewise.
11310 * grub-core/loader/i386/linux.c: Likewise.
11311 * grub-core/partmap/msdos.c: Likewise.
11312 * grub-core/script/execute.c: Likewise.
11313 * grub-core/term/gfxterm.c: Likewise.
11314
11315 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11316
11317 Add variable parsing in $"..." and fix several mismatches with bash.
11318
11319 * Makefile.util.def (grub_script_gettext): New test.
11320 * grub-core/script/execute.c (parse_string): New function.
11321 (gettext_append): Likewise.
11322 (grub_script_arglist_to_argv): Use gettext_append.
11323 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11324 * tests/grub_script_gettext.in: New file.
11325
11326 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11327
11328 Fix handling of leading spaces in scripts.
11329
11330 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11331 spaces.
11332 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11333 other than skipping \r. All users updated.
11334 * tests/grub_script_echo1.in: Add space-related tests.
11335 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11336
11337 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11340
11341 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11342
11343 * configure.ac: Bump up the version to beta2.
11344
11345 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11346
11347 Fix gettext reload bugs (e.g. inability to disable gettext
11348 once enabled).
11349
11350 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11351 main_context and secondary_context. All functions updated.
11352 (grub_gettext_translate): Rename to ...
11353 (grub_gettext_translate_real): ... this. Return NULL on failed
11354 translate.
11355 (grub_gettext_translate): Handle secondary context.
11356 (grub_gettext_delete_list): Close file and zero-out the context.
11357 (grub_mofile_open): Don't call grub_gettext_delete_list.
11358 Don't close file.
11359 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11360 if locale="" to avoid pointless error message.
11361 (grub_gettext_env_write_lang): Update lang even if load fails.
11362 Handle secondary context.
11363 (grub_gettext_reread_prefix): New function.
11364 (read_main): Likewise.
11365 (read_secondary): Likewise.
11366 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11367 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11368 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11369 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11370
11371 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11372
11373 * configure.ac: Decrease warning level to avoid spurious warnings and
11374 to be able to compile with GCC 4.2.
11375 * Makefile.util.def: Remove -Wno-error=logical-op.
11376
11377 2012-03-10 William Bittner <william.bittner@gmail.com>
11378
11379 * util/import_unicode.py: Add missing brackets around string for
11380 python 3 support.
11381
11382 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11383
11384 Fix efi chainloader on network root.
11385
11386 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11387 network devices.
11388 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11389 New function.
11390
11391 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11394 unused show_text member.
11395 * docs/grub.texi: Document "text" property.
11396
11397 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11400 in dprintf.
11401
11402 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11403
11404 Fix IMSM handling on Fedora.
11405
11406 * util/getroot.c (grub_util_is_imsm): New function.
11407 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11408
11409 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11410
11411 * Makefile.am: Strip gold section.
11412 * conf/Makefile.common: Likewise.
11413 * gentpl.py: Likewise.
11414 * grub-core/Makefile.core.def: Likewise.
11415 * grub-core/genmod.sh.in: Likewise.
11416
11417 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11418
11419 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11420 * util/grub.d/20_linux_xen.in: Likewise.
11421 Based on Debian patch.
11422
11423 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11424
11425 * util/grub.d/10_linux.in: Fix syntax error resulting in
11426 Richard Laager's patch.
11427 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11428
11429 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11432 dependencies.
11433
11434 2012-03-10 Richard Laager <rlaager@wiktel.com>
11435
11436 * util/grub.d/10_linux.in: Fix ZFS root passing.
11437
11438 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11439
11440 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11441 * grub-core/commands/xnu_uuid.c: Likewise.
11442 * grub-core/loader/efi/appleloader.c: Likewise.
11443 * grub-core/script/execute.c: Likewise.
11444 * grub-core/script/main.c: Likewise.
11445 * util/grub-mkfont.c: Likewise.
11446
11447 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11448
11449 * util/grub-mkfont.c (options): Use more appropriate "select" that
11450 "set" for face index.
11451
11452 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11453
11454 * util/grub-editenv.c (options): Gettextize command summaries.
11455
11456 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11457
11458 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11459 "out of memory" error messagge.
11460
11461 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11462
11463 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11464 of diskfilter for diskfilter on diskfilter support.
11465
11466 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11467
11468 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11469
11470 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11473 themes/starfield.
11474
11475 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11478
11479 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11480
11481 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11482
11483 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11484
11485 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11486 of error message.
11487
11488 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11489
11490 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11491
11492 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11493
11494 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11495 message.
11496 * util/grub-install.in: Fix and gettextize error message.
11497
11498 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11501 Gettextize.
11502 * util/grub-mount.c (options): Likewise.
11503
11504 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11505
11506 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11507 gettextize.
11508 * grub-core/commands/search_wrap.c (options): Likewise.
11509
11510 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11511
11512 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11513
11514 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11515
11516 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11517 size calculation.
11518 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11519 none is known.
11520
11521 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11522
11523 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11524 "temporary" since it's used in identifier and is limited in space.
11525
11526 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 * po/POTFILES.in: Regenerate. Include *.h since they contain
11529 translatable strings as well.
11530
11531 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11532
11533 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11534 byte-swap on big-endian.
11535 Reported by: Lennart Sorensen
11536
11537 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11540 (allocate_pages): Improve dprintf.
11541 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11542 code32_start. Fill code32_start and kernel_alignment in params.
11543 (grub_cmd_initrd): Use prot_init_space.
11544
11545 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11546
11547 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11548
11549 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11550
11551 * util/grub-install.in: Add missing dot at the end of sentence.
11552
11553 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11554
11555 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11556 * grub-core/commands/videotest.c: Likewise.
11557 * grub-core/loader/i386/linux.c: Likewise.
11558
11559 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11560
11561 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11562 sentence.
11563 Reported by: Milo Casagrande.
11564
11565 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11566
11567 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11568 * grub-core/commands/gptsync.c: Likewise.
11569 * grub-core/commands/hashsum.c: Likewise.
11570 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11571 * grub-core/commands/legacycfg.c: Likewise.
11572 * grub-core/io/gzio.c: Likewise.
11573 * grub-core/net/net.c: Likewise.
11574 * grub-core/term/gfxterm.c: Likewise.
11575 * grub-core/term/terminfo.c: Likewise.
11576 * grub-core/tests/test_blockarg.c: Likewise.
11577 * grub-core/video/video.c: Likewise.
11578 * util/grub-install.in: Likewise.
11579 * util/grub-mkfont.c: Likewise.
11580
11581 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11582
11583 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11584
11585 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * grub-core/commands/search_wrap.c (options): Fix a typo.
11588 Reported by: David Prévot.
11589
11590 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11591
11592 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11593 description.
11594
11595 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11596
11597 * util/grub-script-check.c (main): Fix a syntax error message which was
11598 unclear.
11599
11600 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11603
11604 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11605
11606 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11607 messages.
11608
11609 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11610
11611 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11612 without argument.
11613 * util/grub-mount.c (options): Likewise.
11614
11615 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11616
11617 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11618
11619 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 * grub-core/net/http.c: Add TRANSLATORS comments.
11622 * grub-core/normal/cmdline.c: Likewise.
11623 * grub-core/normal/misc.c: Likewise.
11624 * grub-core/partmap/msdos.c: Likewise.
11625 * grub-core/parttool/msdospart.c: Likewise.
11626 * grub-core/script/execute.c: Likewise.
11627 * grub-core/script/main.c: Likewise.
11628 * grub-core/term/terminfo.c: Likewise.
11629 * grub-core/video/bitmap.c: Likewise.
11630 * util/grub-install.in: Likewise.
11631 * util/grub-mkimage.c: Likewise.
11632 * util/grub-mklayout.c: Likewise.
11633 * util/grub-setup.c: Likewise.
11634
11635 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11638 with similar messages in grub-fstest.
11639
11640 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11641
11642 * util/grub-install.in: Unify "option requires an argument" message
11643 with similar messages in other files.
11644 * util/grub-mkconfig.in: Likewise.
11645
11646 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11647
11648 * util/grub-set-default.in: Replace printf with gettext_printf (the
11649 string in in question is already translated from grub-reboot)
11650
11651 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11652
11653 * configure.ac: Bump up the version to beta1.
11654
11655 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11656
11657 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11658 case when min_align = 0.
11659
11660 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11661
11662 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11663 and fix a case when line_start overflows.
11664
11665 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * util/grub-reboot.in (usage): Mention id posibility.
11668 * util/grub-set-default.in (usage): Likewise.
11669
11670 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11673 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11674 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11675 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11676 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11677 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11678 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11679
11680 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * grub-core/commands/menuentry.c (options): Remove
11683 GRUB_ARG_OPTION_REPEATABLE.
11684 Reported by: Andreas Vogel
11685
11686 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11687
11688 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11689
11690 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11691
11692 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11693 error.
11694
11695 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11696
11697 Use sort -V by the idea of Georgi Georgiev.
11698
11699 * util/grub-mkconfig_lib.in (version_sort): New function.
11700 (version_test_numeric): Use version_sort.
11701
11702 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11703
11704 Use submenus in grub-mkconfig.
11705
11706 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11707 * util/grub-mkconfig_lib.in (grub_quote): New function.
11708 (gettext_printf): Use gettext and not gettext_quoted to fix several
11709 messages.
11710 * util/grub.d/10_hurd.in: Use submenus.
11711 * util/grub.d/10_kfreebsd.in: Likewise.
11712 * util/grub.d/10_linux.in: Likewise.
11713 * util/grub.d/10_netbsd.in: Likewise.
11714 * util/grub.d/20_linux_xen.in: Likewise.
11715 * util/grub.d/30_os-prober.in: Likewise.
11716 * util/grub.d/10_illumos.in: Add missing quoting.
11717 * util/grub.d/10_windows.in: Likewise.
11718
11719 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11720
11721 Fix menu title instability bug.
11722
11723 * grub-core/commands/menuentry.c (options): New option --id.
11724 (grub_normal_add_menu_entry): New argument id. All users updated.
11725 (grub_cmd_menuentry): Handle --id.
11726 (grub_menu_init): Accept unknown arguments.
11727 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11728 feature_menuentry_options.
11729 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11730 saved_entry.
11731 (get_entry_number): Match with id as well.
11732 * include/grub/menu.h (grub_menu_entry): New member id.
11733 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11734 * util/grub.d/00_header.in: Define menuentry_id_option.
11735 * util/grub.d/10_hurd.in: Define id.
11736 * util/grub.d/10_illumos.in: Likewise.
11737 * util/grub.d/10_kfreebsd.in: Likewise.
11738 * util/grub.d/10_linux.in: Likewise.
11739 * util/grub.d/10_netbsd.in: Likewise.
11740 * util/grub.d/10_windows.in: Likewise.
11741 * util/grub.d/20_linux_xen.in: Likewise.
11742 * util/grub.d/30_os-prober.in: Likewise.
11743
11744 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11745
11746 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11747 "scope" with "body".
11748
11749 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11750
11751 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11752 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11753 prot_size and prot_file_size.
11754
11755 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11756
11757 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11758 All users updated. If easily=1 require raid-5/-6 to be full.
11759 (is_node_readable): Likewise.
11760 (scan_devices): Scan incomplete but readable LVs at the end.
11761 (grub_diskfilter_memberlist): Pull missing devices.
11762 (insert_array): Skip scanning until device is complete or scan is
11763 done otherwise.
11764 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11765 check.
11766 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11767 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11768
11769 2012-03-03 Matthew Garrett <mjg@redhat.com>
11770 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 Avoid EFI boot services when loading Linux.
11773
11774 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11775 avoid_efi_bootservices. All users updated.
11776 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11777 argument avoid_efi_bootservices. All users updated.
11778 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11779 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11780 align, min_align, relocatable, prefered_address. All users updated.
11781 Allocate avoiding boot services if kernel is relocatable.
11782 (grub_cmd_linux): Check if kernel is relocatable.
11783 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11784 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11785 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11786 avoid_efi_boot_services.
11787 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11788 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11789 (linux_kernel_params): Likewise.
11790
11791 2012-03-03 Matthew Garrett <mjg@redhat.com>
11792 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11793
11794 Use EDID on EFI.
11795
11796 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11797 datasize_out.
11798 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11799 modes. Set gop_handle.
11800 (grub_video_gop_get_edid): New function.
11801 (grub_gop_get_preferred_mode): Likewise.
11802 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11803 (grub_video_efi_gop_adapter): Set .get_edid.
11804 * include/grub/efi/edid.h: New file.
11805 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11806
11807 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11808
11809 * util/grub-install.in: Load efivars unconditionally.
11810
11811 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 * po/Rules-piglatin: Change suffix from .po-update-en to
11814 .po-update-en-piglatin.
11815
11816 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 Add a pig farm.
11819
11820 * po/piglatin.sed: New file.
11821 * po/en@piglatin.header: Likewise.
11822 * po/Rules-piglatin: Likewise.
11823 * po/README: Add en@piglatin to autogenerated languages.
11824
11825 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11826
11827 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11828 "Command for ...".
11829 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11830 "Check" since we don't check anything.
11831 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11832 is 64-bit one.
11833 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11834 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11835 (grub_md_sha512_real): Likewise.
11836
11837 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11838
11839 * grub-core/commands/gptsync.c: Fix typographic quoting.
11840 * grub-core/commands/ieee1275/suspend.c: Likewise.
11841 * grub-core/commands/parttool.c: Likewise.
11842 * grub-core/commands/search_wrap.c: Likewise.
11843 * grub-core/commands/videoinfo.c: Likewise.
11844 * grub-core/gfxmenu/gui_label.c: Likewise.
11845 * grub-core/hello/hello.c: Likewise.
11846 * grub-core/kern/emu/main.c: Likewise.
11847 * grub-core/net/net.c: Likewise.
11848 * grub-core/normal/menu.c: Likewise.
11849 * grub-core/normal/menu_text.c: Likewise.
11850 * grub-core/normal/misc.c: Likewise.
11851 * util/grub-editenv.c: Likewise.
11852 * util/grub-install.in: Likewise.
11853 * util/grub-kbdcomp.in: Likewise.
11854 * util/grub-mkconfig.in: Likewise.
11855 * util/grub-mknetdir.in: Likewise.
11856 * util/grub-mkrescue.in: Likewise.
11857 * util/grub-mkstandalone.in: Likewise.
11858 * util/grub-reboot.in: Likewise.
11859 * util/grub-set-default.in: Likewise.
11860 * util/grub-setup.c: Likewise.
11861 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11862
11863 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11866 * grub-core/commands/keystatus.c: Likewise.
11867 * grub-core/commands/loadenv.c: Likewise.
11868 * grub-core/commands/probe.c: Likewise.
11869 * grub-core/commands/regexp.c: Likewise.
11870 * grub-core/commands/true.c: Likewise.
11871 * grub-core/commands/videoinfo.c: Likewise.
11872 * grub-core/disk/cryptodisk.c: Likewise.
11873 * grub-core/disk/ldm.c: Likewise.
11874 * grub-core/disk/loopback.c: Likewise.
11875 * grub-core/disk/luks.c: Likewise.
11876 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11877 * grub-core/kern/disk.c: Likewise.
11878 * grub-core/kern/emu/hostdisk.c: Likewise.
11879
11880 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11881
11882 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11883 * util/grub-install.in: Add missing quote in the comment.
11884
11885 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11886
11887 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11888 * grub-core/commands/lsmmap.c: Likewise.
11889 * grub-core/commands/minicmd.c: Likewise.
11890 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11891 * grub-core/commands/regexp.c: Likewise.
11892 * grub-core/gdb/gdb.c: Likewise.
11893 * grub-core/term/gfxterm.c: Likewise.
11894 * util/grub-mkconfig.in: Likewise.
11895 * util/grub-mkfont.c: Likewise.
11896 * util/grub-mklayout.c: Likewise.
11897 * util/grub-mknetdir.in: Likewise.
11898 * util/grub-mkrescue.in: Likewise.
11899 * util/grub.d/30_os-prober.in: Likewise.
11900
11901 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11902
11903 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11904 with "Direct color" and "Packed" with "Packed pixel".
11905 (grub_cmd_videoinfo): Simplify legend.
11906
11907 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11908
11909 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11910 absolutely unclear error message.
11911
11912 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 * util/grub-mkstandalone.in: Remove confusing leftover print.
11915
11916 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11917
11918 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11919 comments.
11920 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11921 (GRUB_MOD_INIT): Likewise.
11922 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11923 VGA mode.
11924 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11925 comments.
11926 * util/grub-install.in (usage): Likewise.
11927 Spell ID in whole letters.
11928 Add missing ending dot.
11929 Quote variables.
11930 * util/grub-reboot.in: Fix capitalisation.
11931 * util/grub-set-default.in: Likewise.
11932
11933 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11934
11935 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11936 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11937 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11938 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11939 Disable -Werror for -Wdeprecated-declarations.
11940 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11941 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11942 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11943 (grub_util_get_grub_dev): Make luks handling dependent on
11944 HAVE_DEVICE_MAPPER and not __linux__.
11945 (get_win32_path): Fix format security.
11946 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11947 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11948 Don't try grub_find_zpool_from_dir.
11949 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11950 #ifdef-out paresdir.
11951
11952 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11953
11954 * util/grub-pe2elf.c (usage): Add missing noreturn.
11955 (write_section_data): Rename name to shname to avoid shadowing.
11956 (write_symbol_table): Rename name to symname to avoid shadowing.
11957 Fix write_reloc_section call.
11958
11959 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11960
11961 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11962 to ensure that it's after the last byte of .text.
11963
11964 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11965
11966 * util/ieee1275/ofpath.c (my_isdigit): New function.
11967 (trailing_digits): Use my_isdigit.
11968 (strip_trailing_digits): Likewise.
11969
11970 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11971
11972 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11973 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11974
11975 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11976
11977 * grub-core/kern/i386/pc/startup.S: Define __start.
11978
11979 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11982 strip already transforms he format.
11983
11984 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11985
11986 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11987
11988 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 * util/grub-install.in: Add missing gettext init.
11991 * util/grub-kbdcomp.in: Likewise.
11992 * util/grub-mkconfig.in: Likewise.
11993 * util/grub-mknetdir.in: Likewise.
11994 * util/grub-mkrescue.in: Likewise.
11995 * util/grub-mkstandalone.in: Likewise.
11996 * util/grub-reboot.in: Likewise.
11997 * util/grub-set-default.in: Likewise.
11998 * util/grub.d/00_header.in: Likewise.
11999 * util/grub.d/10_hurd.in: Likewise.
12000 * util/grub.d/10_windows.in: Likewise.
12001 * util/grub.d/30_os-prober.in: Likewise.
12002 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12003
12004 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12005
12006 * po/Rules-swiss: Fix header comment.
12007
12008 2012-02-29 Andreas Vogel <anvoit>
12009
12010 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12011 resulted in leak of arguments.
12012
12013 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12016 reed_solomon_size const definition instead of computing it since
12017 Apple assembler doesn't support the later.
12018
12019 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12020
12021 * gentpl.py (kernel): Rewrite Apple part.
12022
12023 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12026
12027 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12028
12029 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12030 ELF section gap.
12031 (load_image): Likewise.
12032
12033 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12034
12035 * configure.ac: Fix a typo in previous commit.
12036
12037 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12038
12039 Don't add -Wl,-N on Apple platform.
12040
12041 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12042 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12043
12044 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 * grub-core/Makefile.core.def (lzma_decompress): Use
12047 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12048
12049 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12050
12051 * grub-core/genmod.sh.in: Rewrite the Apple part.
12052
12053 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12054
12055 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12056 comparison.
12057
12058 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12059
12060 * acinclude.m4 (grub_CHECK_PIC): New test.
12061 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12062
12063 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12066 to avoid the warning.
12067
12068 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12071 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12072 after. All users updated.
12073
12074 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 Use the common size routine in hostfs so we can read disks as well.
12077
12078 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12079 (grub_util_get_fd_size): ... this. Return size in bytes.
12080 All users updated.
12081 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12082 grub_util_get_fd_size.
12083
12084 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12085
12086 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12087 Add blocksize retrieval.
12088
12089 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 * configure.ac: Restore CFLAGS after efiemu check.
12092
12093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12096 Apple bug.
12097
12098 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12101
12102 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12103
12104 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12105 (grub_cmd_halt): Likewise.
12106
12107 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12108
12109 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12110 for local arithmetics.
12111 Break %sp init into 2 instructions.
12112 Add 0 byte at the end.
12113
12114 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12117 before loops.
12118
12119 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12122 for context.
12123
12124 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 * grub-core/disk/ldm.c (make_vg): Init part.name.
12127 (grub_ldm_detect): Silence spurious warning.
12128 (grub_util_is_ldm): Likewise.
12129
12130 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12131
12132 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12133 sane value to avoid a spurious warning.
12134
12135 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12136
12137 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12138 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12139
12140 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12143 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12144
12145 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12146
12147 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12148 hardcoding the relevant info.
12149
12150 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12153 missing const qualifiers.
12154 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12155
12156 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12157
12158 * util/getroot.c [__APPLE__]: Add missing includes.
12159 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12160
12161 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12164
12165 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12166
12167 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12168 avoid conflicts.
12169
12170 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12171
12172 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12173
12174 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12175
12176 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12177 and grub_file_close call.
12178
12179 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12180
12181 Add LZSS Mach-O support (needed for new xnu kernelcache).
12182
12183 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12184 * grub-core/loader/lzss.c: New file.
12185 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12186 on Mach-O open failure.
12187 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12188 Don't free cmdsXX in uncompressedXX is set.
12189 (grub_macho_file): Init new fields.
12190 New argument is_64bit. All users updated.
12191 Handle compressed. Error out if no suitable architecture is found.
12192 Don't close file.
12193 (grub_macho_open): New argument is_64bit. All users updated.
12194 * grub-core/loader/macho32.c: Add defines for new fields.
12195 * grub-core/loader/macho64.c: Likewise.
12196 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12197 (grub_macho_parse): Handle compressed.
12198 Defer actual processing if compressed.
12199 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12200 "filename". All users updated.
12201 (grub_macho_size): New argument "filename". All users updated.
12202 (grub_macho_get_entry_point): Likewise.
12203 (grub_macho_load): Handle compressed.
12204 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12205 (GRUB_MACHO_LZSS_OFFSET): New define.
12206 (grub_decompress_lzss): New proto.
12207 * include/grub/machoload.h (grub_macho_file): New fields to handle
12208 compressed.
12209 (grub_macho_contains_macho64): Remove proto.
12210 (grub_macho_contains_macho32): Likewise.
12211 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12212
12213 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12214
12215 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12216
12217 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 Fix make dist.
12220
12221 * Makefile.am (starfield_theme_files): New var.
12222 (starfield_DATA): Use starfield_theme_files.
12223 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12224 Add bootcheck-related files.
12225 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12226 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12227 and font_char_metrics.txt.
12228 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12229 (setjmp): Add lib/ia64/longjmp.S.
12230 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12231 * po/POTFILES.in: Regenerate.
12232 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12233 DISTFILES.common.extra1.
12234 * util/devicemap.c: Removed.
12235 * grub-core/lib/i386/relocator_backward.S: Likewise.
12236 * util/import_gcry.py: Remove unused files. Add extra_dist for
12237 ChangeLog.
12238
12239 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12240
12241 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12242 grub_gettext_delete_list before changing grub_gettext_max to avoid
12243 running out of array bounds.
12244
12245 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12246
12247 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12248 grub_vga_text_init/grub_vga_text_fini.
12249
12250 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12251
12252 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12253
12254 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12255
12256 * configure.ac: Bump to 2.00~beta0.
12257
12258 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12259
12260 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12261 missing initialisation.
12262
12263 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12266
12267 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12268
12269 Support v2 xnu boot arguments.
12270
12271 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12272 New argument fsbfreq_out.
12273 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12274 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12275 be used.
12276 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12277 darwin_version.
12278 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12279 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12280 (grub_xnu_boot_params): Rename to ...
12281 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12282 (grub_xnu_boot_params_v2): New struct.
12283
12284 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12287 zeroing of CRC field before computing CRC.
12288
12289 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12290
12291 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12292 Change order of allocations to decrease fragmentation.
12293
12294 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12295
12296 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12297
12298 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12299
12300 Use write-combining MTRR to speed up video with buggy BIOSes.
12301
12302 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12303 (cpuid): New define.
12304 (rdmsr): Likewise.
12305 (wrmsr): Likewise.
12306 (mtrr_base): Likewise.
12307 (mtrr_mask): Likewise.
12308 (grub_vbe_enable_mtrr_entry): New function.
12309 (grub_vbe_enable_mtrr): Likewise.
12310 (grub_vbe_disable_mtrr): Likewise.
12311 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12312 control off to BIOS.
12313 (grub_video_vbe_init): Fill mtrr.
12314 (grub_video_vbe_fini): Disable mtrr.
12315 (grub_video_vbe_get_info_and_fini): Likewise.
12316 (grub_video_vbe_setup): Enable mtrr.
12317
12318 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12319
12320 * include/grub/partition.h (grub_partition_map): Change prototype of
12321 embed to take a maximum value for nsectors.
12322 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12323 * include/grub/fs.h (grub_fs): Likewise.
12324 * grub-core/partmap/msdos.c (embed_signatures): New array.
12325 (pc_partition_map_embed): Check for and avoid sectors matching any
12326 of the signatures in embed_signatures, up to max_nsectors.
12327 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12328 returned sector map to max_nsectors.
12329 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12330 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12331 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12332 * util/grub-setup.c (setup): Allow for the embedding area being
12333 split into multiple blocklists. Tell dest_partmap->embed the
12334 maximum number of sectors we care about.
12335
12336 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12339 Specify blocklist_install and reserver_first_sector for all fs.
12340 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12341 blocklists.
12342
12343 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12344
12345 * util/grub-install.in: Clarify strings.
12346 Fix source dir check.
12347
12348 2012-02-27 Richard Laager <rlaager@wiktel.com>
12349
12350 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12351 "zfs" and "fuse.zfs" as synonyms.
12352
12353 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 * configure.ac: Put platform and target_cpu substitutions back since
12356 they are used for directories.
12357
12358 2012-02-27 Richard Laager <rlaager@wiktel.com>
12359 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12360
12361 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12362 * util/grub.d/20_linux_xen.in: Likewise.
12363
12364 2012-02-27 Richard Laager <rlaager@wiktel.com>
12365
12366 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12367 with full paths.
12368
12369 2012-02-27 Richard Laager <rlaager@wiktel.com>
12370
12371 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12372 unescape.
12373
12374 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12375
12376 Don't use insecure popen in getroot.
12377
12378 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12379 (exec_pipe): ... here.
12380 (find_root_devices_from_poolname): Use exec_pipe.
12381
12382 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12383
12384 Remove platform and target_cpu replacement.
12385
12386 * configure.ac: Remove platform and target_cpu substitutions.
12387 * tests/util/grub-shell.in: Use modinfo.
12388 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12389 explicitly.
12390
12391 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12392
12393 Autodetect platform in grub-install but allow override.
12394
12395 * util/grub-install.in: Autodetect platform. Support --target and
12396 --directory. Read platform from modinfo.sh.
12397
12398 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12399
12400 Support btrfs multi-volume probe.
12401
12402 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12403 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12404 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12405 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12406 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12407 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12408 grub_find_root_devices_from_btrfs if on btrfs.
12409
12410 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12411
12412 Remove any awareness of *.c util files about target.
12413
12414 * Makefile.util.def (grub-setup): Split to ...
12415 (grub-bios-setup): ... and this.
12416 (grub-sparc64-setup): ... and this.
12417 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12418 * docs/man/grub-setup.h2m: Split into ...
12419 * docs/man/grub-sparc64-setup.h2m: ... this.
12420 * docs/man/grub-bios-setup.h2m: ... and this.
12421 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12422 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12423 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12424 (grub_target_addr_t): Remove.
12425 (grub_target_size_t): Remove.
12426 (grub_target_ssize_t): Remove.
12427 * util/grub-install.in: Use new grub-*-setup.
12428 * util/grub-mkimagexx.c (Elf_Word): New define.
12429 (Elf_Half): Likewise.
12430 (Elf_Section): Likewise.
12431 (ELF_ST_TYPE): Likewise.
12432 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12433 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12434
12435 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 Replace grub_target_addr with more appropriate types.
12438
12439 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12440 grub_target_addr with grub_addr.
12441 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12442 grub_target_addr with grub_port.
12443 (grub_cmd_write): Likewise.
12444 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12445 grub_target_addr with grub_addr.
12446 (grub_cmd_write): Likewise.
12447 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12448
12449 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12450
12451 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12452 const qualifier for vendor_guid.
12453
12454 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12455
12456 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12457 const qualifier.
12458 (efiemu_memequal): Likewise.
12459 (find_variable): Likewise.
12460
12461 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 Fix missing console prototype on qemu-mips.
12464
12465 * include/grub/mips/qemu_mips/console.h: New file.
12466
12467 2012-02-27 Matthew Garrett <mjg@redhat.com>
12468 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12469
12470 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12471 * include/grub/efi/efi.h: Likewise.
12472 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12473 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12474 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12475 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12476 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12477 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12478
12479 2012-02-27 Matthew Garrett <mjg@redhat.com>
12480
12481 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12482
12483 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12484
12485 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12486 error.
12487
12488 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12489
12490 * configure.ac: Remove inappropriate use of program_transform_name
12491 on grubdir and bootdir but allow explicit specification of those
12492 variables.
12493
12494 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12495
12496 * util/grub-mknetdir.in (grub_prefix): Removed.
12497 (subdir): Use @bootdirname@ and @grubdirname@.
12498
12499 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12500
12501 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12502
12503 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12504
12505 * po/POTFILES.in: Regenerated.
12506
12507 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12508
12509 Remove improper use of program_transform_name on pkglibrootdir.
12510
12511 * configure.ac (pkglibrootdir): Removed.
12512 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12513 * util/grub-mkimage.c: Likewise.
12514
12515 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12516
12517 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12518 warning.
12519
12520 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 * util/grub-install.in: Use file identifier if no UUID is available
12523 or user explicitly prompted for it.
12524
12525 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12526
12527 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12528 (freebsd_get_zfs): New function.
12529 (grub_freebsd_boot): Pass zfs UUID.
12530 (grub_cmd_freebsd): Set zfs UUID.
12531
12532 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12533
12534 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12535 pkglibrootdir.
12536
12537 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12538
12539 Add configure flag to control libzfs integration.
12540
12541 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12542
12543 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12544
12545 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12546 device.
12547 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12548 small devices.
12549
12550 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12551
12552 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12553 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12554 be used on non-modules.
12555
12556 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12557 Rename to grub_boot_init.
12558 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12559 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12560 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12561 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12562 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12563 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12564 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12565 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12566 includes.
12567 (grub_machine_init): Remove empty inits.
12568 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12569 includes.
12570 (grub_machine_init): Remove empty inits.
12571 * grub-core/term/arc/console.c: Remove explicit proto.
12572 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12573 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12574 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12575 grub_at_keyboard_fini.
12576 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12577 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12578 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12579 grub_gfxterm_fini.
12580 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12581 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12582 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12583 grub_vgatext_fini.
12584 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12585 * grub-core/term/serial.c (GRUB_MOD_INIT)
12586 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12587 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12588 grub_serial_fini.
12589 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12590 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12591 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12592 grub_terminfo_fini.
12593 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12594 (GRUB_MOD_FINI): Likewise.
12595 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12596 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12597 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12598 grub_video_radeon_fuloong2e_fini.
12599 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12600 [LOONGSON]: Rename to grub_video_sis315pro_init.
12601 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12602 grub_video_sis315pro_fini.
12603 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12604 [LOONGSON]: Rename to grub_video_sm712_init.
12605 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12606 grub_video_sm712_fini.
12607 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12608 (grub_at_keyboard_fini): Likewise.
12609 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12610 Don't declare grub_{modname}_init.
12611 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12612 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12613 New proto.
12614 (grub_keylayouts_fini) [!EMU]: Likewise.
12615 * include/grub/serial.h (grub_serial_init) [!EMU]:
12616 New proto.
12617 (grub_serial_fini) [!EMU]: Likewise.
12618 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12619 New proto.
12620 (grub_terminfo_fini) [!EMU]: Likewise.
12621 * include/grub/video.h (grub_font_init) [!EMU]:
12622 New proto.
12623 (grub_font_fini) [!EMU]: Likewise.
12624 (grub_gfxterm_init) [!EMU]: Likewise.
12625 (grub_gfxterm_fini) [!EMU]: Likewise.
12626 (grub_video_sm712_init) [!EMU]: Likewise.
12627 (grub_video_sm712_fini) [!EMU]: Likewise.
12628 (grub_video_sis315pro_init) [!EMU]: Likewise.
12629 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12630 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12631 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12632
12633 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12634
12635 Make nand a prefix for nand devices.
12636
12637 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12638
12639 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12640
12641 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12642 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12643
12644 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12645
12646 * include/grub/env.h (grub_env_find): Remove prototype.
12647 * grub-core/kern/env.c (grub_env_find): Make static.
12648 (grub_env_set): Remove useless set.
12649
12650 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12651
12652 * grub-core/kern/i386/realmode.S: Remove useless align.
12653
12654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12655
12656 * include/grub/dl.h (grub_dl_load_file): Don't export.
12657
12658 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12661 grub_dprintf.
12662
12663 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12664
12665 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12666 grub_errors.
12667 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12668 not reloading whole superblock but only the part which is really needed.
12669 Remove useless grub_errors.
12670 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12671 grub_errors.
12672
12673 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 Don't export grub_get_rtc.
12676
12677 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12678 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12679
12680 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12681
12682 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12683
12684 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12685
12686 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12687 argument since it can be deduced from diskfilter. All users updated.
12688
12689 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12690
12691 Remove prio_list.
12692
12693 * include/grub/list.h (grub_prio_list): Removed.
12694 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12695 GRUB_COMMAND_PRIO_MASK.
12696 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12697 GRUB_COMMAND_FLAG_ACTIVE.
12698 (grub_prio_list_insert): Removed.
12699 (grub_prio_list_remove): Likewise.
12700 (GRUB_AS_PRIO_LIST): Likewise.
12701 (GRUB_AS_PRIO_LIST_P): Likewise.
12702 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12703 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12704 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12705 * grub-core/kern/command.c (grub_register_command_prio): Inline
12706 the prio_list code.
12707 (grub_unregister_command): Likewise.
12708
12709 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 Fix interrupt mixup from previous commit.
12712
12713 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12714 (grub_realidt): New var.
12715 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12716 Load idt.
12717 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12718 New declaration.
12719 (grub_relocator16_boot): Set grub_relocator16_idt.
12720 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12721 (LOCAL(realidt)): ... this.
12722 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12723 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12724 (grub_realidt): New variable.
12725
12726 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12727
12728 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12729 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12730 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12731 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12732 Gettextize.
12733 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12734 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12735 * po/POTFILES.in: Regenerate.
12736
12737 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12738
12739 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12740 errors.
12741
12742 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12743
12744 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12745 \0.
12746 (add_length): Likewise.
12747
12748 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12749 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12750
12751 GDB serial and backtrace support.
12752
12753 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12754 (prot_to_real): Likewise.
12755 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12756 * grub-core/Makefile.core.def (backtrace): New module.
12757 (gdb): Likewise.
12758 * grub-core/gdb/cstub.c: New file.
12759 * grub-core/gdb/gdb.c: Likewise.
12760 * grub-core/gdb/i386/idt.c: Likewise.
12761 * grub-core/gdb/i386/machdep.S: Likewise.
12762 * grub-core/gdb/i386/signal.c: Likewise.
12763 * grub-core/lib/i386/backtrace.c: Likewise.
12764 * grub-core/lib/backtrace.c: Likewise.
12765 * include/grub/backtrace.h: Likewise.
12766 * include/grub/gdb.h: Likewise.
12767 * include/grub/i386/gdb.h: Likewise.
12768
12769 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12770
12771 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12772 New function.
12773 (add_length): Likewise.
12774 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12775 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12776 proto.
12777 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12778 __argp_get_display_len.
12779
12780 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12781
12782 $"..." support in scripts.
12783
12784 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12785 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12786 * grub-core/script/yylex.l: Likewise.
12787 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12788 value.
12789
12790 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12791
12792 * gentpl.py: Remove obsolete pkglib_DATA handling.
12793
12794 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12795
12796 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12797 mailing list.
12798
12799 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12800 * util/grub-kbdcomp.in: Likewise.
12801 * util/grub-mkconfig.in: Likewise.
12802 * util/grub-mkconfig_lib.in: Likewise.
12803 * util/grub-mknetdir.in: Likewise.
12804 * util/grub-mkrescue.in: Likewise.
12805 * util/grub-mkstandalone.in: Likewise.
12806 * util/grub-reboot.in: Likewise.
12807 * util/grub-set-default.in: Likewise.
12808 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12809
12810 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12811
12812 Remove GRUB_PREFIX.
12813
12814 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12815 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12816 used for backward compatibility.
12817
12818 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 Add new all_video module.
12821
12822 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12823 * grub-core/Makefile.core.def (all_video): New module.
12824 * grub-core/genmoddep.awk: Generate dependency of all_video from
12825 video.lst.
12826 * grub-core/lib/fake_module.c: New file.
12827 * grub-core/normal/main.c (features): Add feature_all_video_module.
12828 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12829 don't do explicit search again.
12830 insmod all_video in load_video if available.
12831
12832 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12833
12834 Another round of string clarification and adding TRANSLATORS comments.
12835
12836 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12837
12838 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12839
12840 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12841
12842 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12843 to grub_ssize_t.
12844 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12845 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12846
12847 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12848
12849 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12850 trailing newline implicitly. All users updated.
12851
12852 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12853
12854 Implement serial on IEEE1275 and EFI.
12855
12856 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12857 on emu. Mention arc and emu as the only platforms without serial
12858 support.
12859 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12860 ieee1275 platforms.
12861 * grub-core/term/efi/serial.c: New file.
12862 * grub-core/term/ieee1275/serial.c: Likewise.
12863 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12864 specification if no ns8250 driver is available.
12865 (grub_cmd_serial): Likewise.
12866 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12867 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12868 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12869 (grub_efi_parity_type_t): New type.
12870 (grub_efi_stop_bits_t): Likewise.
12871 (grub_efi_serial_io_interface): New struct.
12872 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12873 available for all interfaces.
12874 Add EFI and IEEE1275 fields.
12875 (grub_ofserial_init): New proto.
12876 (grub_efiserial_init): Likeiwse.
12877 * util/grub.d/00_header.in: Don't check for the presence of serial
12878 module.
12879
12880 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12883 name as if it was an alias.
12884
12885 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12886
12887 * grub-core/commands/lsacpi.c (options): Fix typo.
12888
12889 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12890
12891 Convert grub-emu to argp.
12892
12893 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12894 emu.
12895 * util/argp_common.c: Rename to ...
12896 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12897 Add missing includes.
12898 * grub-core/kern/emu/main.c: Convert to argp.
12899 * po/POTFILES.in: Regenerate.
12900 * util/grub-install.in (usage): Make first letter lowcase in messages
12901 for uniformity.
12902 * util/grub-setup.c (options): Likewise.
12903
12904 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12905
12906 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12907 Put back accidently commented-out code.
12908
12909 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12910
12911 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12912 loop check using Brent algorithm.
12913 (grub_hfsplus_btree_search): Likewise.
12914
12915 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 * util/grub-install.in: Fix usage of wrong device for PreP install.
12918
12919 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12920
12921 * conf/Makefile.common (CFLAGS_GNULIB): Add
12922 -Wno-unsafe-loop-optimizations.
12923 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12924 on tools.
12925 * grub-core/commands/legacycfg.c: Add pragma to skip
12926 -Wunsafe-loop-optimizations.
12927 (check_password_md5_real): Fix loop counter type.
12928 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12929 reading.
12930 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12931 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12932 loop condition.
12933 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12934 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12935 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12936 condition.
12937 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12938 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12939 avoid possible infinite loops.
12940 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12941 and -Wunsafe-loop-optimizations.
12942 * grub-core/script/yylex.l: Likewise.
12943 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12944 (print_glyphs): Avoid infinite loops.
12945 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12946
12947 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12948
12949 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12950 to avoid infinite loop.
12951 (disp_acpi_rsdt_table): Likewise.
12952
12953 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * grub-core/font/font.c (grub_font_load): Add support for default
12956 path for fonts ($prefix/fonts).
12957 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12958 for checking if string is a path.
12959 * grub-core/normal/main.c (features): Add feature_default_font_path.
12960 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12961 * util/grub.d/00_header.in: Use default directory if possible.
12962 * util/grub-install.in: Install unicode.pf2.
12963
12964 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12967 * po/Rules-swiss: New file.
12968 * po/swiss.sed: Likewise.
12969
12970 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12971
12972 * grub-core/fs/btrfs.c (find_device): Fix typos.
12973 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12974 * util/grub-mkrelpath.c (argp_parser): Likewise.
12975 Reported by: Yuri Chornoivan.
12976
12977 2012-02-23 Dalet Omega <daletomega@gmail.com>
12978
12979 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12980 for usual informative messages.
12981
12982 2012-02-23 Dalet Omega <daletomega@gmail.com>
12983
12984 Starfield theme.
12985
12986 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12987 * conf/Makefile.common: Define starfielddir.
12988 * configure.ac: Configure starfield.
12989 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12990 * themes/starfield/README: Likewise.
12991 * themes/starfield/blob_w.png: Likewise.
12992 * themes/starfield/boot_menu_c.png: Likewise.
12993 * themes/starfield/boot_menu_e.png: Likewise.
12994 * themes/starfield/boot_menu_n.png: Likewise.
12995 * themes/starfield/boot_menu_ne.png: Likewise.
12996 * themes/starfield/boot_menu_nw.png: Likewise.
12997 * themes/starfield/boot_menu_s.png: Likewise.
12998 * themes/starfield/boot_menu_se.png: Likewise.
12999 * themes/starfield/boot_menu_sw.png: Likewise.
13000 * themes/starfield/boot_menu_w.png: Likewise.
13001 * themes/starfield/slider_c.png: Likewise.
13002 * themes/starfield/slider_n.png: Likewise.
13003 * themes/starfield/slider_s.png: Likewise.
13004 * themes/starfield/src/blob_nw.xcf: Likewise.
13005 * themes/starfield/src/bootmenu/: Likewise.
13006 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13007 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13008 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13009 * themes/starfield/src/slider_c.xcf: Likewise.
13010 * themes/starfield/src/slider_n.xcf: Likewise.
13011 * themes/starfield/src/slider_s.xcf: Likewise.
13012 * themes/starfield/src/terminalbox/: Likewise.
13013 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13014 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13015 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13016 * themes/starfield/starfield.png: Likewise.
13017 * themes/starfield/terminal_box_c.png: Likewise.
13018 * themes/starfield/terminal_box_e.png: Likewise.
13019 * themes/starfield/terminal_box_n.png: Likewise.
13020 * themes/starfield/terminal_box_ne.png: Likewise.
13021 * themes/starfield/terminal_box_nw.png: Likewise.
13022 * themes/starfield/terminal_box_s.png: Likewise.
13023 * themes/starfield/terminal_box_se.png: Likewise.
13024 * themes/starfield/terminal_box_sw.png: Likewise.
13025 * themes/starfield/terminal_box_w.png: Likewise.
13026 * themes/starfield/theme.txt: Likewise.
13027
13028 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13029
13030 * util/grub.d/00_header.in: Add missing export theme.
13031
13032 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13033
13034 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13035 already included.
13036 Reported by: Eren D.
13037
13038 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13039
13040 * conf/Makefile.common (grubdatadir): Removed.
13041 (Makefile.am): Move eveything grubdata to pkgdata.
13042
13043 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13044
13045 * grub-core/commands/acpihalt.c (get_sleep_type):
13046 Remove unused variable.
13047
13048 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13049
13050 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13051 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13052 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13053 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13054 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13055 i18n with gettext no-op.
13056 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13057 GRUB_ACPI_OPCODE_STRING_CONST.
13058 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13059 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13060
13061 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 * po/POTFILES.in: Regenerate.
13064
13065 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13066
13067 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13068 -Wno-error=missing-noreturn.
13069
13070 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13071
13072 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13073 condition to avoid possibly infinite loops.
13074 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13075 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13076
13077 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13080 condition to avoid possibly infinite loops.
13081
13082 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13083
13084 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13085 on show_error.
13086
13087 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13090
13091 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13092
13093 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13094
13095 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13096
13097 * util/bin2h.c (usage): Add missing attribute noreturn.
13098
13099 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13102 if the size isn't divisible by 512.
13103
13104 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13105
13106 Make list_push and list_remove functions rather than inline functions
13107 to decrease size and avoid aliasing violations.
13108
13109 * include/grub/list.h (grub_list_push): Move to ...
13110 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13111 * include/grub/list.h (grub_list_remove): Move to ...
13112 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13113
13114 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13115
13116 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13117 and -Wunused-result.
13118
13119 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13120
13121 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13122 Reported by: Seth Goldberg
13123
13124 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13125
13126 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13127
13128 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13129
13130 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13131 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13132 command line.
13133 * docs/grub.texi (Simple configuration): Document
13134 GRUB_CMDLINE_GNUMACH.
13135
13136 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13137
13138 * conf/Makefile.common (platform_SCRIPTS): New variable.
13139 (platform_PROGRAMS): Likewise.
13140 * gentpl.py: Mark *,module and *.image for install.
13141 * grub-core/gdb_grub.in: Add a notice of expected environment.
13142 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13143 (gmodule.pl): Likewise.
13144
13145 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 Replace grub_checkkey with grub_getkey_noblock.
13148
13149 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13150 (grub_getkey_noblock): ... this. All users updated.
13151
13152 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * grub-core/kern/emu/console.c: Move to ...
13155 * grub-core/term/emu/console.c: ...here.
13156 (grub_ncurses_getkey): Fix return value if no key is detected.
13157
13158 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13161 (grub_unit_test_fini): Likewise.
13162 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13163
13164 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 * include/grub/test.h (GRUB_UNIT_TEST)
13167
13168 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13169
13170 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13171 Better error handling.
13172 (grub_script_return): Likewise.
13173 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13174
13175 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13176
13177 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13178 rimplicit redifinition.
13179
13180 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13183 GRUB.
13184
13185 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13186
13187 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13188 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13189 prompt here.
13190
13191 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13192
13193 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13194 as GRUB_ERR_BUG. Don't malloc if no device is available.
13195
13196 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13197
13198 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13199 Mark calling with invalid term as GRUB_ERR_BUG.
13200
13201 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13204 packets rather than raising an error.
13205
13206 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13209 in if.
13210
13211 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13214 diagnostic to dprintf.
13215 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13216
13217 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13218
13219 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13220 device name.
13221
13222 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13223
13224 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13225 (grub_ntfs_iterate_dir): Likewise.
13226
13227 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13228
13229 Efiemu stylistic fixes and gettext.
13230
13231 * grub-core/efiemu/i386/loadcore32.c
13232 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13233 * grub-core/efiemu/i386/loadcore64.c
13234 (grub_arch_efiemu_relocate_symbols64): Likewise.
13235 * grub-core/efiemu/i386/pc/cfgtables.c
13236 (grub_machine_efiemu_init_tables): Likewise.
13237 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13238 (grub_efiemu_loadcore_initXX): Add a filename argument.
13239 All users updated.
13240 Improved error message.
13241 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13242 Add a filename argument.
13243 All users updated.
13244 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13245 Reclassify double relocation as GRUB_ERR_BUG.
13246
13247 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13250 handling.
13251
13252 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13255 on partition.
13256
13257 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13260
13261 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13262
13263 Improve string. Gettextize.
13264
13265 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13266
13267 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13268 utils.
13269 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13270
13271 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13274 [GRUB_UTIL]: New function.
13275 (insert_array) [GRUB_UTIL]: Store partmaps.
13276 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13277 partmaps.
13278 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13279 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13280 (probe_abstraction): Print diskfilter and not raid.
13281 Reported by: Lennart Sorensen
13282
13283 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13284
13285 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13286 * util/grub-mkimagexx.c (MASK3): New define.
13287 (add_value_to_slot_20b): Use MASK3.
13288 (add_value_to_slot_21): Likewise.
13289 (relocate_addresses): Fix format specification.
13290 (load_image): Explicitly init symtab_section.
13291
13292 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13293
13294 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13295 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13296
13297 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13298
13299 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13300 on powerpc.
13301 Reported by: Lennart Sorensen
13302
13303 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13304
13305 * gentpl.py: Add missing license header.
13306 * docs/grub.texi: Update copyright year.
13307
13308 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13309
13310 Source grub-mkconfig_lib from the build directory at build time.
13311 Suggested by: Vladimir Serbinenko.
13312
13313 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13314 * util/grub-install.in: Define pkgdatadir if not already set, and source
13315 grub-mkconfig_lib from there.
13316 * util/grub-kbdcomp.in: Likewise.
13317 * util/grub-mkconfig.in: Likewise.
13318 * util/grub-mknetdir.in: Likewise.
13319 * util/grub-mkrescue.in: Likewise.
13320 * util/grub-mkstandalone.in: Likewise.
13321 * util/grub-reboot.in: Likewise.
13322 * util/grub-set-default.in: Likewise.
13323 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13324
13325 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13326
13327 Increase warning level.
13328
13329 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13330 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13331 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13332 (TARGET_CFLAGS): Likewise.
13333 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13334 * grub-core/Makefile.core.def (decompressor_xz): Add
13335 -Wno-unreachable-code.
13336 (normal): Add -Wno-redundant-decls.
13337 (xzio): Add -Wno-unreachable-code.
13338 (lzopio): Add -Wno-redundant-decls -Wno-error.
13339 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13340 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13341 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13342 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13343 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13344 * grub-core/kern/i386/coreboot/init.c: Add exception to
13345 -Wsuggest-attribute=noreturn.
13346 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13347 * grub-core/kern/ia64/dl_helper.c: Likewise.
13348 * grub-core/kern/mips/dl.c: Likewise.
13349 * grub-core/kern/sparc64/dl.c: Likewise.
13350 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13351 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13352 (memcmp): Likewise.
13353 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13354 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13355 * grub-core/loader/mips/linux.c: Likewise.
13356 * grub-core/loader/multiboot_elfxx.c: Likewise.
13357 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13358 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13359 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13360 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13361 fixme.
13362 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13363 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13364 Fix prototype.
13365
13366 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13367
13368 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13369 address.
13370
13371 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13372
13373 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13374 Avoid improper use of strings.
13375 (grub_cmd_legacy_initrdnounzip): Likewise.
13376
13377 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13380 attribute.
13381 (grub_util_info): Likewise.
13382 (grub_util_error): Likewise.
13383
13384 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13387 * util/grub-fstest.c (fstest): Likewise.
13388
13389 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13392 (grub_md_sha512_real): Likewise.
13393 (grub_util_get_geli_uuid): Likewise.
13394 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13395 (grub_util_biosdisk_open): Fix format specification.
13396 Respect format security.
13397 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13398 (xrealloc): Likewise.
13399 (xasprintf): Likewise.
13400
13401 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13402
13403 * util/import_gcry.py: Include grub/crypto.h in init.c.
13404
13405 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13406
13407 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13408 (generate_image): Make prefix a const char *.
13409 Fix format specifications. Respect format security.
13410 Avoid void * arithmetics.
13411 Avoid shadowing.
13412 (argp_parser): Remove unused variable. Respect format security.
13413 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13414 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13415 (count_funcs): Remove unused variable.
13416 (relocate_addresses): Fix format specification.
13417 Disable x86-64 with elf32. Remove unused variables.
13418 (add_fixup_entry): Avoid shadowing.
13419 (make_reloc_section): Fix format specification.
13420 Use assert.
13421 (locate_sections): Fix format specifications.
13422 (load_image): Avoid shadowing.
13423
13424 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13425
13426 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13427 Fix format specifications. Respect format security.
13428 Don't translate already translated grub_errmsg.
13429 (argp_parser): Remove unused variable
13430
13431 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13432
13433 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13434
13435 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13436
13437 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13438 (main): Likewise. Use xmalloc. Respect format security.
13439
13440 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13441
13442 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13443 a const char *.
13444 (argp_parser): Remove unused variable.
13445
13446 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13447
13448 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13449 (add_pixel): Make static.
13450 (add_font): Likewise.
13451 (write_string_section): Make name and str a const char *.
13452 (write_be16_section): Make name a const char *.
13453 (print_glyphs): Make static.
13454 (write_font_ascii_bitmap): Likewise.
13455 (write_font_width_spec): Likewise.
13456 (write_font_pf2): Likewise.
13457 (argp_parser): Remove unused variable.
13458 Respect format security.
13459 (main): Avoid shadowing. Respect format security.
13460
13461 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13462
13463 * util/grub-editenv.c (argp_parser): Make static.
13464 (create_envblk_file): Use xmalloc.
13465 (open_envblk_file): Likewise.
13466 Resepect format security.
13467 (set_variables): Respect format security.
13468
13469 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13470
13471 * util/getroot.c (grub_find_device): Respect format security.
13472 (get_mdadm_uuid): Remove unused variable.
13473 (grub_util_pull_device): Dont call gettext on already translated
13474 grub_errmsg.
13475 (find_system_device): Remove unused variable.
13476 (grub_util_get_grub_dev): Likewise.
13477 (grub_make_system_path_relative_to_its_root): Respect format security.
13478
13479 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13480
13481 * util/grub-fstest.c (execute_command): Make first argument
13482 a const char *.
13483 (read_file): Avoid shadowing.
13484 Reuse underlying error message if device open fails.
13485 (cmd_cmp): Respect format security.
13486 (root): Make const char *.
13487 (fstest): Remove args argument and use global copy.
13488 Respect format security.
13489 (argp_parser): Make static.
13490 (main): Make default_root const char *.
13491
13492 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13493
13494 * util/grub-mount.c (root): Make const char *.
13495 (execute_command): Make first argument a const char *.
13496 (fuse_init): Respect format security.
13497 (argp_parser): Make static. Remove unused variable.
13498 (main): Make default_root a const char *.
13499 Respect format security.
13500
13501 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * util/grub-probe.c (probe): Don't call gettext on already translated
13504 grub_errmsg.
13505 Remove unused variables.
13506 (argp_parser): Remove unused variable.
13507
13508 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * util/grub-script-check.c (argp_parser): Remove unused variable.
13511 (main): Rename read to curread to avoid shadowing.
13512
13513 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * util/misc.c (grub_util_write_image_at): Fix format specification.
13516 (grub_util_write_image): Likewise.
13517 (grub_script_execute_argument_to_string): Removed (unused).
13518 (grub_script_execute_menuentry): Likewise.
13519 (grub_putchar): Likewise.
13520
13521 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13524 (FUNCTION) [GRUB_UTIL]: Likewise.
13525 (VARIABLE) [GRUB_UTIL]: Likewise.
13526
13527 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13530 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13531
13532 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13535 buffer.
13536
13537 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13538
13539 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13540 (LzmaEnc_SaveState): Removed (unused).
13541 (LzmaEnc_RestoreState): Likewise.
13542 (LzmaEnc_InitPriceTables): Made static.
13543 (LzmaEnc_Construct): Likewise.
13544 (LzmaEnc_FreeLits): Likewise.
13545 (LzmaEnc_Destruct): Likewise.
13546 (LzmaEnc_Init): Likewise.
13547 (LzmaEnc_InitPrices): Likewise.
13548 (LzmaEnc_Finish): Likewise.
13549 (LzmaEnc_PrepareForLzma2): Removed (unused).
13550 (LzmaEnc_MemPrepare): Likewise.
13551 (LzmaEnc_GetNumAvailableBytes): Likewise.
13552 (LzmaEnc_GetCurBuf): Likewise.
13553 (LzmaEnc_CodeOneMemBlock): Likewise.
13554
13555 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13556
13557 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13558 (grub_util_ldm_embed): Likewise.
13559
13560 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13561
13562 * util/grub-editenv.c (print_var): Rename name to varname to
13563 avoid shadowing.
13564 (main): Rename index to curindex to avoid shadowing.
13565 Make filename a const char *.
13566
13567 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13570 to arg_getline to avoid shadowing.
13571
13572 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13573
13574 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13575 disk_ to avoid shadowing.
13576
13577 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13578
13579 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13580 curindex to avoid shadowing.
13581 Make static.
13582 (MatchFinder_GetNumAvailableBytes): Make static.
13583
13584 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13585
13586 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13587 avoid shadowing.
13588
13589 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13590
13591 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13592 argument from encrypt to do_encrypt to avoid shadowing.
13593
13594 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13595
13596 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13597 incorrect nesting of #if's.
13598
13599 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13600
13601 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13602 checks which are always false on some platforms.
13603 (grub_cmd_lsacpi): Likewise.
13604 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13605 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13606 Likewise.
13607
13608 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13609
13610 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13611 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13612
13613 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13614
13615 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13616 re_dfa_t to avoid breaking alignment invariants.
13617 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13618 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13619
13620 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13621
13622 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13623 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13624
13625 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13628 Fix declaration.
13629
13630 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13633 conserve alignment invariants.
13634 (grub_ehci_ehcc_read16): Likewise.
13635 (grub_ehci_oper_read32): Likewise.
13636 (grub_ehci_oper_write32): Likewise.
13637 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13638 Conserve alignment invariants.
13639
13640 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13643 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13644 declarations.
13645
13646 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13647
13648 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13649 Remove unused variable.
13650
13651 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13652
13653 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13654 Remove set in if.
13655
13656 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13657
13658 * include/grub/net.h: Remove double declarations.
13659
13660 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13661
13662 Remove "payload" command in ia64 Linux loader since I couldn't
13663 find any evidence of it being used for anything.
13664 Replace "relocate" command with an environment variable
13665
13666 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13667 fields.
13668 (ia64_boot_payload): Removed.
13669 (last_payload): Likewise.
13670 (RELOCATE_OFF): Likewise.
13671 (RELOCATE_ON): Likewise.
13672 (RELOCATE_FORCE): Likewise.
13673 (relocate): Likewise.
13674 (free_pages): Don't free payloads.
13675 (grub_load_elf64): Use common error messages.
13676 Use "linux_relocate" variable.
13677 Increase the space after boot_params.
13678 (grub_cmd_payload): Removed.
13679 (grub_cmd_relocate): Likewise.
13680 (grub_cmd_fpswa): Improve messages.
13681 (cmd_payload): Removed.
13682 (cmd_relocate): Likewise.
13683 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13684 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13685
13686 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13687
13688 Convert UHCI to DMA framework.
13689
13690 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13691 (grub_uhci_pci_iter): Fill new members
13692 (grub_alloc_td): Use P2V and V2P functions.
13693 (grub_free_queue): Likewise.
13694 (grub_alloc_qh): Likewise.
13695 (grub_uhci_setup_transfer): Likewise.
13696 (grub_uhci_check_transfer): Likewise.
13697
13698 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13699
13700 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13701 Remove assignment in if while on it.
13702
13703 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 * util/grub-mkstandalone.in: Fix modules directory.
13706
13707 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13708
13709 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13710 on i386-pc target.
13711 (argp_parser): Accept "auto" as compression specification.
13712
13713 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13714
13715 Fix `help' with unloaded modules.
13716
13717 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13718 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13719 (grub_dyncmd_dispatcher): Small stylistic fix.
13720 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13721 explicit help is requested.
13722
13723 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13724
13725 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13726 Explicitly init restart while on it.
13727
13728 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13729
13730 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13731 uninited variable.
13732
13733 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13734
13735 * util/grub-mknetdir.in: Use . rather than source for POSIX
13736 compatibility.
13737
13738 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13739
13740 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13741
13742 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13743
13744 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13745 variable.
13746
13747 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13748
13749 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13750 without quotes.
13751
13752 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13753
13754 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13755
13756 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13757
13758 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13759 iteration of partitions.
13760
13761 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13762
13763 Improve gettext support. Stylistic fixes and error handling fixes while
13764 on it.
13765
13766 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13769 part. Instead setup the correct stack in RM.
13770 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13771 for stack.
13772 * include/grub/i386/relocator_private.h: New file.
13773
13774 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13777 argument.
13778 * util/grub-fstest.c (options): Add missing DEVICE part.
13779
13780 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13781
13782 Clarify and unify messages.
13783
13784 * grub-core/commands/hashsum.c (options): Unify messages.
13785 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13786 literal-only message as translatable.
13787 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13788 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13789 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13790 commands.
13791 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13792 key, not the key used to unlock. Clarify what it's used for.
13793 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13794 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13795 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13796 * util/grub-editenv.c (options): Unify "verbose" message.
13797 * util/grub-fstest.c (read_file): Unify error message.
13798 (fstest): Add quotes around commands.
13799 (options): Unify "verbose" message.
13800 * util/grub-install.in: Add quotes around variable name.
13801 * util/grub-kbdcomp.in: Unify error message.
13802 * util/grub-mkfont.c (main): Likewise.
13803 * util/grub-mkrescue.in: Likewise.
13804 * util/grub-mklayout.c (options): Unify "verbose" message.
13805 * util/grub-mkstandalone.in: Unify help and verbose messages.
13806 * util/grub-mount.c (options): Unify "verbose" message.
13807 * util/grub-probe.c (options): Likewise.
13808 * util/grub-script-check.c (options): Likewise.
13809 * util/grub-setup.c (setup): Unify no-terminator message.
13810 (options): Use DEVICE and not DEV.
13811 Unify "verbose" message.
13812 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13813
13814 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13815
13816 Improve and unify messages.
13817
13818 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13819 name. All users updated.
13820 Print filename in error.
13821 (read_device_map): Print filename in error.
13822 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13823 (grub_util_get_os_disk): Likewise.
13824 (grub_util_biosdisk_get_grub_dev): Likewise.
13825 (grub_util_check_block_device): Likewise.
13826 (grub_util_check_char_device): Likewise.
13827 (grub_make_system_path_relative_to_its_root): Likewise.
13828 * util/grub-editenv.c (create_envblk_file): Likewise.
13829 (open_envblk_file): Likewise.
13830 (write_envblk): Likewise.
13831 * util/grub-fstest.c (cmd_cp): Likewise.
13832 (cmd_cat): Likewise.
13833 (cmd_cmp): Likewise.
13834 * util/grub-menulst2cfg.c (main): Likewise.
13835 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13836 (write_font_width_spec): Likewise.
13837 (write_font_pf2): Likewise.
13838 * util/grub-mkimage.c (generate_image): New argument outname.
13839 All users updated.
13840 Remove unreacheable message.
13841 (options): Unify messages.
13842 (help_filter): Likewise.
13843 * util/grub-mklayout.c (usage): Removed (unused).
13844 (main): Print filename in error.
13845 * util/grub-mkrescue.in: Fix wrong quoting.
13846 * util/grub-setup.c (setup): Print filename in error.
13847 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13848 (check_sas): Likewise.
13849 * util/misc.c (grub_util_get_fp_size): Removed.
13850 (grub_util_get_image_size): Print filename in error.
13851 (grub_util_read_at): Removed.
13852 (grub_util_read_image): Print filename in error.
13853 (grub_util_load_image): Likewise.
13854 (grub_util_write_image_at): New argument filename. All users updated.
13855 Print filename in error.
13856 (grub_util_write_image): New argument filename. All users updated.
13857 Print filename in error.
13858 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13859 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13860
13861 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 * grub-core/Makefile.core.def (pxechain): New module.
13864 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13865 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13866 function.
13867 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13868 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13869
13870 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13873 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13874 * include/grub/err.h (grub_error_saved): New struct.
13875 (grub_errmsg): Make array size explicit.
13876 * include/grub/misc.h (grub_error_save): New function.
13877 (grub_error_load): Likewise.
13878 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13879 (grub_error_push): Update `errno' member name.
13880 (grub_error_pop): Likewise
13881 * grub-core/net/tftp.c (tftp_data): New member save_err.
13882 (tftp_receive): Save error.
13883 (tftp_open): Restore error.
13884
13885 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13886
13887 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13888 to real mode down to execute A20-related code in protected mode as
13889 intended.
13890
13891 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13892
13893 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13894 NULL when the argument `level' has an unexpected value.
13895
13896 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13897
13898 Move platform-dependent files from $prefix to $prefix/$platform.
13899
13900 * config.h.in (GRUB_TARGET_CPU): New definition.
13901 (GRUB_PLATFORM): Likewise.
13902 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13903 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13904 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13905 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13906 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13907 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13908 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13909 * grub-core/normal/term.c (read_terminal_list): Likewise.
13910 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13911 $prefix/locale.
13912 (grub_gettext_init_ext): Likewise.
13913 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13914 grub_platform.
13915 * util/grub-install.in: Update directories.
13916 * util/grub-mknetdir.in: Likewise.
13917 * util/grub-mkrescue.in: Likewise.
13918
13919 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13920
13921 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13922 grub_error framework. All users updated.
13923
13924 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13925
13926 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13927 lists (by always binsearching), improve caching (cache strings
13928 used for binsearch, not only results), improve
13929 maintainability (by using more structured binary search) and correct
13930 error handling.
13931
13932 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13933
13934 * grub-core/script/execute.c (grub_script_return): Fix warning.
13935
13936 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13937
13938 * grub-core/script/execute.c (grub_script_return): Fix potential
13939 NULL-dereference.
13940 Reported by: Jim Meyering.
13941
13942 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13943
13944 * po/POTFILES.in: Regenerate.
13945 * util/grub-install.in: Gettextize the strings missed in first pass.
13946
13947 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13948
13949 * Makefile.util.def (grub-mkdevicemap): Removed.
13950 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13951 * include/grub/util/deviceiter.h: Removed.
13952 * util/deviceiter.c: Likewise.
13953 * util/getroot.c (grub_util_get_os_disk): New function.
13954 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13955 replacement for EFI.
13956 * util/grub-mkdevicemap.c: Removed.
13957 * util/grub-probe.c (probe): Handle PRINT_DISK.
13958 (argp_parser): Handle -t disk.
13959
13960 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13961
13962 * util/grub-mkfont.c: Migrate to argp.
13963 * util/grub-mklayout.c: Likewise.
13964 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13965 * util/grub-mkrelpath.c: Likewise.
13966 * util/grub-probe.c: Likewise.
13967 * util/grub-script-check.c: Likewise.
13968
13969 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13970
13971 * util/grub-reboot.in: Add missing datarootdir.
13972 Add missing newline.
13973 * util/grub-set-default.in: Add missing datarootdir.
13974 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13975 * util/grub-mkrescue.in: Likewise.
13976
13977 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13978
13979 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13980
13981 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13982
13983 * util/grub-kbdcomp.in: Add decent help and gettextize.
13984 * docs/man/grub-kbdcomp.h2m: New file.
13985
13986 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13987
13988 Migrate grub-mkimage.c to argp.
13989
13990 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13991 (grub-setup): Likewise.
13992 * util/grub-setup.c (print_version): Move to ...
13993 * util/argp_common.c (print_version): ... here.
13994 * util/grub-setup.c (argp_program_version_hook): Move to ...
13995 * util/argp_common.c (argp_program_version_hook): ... here.
13996 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13997 safety.
13998 * util/grub-mkimage.c (main): Migrate to argp.
13999
14000 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 * util/grub-mkrescue.in: Use same message as
14003 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14004 for better translations.
14005
14006 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14007
14008 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14009 options with generic grub-mkrescue.in with the goal of future
14010 merge.
14011
14012 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14013
14014 * grub-core/kern/mm.c: Add missing include of i18n.h
14015 * grub-core/lib/relocator.c: Likewise.
14016
14017 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14020 error.
14021 (allocate_pages): Check return value.
14022 Replace fatal with error.
14023 (grub_linux_boot): Replace printf with dprintf.
14024 Check find_mmap_size return value.
14025 Replace fatal with error.
14026 Don't call grub_machine_fini.
14027 (grub_load_elf64): Replace printf with dprintf.
14028 (grub_cmd_linux): Likewise.
14029 (grub_cmd_initrd): Likewise.
14030 (grub_cmd_payload): Likewise.
14031
14032 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14033
14034 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14035 message.
14036 * grub-core/video/radeon_fuloong2e.c
14037 (grub_video_radeon_fuloong2e_setup): Likewise.
14038 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14039 * grub-core/video/video.c (grub_video_set_mode): Don't override
14040 standard out of memory message.
14041
14042 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14043
14044 NetBSD disk wedge support.
14045
14046 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14047 [__NetBSD__]: Handle NetBSD disk wedges.
14048 * util/getroot.c (convert_system_partition_to_system_disk)
14049 [__NetBSD__]: Likewise.
14050
14051 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14052
14053 * util/grub-mkconfig.in: Use umask rather than chmod to create
14054 grub.cfg.new to avoid insecure grub.cfg.
14055
14056 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14057
14058 * grub-core/commands/ls.c: Gettextize.
14059 * grub-core/commands/setpci.c: Likewise.
14060 * grub-core/commands/videotest.c: Likewise.
14061 * grub-core/disk/geli.c: Likewise.
14062 * grub-core/kern/mm.c: Likewise.
14063 * grub-core/lib/relocator.c: Likewise.
14064 * grub-core/loader/efi/appleloader.c: Likewise.
14065 * grub-core/loader/i386/xnu.c: Likewise.
14066 * grub-core/loader/ia64/efi/linux.c: Likewise.
14067 * grub-core/loader/xnu.c: Likewise.
14068 * grub-core/net/dns.c: Likewise.
14069 * grub-core/net/net.c: Likewise.
14070 * grub-core/script/lexer.c: Likewise.
14071 * grub-core/script/parser.y: Likewise.
14072 * grub-core/script/yylex.l: Likewise.
14073 * util/getroot.c: Likewise.
14074 * util/grub-setup.c: Likewise.
14075
14076 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14077
14078 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14079 number.
14080
14081 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14082
14083 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14084
14085 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14088 macro.
14089 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14090 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14091
14092 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14093
14094 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14095 * util/grub-install.in: Gettextize.
14096 * util/grub-mkconfig.in: Likewise.
14097 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14098 if not available.
14099 (grub_warn): Gettextize.
14100 * util/grub-mknetdir.in: Gettextize.
14101 * util/grub-mkrescue.in: Likewise.
14102 * util/grub-mkstandalone.in: Likewise.
14103 * util/grub-reboot.in: Likewise.
14104 * util/grub-set-default.in: Likewise.
14105 * util/grub.d/00_header.in: Likewise.
14106 * util/grub.d/10_hurd.in: Likewise.
14107 * util/grub.d/10_kfreebsd.in: Likewise.
14108 * util/grub.d/10_linux.in: Likewise.
14109 * util/grub.d/10_netbsd.in: Likewise.
14110 * util/grub.d/10_windows.in: Likewise.
14111 * util/grub.d/20_linux_xen.in: Likewise.
14112 * util/grub.d/30_os-prober.in: Likewise.
14113 * po/POTFILES-shell.in: Regenerate.
14114
14115 2012-02-03 Richard Laager <rlaager@wiktel.com>
14116
14117 * util/grub-mkimage.c (main): Fix format-security warning.
14118 * util/grub-mkrelpath.c (main): Likewise.
14119 * util/grub-probe.c (main): Likewise.
14120
14121 2012-02-03 Richard Laager <rlaager@wiktel.com>
14122
14123 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14124 failure.
14125 Put back lost PRINT_DRIVE.
14126
14127 2012-02-03 Richard Laager <rlaager@wiktel.com>
14128
14129 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14130 (grub_guess_root_devices): Replace strlen with sizeof.
14131 Avoid crash.
14132 (find_root_devices_from_poolname): Remove unused variable.
14133 Handle raidzN.
14134
14135 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14136
14137 Support install on multi-device filesystems.
14138
14139 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14140 (grub_guess_root_devices): ...this. Return char **. All users updated.
14141 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14142 Removed.
14143 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14144 (find_root_devices_from_poolname): ... here.
14145 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14146 Support zfs-fuse.
14147 (grub_guess_root_device): Rename to ...
14148 (grub_guess_root_devices): ... this. Return char **. All users updated.
14149 * util/grub-install.in: Handle multi-device filesystems.
14150 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14151 argument. All users updated.
14152 Handle multi-device filesystems.
14153 Use 'delim' as separator.
14154 Remove device check to allow filesystems on file.
14155 (main): Support -0 argument. Handle multi-device.
14156 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14157 Fix a cross-device check while on it.
14158 (arguments): Remove root_dev.
14159 (argp_parser): Remove -r.
14160 (main): Remove root_dev.
14161
14162 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14165
14166 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14167
14168 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14169 symbol.
14170 Reported by: NODA, Kai <nodakai>.
14171
14172 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 Fix ehci on amd64.
14175
14176 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14177 pointers.
14178 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14179 (grub_ehci_setup_qh): Likewise.
14180 (grub_ehci_find_qh): Likewise.
14181 (grub_ehci_transaction): Likewise.
14182 (grub_ehci_setup_transfer): Likewise.
14183 (grub_ehci_check_transfer): Likewise.
14184 (grub_ehci_portstatus): Likewise.
14185 (grub_ehci_detect_dev): Likewise.
14186 (grub_ehci_transfer_controller_data): New field td_last_phys.
14187 (grub_ehci_setup_transfer): Fill td_last_phys.
14188 (grub_ehci_check_transfer): Use td_last_phys.
14189
14190 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14191
14192 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14193 if no submenu is present.
14194
14195 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14196
14197 CBI support.
14198
14199 * include/grub/usb.h (grub_usbms_protocol_t): New values
14200 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14201 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14202 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14203 (grub_usbms_dev): Add subclass, protocol and intrpt.
14204 Remove in_maxsz and out_maxsz.
14205 (grub_usbms_reset): Rename to ...
14206 (grub_usbms_bo_reset): .. this.
14207 (grub_usbms_cbi_cmd): New function.
14208 (grub_usbms_cbi_reset): Likewise.
14209 (grub_usbms_reset): Likewise.
14210 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14211 (grub_usbms_transfer): Rename to ...
14212 (grub_usbms_transfer_bo): ... this.
14213 (grub_usbms_transfer_cbi): Likewise.
14214 (grub_usbms_transfer): Likewise.
14215
14216 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14217 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14218
14219 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14220 the support for the CS5536 modification thereos and few bugfixes.
14221
14222 * grub-core/Makefile.core.def (ehci): New module.
14223 * grub-core/bus/usb/ehci.c: New file.
14224 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14225 port and hubaddr. All users updated.
14226 Save port and hubaddr into dev structure.
14227 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14228 define.
14229 * include/grub/pci.h (grub_dma_phys2virt): New function.
14230 (grub_dma_virt2phys): Likewise.
14231 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14232
14233 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14234
14235 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14236 check as some mkfs implementations omit it.
14237
14238 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14239
14240 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14241
14242 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14245 Add new member volname2.
14246 (grub_jfs_label): Use volname2 if available.
14247
14248 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14251 over last_mounted as seen in image generated by mkfs.nilfs2.
14252 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14253
14254 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14257 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14258 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14259
14260 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14261
14262 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14263 over the sector.
14264
14265 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14266
14267 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14268 subvolume name (by removing a bogus and useless check).
14269
14270 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14273 sizeof while on it.
14274
14275 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14276
14277 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14278 (grub_scsi_read_capacity10): ... this.
14279 (grub_scsi_read_capacity16): New function.
14280 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14281 0xffffffff.
14282 Fix off-by-one error.
14283 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14284 64-bit unsigned.
14285 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14286 (grub_scsi_read_capacity10): ... this.
14287 (grub_scsi_read_capacity_data): Rename to ...
14288 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14289 (grub_scsi_read_capacity16): New struct.
14290 (grub_scsi_read_capacity16_data): Likewise.
14291 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14292 grub_scsi_cmd_read_capacity10.
14293 New command grub_scsi_cmd_read_capacity16.
14294
14295 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14296
14297 SCSI >2TiB support.
14298
14299 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14300 (grub_scsi_write16): Likewise.
14301 (grub_scsi_read): Use read16 when necessary.
14302 (grub_scsi_write): Likewise.
14303 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14304 (grub_scsi_write16): Likewise.
14305 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14306
14307 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14308
14309 SCSI write support (for usbms mainly).
14310
14311 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14312 a const pointer.
14313 (grub_scsi_write): Implement.
14314 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14315
14316 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14317
14318 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14319 variable.
14320
14321 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14322
14323 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14324
14325 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14326
14327 * po/POTFILES.in: Regenerate.
14328
14329 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14330
14331 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14332 with grub_printf to avoid unnecessary fatal failure.
14333
14334 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14335
14336 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14337 (INT_MAX): Likewise.
14338 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14339 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14340 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14341 (strcpy): Likewise.
14342 (strstr): Likewise.
14343 (strchr): Likewise.
14344 (strncpy): Likewise.
14345 (strcat): Likewise.
14346 (strncat): Likewise.
14347 (strcoll): Likewise.
14348 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14349 (GRUB_INT_MAX): Likewise.
14350
14351 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14352
14353 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14354 unexpected error.
14355 (optimize_utf8): Likewise.
14356 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14357
14358 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14359
14360 * grub-core/boot/i386/pc/lnxboot.S: Use
14361 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14362 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14363 location.
14364 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14365 definition.
14366 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14367
14368 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14369
14370 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14371 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14372 now to avoid double free.
14373 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14374 hostdisk.
14375 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14376 * util/grub-probe.c (escape_of_path): Always return a new copy.
14377 (print_full_name): Escape path.
14378 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14379 Fix hints on abstractions.
14380
14381 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14382
14383 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14384 Don't add "root" line if no compatibility hont is available.
14385 Suggested by: Seth Goldberg.
14386
14387 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14388
14389 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14390 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14391 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14392 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14393
14394 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14395
14396 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14397
14398 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14399
14400 * util/grub-pe2elf.c (ehdr): Make static.
14401 (shdr): Likewise.
14402 (num_sections): Likewise.
14403 (offset): Likewise.
14404
14405 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14406
14407 Eliminate ofpath limits and possible overflows.
14408
14409 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14410 (OF_PATH_MAX): Removed.
14411 (MAX_DISK_CAT): New const.
14412 (find_obppath): Use allocated rather than preallocated buffer.
14413 Return result. Argument of_path removed. All users updated.
14414 Add missing fdstat.
14415 (xrealpath): New function.
14416 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14417 Allocate rather than use preallocated buffer. All users updated.
14418 (__of_path_common): Use allocated rather than preallocatecd buffer.
14419 Return result. Argument of_path removed. All users updated.
14420 (vendor_is_ATA): Read only needed part form the file.
14421 (check_sas): Allocate depending on contents rather than fixed.
14422 (main) [STANDALONE]: Handle NULL result.
14423
14424 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14425
14426 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14427
14428 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14429
14430 Cryptodisk write support.
14431
14432 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14433 (grub_cryptodisk_decrypt): Moved logic to ...
14434 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14435 (grub_cryptodisk_write): Implement.
14436 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14437 (grub_util_fd_write): ... this. Make global.
14438 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14439
14440 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * include/grub/list.h (grub_list_remove): Don't crash if element is
14443 removed twice.
14444
14445 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14446
14447 Rename ofconsole to console.
14448
14449 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14450 as sysnonym to console.
14451 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14452 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14453 Rename grub_ofconsole_ to grub_console_. All users updated
14454 (grub_console_term_output): Rename "ofconsole" to "console".
14455 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14456 as "console".
14457
14458 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14459
14460 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14461 handling.
14462 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14463 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14464 GRUB_DISK_DEVICE_FILE_ID.
14465
14466 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14467
14468 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14469 and improve performance.
14470
14471 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14472
14473 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14474 missing ieee1275/ prefix on whole disk.
14475
14476 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14477
14478 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14479 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14480
14481 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14482
14483 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14484
14485 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14486
14487 Merge common RAID and LVM logic to an abstract diskfilter.
14488 Add LDM support using the same framework.
14489
14490 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14491 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14492 (libgrubmods): Remove grub-core/disk/raid.c and
14493 grub-core/partmap/gpt.c.
14494 * grub-core/Makefile.core.def (ldm): New module.
14495 (raid): Renamed to diskfilter. All users updated.
14496 * grub-core/disk/raid.c: Moved to ...
14497 * grub-core/disk/diskfilter.c: ... here.
14498 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14499 (lv_num): New var.
14500 (find_array): Renamed to ...
14501 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14502 (grub_is_array_readable): Renamed to ...
14503 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14504 (insert_array): New argument id.
14505 (is_node_readable): New function.
14506 (scan_device): Rename to ...
14507 (scan_disk): .. this. Restrict to one disk.
14508 (scan_devices): New function.
14509 (grub_diskfilter_iterate): Support multi-LV.
14510 Skip invisible and nameless LVs.
14511 (grub_diskfilter_memberlist): Support multi-LV.
14512 (grub_diskfilter_read_node): New function.
14513 (grub_raid_read): Most of logic moved to ...
14514 (read_segment): ... here
14515 (read_lv): New function.
14516 (grub_diskfilter_get_vg_by_uuid): New function.
14517 (grub_diskfilter_make_raid): Likewise.
14518 * grub-core/disk/ldm.c: New file.
14519 * grub-core/disk/lvm.c (vg_list): Removed.
14520 (lv_count): Likewise.
14521 (scan_depth): Likewise.
14522 (is_lv_readable): Likewise.
14523 (grub_lvm_getvalue): Advance pointer past the number.
14524 (find_lv): Removed.
14525 (do_lvm_scan): Refactored into ...
14526 (grub_lvm_detect): ... this. Support raid.
14527 (grub_lvm_iterate): Removed.
14528 (grub_lvm_memberlist): Likewise.
14529 (grub_lvm_open): Likewise.
14530 (grub_lvm_close): Likewise.
14531 (read_lv): Likewise.
14532 (read_node): Likewise.
14533 (is_node_readable): Likewise.
14534 (is_lv_readable): Likewise.
14535 (grub_lvm_read): Likewise.
14536 (grub_lvm_write): Likewise.
14537 (grub_lvm_dev): Use diskfilter
14538 (GRUB_MOD_INIT): Likewise.
14539 (GRUB_MOD_FINI): Likewise.
14540 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14541 new interface.
14542 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14543 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14544 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14545 grub_diskfilter_read_node.
14546 Fix a bug with xor.
14547 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14548 grub_diskfilter_read_node.
14549 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14550 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14551 (grub_disk_dev_iterate): Move from here...
14552 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14553 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14554 Make global.
14555 (grub_hostdisk_find_partition_start): Likewise.
14556 (grub_hostdisk_os_dev_to_grub_drive): New function.
14557 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14558 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14559 * util/getroot.c (make_device_name): ... here.
14560 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14561 Move to ...
14562 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14563 * grub-core/kern/emu/hostdisk.c
14564 (convert_system_partition_to_system_disk): Move to ...
14565 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14566 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14567 * util/getroot.c (device_is_wholedisk): ... here.
14568 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14569 * util/getroot.c (find_system_device): ... here.
14570 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14571 Move to ...
14572 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14573 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14574 Move to ...
14575 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14576 Handle LDM.
14577 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14578 Move to ...
14579 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14580 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14581 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14582 DISKFILTER.
14583 * include/grub/raid.h: Renamed to ...
14584 * include/grub/diskfilter.h: ... this.
14585 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14586 (GRUB_RAID_LAYOUT_*): Make into array.
14587 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14588 (grub_diskfilter_vg): New struct.
14589 (grub_diskfilter_pv_id): Likewise.
14590 (grub_raid_member): Removed.
14591 (grub_raid_array): Likewise.
14592 (grub_diskfilter_pv): New struct.
14593 (grub_diskfilter_lv): Likewise.
14594 (grub_diskfilter_segment): Likewise.
14595 (grub_diskfilter_node): Likewise.
14596 (grub_diskfilter_get_vg_by_uuid): New proto.
14597 (grub_raid_register): Inline.
14598 (grub_diskfilter_unregister): Likewise.
14599 (grub_diskfilter_make_raid): New proto.
14600 (grub_diskfilter_vg_register): Likewise.
14601 (grub_diskfilter_read_node): Likewise.
14602 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14603 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14604 (grub_util_is_ldm): Likewise.
14605 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14606 (grub_hostdisk_find_partition_start): Likewise.
14607 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14608 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14609 New definition.
14610 (grub_gpt_partition_map_iterate): New proto.
14611 * include/grub/lvm.h (grub_lvm_vg): Removed.
14612 (grub_lvm_pv): Likewise.
14613 (grub_lvm_lv): Likewise.
14614 (grub_lvm_segment): Likewise.
14615 (grub_lvm_node): Likewise.
14616 * util/getroot.c [...]
14617 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14618 (probe_abstraction): Likewise.
14619 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14620 (main): Remove dead logic.
14621
14622 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14623
14624 Simplify root device discover and don't fail when trying to open
14625 incorrect devices.
14626
14627 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14628 function.
14629 (get_diskname_from_path): Likewise.
14630 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14631 of iterating.
14632
14633 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14636
14637 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14638
14639 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14640 pastthe end.
14641
14642 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14643
14644 * util/grub-install.in: Add missing \.
14645 Reported by: gentoofan
14646
14647 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14648
14649 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14650 (direct_read): Use correct compressed size.
14651 (grub_squash_read_data): Likewise.
14652
14653 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14654
14655 * docs/grub.texi (Platform limitations): New section.
14656 (Platform-specific operations): Likewise.
14657 * docs/grub-dev.texi (Porting): Likewise.
14658
14659 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14660
14661 IEEE1275 disk write support.
14662
14663 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14664 const void *.
14665 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14666 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14667 and seek loginc to ...
14668 (grub_ofdisk_prepare): ... here.
14669 (grub_ofdisk_write): Implement.
14670
14671 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14672
14673 ARC disk write support.
14674
14675 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14676 (reopen): New argument writable. All users updated.
14677 Handle required access mode.
14678 (grub_arcdisk_write): Implement.
14679 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14680 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14681
14682 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14683
14684 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14685 (read_sblock): Don't attempt to read superblocks outside the disk size.
14686
14687 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14688
14689 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14690 first superblock to find the second one when possible.
14691
14692 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14693
14694 * util/grub-install.in: Fix an ARC bug.
14695 Print a warning if no platform-specific setup is available.
14696
14697 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 Use static allocation rather than scratch pointer in reed_solomon.
14700 It decreases its size significantly and avoids a variable in .text.
14701
14702 * grub-core/lib/reed_solomon.c (scratch): Removed.
14703 (chosenstat): New const or static array.
14704 (sigma): Likewise.
14705 (errpot): Likewise.
14706 (errpos): Likewise.
14707 (sy): Likewise.
14708 (mstat): Likewise.
14709 (errvals): Likewise.
14710 (eqstat): Likewise.
14711 (pol_evaluate): Replace x with log_x argument. All users updated.
14712 (syndroms): Removed.
14713 (gauss_solve): Use statically allocated arrays.
14714 (rs_recover): Likewise.
14715 Calculate syndroms directly.
14716 (decode_block): Use statically allocated arrays.
14717 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14718 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14719
14720 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14721
14722 Eliminate fixed limit on reed solomon decoder length.
14723
14724 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14725 rather than hardcoding the address.
14726 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14727 no_reed_solomon_length.
14728 Move gate_a20 to no-reed-solomon part.
14729 Don't force a particular size of no reed-solomon part.
14730 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14731 Removed.
14732 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14733 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14734
14735 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14736
14737 * grub-core/commands/wildcard.c (match_files): Handle filenames
14738 without explicit device.
14739 (wildcard_expand): Don't add explicit device if not already present.
14740 * tests/grub_script_echo1.in: Add a new expansion test.
14741
14742 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14743
14744 Replace single-linked with double-linked lists. It results in more
14745 compact and more efficient code.
14746
14747 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14748 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14749 (grub_list_remove): Moved from here ...
14750 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14751 (grub_prio_list_insert): Set prev.
14752 * include/grub/list.h (grub_list): Add prev. All users updated.
14753
14754 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 Handle newer autotools. Add some missing quotes while on it.
14757
14758 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14759 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14760 (pkgdata_DATA): ... here.
14761 * Makefile.util.def (update-grub_lib): Removed.
14762 * conf/Makefile.common (pkglib_DATA): Removed.
14763 (pkglib_SCRIPTS): Likewise.
14764 (pkgdata_DATA): New variable.
14765 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14766 needed.
14767 Add missing quotes.
14768 Remove unused variable while on it.
14769 * tests/util/grub-shell.in: Likewise.
14770 * util/grub-install.in: Likewise.
14771 * util/grub-mkconfig.in: Likewise.
14772 * util/grub-mknetdir.in: Likewise.
14773 * util/grub-mkrescue.in: Likewise.
14774 * util/grub-mkstandalone.in: Likewise.
14775 * util/grub.d/00_header.in: Likewise.
14776 * util/grub.d/10_hurd.in: Likewise.
14777 * util/grub.d/10_illumos.in: Likewise.
14778 * util/grub.d/10_kfreebsd.in: Likewise.
14779 * util/grub.d/10_linux.in: Likewise.
14780 * util/grub.d/10_netbsd.in: Likewise.
14781 * util/grub.d/10_windows.in: Likewise.
14782 * util/grub.d/20_linux_xen.in: Likewise.
14783 * util/grub.d/30_os-prober.in: Likewise.
14784 * util/update-grub_lib.in: Removed.
14785
14786 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14787
14788 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14789 a workaround for intel problem.
14790
14791 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14792 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14793 2012-01-23 pfsmorigo
14794
14795 * util/grub-install.in: Support dd'in into PreP partition.
14796 * util/grub-probe.c (probe): Support discovering partition type.
14797 (main): Support -t msdos_parttype.
14798
14799 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14800
14801 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14802 infinite recursion using counter.
14803 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14804 init to skip it if the magic check fails.
14805 (dec_stream_header): Init s->crc32.
14806
14807 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14808 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14809 2012-01-22 Richard Laager <rlaager@wiktel.com>
14810
14811 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14812 All users updated.
14813 (find_bestub): Determine correct size.
14814 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14815 (scan_disk): Align the size down.
14816 Call check pool before find_bestub to have ashift.
14817
14818 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14819
14820 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14821 dprintf in no-malloc zone.
14822
14823 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14824
14825 * configure.ac: Add back in test for limits.h.
14826
14827 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14828
14829 Support 4K-sector NTFS.
14830
14831 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14832 (grub_ntfs_data): Remove blocksize.
14833 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14834 Remove data argument. All users updated.
14835
14836 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14837
14838 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14839 being in .text to avoid dprel references.
14840 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14841 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14842 (grub_arch_highmemsize): Likewise.
14843 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14844 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14845 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14846
14847 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14848
14849 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14850
14851 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14852 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14853
14854 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14857 GRUB_UTIL.
14858 (grub_set_datetime_cmos): Likewise.
14859
14860 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14861
14862 Make XZ compression parameters dependent on target and not host CPU.
14863
14864 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14865 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14866
14867 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14868
14869 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14870 set but not used variable.
14871
14872 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14873
14874 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14875 created when no uuid support is compiled into mkfs.reiser.
14876
14877 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14878
14879 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14880 (utf8_to_macroman): Do the opposite.
14881 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14882
14883 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14884
14885 * configure.ac: Refise build qemu_mips w/o unifont.
14886
14887 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14888
14889 Eliminate grub_min/grub_max prone to overflow usage.
14890
14891 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14892 (poll_nonroot_hub): Likewise.
14893 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14894 (grub_affs_label): Likewise.
14895 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14896 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14897 (grub_hfs_label): Likewise.
14898 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14899 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14900 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14901 (zap_leaf_array_get): Likewise.
14902 (dnode_get_path): Likewise.
14903 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14904 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14905 * grub-core/script/execute.c (grub_script_break): Likewise.
14906 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14907 grub_max.
14908 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14909 * include/grub/misc.h (grub_min): Removed.
14910 (grub_max): Likewise.
14911
14912 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14913
14914 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14915 direct.inode = 0.
14916
14917 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14918
14919 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14920
14921 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14922
14923 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14924
14925 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14928 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14929
14930 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14931
14932 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14933 rather than a hack for grub_strncasemap.
14934
14935 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14936
14937 Support multiple initrds
14938 Note: part of this was accidently committed in r3739.
14939
14940 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14941 initrd.
14942 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14943 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14944 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14945 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14946 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14947
14948 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14949
14950 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14951 disks with unknown size.
14952 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14953
14954 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 Remove defines pertaining to arbitrary limits not affecting GRUB
14957 anymore.
14958
14959 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14960 (EXT2_MAX_SYMLINKCNT): Likewise.
14961 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14962 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14963 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14964 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14965 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14966 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14967 (DN_MAX_OBJECT_SHIFT): Likewise.
14968 (DN_MAX_OFFSET_SHIFT): Likewise.
14969 (DN_MAX_OBJECT): Likewise.
14970 (DNODES_PER_LEVEL_SHIFT): Likewise.
14971 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14972 (SPA_MAXBLOCKSIZE): Likewise.
14973 (SPA_BLOCKSIZES): Likewise.
14974 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14975 (MZAP_MAX_BLKSZ): Likewise.
14976
14977 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14978
14979 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14980 handle NULL appropriately.
14981 Remove MIN.
14982
14983 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14984
14985 Fix efiemu.
14986
14987 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14988 cpu/types.h.
14989 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14990 * configure.ac: Fix efiemu check.
14991
14992 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14993
14994 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14995 grub_probe.
14996 Reported by: adamwill
14997
14998 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14999
15000 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15001
15002 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15003
15004 Fix handling of wide characters in gfxterm.
15005
15006 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15007 (clear_char): Likewise.
15008 (paint_char): Skip code == NULL chars.
15009 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15010
15011 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15012
15013 * grub-core/normal/charset.c: Move comment to right place.
15014
15015 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15016
15017 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15018 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15019 (grub_affs_mount): Revert the correct version checking.
15020
15021 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15022
15023 * docs/grub.texi (Unicode): Mention several other unsupported features.
15024
15025 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15026
15027 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15028 case statements as compile-time one.
15029 (direct_read): Prevent spurious warnings.
15030 (grub_squash_read_data): Likewise.
15031
15032 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15033
15034 Various squash4 fixes and LZO and XZ support.
15035
15036 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15037 Add xzembed source files.
15038 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15039 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15040 (grub_squash_inode): New subtype long_dir.
15041 (SQUASH_TYPE_LONG_DIR): New inode type.
15042 (COMPRESSION): New enum.
15043 (XZBUFSIZ): New const.
15044 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15045 (read_chunk): Use data->decompress.
15046 (zlib_decompress): New function.
15047 (lzo_decompress): Likewise.
15048 (xz_decompress): Likewise.
15049 (squash_mount): Set new data fields.
15050 (grub_squash_iterate_dir): Handle long dir.
15051 (squash_unmount): Free xzdec and xzbuf.
15052 (grub_squash_open): Check ino type.
15053 (direct_read): Stylistic fixes. Use data->decompress.
15054 (grub_squash_read_data): Likewise.
15055 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15056 (get_byte): Likewise.
15057 (grub_zlib_disk_read): Removed.
15058 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15059 (GRUB_POSIX_BOOL_DEFINED): New define.
15060 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15061 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15062 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15063 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15064
15065 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15066
15067 Don't override more informative errors.
15068
15069 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15070 * grub-core/font/font.c (open_section): Likewise.
15071 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15072 filename. Don't override errors.
15073 (grub_cmd_openbsd_ramdisk): Don't override errors.
15074 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15075 (grub_cmd_initrd): Likewise.
15076 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15077 (grub_cmd_initrd): Likewise.
15078 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15079 (grub_cmd_linux): Likewise.
15080 (grub_cmd_initrd): Likewise.
15081 (grub_cmd_payload): Likewise.
15082 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15083 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15084 (grub_cmd_module): Likewise.
15085 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15086 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15087 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15088 (grub_cmd_xnu_mkext): Likewise.
15089 (grub_cmd_xnu_ramdisk): Likewise.
15090 (grub_xnu_check_os_bundle_required): Likewise.
15091 (grub_xnu_load_kext_from_dir): Likewise.
15092 (grub_cmd_xnu_kextdir): Likewise.
15093 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15094
15095 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15096
15097 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15098 as 1024 in block size field. Found on one of my test images.
15099 Small optimisation while on it.
15100
15101 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15102
15103 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15104 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15105 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15106 performance fixes while on it.
15107 (grub_sfs_close): Fix memory leak while on it.
15108 (grub_sfs_label): Convert Latin1 to UTF-8.
15109
15110 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15111
15112 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15113 space to avoid overflows.
15114 (grub_hfs_label): Convert from macroman to UTF-8.
15115
15116 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15117
15118 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15119
15120 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15121
15122 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15123
15124 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15125
15126 * unicode: Import Unicode 6.0 data.
15127
15128 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15129
15130 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15131 outside of range.
15132
15133 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 Avoid cutting in the middle of UTF-8 character.
15136
15137 * include/grub/charset.h (grub_getend): New function.
15138 * grub-core/script/function.c (grub_script_function_find): Use
15139 grub_getend.
15140 * grub-core/normal/completion.c (add_completion): Likewise.
15141
15142 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15145 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15146 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15147 (GRUB_UNICODE_TAG_END): Likewise.
15148 (GRUB_UNICODE_LAST_VALID): Likewise.
15149
15150 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15153 len and make it smaller. All users updated.
15154 * util/import_unicode.py: Put length and not end character.
15155 Check length.
15156
15157 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 Make better Unicode-compliant and unify some UTF-8 code pathes.
15160
15161 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15162 valid character.
15163 (grub_is_valid_utf8): Use grub_utf8_process.
15164 Check resulting code range.
15165 (grub_utf8_to_ucs4): Use grub_utf8_process.
15166 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15167 valid character.
15168
15169 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15170
15171 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15172
15173 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15174
15175 * docs/grub.texi (Filesystems): Mention AFS.
15176
15177 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15178
15179 * docs/grub.texi (Filesystems): Clarify restrictions.
15180 (Regexp): Mention non-Unicode regexp behaviour.
15181 (Other): Mention non-Unicode matching behaviour.
15182
15183 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15184
15185 Make HFS implementation use MacRoman.
15186
15187 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15188 (macroman): New const array.
15189 (macroman_to_utf8): New function.
15190 (utf8_to_macroman): Likewise.
15191 (grub_hfs_find_dir): Use utf8_to_macroman.
15192 (grub_hfs_dir): Use macroman_to_utf8.
15193 Set case_insensitive.
15194
15195 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15198
15199 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15200
15201 Integrate hints into autogeneration scripts.
15202
15203 * docs/grub.texi (Filesystems): Add a hostdisk example.
15204 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15205 (grub-probe): Add ofpath.
15206 * gentpl.py: Remove group nosparc64.
15207 * grub-core/commands/search.c (cache_entry): New struct.
15208 (cache): New var.
15209 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15210 * grub-core/commands/search_wrap.c (options): Add platform-specific
15211 hint options.
15212 (grub_cmd_search): Handle platform-specific hints.
15213 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15214 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15215 (grub_util_biosdisk_data): Likewise.
15216 (grub_util_biosdisk_open): Set device_map.
15217 (read_device_map): Handle "" as indication of no map.
15218 Set device_map.
15219 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15220 (grub_util_biosdisk_get_compatibility_hint): New function.
15221 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15222 * include/grub/emu/hostdisk.h
15223 (grub_util_biosdisk_get_compatibility_hint): New proto.
15224 * util/grub-install.in: Don't call grub-mkdevicemap.
15225 Add platform-specific hint to load.cfg.
15226 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15227 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15228 hints. Set root preliminary to compatibility hint, not to OS name.
15229 * util/grub-probe.c (PRINT_*): Add hints.
15230 (print): Make static.
15231 (escape_of_path): New function.
15232 (guess_bios_drive): Likewise.
15233 (guess_efi_drive): Likewise.
15234 (guess_baremetal_drive): Likewise.
15235 (print_full_name): Likewise.
15236 (probe): Handle hints.
15237 (main): Likewise.
15238 * util/ieee1275/devicemap.c: Removed.
15239 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15240 updated.
15241 (grub_util_devname_to_ofpath): Return NULL on failure.
15242
15243 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15244 resource leak.
15245 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15246
15247 * po/POTFILES.in: Regenerated.
15248
15249 Allow purely long options
15250
15251 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15252 (SHORT_ARG_USAGE): Likewise.
15253 (grub_arg_show_help): Compare opt with help_options.
15254 (parse_option): Receive opt as argument. If makes big simplificatons.
15255 All users updated
15256
15257 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15258
15259 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15260 Restructure to avoid warning.
15261
15262 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15263
15264 * util/grub-install.in: Account for possible escaped comma in device
15265 name.
15266
15267 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15268
15269 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15270 channel.
15271
15272 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15273
15274 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15275 allocation and zero-setting.
15276 (grub_ieee1275_get_devname): Check that alias is complete.
15277
15278 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15281 unaligned segments.
15282
15283 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15284
15285 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15286 prefix.
15287 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15288 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15289 Add ieee1275 prefix.
15290
15291 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15292
15293 * docs/grub.texi (Filesystems): Update.
15294
15295 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15296
15297 Support odc, newc and bigendian cpio formats.
15298
15299 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15300 * grub-core/Makefile.core.def (newc): New module.
15301 (odc): Likewise.
15302 (cpio_be): Likewise.
15303 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15304 (MAGIC): Likewise.
15305 (MAGIC2): Likewise.
15306 (head) [MODE_ODC]: Adapt for the format.
15307 (head) [MODE_NEWC]: Likewise.
15308 (head) [!MODE_*]: Write fields of interest as arrays.
15309 (MAGIC_USTAR): Removed.
15310 (read_number) [MODE_NEWC]: Change to hex.
15311 (read_number) [!MODE_*]: Parse binary arrays.
15312 (grub_cpio_find_file): Factor out the code for better structure and
15313 always use read_number.
15314 (grub_cpio_mount): Use MAGIC and MAGIC2.
15315 (grub_cpio_dir): Exit on first hook non-0 return.
15316 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15317 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15318 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15319 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15320 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15321 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15322 * grub-core/fs/newc.c: New file.
15323 * grub-core/fs/odc.c: Likewise.
15324 * grub-core/fs/cpio_be.c: Likewise.
15325
15326 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15327
15328 Fix handling of tar numbers occupying the whole field.
15329
15330 * grub-core/fs/cpio.c (read_number): New function.
15331 (grub_cpio_find_file): Use read_number instead of strtoull.
15332
15333 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15334
15335 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15336 occupying the whole field size.
15337
15338 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15339
15340 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15341
15342 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15343
15344 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15345
15346 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15347
15348 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15349 TARGET_IMG_LDFLAGS.
15350
15351 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15352
15353 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15354 (mountinfo_entry): Increase the field size to take escaping into
15355 account.
15356 (find_root_device_from_libzfs): Add one byte to size of strings for
15357 security.
15358
15359 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15360
15361 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15362 an assert.
15363 * util/grub-setup.c (setup): Likewise.
15364
15365 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15366
15367 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15368 _LzmaDecodeA.
15369
15370 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 * docs/grub.texi (Internationalisation): New section.
15373
15374 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15375
15376 * docs/grub.texi (Loopback booting): New section.
15377
15378 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15379
15380 * util/grub-mkstandalone.in: Fix minor typo errors.
15381
15382 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15383
15384 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15385
15386 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15387 net/icmp.c and net/icmp6.c.
15388 (http): New module.
15389 (priority_queue): Likewise.
15390 * grub-core/io/bufio.c: Rewritten.
15391 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15392 TYPE_WITH_CONFIGFILE_OPTION.
15393 (legacy_commands): Add bootp and dhcp.
15394 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15395 (grub_legacy_parse): Likewise.
15396 * grub-core/lib/priority_queue.c: New file.
15397 * grub-core/net/arp.c: Add missing license header.
15398 (arp_find_entry): Removed.
15399 (arp_find_entry): Likewise.
15400 (grub_net_arp_resolve): Rename to ...
15401 (grub_net_arp_send_request): ...this.
15402 (grub_net_arp_receive): New card argument.
15403 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15404 Set router and DNS server.
15405 (grub_net_configure_by_dhcp_ack): Handle routing information.
15406 (grub_cmd_bootp): Set checksum.
15407 (grub_bootp_init): Remove net_dhcp.
15408 * grub-core/net/dns.c: New file.
15409 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15410 completion.
15411 (get_card_packet): Handle allocation.
15412 (grub_efinet_findcards): Set mtu.
15413 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15414 (get_card_packet): Handle allocation.
15415 (emucard): Set mtu.
15416 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15417 (GRUB_MOD_INIT): Set mtu.
15418 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15419 mtu.
15420 (get_card_packet): Handle allocation.
15421 (grub_ofnet_findcards): Set mtu.
15422 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15423 assert.
15424 (grub_net_recv_ethernet_packet): Handle IPv6.
15425 * grub-core/net/http.c: New file.
15426 * grub-core/net/icmp.c: Likewise.
15427 * grub-core/net/icmp6.c: Likewise.
15428 * grub-core/net/ip.c (ip6addr): New type.
15429 (ip6hdr): Likewise.
15430 (reassemble): Likewise.
15431 (cmp): New function.
15432 (reassembles): New variable.
15433 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15434 (id): New variable.
15435 (send_fragmented): New function.
15436 (grub_net_send_ip_packet): Rename to ...
15437 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15438 Handle non-UDP.
15439 (grub_net_recv_ip_packets): Rename to ...
15440 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15441 (free_rsm): New function.
15442 (free_old_fragments): Likewise.
15443 (grub_net_recv_ip4_packets): New function.
15444 (grub_net_send_ip6_packet): Likewise.
15445 (grub_net_send_ip_packet): Likewise.
15446 (grub_net_recv_ip6_packets): Likewise.
15447 (grub_net_recv_ip_packets): Likewise.
15448 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15449 (LINK_LAYER_CACHE_SIZE): New const.
15450 (link_layer_find_entry): New function.
15451 (grub_net_link_layer_add_address): Likewise.
15452 (grub_net_link_layer_resolve_check): Likewise.
15453 (grub_net_link_layer_resolve): Likewise.
15454 (grub_net_ipv6_get_slaac): Likewise.
15455 (grub_net_ipv6_get_link_local): Likewise.
15456 (grub_cmd_ipv6_autoconf): Likewise.
15457 (parse_ip): Handle one number representation.
15458 (parse_ip6): New functoion.
15459 (match_net): Handle IPv6.
15460 (grub_net_resolve_address): Handle IPv6 and DNS.
15461 (grub_net_resolve_net_address): Handle IPv6.
15462 (route_cmp): New function.
15463 (grub_net_route_address): Find best route.
15464 (grub_net_addr_to_str): Handle IPv6.
15465 (grub_net_addr_cmp): New function.
15466 (grub_net_add_addr): Register local route.
15467 (print_net_address): Handle net address.
15468 (grub_net_poll_cards): Retransmit TCP.
15469 (grub_net_poll_cards_idle_real): Likewise.
15470 (have_ahead): New function.
15471 (grub_net_seek_real): Use underlying seek.
15472 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15473 * grub-core/net/tcp.c: New file.
15474 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15475 (cmp): New function.
15476 (ack): Likewise.
15477 (tftp_receive): Handle unordered input.
15478 (destroy_pq): New function.
15479 (tftp_close): Close pq.
15480 * grub-core/net/udp.c: Put missing license header.
15481 (grub_net_udp_socket): New function.
15482 (udp_socket_register): Likewise.
15483 (grub_net_udp_close): Likewise.
15484 (grub_net_recv_udp_packet): Check checksum.
15485 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15486 * include/grub/misc.h (grub_memchr): New function.
15487 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15488 (grub_net_card_driver): Return buf in recv.
15489 (grub_net_slaac_mac_list): New struct.
15490 (grub_network_level_protocol_id): Add ipv6.
15491 (grub_net_network_level_addr): Likewise.
15492 (grub_net_network_level_net_addr): Likewise.
15493 (grub_net_app_protocol): Add seek.
15494 (grub_net_socket): Removed.
15495 (grub_net_sockets): Likewise.
15496 (grub_net_socket_register): Likewise.
15497 (grub_net_socket_unregister): Likewise.
15498 (FOR_NET_SOCKETS): Likewise.
15499 (grub_net_add_addr): Add const.
15500 (GRUB_NET_BOOTP_*): New enum.
15501 (grub_net_addr_cmp): New proto.
15502 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15503 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15504 (grub_net_hwaddr_to_str): NEw proto.
15505 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15506 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15507 (grub_dns_init): New proto.
15508 (grub_dns_fini): Likewise.
15509 (grub_net_tcp_retransmit): Likewise.
15510 (grub_net_link_layer_add_address): Likewise.
15511 (grub_net_link_layer_resolve_check): Likewise.
15512 (grub_net_link_layer_resolve): Likewise.
15513 (grub_net_dns_lookup): Likewise.
15514 (grub_net_add_dns_server): Likewise.
15515 (grub_net_remove_dns_server): Likewise.
15516 (GRUB_NET_TRIES): New const.
15517 (GRUB_NET_INTERVAL): Likewise.
15518 * include/grub/net/arp.h: Mostly rewritten.
15519 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15520 * include/grub/net/ip.h: Mostly rewritten.
15521 * include/grub/net/netbuff.h: Indent.
15522 * include/grub/net/tcp.h: New file.
15523 * include/grub/net/udp.h: Mostly rewritten.
15524 * include/grub/priority_queue.h: New file.
15525 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15526 (grub_swap_bytes64_compile_time): Likewise.
15527 (grub_cpu_to_be16_compile_time): Likewise.
15528 (grub_cpu_to_be32_compile_time): Likewise.
15529 (grub_cpu_to_be64_compile_time): Likewise.
15530 (grub_be_to_cpu64_compile_time): Likewise.
15531
15532 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15533
15534 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15535 UINT_TO_PTR with cast.
15536
15537 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15538
15539 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15540 don't use them.
15541
15542 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15543
15544 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15545 already there.
15546
15547 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15548
15549 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15550 confusing ipxe.
15551
15552 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15553
15554 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15555 Add missing const attribute.
15556 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15557 Likewise.
15558 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15559 Likewise.
15560
15561 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15562
15563 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15564 misaligned access.
15565 (serpent_setkey): Likewise.
15566 (serpent_encrypt_internal): Likewise.
15567 (serpent_decrypt_internal): Likewise.
15568 (serpent_encrypt): Don't put an alignment-increasing cast.
15569 (serpent_decrypt): Likewise.
15570 (serpent_test): Likewise.
15571
15572 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15573
15574 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15575
15576 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15579
15580 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15581 grub_addr_t casts.
15582 (PTR_TO_UINT64): Likewise.
15583 (PTR_TO_UINT32): Likewise.
15584
15585 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15586
15587 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15588 because of stack.
15589 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15590 limit.
15591
15592 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15593
15594 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15595 text_width > available width a bit more gracefully.
15596
15597 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15598
15599 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15600 current address calculation.
15601
15602 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15603
15604 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15605 stack.
15606 (encode_block): Likewise.
15607
15608 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15609
15610 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15611 certainety.
15612
15613 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15616 non-RS part to avoid RS messing with GDT.
15617 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15618 Increase to suit in realmode routines.
15619
15620 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15621
15622 * grub-core/kern/i386/realmode.S: Increase alignment.
15623 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15624
15625 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15626
15627 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15628 be deterministic.
15629 (syndroms): Compute 0 syndrom.
15630 (rs_recover): Use 0 syndrom.
15631
15632 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15635
15636 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15637
15638 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15639 brackets.
15640
15641 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15642
15643 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15644 account.
15645 (get_top_pad): Likewise.
15646 (get_right_pad): Likewise.
15647 (get_bottom_pad): Likewise.
15648
15649 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15650
15651 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15652
15653 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15654
15655 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15656 attribute as the structure isn't guaranteed to be properly aligned.
15657 (grub_efi_pci_device_path): Likewise.
15658 (grub_efi_pccard_device_path): Likewise.
15659 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15660 specify the size of `memory_type'.
15661 (grub_efi_vendor_device_path): Likewise.
15662 (grub_efi_controller_device_path): Likewise.
15663 (grub_efi_acpi_device_path): Likewise.
15664 (grub_efi_expanded_acpi_device_path): Likewise.
15665 (grub_efi_atapi_device_path): Likewise.
15666 (grub_efi_scsi_device_path): Likewise.
15667 (grub_efi_fibre_channel_device_path): Likewise.
15668 (grub_efi_1394_device_path): Likewise.
15669 (grub_efi_usb_device_path): Likewise.
15670 (grub_efi_usb_class_device_path): Likewise.
15671 (grub_efi_i2o_device_path): Likewise.
15672 (grub_efi_mac_address_device_path): Likewise.
15673 (grub_efi_ipv4_device_path): Likewise.
15674 (grub_efi_ipv6_device_path): Likewise.
15675 (grub_efi_infiniband_device_path): Likewise.
15676 (grub_efi_uart_device_path): Likewise.
15677 (grub_efi_vendor_messaging_device_path): Likewise.
15678 (grub_efi_hard_drive_device_path): Likewise.
15679 (grub_efi_cdrom_device_path): Likewise.
15680 (grub_efi_vendor_media_device_path): Likewise.
15681 (grub_efi_file_path_device_path): Likewise.
15682 (grub_efi_protocol_device_path): Likewise.
15683 (grub_efi_piwg_device_path): Likewise.
15684 (grub_efi_bios_device_path): Likewise.
15685
15686 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15687
15688 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15689 (grub_ucs4_to_utf8_alloc): Likewise.
15690 (grub_ucs4_to_utf8): Likewise.
15691 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15692 (grub_ucs4_to_utf8_alloc): Likewise.
15693
15694 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15695
15696 AFFS never uses unicode.
15697
15698 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15699 (grub_latin1_to_utf8): New inline function.
15700 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15701
15702 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15705 overflow.
15706
15707 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15708
15709 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15710 (grub_squash_dirent_header): Likewise.
15711 (read_chunk): Don't double swap.
15712 (grub_squash_iterate_dir): Fix swap sizes.
15713
15714 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15715
15716 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15717
15718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15721 (grub_hfs_iterate_dir): Likewise.
15722
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15724
15725 Fix video on platforms where unaligned access is forbidden.
15726 Make several optimisations while on it.
15727
15728 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15729 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15730 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15731 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15732 Disable.
15733 (grub_video_fbblit_replace_16bit_1bit):
15734 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15735 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15736 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15737 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15738 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15739 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15740 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15741 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15742 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15743 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15744 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15745 (grub_video_fbblit_replace_index_RGB888): Likewise.
15746 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15747 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15748 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15749 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15750 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15751 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15752 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15753 Disable.
15754 (grub_video_fbblit_blend_XXX565_1bit):
15755 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15756 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15757 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15758 void *.
15759 * grub-core/video/fb/video_fb.c (common_blitter)
15760 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15761 (grub_video_fb_create_render_target_from_pointer)
15762 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15763 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15764 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15765 definition.
15766 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15767
15768 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15769
15770 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15771 HH22 and HM10 relocations.
15772
15773 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15774
15775 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15776
15777 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15778
15779 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15780 allocation succeeded.
15781
15782 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15783
15784 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15785 argument a u8 pointer. All users updated.
15786 Handle unaligned buffers.
15787
15788 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15789
15790 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15791 add_part to workaround compiler bug.
15792
15793 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15794
15795 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15796
15797 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15798
15799 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15800 Reserve alignment invariants.
15801 (grub_multiboot_load): Likewise.
15802 (retrieve_video_parameters): Likewise.
15803 (grub_multiboot_make_mbi): Likewise.
15804
15805 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15806
15807 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15808 incorrect pointer.
15809
15810 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15811
15812 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15813 (grub_pata_pio_write): Likewise.
15814
15815 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15816
15817 Add noreturn attributes and remove unreachable code.
15818
15819 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15820 code.
15821 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15822 code. Mark as noreturn.
15823 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15824 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15825 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15826 unreachable code.
15827 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15828 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15829 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15830 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15831 * include/grub/kernel.h (grub_main): Mark as noreturn.
15832 * include/grub/reader.h (grub_rescue_run): Likewise.
15833
15834 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15835
15836 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15837 redundant declaration.
15838
15839 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15840
15841 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15842 redundant declaration.
15843 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15844
15845 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15846
15847 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15848 to ensure alignment.
15849 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15850 alignment. Ensure tmp alignment.
15851 (grub_cmd_hdparm): Ensure buf alignment.
15852 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15853 to ensure alignment.
15854 (grub_ata_dumpinfo): Ensure text alignment.
15855 (grub_atapi_identify): Preserve alignment invariant.
15856 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15857
15858 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15859
15860 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15861 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15862 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15863 * include/grub/misc.h (grub_reboot)
15864 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15865 (grub_halt) [__mips__]: Likewise.
15866
15867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15870 Remove redundant declaration.
15871 (grub_mmap_get_post64): Likewise.
15872 (grub_mmap_get_upper): Likewise.
15873 (grub_mmap_get_lower): Likewise.
15874
15875 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15878 uint32_t * to ensure alignment.
15879 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15880
15881 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15882
15883 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15884 uint16_t * to ensure alignment.
15885 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15886 alignment.
15887
15888 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15889
15890 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15891 to ensure alignment.
15892 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15893
15894 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15895
15896 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15897 Handle unaligned pointers.
15898 (u32at): Likewise.
15899 (u64at): Likewise.
15900 (fixup): Use byte access instead of v16at.
15901 (find_attr): Fix imporper usage of v32at.
15902 (read_data): Likewise.
15903 (list_file): Handle byte-swapping and unaligned strings.
15904 (grub_ntfs_label): Likewise.
15905
15906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15907
15908 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15909 as it's not necessarily aligned.
15910
15911 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15912
15913 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15914 redundant declaration.
15915 (grub_serial_init): Likewise.
15916 (grub_terminfo_init): Likewise.
15917
15918 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15919
15920 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15921 function.
15922 (ZAP_HASH_IDX): Likewise.
15923 (ZAP_LEAF_HASH_SHIFT): Likewise.
15924 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15925 (LEAF_HASH): Likewise.
15926 (ZAP_LEAF_NUMCHUNKS): Likewise.
15927 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15928 alignment invariants. Return pointer. All users updated.
15929 (ZAP_LEAF_ENTRY): Make into inline function.
15930 (NBBY): Removed.
15931 (xor): LIkewise.
15932 (xor_out): Use grub_crypto_xor.
15933 (dnode_get_path): Use grub_get_unaligned.
15934 (nvlist_find_value): Likewise.
15935 (grub_zfs_nvlist_lookup_uint64): Likewise.
15936 (grub_zfs_nvlist_lookup_string): Likewise.
15937 (get_nvlist_size): Likewise.
15938 (grub_zfs_open): Likewise.
15939 (fill_fs_info): Likewise.
15940 (grub_zfs_dir): Likewise.
15941 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15942 alignment invariants.
15943 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15944 necessarily aligned.
15945
15946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15949
15950 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15951
15952 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15953 arithmetic to conserve alignment invariants.
15954
15955 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15958 redundant declaration.
15959 (grub_efiemu_mm_obtain_request): Likewise.
15960 (grub_efiemu_prepare): Likewise.
15961
15962 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15963
15964 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15965 to match types.
15966
15967 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15968
15969 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15970 case of aunaligned recptr.
15971 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15972 alignment.
15973 (grub_hfsplus_btree_search): Handle unaligned index.
15974
15975 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15976
15977 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15978 to get freetag and skip.
15979
15980 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15981
15982 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15983 array.
15984 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15985 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15986
15987 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15988
15989 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15990 name for checksum and fix allocation algorithm.
15991
15992 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15993
15994 * include/grub/types.h (grub_properly_aligned_t): New type.
15995 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15996 (grub_get_unaligned16): Add explicit casts.
15997 (grub_get_unaligned32): Likewise.
15998 (grub_get_unaligned64): Likewise.
15999 (grub_set_unaligned16): New function.
16000 (grub_set_unaligned32): Likewise.
16001
16002 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16003
16004 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16005
16006 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16007
16008 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16009 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16010 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16011
16012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16013
16014 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16015 conditionals.
16016
16017 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16018
16019 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16020 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16021
16022 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 Unify and improve RAID and crypto xor.
16025
16026 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16027 changed to grub_crypto_xor
16028 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16029 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16030 Use bigger types when possible.
16031
16032 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16033
16034 * grub-core/disk/raid.c (scan_devices): Fix condition.
16035
16036 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16037
16038 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16039 Make name a const ptr.
16040
16041 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16042
16043 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16044 first argument a const pointer.
16045 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16046 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16047 proto.
16048 (grub_children_iterate): Likewise.
16049 (grub_machine_mmap_iterate): Remove redundant declaration.
16050
16051 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16052
16053 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16054 (grub_cmd_acpi) [!x86]: Disable EBDA.
16055
16056 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16057
16058 Enable UTF8 in gnulib regexp.
16059
16060 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16061 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16062 (isupper): Use grub_isupper.
16063 (isascii): New inline function.
16064 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16065 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16066 * grub-core/normal/charset.c (grub_utf8_process): New function.
16067 (grub_utf8_to_utf16): Use grub_utf8_process.
16068 (grub_encode_utf8_character): New function.
16069 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16070 * include/grub/charset.h (grub_utf8_process): New declaration.
16071 (grub_encode_utf8_character): Likewise.
16072 * include/grub/misc.h (grub_islower): New inline function.
16073 (grub_isupper): Likewise.
16074 (grub_strchrsub): Moved down to fix the definitions.
16075
16076 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16077
16078 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16079 specification.
16080
16081 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16082
16083 * include/grub/loader.h (grub_loader_register_preboot_hook):
16084 Use struct preboot * and not void * for handle. All users updated.
16085 (grub_loader_unregister_preboot_hook): Likewise.
16086
16087 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16088
16089 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16090 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16091 UTF-16-BE. All users updated.
16092 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16093 (grub_hfsplus_iterate_dir): Likewise.
16094 (grub_hfsplus_label): Likewise.
16095
16096 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16097
16098 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16099
16100 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16101
16102 Add missing const qualifiers.
16103
16104 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16105 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16106 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16107 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16108 (grub_lvm_check_flag): Likewise.
16109 * grub-core/efiemu/i386/coredetect.c
16110 (grub_efiemu_get_default_core_name): Likewise
16111 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16112 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16113 * grub-core/fs/ntfs.c (fixup): Likewise.
16114 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16115 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16116 (fzap_lookup): Likewise.
16117 (zap_lookup): Likewise.
16118 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16119 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16120 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16121 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16122 (grub_freebsd_add_meta_module): Likewise.
16123 (grub_cmd_freebsd_module): Likewise.
16124 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16125 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16126 (grub_xnu_writetree_get_size): Likewise.
16127 (grub_xnu_writetree_toheap_real): Likewise.
16128 (grub_xnu_find_key): Likewise.
16129 (grub_xnu_create_key): Likewise.
16130 (grub_xnu_create_value): Likewise.
16131 (grub_xnu_register_memory): Likewise.
16132 (grub_xnu_check_os_bundle_required): Likewise.
16133 (grub_xnu_scan_dir_for_kexts): Likewise.
16134 (grub_xnu_load_kext_from_dir): Likewise.
16135 * grub-core/normal/color.c (color_list): Likewise.
16136 * grub-core/normal/completion.c (current_word): Likewise.
16137 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16138 * grub-core/term/serial.c (grub_serial_find): Likewise.
16139 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16140 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16141 Likewise.
16142 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16143 (grub_freebsd_add_meta_module): Likewise.
16144 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16145 * include/grub/net.h (grub_net_card_driver): Likewise.
16146 (grub_net_card): Likewise.
16147 (grub_net_app_protocol): Likewise.
16148 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16149 * include/grub/serial.h (grub_serial_find): Likewise.
16150 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16151 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16152 (grub_xnu_create_value): Likewise.
16153 (grub_xnu_find_key): Likewise.
16154 (grub_xnu_scan_dir_for_kexts): Likewise.
16155 (grub_xnu_load_kext_from_dir): Likewise.
16156
16157 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16158 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16159 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16160 Moved from here ...
16161 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16162
16163 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16164
16165 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16166
16167 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16168
16169 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16170 (read_device): Fix size calculation.
16171
16172 2011-11-25 Robert Millan <rmh@gnu.org>
16173
16174 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16175 (find_root_device_from_libzfs): Add zpool output parser to be used
16176 as fallback when libzfs isn't available.
16177
16178 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16179
16180 * po/Makefile.in.in: Add missing escape-continuation.
16181
16182 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16183
16184 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16185
16186 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16187
16188 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16189
16190 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16191
16192 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16193
16194 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16195
16196 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16197
16198 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 * grub-core/lib/adler32.c: Add missing license specification.
16201 * grub-core/lib/crc64.c: Likewise.
16202 * grub-core/loader/i386/pc/plan9.c: Likewise.
16203 * grub-core/partmap/plan.c: Likewise.
16204
16205 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16206
16207 Add facility to debug GRUB with gdb under qemu.
16208
16209 * grub-core/gdb_grub.in: New file.
16210 * grub-core/gmodule.pl.in: Likewise.
16211 * grub-core/Makefile.core.def (gmodule.pl): New script.
16212 (gdb_grub): Likewise.
16213
16214 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16215
16216 * util/grub-mount.c (argp_parser): Accept relative pathes.
16217 * util/grub-fstest.c (argp_parser): Likewise.
16218
16219 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16220
16221 Plan9 support.
16222
16223 * Makefile.util.def (libgrubmods): Add
16224 grub-core/partmap/plan.c.
16225 * docs/grub.texi: Notice Plan9 support.
16226 * grub-core/Makefile.core.def (plan9): New module.
16227 (part_plan): Likewise.
16228 * grub-core/loader/i386/pc/plan9.c: New file.
16229 * grub-core/partmap/plan.c: Likewise.
16230 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16231 define.
16232 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16233 * include/grub/mm.h (grub_extend_alloc): New inline function.
16234
16235 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16236
16237 Make Reed-Solomon faster by using power of generator representation of
16238 GF(256)*.
16239
16240 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16241 (gf_double_t): Likewise.
16242 (gf_invert): Removed.
16243 (gf_powx): New array.
16244 (gf_powx_inv): Likewise.
16245 (scratch): Move higher.
16246 (gf_reduce): Removed.
16247 (gf_mul): Use powx.
16248 (gf_invert): Likewise.
16249 (init_inverts): Replaced with ...
16250 (init_powx): ...this. All users updated.
16251 (pol_evaluate): Replace multiplications with additions.
16252 (rs_encode): Likewise.
16253 (gauss_eliminate): Call gf_invert.
16254 (grub_reed_solomon_add_redundancy): Call init_powx.
16255 (grub_reed_solomon_recover): Call init_powx unconditionally.
16256
16257 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16260
16261 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16262
16263 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16264 disk->partiton for safety.
16265
16266 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16267
16268 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16269 Fix a memory leak.
16270 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16271
16272 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16273
16274 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16275
16276 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16279
16280 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16281
16282 Fix spaces handling in proc/self/mountinfo.
16283
16284 * util/getroot.c (unescape): New function.
16285 (grub_find_root_device_from_mountinfo): Use unescape.
16286
16287 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16288
16289 Support ZFS embedding.
16290
16291 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16292 (grub_zfs_fs): Register grub_zfs_embed.
16293
16294 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16295
16296 Fix MIPS compilation.
16297
16298 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16299 * include/grub/offsets.h: Rename decompressor fields from
16300 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16301 * util/grub-mkimage.c (image_targets): Use new names.
16302
16303 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16304
16305 Defer multiboot device parsing until we're in compressed part.
16306
16307 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16308 bsd_part. setdevice has fallen into disuse.
16309 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16310 (bsd_part): Likewise.
16311 (boot_dev): New variable.
16312 (multiboot_trampoline): Don't parse multiboot device.
16313 Pass multiboot device in %edx.
16314 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16315 grub_boot_device.
16316 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16317 Likewise.
16318 * grub-core/kern/i386/pc/startup.S: Save edx.
16319 (grub_boot_drive): Removed.
16320 (grub_install_dos_part): Likewise.
16321 (grub_install_bsd_part): Likewise.
16322 (grub_boot_device): New variable.
16323 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16324 (grub_install_bsd_part): Likewise.
16325 (grub_boot_drive): Likewise.
16326 (grub_boot_device): New variable.
16327 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16328 Removed.
16329 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16330 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16331 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16332 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16333 * util/grub-install.in: Remove redundant condition.
16334
16335 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16336
16337 Fix bug introduced by previous commit.
16338
16339 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16340
16341 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16342
16343 Use decompressors framework on i386-pc. It increases core size
16344 by 46 bytes but improves compatibility and maintainability.
16345
16346 * grub-core/Makefile.core.def (lzma_decompress): New image.
16347 (kernel): Add i386_pc_ldflags.
16348 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16349 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16350 to real_to_prot, prot_to_real and device info.
16351 * include/grub/offsets.h: Renamed decompressor offsets.
16352 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16353 (image_target_desc): Remove raw_size and rename decompressor fields.
16354 (compress_kernel): Handle lzma.
16355 (generate_image): Handle decompressors on i386-pc.
16356
16357 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16358
16359 * configure.ac: Add -fno-asynchronous-unwind-tables.
16360
16361 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16362
16363 Move assembly code to C by using intwrap. It increases core size
16364 by 88 bytes but improves compatibility and maintainability.
16365
16366 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16367 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16368 ... here. Translated to C.
16369 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16370 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16371 ... here. Translated to C.
16372 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16373 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16374 ... here. Translated to C.
16375 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16376 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16377 ... here. Translated to C.
16378 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16379 * grub-core/term/i386/pc/console.c (grub_console_cls):
16380 ... here. Translated to C.
16381 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16382 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16383 ... here. Translated to C.
16384 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16385 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16386 Translated to C.
16387 * grub-core/term/i386/pc/console.c (int10_9): New function.
16388 (grub_console_putchar): Likewise.
16389 * include/grub/i386/pc/console.h: Removed the not anymore shared
16390 functions.
16391
16392 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16393
16394 Move grub_chainloader_real_boot out of the kernel.
16395
16396 * grub-core/Makefile.am: Remove machine/loader.h.
16397 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16398 Removed.
16399 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16400 variable.
16401 (grub_relocator16_keep_a20_enabled): Likewise.
16402 (grub_relocator16_boot): Fill new variables.
16403 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16404 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16405 relocator.
16406 (grub_chainloader_unload): Likewise.
16407 (grub_chainloader_cmd): Likewise.
16408 * include/grub/i386/pc/loader.h: Removed.
16409 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16410 and esi. All initialisers updated.
16411
16412 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16413 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16414
16415 * Makefile.util.def (grub-mount): New util.
16416 * .bzrignore: Add grub-mount.
16417 * configure.ac: Check for fuse and enable grub-mount if available.
16418 * docs/man/grub-mount.h2m: New file.
16419 * util/grub-mount.c: Likewise.
16420
16421 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16422
16423 * grub-core/commands/efi/fixvideo.c: Gettextize.
16424 * grub-core/commands/hashsum.c: Likewise.
16425 * grub-core/commands/i386/cmostest.c: Likewise.
16426 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16427 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16428 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16429 * grub-core/commands/lsmmap.c: Likewise.
16430 * grub-core/commands/menuentry.c: Likewise.
16431 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16432 * grub-core/commands/setpci.c: Likewise.
16433 * grub-core/loader/i386/bsd.c: Likewise.
16434 * grub-core/loader/i386/linux.c: Likewise.
16435 * util/getroot.c: Likewise.
16436 * util/grub-editenv.c: Likewise.
16437 * util/grub-fstest.c: Likewise.
16438 * util/grub-mkfont.c: Likewise.
16439 * util/grub-mkimage.c: Likewise.
16440 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16441 * util/grub-pe2elf.c: Likewise.
16442 * util/grub-probe.c: Likewise.
16443 * util/grub-setup.c: Likewise.
16444 * util/ieee1275/ofpath.c: Likewise.
16445 * util/misc.c: Likewise.
16446 * util/raid.c: Likewise.
16447
16448 2011-11-11 Robert Millan <rmh@gnu.org>
16449
16450 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16451 __attribute__((unused)) from `os_dev', which *is* being used.
16452
16453 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16454
16455 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16456 forgotten define.
16457 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16458 GRUB_IA64_DL_GOT_ALIGN.
16459 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16460 GRUB_IA64_DL_TRAMP_ALIGN.
16461
16462 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16463
16464 Replace grub_fatal with normal errors in i386 linux loader.
16465
16466 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16467 (allocate_pages): Check find_efi_mmap_size return value.
16468 (grub_e820_add_region): Return error.
16469 (grub_linux_boot): Check mmap return value.
16470
16471 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 * grub-core/commands/acpihalt.c: Gettextized.
16474 * grub-core/commands/cacheinfo.c: Likewise.
16475 * grub-core/commands/cmp.c: Likewise.
16476 * grub-core/commands/efi/loadbios.c: Likewise.
16477 * grub-core/commands/gptsync.c: Likewise.
16478 * grub-core/commands/ieee1275/suspend.c: Likewise.
16479 * grub-core/commands/legacycfg.c: Likewise.
16480 * grub-core/commands/memrw.c: Likewise.
16481 * grub-core/commands/minicmd.c: Likewise.
16482 * grub-core/commands/parttool.c: Likewise.
16483 * grub-core/commands/time.c: Likewise.
16484 * grub-core/commands/videoinfo.c: Likewise.
16485 * grub-core/disk/geli.c: Likewise.
16486 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16487 * grub-core/disk/luks.c: Likewise.
16488 * grub-core/disk/lvm.c: Likewise.
16489 * grub-core/font/font_cmd.c: Likewise.
16490 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16491 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16492 * grub-core/gfxmenu/view.c: Likewise.
16493 * grub-core/kern/emu/hostdisk.c: Likewise.
16494 * grub-core/kern/emu/main.c: Likewise.
16495 * grub-core/kern/emu/misc.c: Likewise.
16496 * grub-core/kern/emu/mm.c: Likewise.
16497 * grub-core/kern/mips/arc/init.c: Likewise.
16498 * grub-core/kern/mips/loongson/init.c: Likewise.
16499 * grub-core/kern/partition.c: Likewise.
16500 * grub-core/lib/i386/halt.c: Likewise.
16501 * grub-core/lib/mips/arc/reboot.c: Likewise.
16502 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16503 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16504 * grub-core/loader/i386/xnu.c: Likewise.
16505 * grub-core/loader/multiboot.c: Likewise.
16506 * grub-core/net/bootp.c: Likewise.
16507 * grub-core/net/net.c: Likewise.
16508 * grub-core/normal/term.c: Likewise.
16509 * grub-core/partmap/bsdlabel.c: Likewise.
16510 * grub-core/parttool/msdospart.c: Likewise.
16511 * grub-core/term/gfxterm.c: Likewise.
16512 * grub-core/term/terminfo.c: Likewise.
16513 * grub-core/video/i386/pc/vbe.c: Likewise.
16514 * util/grub-menulst2cfg.c: Likewise.
16515 * util/grub-mkdevicemap.c: Likewise.
16516 * util/grub-mklayout.c: Likewise.
16517 * util/grub-mkrelpath.c: Likewise.
16518 * util/grub-script-check.c: Likewise.
16519 * util/ieee1275/grub-ofpathname.c: Likewise.
16520 * util/resolve.c: Likewise.
16521
16522 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16523
16524 Support %1$d syntax.
16525
16526 * tests/printf_unit_test.c: New file.
16527 * Makefile.util.def (printf_test): New test.
16528 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16529
16530 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16531
16532 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16533 fix.
16534
16535 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16536
16537 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16538 dprintf.
16539 * grub-core/font/font.c (grub_font_load): Likewise.
16540
16541 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16542
16543 * util/grub-macho2img.c: Add comment concerning gettext.
16544 * grub-core/lib/legacy_parse.c: Likewise.
16545
16546 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16547
16548 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16549 (grub_xvasprintf): Likewise.
16550
16551 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16552
16553 Add const keyword to grub_env_get and gettextize week days.
16554
16555 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16556 (grub_read_hook_datetime): Return const char *.
16557 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16558 updated.
16559 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16560 Mark for gettext.
16561 (grub_get_weekday_name): Return const char *. Call gettext.
16562 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16563 char * and len as the argument. All users updated.
16564 (grub_script_argv_split_append): Receive const char *.
16565 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16566 * include/grub/env.h (grub_env_get): Likewise.
16567 (grub_env_read_hook_t): Return const char *.
16568 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16569 (grub_script_argv_split_append): Likewise.
16570
16571 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16572
16573 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16574
16575 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16576
16577 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16578 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16579
16580 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16581
16582 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16583 Fix prototype.
16584
16585 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16586
16587 Fix mips compilation.
16588
16589 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16590 normal decoder.
16591 (hashes): Use in embed decoder as well (for sizes).
16592 (dec_stream_header): Fix embed decompressor logic.
16593 (dec_stream_footer): Likewise.
16594
16595 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16596
16597 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16598 an error and not a fatal on unrecognised relocation types.
16599
16600 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16603 Issue error rather than printf on unknown arguments.
16604
16605 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16606
16607 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16608 Make buf a const.
16609
16610 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16611
16612 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16613 Fix module name.
16614
16615 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16616
16617 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16618 leftover debug printf.
16619
16620 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16621
16622 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16623
16624 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16625
16626 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16627 A stylistic fix.
16628
16629 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16630
16631 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16632
16633 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16634
16635 Allow all modules to perform serial IO
16636
16637 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16638 * include/grub/serial.h (grub_serial_port_configure): New inline
16639 function.
16640 (grub_serial_port_fetch): Likewise.
16641 (grub_serial_port_put): Likewise.
16642 (grub_serial_port_fini): Likewise.
16643 (grub_serial_find): New proto.
16644
16645 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16646
16647 Put symlink at the end of the node and fix a potential
16648 memory corruption.
16649
16650 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16651 Make symlink into an array.
16652 (set_rockridge): Set have_symlink and alloc_dirents.
16653 (grub_iso9660_read_symlink): Use new layout.
16654 (grub_iso9660_iterate_dir): Fix memory corruption.
16655 Use new layout.
16656 (grub_iso9660_dir): Set have_symlink.
16657 (grub_iso9660_open): Likewise.
16658
16659 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16660
16661 Remove local keyword.
16662
16663 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16664 (version_test_gt): Likewise.
16665 (version_find_latest): Likewise.
16666 (gettext_printf): Likewise.
16667 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16668
16669 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16670
16671 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16672
16673 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 Fix ZFS memory and resource leaks.
16676
16677 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16678 All users updated.
16679 Free type on exit.
16680 (fill_vdev_info): New parameter inserted. All users updated.
16681 (check_pool_label): Likewise.
16682 (scan_disk): Likewise.
16683 (scan_devices): Close non-inserted disks.
16684 (fzap_iterate): Free l.
16685 (unmount_device): Free children descripto memory.
16686
16687 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16688
16689 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16690 argument (access out of bounds).
16691
16692 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16695 >= 6 drives.
16696
16697 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16698
16699 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16700 Fix declaration.
16701
16702 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16703
16704 Fix several memory leaks.
16705
16706 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16707 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16708 (grub_cpio_dir): Likewise.
16709 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16710 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16711 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16712 (grub_romfs_label): Likewise.
16713 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16714 (squash_unmount): New function.
16715 (grub_squash_dir): Fix memory leak.
16716 (grub_squash_open): Likewise.
16717 (grub_squash_read): Likewise.
16718 (grub_squash_mtime): Likewise.
16719 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16720 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16721 * util/grub-fstest.c (fstest): Likewise.
16722
16723 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16724
16725 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16726 avoid accessing beyond the array.
16727
16728 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16729
16730 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16731
16732 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16733
16734 Several AFFS fixes.
16735
16736 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16737 (GRUB_AFFS_FLAG_FFS): Removed.
16738 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16739 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16740 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16741 (grub_fshelp_node): Make block 32-bit.
16742 Add block_cache and last_block_cache.
16743 (grub_affs_read_block): Fill and use block cache.
16744 (grub_affs_read_file): Removed.
16745 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16746 boot block.
16747 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16748 safety.
16749 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16750 space.
16751 (grub_affs_close): Free block cache.
16752 (grub_affs_read): Use grub_fshelp_read_file directly.
16753
16754 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16755
16756 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16757 with no error set.
16758
16759 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16762 used variable.
16763 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16764 Likewise.
16765
16766 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16767
16768 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16769
16770 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16771 byteswap when needed.
16772
16773 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16774
16775 Fix FreeBSD compilation.
16776
16777 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16778 to avoid circular dependency.
16779 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16780 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16781 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16782
16783 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16784
16785 Fix ZFS crypto error types.
16786
16787 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16788 (grub_gcm_decrypt): Likewise.
16789 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16790 from PBKDF2.
16791
16792 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16793
16794 Illumos support.
16795
16796 * Makefile.util.def (10_illumos): New script.
16797 * configure.ac: Set COND_HOST_ILLUMOS.
16798 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16799 Support Illumos calls.
16800 (find_partition_start) [__sun__]: Likewise.
16801 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16802 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16803 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16804 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16805 device.
16806 * util/grub-probe.c (probe) [__sun__]: Do character check.
16807 * util/grub.d/10_illumos.in: New file.
16808
16809 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16810
16811 Support escaped commas in hostdisk.
16812
16813 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16814 (find_grub_drive): Use unescape_cmp.
16815 (make_device_name): Escape commas.
16816
16817 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16818
16819 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16820
16821 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16822
16823 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16824 variable.
16825
16826 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16827
16828 Support trampoline jumps on powerpc.
16829
16830 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16831 __ia64__ path.
16832 (grub_dl_load_segments): Set mod->sz.
16833 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16834 segments.
16835 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16836 (jump): Likewise.
16837 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16838 function.
16839 (trampoline): New struct.
16840 (trampoline_template): New const.
16841 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16842 * include/grub/dl.h (grub_dl): Add sz element.
16843 [__powerpc__]: Follow __ia64__.
16844 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16845 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16846 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16847 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16848
16849 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16850
16851 ZFS crypto support.
16852
16853 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16854 * grub-core/Makefile.core.def (zfscrypt): New module.
16855 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16856 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16857 it. All users updated.
16858 (grub_zfs_decrypt): New var.
16859 (grub_zfs_load_key): Likewise.
16860 (zio_checksum_functions): Add SHA256+MAC.
16861 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16862 (zio_read): Handle encrypted blocks.
16863 (zap_verify): Remove incorrect check.
16864 (fzap_iterate): Handle non-standard fzap.
16865 (zap_iterate): Likewise.
16866 (zap_iterate_u64): New function.
16867 (dnode_get_fullpath): Load keys.
16868 * grub-core/fs/zfs/zfscrypt.c: New file.
16869 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16870 (grub_crypto_ecb_encrypt): Make input const.
16871 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16872 (grub_crypto_ecb_encrypt): Make input const.
16873 (GRUB_CIPHER_AES): New macro.
16874 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16875 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16876 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16877 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16878 prefix. All users updated.
16879 (grub_zfs_add_key): New proto.
16880 (grub_zfs_decrypt): Likewise.
16881 (grub_zfs_load_key): Likewise.
16882 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16883 * util/grub-fstest.c (options): Add -K option.
16884 (argp_parser): Likewise.
16885
16886 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16887
16888 Support zle compression on ZFS.
16889
16890 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16891 (decomp_table): Add zle.
16892 * include/grub/zfs/zio.h (zio_compress): Add zle.
16893
16894 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16895
16896 Support BtrFS embedding.
16897
16898 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16899 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16900 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16901 * util/grub-setup.c (setup): Use fs embedding if available.
16902 Add additional sanity check.
16903
16904 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16905
16906 * util/grub-install.in: Fix condition for config_opt.
16907
16908 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 Support third redundancy strip on raidz3.
16911
16912 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16913 Return error on singularity. All users updated.
16914 (read_device): Don't stop on 3rd failure on raidz3.
16915
16916 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16917
16918 Support case-insensitive ZFS subvolumes.
16919
16920 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16921 All users updated.
16922 (zap_hash): Likewise.
16923 (name_cmp): New function.
16924 (zap_leaf_array_equal): New parameter case_insensitive.
16925 All users updated.
16926 (zap_leaf_lookup): Likewise.
16927 (fzap_lookup): Likewise.
16928 (zap_lookup): Likewise.
16929 (dnode_get_path): New parameter case_insensitive. Retrieve case
16930 sensitiviness of a volume. All users updated.
16931 (dnode_get_fullpath): New parameter case_insensitive.
16932 All users updated.
16933 (grub_zfs_dir): Set info.case_insensitiveness.
16934
16935 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16936
16937 Support second redundancy strip on raidz(2,3).
16938
16939 * grub-core/fs/zfs/zfs.c (powx): New array.
16940 (powx_inv): Likewise.
16941 (poly): New const.
16942 (xor_out): New function.
16943 (gf_mul): Likewise.
16944 (recovery): Likewise.
16945 (read_device): Use second redundancy strip.
16946
16947 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16948
16949 Use a power of generator representation of GF(256) multiplication group
16950 to save space time and complexity.
16951
16952 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16953 (raid6_table2): Likewise.
16954 (powx): New array.
16955 (powx_inv): Likewise.
16956 (poly): New const.
16957 (grub_raid_block_mul): Replace with ...
16958 (grub_raid_block_mulx): ...this.
16959 (grub_raid6_init_table): Rewritten.
16960 (grub_raid6_recover): Use power of generator representation.
16961
16962 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16965 for the right device.
16966
16967 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16968
16969 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16970 expected by grub-mkimage and it's more clear since there is no implicit
16971 padding.
16972
16973 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16974
16975 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16976 disk.
16977 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16978
16979 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16980
16981 * util/grub-mkrescue.in: Fix handling xorriso option.
16982
16983 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16984
16985 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16986 NULL.
16987
16988 2011-11-03 crocket <crockabiscuit@gmail.com>
16989
16990 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16991
16992 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16993
16994 XZ CRC64 and SHA256 support.
16995
16996 * Makefile.util.def (libgrubmods): Add crc64.c.
16997 * grub-core/Makefile.core.def (crc64): New module.
16998 * grub-core/lib/crc64.c: New file.
16999 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17000 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17001 Fix the type.
17002 (MAX_HASH_SIZE): New define.
17003 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17004 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17005 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17006 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17007 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17008 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17009 Handle non-crc32 hashes.
17010 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17011 (dec_stream_header): Handle non-crc32 hashes.
17012 (dec_stream_footer): Likewise.
17013 (dec_block_header): Likewise.
17014 (dec_main): Likewise.
17015 (xz_dec_init): Likewise.
17016 (xz_dec_reset): Likewise.
17017 (xz_dec_end): Likewise.
17018 * util/import_gcry.py: Add CRC64 line.
17019
17020 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17021
17022 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17023 as well.
17024
17025 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17026
17027 Make reiserfs label retrieval similar to other *_label functions.
17028
17029 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17030 (REISERFS_MAX_LABEL_LENGTH): Removed.
17031 (REISERFS_LABEL_OFFSET): Likewise.
17032 (grub_reiserfs_label): Rewritten.
17033
17034 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17037 field.
17038
17039 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17040
17041 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17042
17043 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17044
17045 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17046 drive failure on both raidz and raidz2.
17047
17048 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17049
17050 Fix RAIDZ(2) for >= 5 devices.
17051
17052 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17053 asize argument. All users updated.
17054
17055 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17056
17057 Fix RAIDZ(2).
17058
17059 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17060 (fill_vdev_info_real): Set ashift.
17061 (read_device): Rewrite RAIDZ part based on reverse engineering.
17062
17063 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17064
17065 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17066 don't report potentially unavialiable fields in debug output.
17067 (find_path): Fix double-free and memory leak.
17068
17069 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17070
17071 Read label on UFS1.
17072
17073 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17074 (grub_ufs_fs): Always set .label.
17075
17076 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17077
17078 Use shifts in UFS.
17079
17080 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17081 (grub_ufs_data): New field log2_blksz.
17082 (grub_ufs_read_file): Use shifts.
17083 (grub_ufs_mount): Check block size and logarithm it.
17084
17085 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17086
17087 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17088 long symlinks.
17089
17090 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17091
17092 Handle symlinks and long names on tar and cpio.
17093
17094 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17095 (ATTR_FILE): Likewise.
17096 (ATTR_DIR): Likewise.
17097 (ATTR_LNK): Likewise.
17098 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17099 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17100 L and K entries.
17101 (grub_cpio_mount): Zero-fill data.
17102 (handle_symlink): New function.
17103 (grub_cpio_dir): Handle symlinks.
17104 (grub_cpio_open): Likewise.
17105 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17106
17107 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 Fix iso9660 filename limitations and fix memory leaks.
17110
17111 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17112 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17113
17114 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17115
17116 Fix JFS file name length limitations.
17117
17118 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17119 (grub_jfs_diropen): Fix maximum filename length.
17120 (grub_jfs_getent): Fix filename length.
17121 (grub_jfs_lookup_symlink): Fix size checks.
17122
17123 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17124
17125 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17126 string.
17127
17128 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17129
17130 Leverage BFS implementation to read AFS.
17131
17132 * Makefile.util.def (libgrubmods): Add afs.c.
17133 * grub-core/Makefile.core.def (afs): New module
17134 * grub-core/fs/afs.c: New file.
17135 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17136
17137 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17138
17139 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17140
17141 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17142
17143 * grub-core/fs/bfs.c: Run indent.
17144
17145 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17146
17147 BFS implementation based on the specification.
17148
17149 * grub-core/fs/bfs.c: New file.
17150 * Makefile.util.def (libgrubmods): Add bfs.c.
17151 * grub-core/Makefile.core.def (bfs): New module.
17152
17153 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17154
17155 * util/grub-fstest.c (cmd_cp): Clarify error message.
17156 (cmd_cmp): Likewise.
17157
17158 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17159
17160 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17161 and befs_be.
17162
17163 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17164
17165 Remove afs and befs because of copyright problem.
17166
17167 * grub-core/fs/afs.c: Removed.
17168 * grub-core/fs/afs_be.c: Removed.
17169 * grub-core/fs/befs.c: Removed.
17170 * grub-core/fs/befs_be.c: Removed.
17171 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17172 * grub-core/Makefile.core.def (afs): Removed.
17173 (afs_be): Likewise.
17174 (befs): Likewise.
17175 (befs_be): Likewise.
17176
17177 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17178
17179 Prefer rockridge over Joliet.
17180
17181 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17182 to ...
17183 (set_rockridge): ... here.
17184 (grub_iso9660_mount): Check rockridge on the primary label when
17185 discovering. Ignore Joliet if Rockridge is present.
17186
17187 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17188
17189 Use shifts in nilfs2.
17190
17191 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17192 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17193 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17194 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17195 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17196 (grub_nilfs2_entries_per_block): Replaced with ...
17197 (grub_nilfs2_log_entries_per_block_log): ... this.
17198 (grub_nilfs2_blocks_per_group): Replaced with ...
17199 (grub_nilfs2_blocks_per_group_log): ... this.
17200 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17201 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17202 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17203 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17204 (grub_nilfs2_palloc_entry_offset): Replaced ...
17205 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17206 (grub_nilfs2_dat_translate): Use shifts.
17207 (grub_nilfs2_read_inode): Likewise.
17208 (GRUB_MOD_INIT): Ensure that logs are correct.
17209
17210 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17211
17212 Use shifts in minix filesystem.
17213
17214 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17215 (GRUB_MINIX_ZONE2SECT): Likewise.
17216 (grub_minix_data): Replace block_size with log_block_size.
17217 (grub_minix_read_file): Use shifts.
17218 (grub_minix_mount): Check block size and take a logarithm.
17219
17220 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17221
17222 Use shifts in squash4.
17223
17224 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17225 (squash_mount): Check block size and take logarithm.
17226 (direct_read): Use shifts.
17227
17228 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17229
17230 Correct befs block counting logic.
17231
17232 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17233 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17234 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17235 (grub_afs_read_inode): Use block_shift.
17236 (RANGE_SHIFT): New definition.
17237 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17238 unexpected conditions, use shifts and appropriate types.
17239 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17240
17241 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17242
17243 * grub-core/disk/raid.c (scan_devices): Check partition.
17244 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17245
17246 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17247
17248 Support BFS (befs) UUID.
17249
17250 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17251 (grub_afs_small_data_element_header): New struct.
17252 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17253 (grub_afs_read_attribute) [MODE_BFS]: New function.
17254 (grub_afs_iterate_dir): Allocate for complete inode.
17255 (grub_afs_mount): Likewise.
17256 (grub_afs_uuid) [MODE_BFS]: New function.
17257 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17258
17259 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17260
17261 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17262 (zfs_unmount): Fix memory leak.
17263
17264 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17265
17266 Support NTFS reparse points.
17267
17268 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17269 (symlink_descriptor): New struct.
17270 (grub_ntfs_read_symlink): New function.
17271 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17272 (grub_ntfs_open): Likewise.
17273
17274 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17275
17276 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17277
17278 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17279
17280 fstest xnu_uuid subcommand.
17281
17282 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17283 grub-core/commands/xnu_uuid.c.
17284 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17285 (fstest): Handle xnu_uuid.
17286 (options): Document xnu_uuid.
17287 (argp_parser): Parse xnu_uuid.
17288
17289 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17290
17291 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17292 -l argument. Add newline at the end if printing.
17293 (GRUB_MOD_INIT): Document -l.
17294
17295 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17298
17299 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17300
17301 ZFS multi-device and version 33 support.
17302
17303 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17304 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17305 (grub_zfs_data): Add multidev-ice-related fields.
17306 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17307 (dva_get_offset): Make dva const.
17308 (zfs_fetch_nvlist): New function.
17309 (fill_vdev_info_real): Likewise.
17310 (fill_vdev_info): Likewise.
17311 (check_pool_label): Likewise.
17312 (scan_disk): Likewise.
17313 (scan_devices): Likewise.
17314 (read_device): Likewise.
17315 (read_dva): Likewise.
17316 (zio_read_gang): Use read_dva.
17317 (zio_read_data): Likewise.
17318 (zap_leaf_lookup): Add missing endian conversion.
17319 (zap_verify): Add missing endian conversion. All users updated.
17320 (fzap_lookup): Likewise.
17321 (fzap_iterate): Likewise.
17322 (dnode_get_path): Handle SA bonus.
17323 (nvlist_find_value): Make input const. All users updated.
17324 (unmount_device): New function.
17325 (zfs_unmount): Use unmount_device.
17326 (zfs_mount): Use scan_disk.
17327 (zfs_mtime): New function.
17328 (grub_zfs_open): Handle system attributes.
17329 (fill_fs_info): Likewise.
17330 (grub_zfs_dir): Likewise.
17331 (grub_zfs_fs): Add mtime.
17332 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17333 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17334 (SA_MTIME_OFFSET): Likewise.
17335 (SA_SYMLINK_OFFSET): Likewise.
17336 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17337 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17338 (fstest): Support zfsinfo.
17339 (argp_parser): Likewise.
17340
17341 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17342
17343 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17344 error.
17345
17346 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17347
17348 ZFS fixes.
17349
17350 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17351 sharing the same block. Iterate over correct number of indices.
17352 (dnode_get_path): Handle symlinks correctly.
17353
17354 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17355
17356 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17357
17358 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17359
17360 Read label on HFS+.
17361
17362 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17363 (grub_hfsplus_btree_search): Fix types.
17364 (grub_hfsplus_label): Implement.
17365
17366 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17367
17368 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17369
17370 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17373
17374 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17375
17376 Fix symlink handling on iso9660.
17377
17378 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17379 All users updated.
17380 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17381 (grub_iso9660_read_symlink): Moved most of code ...
17382 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17383
17384 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17385
17386 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17387 Use union to avoid breaking strict-aliasing rules.
17388
17389 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17390
17391 Support multi-extent iso files.
17392
17393 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17394 Add node.
17395 (grub_fshelp_node): Revamp. All users updated.
17396 (FLAG_*): New enum.
17397 (read_node): New function.
17398 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17399 All users updated.
17400 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17401 (get_node_size): New function.
17402 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17403 entries.
17404 Fix memory leak on . and ..
17405 (grub_iso9660_read): Use read_node.
17406 (grub_iso9660_close): Free node.
17407
17408 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17409
17410 Fix tar 4G limit and handle paths containing dot.
17411
17412 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17413 (canonicalize): New function.
17414 (grub_cpio_find_file): Use canonicalize. Store offs in
17415 grub_disk_addr_t.
17416 (grub_cpio_dir): Use grub_disk_addr_t.
17417 (grub_cpio_open): Likewise.
17418
17419 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17420
17421 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17422
17423 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17424 unused flags.
17425 (grub_squash_inode): Add long_file and block_size.
17426 (grub_squash_cache_inode): New struct.
17427 (grub_squash_dirent): Make types into enum.
17428 (SQUASH_TYPE_LONG_REGULAR): New type.
17429 (grub_squash_frag_desc): Add field size.
17430 (SQUASH_BLOCK_FLAGS): New enum.
17431 (grub_squash_data): Use grub_squash_cache_inode.
17432 (grub_fshelp_node): Make ino_chunk 64-bit.
17433 (read_chunk): Minor argument change. All users updated.
17434 (squash_mount): Use correct le_to_cpu.
17435 (grub_squash_open): Handle LONG_REGULAR.
17436 (direct_read): New function.
17437 (grub_squash_read_data): Handle blocks correctly.
17438
17439 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17440
17441 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17442
17443 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17444
17445 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17446
17447 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17448
17449 Fix 2G limit on ZFS.
17450
17451 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17452 types.
17453 (uberblock_verify): Likewise.
17454 (dmu_read): Likewise.
17455 (grub_zfs_read): Likewise. Remove invalid cast.
17456
17457 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17458
17459 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17460 (grub_jfs_blkno): Fix incorrect shift.
17461 (grub_jfs_read_file): Use more appropriate types.
17462
17463 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 Support triple indirect on minix2 and minix3.
17466
17467 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17468 Declare triple_indir_zone.
17469 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17470 indirect.
17471
17472 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17473
17474 Minix FS fixes.
17475
17476 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17477 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17478 Rename ctime to mtime. All users updated.
17479 (grub_minix_get_file_block): Fix types and double indirect computations.
17480
17481 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17482
17483 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17484 if no label is found.
17485 (grub_fat_iterate_dir): Fix file size type.
17486 (grub_fat_iterate_dir): Likewise.
17487
17488 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17489
17490 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17491 save some space.
17492 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17493 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17494
17495 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17496
17497 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17498
17499 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17500
17501 * util/import_gcry.py: Accept space between # and include.
17502
17503 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17506
17507 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17508
17509 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17510
17511 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17512 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17513 yylex_strncpy.
17514 * grub-core/script/yylex.l: Add fine-grained #pragma.
17515
17516 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17517
17518 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17519 New inline function.
17520 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17521 Likewise.
17522 (memset) [GRUB_UTIL]: Likewise.
17523 (memcmp) [GRUB_UTIL]: Likewise.
17524
17525 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17526
17527 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17528 inline function rather than a define.
17529
17530 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17531
17532 * util/grub-setup.c: Add missing include.
17533
17534 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17535
17536 * util/ieee1275/grub-ofpathname.c: Add missing include.
17537
17538 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17539
17540 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17541 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17542 Likewise.
17543
17544 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17545
17546 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17547 grub_memcmp usage.
17548
17549 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17550
17551 * util/grub-install.in: Add datarootdir as per automake manual
17552 suggestion.
17553 * util/grub-mknetdir.in: Likewise.
17554
17555 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17556
17557 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17558 suggestion.
17559 * util/grub.d/10_kfreebsd.in: Likewise.
17560 * util/grub.d/10_linux.in: Likewise.
17561 * util/grub.d/10_netbsd.in: Likewise.
17562 * util/grub.d/10_windows.in: Likewise.
17563 * util/grub.d/20_linux_xen.in: Likewise.
17564
17565 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17566
17567 Remove redundant grub_kernel_image_size.
17568
17569 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17570 _edata and _start.
17571 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17572 the small code. It moves it only by few bytes but simplifies the code.
17573 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17574 _start.
17575 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17576 (grub_kernel_image_size): Removed.
17577 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17578 (grub_kernel_image_size): Removed.
17579 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17580 compiled with Apple toolchain.
17581 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17582 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17583 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17584 (grub_total_module_size): Likewise.
17585 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17586 Removed.
17587 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17588 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17589 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17590 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17591 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17592 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17593 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17594 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17595 Removed.
17596 (grub_total_module_size): Removed.
17597 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17598 (image_targets): Likewise.
17599 Set .compressed_size to no field on sparc.
17600 (generate_image): Remove kernel_image_size handling.
17601
17602 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17603
17604 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17605 NULL pointer dereference.
17606
17607 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17608
17609 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17610 done with a dedicated section.
17611
17612 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17613 Ensure the correct position of boot_path.
17614 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17615 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17616 other fields.
17617 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17618 * include/grub/boot.h: Removed. All references removed.
17619 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17620 Removed.
17621 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17622
17623 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17624
17625 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17626 name.
17627
17628 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17629
17630 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17631
17632 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17633
17634 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17635 Don't add the bogus brackets.
17636
17637 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17638
17639 ExFAT support.
17640
17641 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17642 * grub-core/Makefile.core.def (exfat): New module.
17643 * grub-core/fs/exfat.c: New file.
17644 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17645 (GRUB_FAT_ATTR_*): Make into an enum.
17646 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17647 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17648 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17649 (GRUB_FAT_MAXFILE): Removed.
17650 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17651 (grub_current_fat_bpb_t): New type.
17652 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17653 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17654 (grub_fat_dir_node_t): New type.
17655 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17656 (fat_log2) [MODE_EXFAT]: Removed.
17657 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17658 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17659 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17660 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17661 (grub_fat_label) [MODE_EXFAT]: New function.
17662 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17663 reserved_first_sector to 0.
17664
17665 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17666
17667 Move grub_reboot out of the kernel.
17668
17669 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17670 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17671 * grub-core/lib/efi/reboot.c: ... here.
17672 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17673 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17674 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17675 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17676 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17677 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17678 * grub-core/lib/ieee1275/reboot.c: ... here.
17679 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17680 * grub-core/lib/mips/arc/reboot.c: ... here.
17681 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17682 * grub-core/lib/mips/loongson/reboot.c: ...here.
17683 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17684 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17685 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17686 * include/grub/i386/reboot.h: New file.
17687 * include/grub/mips/loongson/ec.h: Fix includes.
17688 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17689 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17690 * grub-core/lib/i386/reboot.c: New file.
17691
17692 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17693
17694 Make grub_prefix into module to fix the arbitrary limit and save
17695 some space.
17696
17697 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17698 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17699 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17700 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17701 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17702 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17703 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17704 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17705 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17706 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17707 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17708 * include/grub/ia64/efi/kernel.h: Removed.
17709 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17710 (grub_prefix): Removed.
17711 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17712 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17713 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17714 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17715 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17716 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17717 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17718 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17719 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17720 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17721 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17722 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17723 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17724 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17725 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17726 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17727 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17728 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17729 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17730 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17731 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17732 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17733 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17734 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17735 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17736 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17737 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17738 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17739 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17740 from module.
17741 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17742 prefix_end.
17743 (image_targets): Likewise.
17744 (generate_image): Put prefix as a module.
17745
17746 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17747
17748 Replace grub_module_iterate with FOR_MODULES.
17749
17750 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17751 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17752 (grub_efi_modules_addr): ...this.
17753 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17754 (grub_efi_init): Set grub_modbase.
17755 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17756 (grub_modbase): New variable.
17757 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17758 (grub_modbase): New variable.
17759 (grub_machine_init): Set grub_modbase.
17760 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17761 (grub_modbase): New variable.
17762 (grub_machine_init): Set grub_modbase.
17763 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17764 (grub_modbase): New variable.
17765 (grub_machine_init): Set grub_modbase.
17766 * grub-core/kern/main.c (grub_module_iterate): Remove.
17767 (grub_modules_get_end): Use grub_modbase.
17768 (grub_load_modules): Use FOR_MODULES.
17769 (grub_load_config): Likewise.
17770 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17771 (grub_modbase): New variable.
17772 (grub_machine_init): Set grub_modbase.
17773 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17774 (grub_modbase): New variable.
17775 (grub_machine_init): Set grub_modbase.
17776 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17777 Removed.
17778 (grub_modbase): New variable.
17779 (grub_machine_init): Set grub_modbase.
17780 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17781 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17782 (grub_module_iterate): Likewise.
17783 (grub_modbase): New variable declaration.
17784 (FOR_MODULES): New macro.
17785
17786 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17787
17788 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17789 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17790
17791 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17792
17793 Fix few obvious type discrepancies.
17794
17795 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17796 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17797 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17798 variable.
17799 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17800 and connected types.
17801 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17802 offset.
17803 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17804 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17805 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17806 and connected types.
17807
17808 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17809
17810 Fix python 3.x incompatibilities.
17811
17812 * gentpl.py: Put brackets around print strings.
17813 * util/import_gcry.py: Open explicitly as utf-8.
17814 Use in instead of has_key.
17815
17816 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17817
17818 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17819 (GRUB_XFS_INO_AGBITS): Make into inline function.
17820 (GRUB_XFS_INO_INOINAG): Likewise.
17821 (GRUB_XFS_INO_AG): Likewise.
17822 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17823 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17824 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17825 (GRUB_XFS_EXTENT_SIZE): Likewise.
17826 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17827 (GRUB_XFS_NEXT_DIRENT): Likewise.
17828 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17829 (grub_xfs_read_file): Fix offset type.
17830
17831 2011-10-15 Robert Millan <rmh@gnu.org>
17832
17833 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17834
17835 2011-10-15 Robert Millan <rmh@gnu.org>
17836
17837 Fix build problem on FreeBSD and GNU/kFreeBSD.
17838
17839 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17840
17841 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17842
17843 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17844
17845 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17846 types.
17847 (grub_hfsplus_btree_recoffset): Likewise.
17848 (grub_hfsplus_btree_recptr): Likewise.
17849 (grub_hfsplus_find_block): Likewise.
17850 (grub_hfsplus_btree_search): Likewise.
17851 (grub_hfsplus_read_block): Likewise.
17852 (grub_hfsplus_read_file): Likewise.
17853 (grub_hfsplus_mount): Likewise.
17854 (grub_hfsplus_btree_iterate_node): Likewise.
17855 (grub_hfsplus_btree_search): Likewise.
17856 (grub_hfsplus_iterate_dir): Likewise.
17857 (grub_hfsplus_read): A small code simplification.
17858
17859 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17860
17861 * grub-core/kern/emu/hostdisk.c
17862 (convert_system_partition_to_system_disk): Don't assume that children
17863 of mapper nodes are mapper nodes.
17864
17865 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17866
17867 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17868 * include/grub/misc.h (grub_isxdigit): New function.
17869 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17870 switched to grub_isxdigit.
17871 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17872 number starting with a letter.
17873
17874 2011-10-09 Robert Millan <rmh@gnu.org>
17875
17876 LVM support for FreeBSD and GNU/kFreeBSD.
17877
17878 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17879 GNU/kFreeBSD.
17880 (LVM_DEV_MAPPER_STRING): Move from here ...
17881 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17882 * util/getroot.c: Include `<grub/util/lvm.h>'.
17883 (grub_util_get_dev_abstraction): Enable
17884 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17885 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17886 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17887 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17888 support it.
17889 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17890 GNU/kFreeBSD.
17891 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17892 when LVM abstraction is required for ${GRUB_DEVICE}.
17893
17894 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17895
17896 Add support for LZO compression in GRUB:
17897 - import of minilzo library,
17898 - LZO decompression for btrfs,
17899 - lzop files decompression.
17900
17901 * grub-core/io/lzopio.c: New file.
17902 * grub-core/lib/adler32.c: Likewise.
17903 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17904 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17905 * grub-core/lib/minilzo/minilzo.c: Likewise.
17906 * grub-core/lib/minilzo/minilzo.h: Likewise.
17907 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17908 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17909 grub-core/lib/minilzo/minilzo.c to common.
17910 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17911 cflags in cppflags.
17912 * grub-core/Makefile.core.def (btrfs): Likewise.
17913 * grub-core/Makefile.core.def (lzopio): New module.
17914 (adler32): Likewise.
17915 * grub-core/fs/btrfs.c: Include minilzo.h.
17916 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17917 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17918 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17919 (grub_btrfs_lzo_decompress): New function.
17920 (grub_btrfs_extent_read): Add support for LZO compression type.
17921 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17922 (GRUB_USHRT_MAX): Likewise.
17923 (GRUB_UINT_MAX): Likewise.
17924 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17925 (UINT_MAX): Likewise.
17926 (CHAR_BIT): Likewise.
17927 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17928 grub-core/lib/posix_wrap/limits.h
17929 (UCHAR_MAX): Likewise.
17930 * include/grub/file.h (grub_file_filter_id): New compression filter
17931 GRUB_FILE_FILTER_LZOPIO.
17932 * include/grub/file.h (grub_file_filter_id): Set
17933 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17934 * include/grub/types.h (grub_get_unaligned16): New function.
17935 (grub_get_unaligned32): Likewise.
17936 (grub_get_unaligned64): Likewise.
17937 * util/import_gcry.py (cryptolist): Add adler32.
17938
17939 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17940
17941 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17942 in perspective decreases the complexity of build system and fixes
17943 compilation right now.
17944
17945 2011-10-01 Ales Nesrsta <starous@volny.cz>
17946
17947 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17948 (fixed problem related to using UHCI with coreboot).
17949
17950 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17951
17952 * gentpl.py: Use Autogen macros so that the output template file
17953 (Makefile.tpl) size is reduced.
17954
17955 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17956
17957 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17958 extra_dist.
17959
17960 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17961
17962 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17963 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17964
17965 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17966
17967 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17968 _fullpath.
17969
17970 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17971
17972 Remove extra declaration of sleep for mingw32.
17973
17974 * util/misc.c (sleep) [__MINGW32__]: Removed.
17975 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17976
17977 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17978
17979 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17980 type and packname.
17981 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17982 Resurrected.
17983 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17984 (grub_netbsd_btinfo_bootwedge): New struct.
17985 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17986 New function.
17987 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17988
17989 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17990
17991 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17992 loader.
17993
17994 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17995
17996 Fix incorrect identifiers in bash-completion.
17997
17998 * util/bash-completion.d/grub-completion.bash.in
17999 (_grub_mkpasswd-pbkdf2): Rename to ...
18000 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18001 (_grub_script-check): Rename to ...
18002 (_grub_script_check): ... this. All users updated.
18003
18004 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18005
18006 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18007 Return 0 if disk isn't biosdisk.
18008
18009 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18010
18011 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18012 on NetBSD.
18013 * Makefile.util.def (grub-fstest): Likewise.
18014
18015 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18016
18017 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18018 Get sector size from disk label.
18019
18020 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18021
18022 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18023 */README* as well as README*.
18024 Reported by: Axel Beckert.
18025
18026 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18027
18028 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18029 case of less than 256 MiB of RAM.
18030
18031 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18032
18033 * grub-core/commands/wildcard.c (make_regex): Handle @.
18034
18035 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18036
18037 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18038
18039 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18040
18041 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18042 AC_LANG_CONFTEST macros.
18043
18044 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18045
18046 Add grub-fstest option to uncompress data for commands.
18047
18048 * util/grub-fstest.c (uncompress): New var.
18049 (options): New option -u.
18050
18051 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18052
18053 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18054 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18055
18056 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18057
18058 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18059 file type was not recognized correctly (not gzip or corrupted).
18060
18061 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18062
18063 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18064 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18065
18066 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18067
18068 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18069 loongson.
18070 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18071 video_radeon_fuloong2e.
18072 * grub-core/video/radeon_fuloong2e.c: New file.
18073 * include/grub/video.h (grub_video_id_t): Add new ID
18074 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18075
18076 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18079 define.
18080 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18081 that PRID matches the detected subplatform and reset the subplatform
18082 if it doesn't.
18083
18084 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18085
18086 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18087
18088 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18089
18090 Fix PCI iterating on functions >= 4.
18091
18092 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18093 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18094 Removed.
18095 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18096 (grub_pci_read): Fix bitmask.
18097 (grub_pci_read_word): Likewise.
18098 (grub_pci_read_byte): Likewise.
18099 (grub_pci_write): Likewise.
18100 (grub_pci_write_word): Likewise.
18101 (grub_pci_write_byte): Likewise.
18102
18103 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18104
18105 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18106 can still be specified in TARGET_CFLAGS)
18107
18108 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18109
18110 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18111
18112 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18113 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18114 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18115 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18116 (FULOONG): Rename to ...
18117 (FULOONG2F): ... this. All users updated.
18118 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18119 (machtype_fuloong2f_str): ... this.
18120 (machtype_fuloong2e_str): New string.
18121 Check for machtype_fuloong2e_str.
18122 * grub-core/loader/mips/linux.c (loongson_machtypes)
18123 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18124 * grub-core/term/serial.c (loongson_defserial)
18125 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18126 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18127 loongson_defserial.
18128 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18129 Rename to ...
18130 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18131 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18132 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18133 to IMAGE_FULOONG2F_FLASH. All users updated.
18134 (image_targets): Rename images.
18135 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18136
18137 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18138
18139 Make enable of disk cache statistics code configurable.
18140
18141 * configure.ac: --enable-cache-stats added.
18142 * config.h.in (DISK_CACHE_STATS): New define.
18143 * grub-core/Makefile.core.def (cacheinfo): New command.
18144 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18145 * grub-core/commands/cacheinfo.c: New file.
18146 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18147 moved to cacheinfo.c.
18148 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18149 debug code.
18150 * include/grub/disk.h: Likewise.
18151
18152 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18153
18154 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18155 * grub-core/Makefile.am: Likewise.
18156
18157 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18158
18159 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18160 non-zero pull.
18161
18162 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18163
18164 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18165 All users updated.
18166 (grub_jfs_lookup_symlink): Use correct starting inode.
18167
18168 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18169
18170 * util/grub-setup.c (main): Add missing gcry initialisation.
18171
18172 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18173
18174 Don't accept text modes on EFI when booting Linux.
18175
18176 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18177 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18178
18179 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18180 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18181
18182 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18183 use of "/path/.." as in grub-install for EFI as well as handling
18184 symlinks correctly.
18185 Fixes Debian bug #637768.
18186
18187 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18188
18189 * util/grub-probe.c: Remove duplicate #include.
18190
18191 2011-08-10 Robert Millan <rmh@gnu.org>
18192
18193 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18194
18195 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18196 function.
18197 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18198 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18199
18200 2011-08-03 Robert Millan <rmh@gnu.org>
18201
18202 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18203 la_array as packed.
18204 Reported by: Zachary Bedell
18205
18206 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18207
18208 * configure.ac: The Loongson port requires grub-mkfont due to its
18209 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18210 be built.
18211
18212 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18213
18214 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18215 processing arguments (otherwise help2man fails when GRUB has not yet
18216 been installed).
18217
18218 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18219
18220 New script grub-mkstandalone.
18221
18222 * Makefile.util.def (grub-mkstandalone): New script.
18223 * docs/man/grub-mkstandalone.h2m: New file.
18224 * util/grub-mkstandalone.in: Likewise.
18225
18226 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18227
18228 Support ATA disks with 4K sectors.
18229
18230 * include/grub/ata.h (grub_ata): New member log_sector_size.
18231 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18232 (grub_ata_identify): Read sector size.
18233 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18234
18235 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18236
18237 * util/grub-install.in: Don't use uhci outside of x86.
18238
18239 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18240
18241 * util/grub-mkrescue.in: Add missing quotes.
18242
18243 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18244
18245 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18246 dereference.
18247
18248 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18249
18250 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18251
18252 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18253
18254 * include/grub/video.h: add missing EXPORT_FUND on
18255 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18256
18257 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18258
18259 * include/grub/mips/kernel.h: Fix define conflict.
18260
18261 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18262
18263 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18264 all four ways.
18265
18266 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18267
18268 Preferred resolution detection for VBE.
18269
18270 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18271 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18272 the Flat Panel extension, in line with the X.org VESA driver.
18273 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18274 New function.
18275 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18276 (grub_vbe_bios_read_edid): Likewise.
18277 (grub_vbe_get_preferred_mode): Likewise.
18278 (grub_video_vbe_setup): When the mode is "auto", try to get the
18279 preferred mode from VBE, and use the largest mode that is no larger
18280 than the preferred mode (some BIOSes expose a preferred mode that is
18281 not in their mode list!). If this fails, fall back to 640x480 as a
18282 safe conservative choice.
18283 (grub_video_vbe_get_edid): New function.
18284 (grub_video_vbe_adapter): Add get_edid.
18285 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18286 (struct grub_video_adapter): Add get_edid.
18287 (grub_video_edid_checksum): Add prototype.
18288 (grub_video_edid_preferred_mode): Likewise.
18289 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18290 structure.
18291
18292 * grub-core/commands/videoinfo.c (print_edid): New function.
18293 (grub_cmd_videoinfo): Print EDID if available.
18294
18295 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18296 is more appropriate on a wider range of platforms than 640x480.
18297 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18298 documentation.
18299
18300 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18301
18302 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18303
18304 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18305
18306 * po/POTFILES.in: Regenerate.
18307
18308 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18309
18310 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18311 incorrect memory usage.
18312
18313 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18314
18315 * util/grub-install.in: Source grub-mkconfig_lib.
18316
18317 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18318
18319 Remove getroot.c from core on emu platform.
18320
18321 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18322 kern/emu/raid.c.
18323 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18324 useless.
18325 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18326 * util/getroot.c (get_win32_path): ... here.
18327 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18328 * util/getroot.c (fini_libzfs): ... here.
18329 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18330 * util/getroot.c (grub_get_libzfs_handle): ... here.
18331 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18332 Moved from here...
18333 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18334 * grub-core/kern/emu/misc.c
18335 (grub_make_system_path_relative_to_its_root): Moved from here...
18336 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18337 * grub-core/kern/emu/getroot.c: Moved from here ...
18338 * util/getroot.c: ... here. All users updated.
18339 * grub-core/kern/emu/raid.c: Moved from here ...
18340 * util/raid.c: ... here. All users updated.
18341
18342 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18343
18344 * po/POTFILES.in: Regenerate.
18345
18346 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18347
18348 Fix compilation on GNU/Linux.
18349
18350 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18351 Disable geli.
18352 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18353 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18354 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18355
18356 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18357 2011-07-07 Michael Gorven <michael@gorven.za.net>
18358 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18359
18360 LUKS and GELI support.
18361
18362 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18363 grub-core/disk/luks.c, grub-core/disk/geli.c,
18364 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18365 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18366 grub-core/lib/arg.c.
18367 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18368 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18369 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18370 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18371 (grub-bin2h): Add libgcry.a.
18372 (grub-mkimage): Likewise.
18373 (grub-mkrelpath): Likewise.
18374 (grub-script-check): Likewise.
18375 (grub-editenv): Likewise.
18376 (grub-mkpasswd-pbkdf2): Likewise.
18377 (grub-pe2elf): Likewise.
18378 (grub-fstest): Likewise.
18379 (grub-mkfont): Likewise.
18380 (grub-mkdevicemap): Likewise.
18381 (grub-probe): Likewise.
18382 (grub-ofpath): Likewise.
18383 (grub-mklayout): Likewise.
18384 (example_unit_test): Likewise.
18385 (grub-menulst2cfg): Likewise.
18386 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18387 * grub-core/Makefile.core.def (cryptodisk): New module.
18388 (luks): Likewise.
18389 (geli): Likewise.
18390 * grub-core/disk/AFSplitter.c: New file.
18391 * grub-core/disk/cryptodisk.c: Likewise.
18392 * grub-core/disk/geli.c: Likewise.
18393 * grub-core/disk/luks.c: Likewise.
18394 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18395 grub_util_is_lvm.
18396 (grub_util_get_dm_abstraction): New function.
18397 (grub_util_follow_gpart_up): Likewise.
18398 (grub_util_get_geom_abstraction): Likewise.
18399 (grub_util_get_dev_abstraction): Use new functions.
18400 (grub_util_pull_device): Pull GELI and LUKS.
18401 (grub_util_get_grub_dev): Handle LUKS and GELI.
18402 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18403 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18404 (follow_geom_up): Removed.
18405 (grub_util_fd_seek): New function.
18406 (open_device): Use grub_util_fd_seek.
18407 (nread): Rename to ..
18408 (grub_util_fd_read): ... this. All users updated.
18409 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18410 (grub_crypto_cbc_decrypt): Likewise.
18411 (grub_crypto_hmac_write): Likewise.
18412 (grub_crypto_hmac_buffer): Likewise.
18413 (grub_password_get): Extend to util.
18414 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18415 New member modname.
18416 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18417 * include/grub/cryptodisk.h: New file.
18418 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18419 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18420 LUKS and GELI.
18421 (grub_util_follow_gpart_up): New proto.
18422 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18423 (grub_util_fd_read): Likewise.
18424 (grub_cryptodisk_cheat_mount): Likewise.
18425 (grub_util_cryptodisk_print_uuid): Likewise.
18426 (grub_util_get_fd_sectors): Likewise.
18427 * util/grub-fstest.c (mount_crypt): New var.
18428 (fstest): Mount crypto if requested.
18429 (options): New option -C.
18430 (argp_parser): Parse -C.
18431 (main): Init and fini gcry.
18432 * util/grub-install.in: Support cryptodisk install.
18433 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18434 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18435 cryptodisk.
18436 (prepare_grub_to_access_device): Likewise.
18437 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18438 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18439 (probe_cryptodisk_uuid): New function.
18440 (probe_abstraction): Likewise.
18441 (probe): Use new functions.
18442 * util/import_gcry.py: Create Makefile.utilgcry.def.
18443 Add modname member.
18444
18445 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18446
18447 Lazy device scanning.
18448
18449 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18450 (grub-setup): Remove util/raid.c.
18451 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18452 * grub-core/disk/lvm.c (scan_depth): New variable.
18453 (grub_lvm_iterate): Rescan if necessary.
18454 (find_lv): New function based on grub_lvm_open.
18455 (grub_lvm_open): Use find_lv. Rescan on error.
18456 (is_node_readable): New function.
18457 (is_lv_readable): Likewise.
18458 (grub_lvm_scan_device): Skip already found disks.
18459 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18460 Stop if searched device is found and readable.
18461 * grub-core/disk/raid.c (inscnt): New variable.
18462 (scan_depth): Likewise.
18463 (scan_devices): New function based on grub_raid_register. Abort if
18464 looked for device is found.
18465 (grub_raid_iterate): Rescan if needed.
18466 (find_array): NEw function based on -grub_raid_open.
18467 (grub_raid_open): Use find_array and rescan.
18468 (insert_array): Set became_readable_at.
18469 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18470 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18471 New function.
18472 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18473 (grub_util_pull_device): New function.
18474 (grub_util_get_grub_dev): Call grub_util_pull_device.
18475 * util/raid.c: Moved to ..
18476 * grub-core/kern/emu/raid.c: ... here.
18477 (grub_util_raid_getmembers): New parameter "bootable".
18478 All users updated. Support 1.x.
18479 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18480 All users updated.
18481 * include/grub/disk.h (grub_disk_pull_t): New enum.
18482 (grub_disk_dev): Change iterate prototype.
18483 All users updated.
18484 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18485 New proto.
18486 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18487 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18488 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18489 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18490 All users updated.
18491 * include/grub/util/raid.h: Removed.
18492
18493 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18494
18495 * po/POTFILES.in: Regenerate.
18496
18497 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18498
18499 Unify sparc init with other ieee1275.
18500
18501 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18502 instead of kern/sparc64/ieee1275/init.c.
18503 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18504 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18505 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18506 grub/machine/kernel.h.
18507 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18508 (grub_claim_heap) [__sparc__]: Use sparc version.
18509 (grub_machine_init): Moved args parsing to
18510 (grub_parse_cmdline): ...this.
18511 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18512 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18513 New definition.
18514 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18515
18516 Move BOOTP to separate file.
18517
18518 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18519 * grub-core/net/net.c: Move all BOOTP functions to
18520 * grub-core/net/bootp.c: ... here.
18521
18522 Use frame interface on PXE.
18523
18524 * grub-core/Makefile.core.def (pxecmd): Removed.
18525 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18526 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18527 * grub-core/i386/pc/pxe.c: Moved from here ...
18528 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18529 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18530 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18531
18532 EFI network support.
18533
18534 * grub-core/Makefile.core.def (efinet): New module.
18535 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18536 here...
18537 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18538 All users updated.
18539 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18540 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18541 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18542 * grub-core/net/drivers/efi/efinet.c: New file.
18543 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18544 (grub_efi_net_config): New extern var.
18545
18546 Various cleanups and bugfixes.
18547
18548 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18549 error.
18550 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18551 disk declared as partition.
18552 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18553 leak on failure.
18554 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18555 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18556 (grub_debug_zalloc): Likewise.
18557 (grub_debug_realloc): Likewise.
18558 (grub_debug_memalign): Likewise.
18559 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18560 Check that target is IPv4.
18561 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18562 local-mac-address as fallback.
18563 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18564 memory leak.
18565 * grub-core/net/ip.c (ipchksum): Rename to ...
18566 (grub_net_ip_chksum): ... this. All users updated.
18567 (grub_net_recv_ip_packets): Special handling for DHCP.
18568 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18569
18570 Unify prefix handling
18571
18572 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18573 (grub_machine_get_bootlocation): ... this.
18574 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18575 (grub_machine_get_bootlocation): ... this.
18576 (grub_prefix): New variable.
18577 (prefix): Removed.
18578 (root_dev): New variable.
18579 (dir): Likewise.
18580 (main): Use new variables.
18581 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18582 Revamped into ...
18583 (grub_machine_get_bootlocation): ... this.
18584 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18585 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18586 (grub_machine_get_bootlocation): ... this.
18587 (grub_machine_set_prefix): Removed.
18588 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18589 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18590 Revamped into ...
18591 (grub_machine_get_bootlocation): ... this.
18592 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18593 (grub_set_prefix_and_root): ... this. All users updated.
18594 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18595 Revamped into ...
18596 (grub_machine_get_bootlocation): ... this.
18597 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18598 (grub_machine_get_bootlocation): New proto.
18599 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18600
18601 Less intrusive and more reliable seek on network implementation.
18602
18603 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18604 (grub_file_seek): Don't call grub_file_net_seek.
18605 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18606 (grub_net_fs_read_real): .. this.
18607 (grub_net_seek_real): Use net->offset.
18608 (grub_net_fs_read): Seek if necessary.
18609
18610 Unify IEEE1275 netwotk config with the other platforms.
18611
18612 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18613 New variable.
18614 (grub_machine_get_bootlocation): Support network.
18615 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18616 Support type and device parsing.
18617 (grub_ieee1275_get_device_type): New function.
18618 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18619 into ...
18620 (grub_ieee1275_net_config_real): ... this.
18621 (grub_ofnet_probecards): Removed.
18622 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18623 * include/grub/ieee1275/ofnet.h: Removed.
18624 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18625 extern var.
18626 (grub_ieee1275_get_device_type): New function.
18627
18628 Unify network device closing across platforms and make more robust.
18629
18630 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18631 grub_grubnet_fini.
18632 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18633 already.
18634 * grub-core/net/net.c (grub_net_network_level_interface_register):
18635 Update num_ifaces.
18636 (grub_net_card_unregister): Close all interfaces.
18637 (receive_packets): Don't poll if no iterfaces are registered.
18638 Open if necessary.
18639 (grub_net_fini_hw): New function.
18640 (grub_net_restore_hw): Likewise.
18641 (fini_hnd): New variable.
18642 (GRUB_MOD_INIT): Register preboot hook.
18643 (GRUB_MOD_FINI): Run and unregister preboot hook.
18644
18645 Poll network cards when idle.
18646
18647 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18648 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18649 * grub-core/net/net.c (receive_packets): Save last poll time.
18650 (grub_net_poll_cards_idle_real): New function.
18651 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18652 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18653 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18654
18655 Rename ofnet interfaces.
18656
18657 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18658 (grub_ofnet_findcards): Use ofnet_%s names.
18659
18660 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18661
18662 Cleanup socket opening.
18663
18664 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18665 (grub_net_fs_close): Likewise.
18666 (grub_net_fs_read_real): Use eof member.
18667 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18668 (+grub_net_udp_close): New inline function.
18669
18670 * include/grub/net/tftp.h: Moved to the top of ...
18671 * grub-core/net/tftp.c: ... here.
18672 * include/grub/net/ip.h: Moved mostly to the top of ...
18673 * grub-core/net/ip.c: ... here.
18674 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18675 * grub-core/net/ethernet.c: ... here.
18676
18677 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18678
18679 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18680 FS name.
18681
18682 * include/grub/net/ip.h (ipv4_ini): Removed.
18683 (ipv4_fini): Likewise.
18684
18685 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18686 (grub_net_send_ip_packets): Likewise.
18687
18688 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18689
18690 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18691 grub_read_cmos prototype.
18692
18693 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18694
18695 VGA text support in qemu-mips
18696
18697 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18698 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18699 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18700 text.
18701 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18702 * grub-core/kern/vga_init.c: ... this.
18703 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18704 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18705 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18706 Adjust.
18707 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18708 GRUB_MACHINE_PCI_IO_BASE.
18709
18710 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18711
18712 MIPS qemu flash support.
18713
18714 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18715 magic.
18716 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18717 (grub_machine_init): Probe memory if its size isn't known.
18718 * util/grub-mkimage.c (image_targets): Add flash targets.
18719 (generate_image): Handle flash targets.
18720
18721 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18722
18723 MIPS qemu at_keyboard support.
18724
18725 * gentpl.py (videoinkernel): Add qemu-mips.
18726 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18727 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18728 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18729 modules.
18730 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18731 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18732 * grub-core/term/serial.c (grub_serial_register)
18733 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18734
18735 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18736
18737 CMOS support on sparc.
18738
18739 * gentpl.py (cmos): Add powerpc and sparc.
18740 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18741 powerpc and sparc.
18742 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18743 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18744 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18745 grub_set_datetime_cmos.
18746 * grub-core/lib/ieee1275/cmos.c: New file.
18747 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18748 (find_rtc): Set no_ieee1275_rtc on error.
18749 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18750 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18751 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18752 fail. Move value to argument. All users updated
18753 (grub_cmos_write): Likewise.
18754 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18755 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18756 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18757 grub_get_datetime_cmos and grub_set_datetime_cmos.
18758
18759 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18760
18761 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18762 sourcing grub-mkconfig_lib.
18763 * util/update-grub_lib.in: Likewise.
18764 * util/grub.d/00_header.in: Likewise.
18765 * util/grub.d/10_hurd.in: Likewise.
18766 * util/grub.d/10_kfreebsd.in: Likewise.
18767 * util/grub.d/10_linux.in: Likewise.
18768 * util/grub.d/10_netbsd.in: Likewise.
18769 * util/grub.d/10_windows.in: Likewise.
18770 * util/grub.d/20_linux_xen.in: Likewise.
18771 * util/grub.d/30_os-prober.in: Likewise.
18772
18773 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18774
18775 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18776 default_bg_color rather than black.
18777 (grub_gfxterm_fullscreen): Likewise.
18778 (grub_gfxterm_background_color_cmd): Save new background color in
18779 default_bg_color.
18780
18781 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18782
18783 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18784
18785 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18786
18787 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18788 mismerge.
18789
18790 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18791
18792 Chainloading on coreboot support.
18793
18794 * grub-core/Makefile.core.def (chain): Add coreboot.
18795 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18796
18797 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18798
18799 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18800 if it happens.
18801
18802 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18803
18804 Implement time command.
18805
18806 * grub-core/Makefile.core.def (time): New module.
18807 * grub-core/commands/time.c: New file.
18808 * grub-core/script/parser.y: Remove "time" keyword.
18809 * grub-core/script/yylex.l: Likewise.
18810
18811 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18812
18813 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18814
18815 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18816
18817 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18818 when handling leftovers.
18819
18820 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18821
18822 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18823 so that help2man doesn't fail.
18824
18825 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18826
18827 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18828 type in pointers on sparc64.
18829 (get_card_packet): Likewise.
18830
18831 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18832
18833 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18834 with `*'.
18835 (grub_cmd_videoinfo): Fetch current video mode.
18836
18837 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18838
18839 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18840 because of underlying system restrictions.
18841
18842 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18843
18844 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18845 necessary.
18846
18847 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18848
18849 Coreboot video support.
18850
18851 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18852 (vbe): Likewise.
18853 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18854 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18855 here ...
18856 * grub-core/kern/i386/int.S: ... here.
18857 * grub-core/video/i386/pc/vbe.c: Updated includes.
18858 * grub-core/video/i386/pc/vga.c: Likewise.
18859 * include/grub/i386/coreboot/memory.h
18860 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18861 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18862 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18863 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18864 Disable interrupts.
18865 * include/grub/i386/pc/vga.h: Removed. All users updated.
18866
18867 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18868
18869 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18870 definitions for dprintf.
18871 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18872
18873 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18874
18875 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18876 prototype.
18877 (get_card_packet): Likewise.
18878
18879 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18880
18881 Display the path of the file when file is not found
18882
18883 * grub-core/fs/fat.c: Display the filename when file is not found.
18884 * grub-core/fs/fshelp.c: Likewise.
18885 * grub-core/fs/hfs.c: Likewise.
18886 * grub-core/fs/jfs.c: Likewise.
18887 * grub-core/fs/minix.c: Likewise.
18888 * grub-core/fs/ufs.c: Likewise.
18889 * grub-core/fs/btrfs.c: Likewise.
18890 * grub-core/commands/i386/pc/play.c: Likewise.
18891
18892 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18893
18894 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18895 pointer checks before calling grub_free().
18896 * grub-core/commands/wildcard.c (match_devices): Likewise.
18897 * grub-core/commands/wildcard.c (match_files): Likewise.
18898 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18899 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18900 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18901 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18902 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18903 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18904 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18905 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18906 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18907
18908 2011-06-25 Patrick <p55@mailinator.com>
18909
18910 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18911
18912 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18913
18914 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18915 (grub_pxe_send): Likewise.
18916 (GRUB_MOD_INIT): Fix types.
18917
18918 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18919
18920 * grub-core/io/xzio.c: Fix code style issues
18921
18922 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18923 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18924
18925 Network infrastructure.
18926 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18927
18928 * include/grub/net/arp.h: New file.
18929 * include/grub/net/device.h: Likewise.
18930 * include/grub/net/ethernet.h: Likewise.
18931 * include/grub/net/ip.h: Likewise.
18932 * include/grub/net/netbuff.h: Likewise.
18933 * include/grub/net/tftp.h: Likewise.
18934 * include/grub/net/udp.h: Likewise.
18935 * include/grub/ieee1275/ofnet.h: Likewise.
18936 * include/grub/emu/export.h: Likewise.
18937 * include/grub/net.h: Likewise.
18938 * grub-core/net/arp.c: Likewise.
18939 * grub-core/net/ethernet.c: Likewise.
18940 * grub-core/net/ip.c: Likewise.
18941 * grub-core/net/udp.c: Likewise.
18942 * grub-core/net/tftp.c: Likewise.
18943 * grub-core/net/netbuff.c: Likewise.
18944 * grub-core/net/net.c: Likewise.
18945 * grub-core/net/drivers/emu/emunet.c: Likewise.
18946 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18947 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18948 export.h.
18949 * grub-core/Makefile.core.def (net): New module.
18950 (tftp): Likewise.
18951 (ofnet): Likewise.
18952 (emunet): Likewise.
18953 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18954 network protocols.
18955 * grub-core/kern/device.c (grub_net_open) : New variable.
18956 (grub_device_open): Handle network device.
18957 (grub_device_close): Likewise.
18958 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18959 (grub_grubnet_fini): Likewise.
18960 (grub_file_seek): Seek in network device.
18961 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18962 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18963 network root.
18964 (grub_machine_fini): Call grub_grubnet_fini.
18965 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18966 network.
18967 (grub_ieee1275_get_aliasdevname): New function.
18968 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18969 Add unofficial Solaris network info.
18970 (grub_multiboot_make_mbi): Likewise.
18971 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18972 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18973 * include/grub/device.h (grub_fs): Removed.
18974 * include/grub/err.h (grub_err_t): Add network-related values.
18975 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18976 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18977 (grub_ieee1275_get_aliasdevname): New proto.
18978 * include/grub/net.h: Rewritten.
18979
18980 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18981
18982 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18983 names.
18984
18985 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18986
18987 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18988 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18989 it truncates the output.
18990 Reported by: Ximin Luo.
18991
18992 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18993
18994 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18995
18996 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18997
18998 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18999 partmap before abstraction.
19000
19001 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19002
19003 * util/grub-mkconfig_lib.in: Add missing quotes.
19004
19005 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19006
19007 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19008 old method if mountinfo would return /dev/root and /dev/root doesn't
19009 exist.
19010
19011 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19012
19013 ZFS zlib support
19014
19015 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19016 (decomp_table): Add zlib entries.
19017 (zio_read): USe 8 bits for compression function rather than 3.
19018 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19019
19020 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19021
19022 * grub-core/disk/ahci.c: Add missing license statements.
19023 * grub-core/fs/romfs.c: Likewise.
19024 * grub-core/lib/ia64/setjmp.S: Likewise.
19025 * grub-core/loader/i386/pc/freedos.c: Likewise.
19026 * grub-core/loader/ia64/efi/linux.c: Likewise.
19027 * grub-core/video/colors.c: Likewise.
19028 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19029
19030 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19031
19032 AHCI support.
19033
19034 * grub-core/Makefile.core.def (ata_pthru): Removed.
19035 (ahci): New module.
19036 (pata): Likewise.
19037 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19038 on unload.
19039 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19040 readwrite.
19041 (grub_hdparm_do_check_powermode_cmd): Likewise.
19042 (grub_hdparm_do_smart_cmd): Likewise.
19043 (grub_hdparm_set_val_cmd): Likewise.
19044 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19045 * grub-core/disk/ahci.c: New file.
19046 * grub-core/disk/ata.c: Factor out the low-level part into ...
19047 * grub-core/disk/pata.c: ... here.
19048 * grub-core/disk/ata_pthru.c: Contents moved to ...
19049 * grub-core/disk/pata.c: ... here.
19050 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19051 (grub_scsi_iterate): Use grub_scsi_names.
19052 (grub_scsi_open): Likewise.
19053 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19054 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19055 (grub_ata_regs_t): New struct.
19056 (grub_disk_ata_pass_through_parms): Likewise.
19057 (grub_ata_device): Renamed to ...
19058 (grub_ata): ... this.
19059 (grub_ata_dev): New struct.
19060 Removed all low-level inline functions.
19061 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19062 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19063 iterate hooks and open. All users updated.
19064 * util/grub-install.in: Handle AHCI disk module.
19065
19066 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19067
19068 Add support for DRI and RSTn markers in JPEG files.
19069
19070 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19071 (JPEG_MARKER_RST0): Likewise.
19072 (JPEG_MARKER_RST1): Likewise.
19073 (JPEG_MARKER_RST2): Likewise.
19074 (JPEG_MARKER_RST3): Likewise.
19075 (JPEG_MARKER_RST4): Likewise.
19076 (JPEG_MARKER_RST5): Likewise.
19077 (JPEG_MARKER_RST6): Likewise.
19078 (JPEG_MARKER_RST7): Likewise.
19079 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19080 (grub_jpeg_decode_dri): New function.
19081 (grub_jpeg_decode_sos): Move image data related part into
19082 grub_jpeg_decode_data function.
19083 (grub_jpeg_decode_data): New function.
19084 (grub_jpeg_reset): New function.
19085 (grub_jpeg_decode_jpeg): Handle new markers.
19086
19087 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19088
19089 * util/ieee1275/ofpath.c (check_sas): Close fd.
19090 (main): Free of_path.
19091 Reported by: David Volgyes <dvolgyes>.
19092
19093 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19094
19095 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19096 Reported by: David Volgyes <dvolgyes>.
19097
19098 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19099
19100 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19101 file after stat.
19102 Reported by: David Volgyes <dvolgyes>.
19103
19104 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19105
19106 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19107
19108 Reported by: David Volgyes <dvolgyes>.
19109
19110 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19111
19112 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19113 Prevent memory leak.
19114
19115 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19116
19117 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19118 (main): Close file.
19119 Reported by: David Volgyes <dvolgyes>.
19120
19121 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19122
19123 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19124 to continue if allocation is failed.
19125
19126 Reported by: David Volgyes <dvolgyes>.
19127
19128 2011-06-23 David Volgyes <dvolgyes>
19129
19130 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19131 dereference.
19132
19133 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19134
19135 Fix spurious warning.
19136
19137 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19138 (acorn_partition_map_find): Use .bin member.
19139
19140 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19141
19142 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19143 /dev/root as a valid device.
19144
19145 2011-06-23 Jim Meyering <meyering@redhat.com>
19146
19147 Avoid NULL deref in grub_device_open.
19148
19149 * grub-core/kern/device.c (grub_device_open): Don't dereference
19150 a NULL pointer upon failed grub_env_get.
19151
19152 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19153
19154 Support non-512B sectors and agglomerate reads.
19155
19156 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19157 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19158 (disk_io_guid): Removed.
19159 (make_devices): Locate solely by BlockIO.
19160 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19161 (grub_efidisk_read): Use read_blocks.
19162 (grub_efidisk_write): Use write_blocks.
19163 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19164 log_sector_size.
19165 (get_safe_sectors): Handle non-512B sectors.
19166 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19167 sectors.
19168 (grub_biosdisk_write): Handle non-512B sectors.
19169 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19170 (grub_scsi_read): Remove special non-512B block handling (now handled
19171 one level up).
19172 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19173 and do sanity checks.
19174 (grub_disk_adjust_range): Handle non-512B sectors.
19175 (transform_sector): New function.
19176 (grub_disk_read_small): Likewise.
19177 (grub_disk_read): Rewritten.
19178 (grub_disk_write): Handle non-512B sectors.
19179 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19180 log_sector_size.
19181 (open_device): Use log_sector_size.
19182 (grub_util_biosdisk_read): Likewise.
19183 (grub_util_biosdisk_write): Likewise.
19184 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19185 non-512B sectors.
19186 (pc_partition_map_embed): Likewise.
19187 * include/grub/disk.h (grub_disk): New field log_sector_size.
19188 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19189 (GRUB_DISK_CACHE_BITS): Increased to 6.
19190 * util/grub-fstest.c (fstest): New command testload.
19191 (argp_parser): Likewise.
19192
19193 2011-06-16 Robert Millan <rmh@gnu.org>
19194
19195 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19196 `ata' driver on kernel of FreeBSD 9.
19197
19198 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19199 (get_ataraid_disk_name): New functions.
19200 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19201 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19202 get_ataraid_disk_name() and get_ada_disk_name().
19203
19204 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19205
19206 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19207 input format.
19208
19209 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19210
19211 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19212 `ftp.gnu.org' for `alpha.gnu.org'.
19213
19214 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19215
19216 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19217 partitions under /dev/disk/by-id/.
19218
19219 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19220
19221 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19222 after ten consecutive open failures. Scanning all the way up to
19223 10000 is excessive and can cause serious performance problems in
19224 some configurations.
19225 Fixes Ubuntu bug #787461.
19226
19227 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19228
19229 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19230 opening new one.
19231
19232 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19233 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19234
19235 Don't stat devices unless we have to.
19236
19237 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19238 dir == /dev/mapper.
19239 (grub_guess_root_device): Use already known os_dev if possible.
19240 * grub-core/kern/emu/hostdisk.c
19241 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19242 if device is known to be a dm one.
19243
19244 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19245
19246 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19247 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19248 Reported by: Pawel Tecza.
19249
19250 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19251
19252 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19253 (lsefisystab): Likewise.
19254 (lssal): Likewise.
19255 (lsefimmap): Likewise.
19256 (hdparm): Enable on qemu-mips.
19257 (setjmp): Add ia64 nodist.
19258 (serial): Simplify tags.
19259
19260 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19261
19262 * Makefile.util.def (grub-ofpathname): Install manual page.
19263
19264 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19265
19266 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19267
19268 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19269
19270 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19271
19272 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19273
19274 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19275 into dprintf.
19276
19277 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19278
19279 Use full 64-bit division.
19280
19281 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19282 (grub_divmod64): ... this.
19283 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19284 version.
19285
19286 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19287
19288 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19289 `source'.
19290
19291 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19292
19293 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19294 to avoid accidents when debugging with 'sh -x'.
19295 * grub-core/gensyminfo.sh.in: Likewise.
19296 * tests/example_scripted_test.in: Likewise.
19297 * tests/grub_cmd_regexp.in: Likewise.
19298 * tests/grub_script_blanklines.in: Likewise.
19299 * tests/grub_script_dollar.in: Likewise.
19300 * tests/grub_script_expansion.in: Likewise.
19301 * tests/grub_script_final_semicolon.in: Likewise.
19302 * tests/partmap_test.in: Likewise.
19303 * tests/util/grub-shell-tester.in: Likewise.
19304 * tests/util/grub-shell.in: Likewise.
19305
19306 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19307
19308 Move gfxmenu color handling to video, so that gfxterm can use it
19309 too.
19310
19311 * grub-core/gfxmenu/named_colors.c: Move to ...
19312 * grub-core/video/colors.c: ... here. Rename
19313 grub_gui_get_named_color to grub_video_get_named_color.
19314 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19315 * grub-core/video/colors.c (my_isxdigit): ... here.
19316 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19317 Move to ...
19318 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19319 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19320 to ...
19321 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19322
19323 * include/grub/gui.h (grub_gui_color_t): Move to ...
19324 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19325 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19326 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19327 * include/grub/gui.h (grub_gui_map_color): Move to ...
19328 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19329 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19330 to ...
19331 * include/grub/video.h (grub_video_get_named_color): ... here.
19332 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19333 * include/grub/video.h (grub_video_parse_color): ... here.
19334
19335 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19336 video/colors.c.
19337 (gfxmenu): Remove gfxmenu/named_colors.c.
19338 (video) [videomodules]: Add video/colors.c.
19339
19340 Add a background_color command.
19341
19342 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19343 function.
19344 (GRUB_MOD_INIT): Register background_color command.
19345 (GRUB_MOD_FINI): Unregister background_color command.
19346 (redraw_screen_rect): Allow blend/replace of text layer to be
19347 controlled independently from whether there is a background bitmap.
19348 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19349 changing bitmap.
19350
19351 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19352
19353 Patch BPB in ntldr and chainloader --bpb.
19354
19355 * grub-core/fs/fat.c: Include grub/fat.h.
19356 (grub_fat_bpb): Moved to ...
19357 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19358 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19359 grub/ntfs.h.
19360 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19361 Moved from here...
19362 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19363 here.
19364 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19365 New function.
19366 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19367 (GRUB_MOD_INIT): Show --bpb.
19368 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19369 * grub-core/normal/main.c (features): New variable.
19370 (GRUB_MOD_INIT): Set feature_* variables.
19371 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19372 proto.
19373 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19374
19375 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19376
19377 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19378 for cleanness.
19379
19380 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19381
19382 FreeDOS direct loading support.
19383
19384 * docs/grub.texi (Supported OS): Add FreeDOS.
19385 * grub-core/Makefile.core.def (freedos): New module.
19386 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19387 variable.
19388 (grub_relocator16_boot): Handle %ebx.
19389 * grub-core/lib/i386/relocator16.S: Likewise.
19390 * grub-core/loader/i386/pc/freedos.c: New file.
19391
19392 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19393
19394 Long Linux command line support.
19395
19396 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19397 (maximal_cmdline_size): New variable.
19398 (allocate_pages): Use maximal_cmdline_size.
19399 (grub_cmd_linux): Set and use maximal_cmdline_size.
19400 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19401 (allocate_pages): Use maximal_cmdline_size.
19402 (grub_cmd_linux): Set and use maximal_cmdline_size.
19403 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19404 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19405 and cmdline_size.
19406
19407 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19408 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19409
19410 Improve devmapper support
19411
19412 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19413 (grub_util_is_lvm): New function.
19414 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19415 than lvm if not dmraid.
19416 Handle mapped md nodes.
19417 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19418 (grub_util_device_is_mapped): ... this. Make always available. All users
19419 updated.
19420 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19421 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19422 dmraid nodes.
19423 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19424
19425 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19426
19427 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19428
19429 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19430 * grub-core/modinfo.sh.in: New file.
19431 * grub-core/Makefile.core.def (modinfo.sh): New script.
19432 * util/grub-mknetdir.in: Use modinfo.sh.
19433 * util/grub-mkrescue.in: Likewise.
19434
19435 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19436
19437 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19438 Fix potential usage of Elf32 instead of Elf64 when compiling on
19439 32-bit architecture. Add endianness macros while on it.
19440
19441 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19442
19443 Use mipsel- rather than mips- in directories involving mipsel ports to
19444 allow both endiannesses coexist.
19445
19446 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19447 mips. All conditions adjusted.
19448 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19449 variable.
19450 * util/grub-install.in: Adjust conditions to take renaming into account.
19451 * util/grub-mkimage.c (image_targets): Likewise. New target
19452 mips-qemu_mips-elf for bigendian mips.
19453
19454 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19455
19456 Avoid unnecessary copying on MIPS.
19457
19458 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19459 early if src == dest.
19460 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19461 compression is none.
19462
19463 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19464
19465 Reduce memory footprint on SGI by putting modules before the kernel
19466 as opposed to after.
19467
19468 * grub-core/Makefile.core.def (kernel): Increase linking address.
19469 (none_decompress): Likewise.
19470 (xz_decompress): Likewise.
19471 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19472 address.
19473 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19474 layout change.
19475 (grub_arch_modules_addr): New function.
19476 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19477 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19478 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19479 here.
19480 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19481 (grub_total_modules_size): ... this. Make global.
19482 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19483 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19484 New definition.
19485 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19486 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19487 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19488 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19489 * util/grub-mkimage.c (image_target_desc): New flag
19490 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19491 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19492 (generate_image): Handle images with modules before kernel.
19493
19494 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19495
19496 Prevent potential loss of memory map by overwrite on qemu-mips.
19497
19498 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19499 Save ram size in $s4.
19500 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19501 All users changed to grub_arch_memsize.
19502 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19503 Loongson.
19504 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19505 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19506 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19507 external variable.
19508
19509 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19510
19511 * .bzrignore: Remove grub-dumpbios.
19512
19513 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19514
19515 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19516 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19517 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19518 existing options which append).
19519 * docs/grub.texi (Simple configuration): Document new options.
19520 Reported by: Ian Jackson. Fixes Debian bug #617538.
19521
19522 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19523
19524 * util/grub-fstest.c (cmd_cat): New function.
19525 (fstest): Handle CMD_CAT.
19526 (options): Add cat.
19527 (argp_parser): Handle cat.
19528
19529 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19530
19531 * Makefile.util.def (grub-bin2h): Don't install.
19532 * docs/man/grub-bin2h.h2m: Remove.
19533
19534 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19535
19536 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19537 place.
19538
19539 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19540
19541 Reenable qemu-mips port.
19542
19543 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19544 Fix small arc bug while on it.
19545 * gentpl.py: Handle qemu_mips.
19546 * grub-core/Makefile.am: Likewise.
19547 * grub-core/Makefile.core.def: Likewise.
19548 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19549 inappropriate includes.
19550 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19551 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19552 * grub-core/kern/main.c (grub_modules_get_end)
19553 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19554 * grub-core/kern/mips/qemu-mips: Moved to ..
19555 * grub-core/kern/mips/qemu_mips: ... this.
19556 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19557 (grub_machine_init): Call terminfo_init and serial_init.
19558 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19559 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19560 New variable.
19561 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19562 parameter passing.
19563 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19564 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19565 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19566 * include/grub/mips/qemu_mips/cmos.h: New file.
19567 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19568 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19569 Removed.
19570 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19571 Use correct mips-style address.
19572 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19573 (GRUB_TICKS_PER_SECOND): Removed.
19574 (grub_get_rtc): Likewise.
19575 (grub_cpu_idle): Likewise.
19576 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19577 New definition.
19578 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19579 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19580 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19581 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19582 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19583 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19584 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19585 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19586
19587 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19588
19589 SGI ARCS port.
19590
19591 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19592 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19593 platforms.
19594 * configure.ac: New target mips-arc.
19595 * gentpl.py: Likewise.
19596 * grub-core/Makefile.am: Likewise.
19597 * grub-core/Makefile.core.def: Likewise.
19598 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19599 (none_decompress): Likewise.
19600 (lsdev): New module.
19601 (datetime): Use lib/arc/datetime.c on ARC.
19602 (part_dvh): New module.
19603 * grub-core/commands/arc/lsdev.c: New file.
19604 * grub-core/disk/arc/arcdisk.c: Likewise.
19605 * grub-core/kern/mips/arc/init.c: Likewise.
19606 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19607 aligned addresses.
19608 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19609 support.
19610 (grub_arch_dl_relocate_symbols): Likewise.
19611 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19612 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19613 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19614 platforms.
19615 * grub-core/lib/arc/datetime.c: New file.
19616 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19617 pci.h on non-loongson.
19618 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19619 (grub_linux_boot): Set unused registers to 0.
19620 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19621 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19622 * grub-core/mmap/mips/uppermem.c: ...here.
19623 * grub-core/partmap/dvh.c: New file.
19624 * grub-core/term/arc/console.c: Likewise.
19625 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19626 (grub_terminfo_set_current): Add terminal "arc".
19627 (grub_terminfo_readkey): Support ARC sequences.
19628 * include/grub/arc/arc.h: New file.
19629 * include/grub/arc/console.h: Likewise.
19630 * include/grub/disk.h (grub_disk_dev_id): Add
19631 GRUB_DISK_DEVICE_ARCDISK_ID.
19632 * include/grub/mips/arc/kernel.h: New file.
19633 * include/grub/mips/arc/memory.h: Likewise.
19634 * include/grub/mips/arc/time.h: Likewise.
19635 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19636 * include/grub/mips/kernel.h (grub_halt): ... here.
19637 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19638 here...
19639 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19640 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19641 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19642 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19643 proto.
19644 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19645 from here ...
19646 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19647 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19648 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19649 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19650 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19651 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19652 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19653 (grub_phys_addr_t): Moved from here ...
19654 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19655 (grub_vtop): Moved from here ...
19656 * include/grub/mips/memory.h (grub_vtop): ... here.
19657 (grub_map_memory): Moved from here ...
19658 * include/grub/mips/memory.h (grub_map_memory): ... here.
19659 (grub_unmap_memory): Moved from here ...
19660 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19661 (grub_machine_mmap_iterate): Moved from here ...
19662 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19663 (grub_mmap_get_lower): Moved from here ...
19664 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19665 (grub_mmap_get_upper): Moved from here ...
19666 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19667 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19668 here ...
19669 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19670 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19671 here ...
19672 * include/grub/mips/time.h (grub_get_rtc): ... here.
19673 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19674 here ...
19675 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19676 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19677 here ...
19678 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19679 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19680 definition.
19681 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19682 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19683 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19684 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19685 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19686 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19687 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19688 (GRUB_MACHINE_LINK_ADDR): Likewise.
19689 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19690 to 6.
19691 * util/grub-install.in: Run dvhtool on ARC.
19692 * util/grub-mkimage.c (image_targets): Add mips-arc.
19693 (generate_image): Handle ECOFF output for mips-arc.
19694
19695 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19696
19697 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19698 blocks.
19699
19700 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19703 after enabling port.
19704
19705 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19706
19707 Skip incorrect USB devices.
19708
19709 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19710 configcnt == 0.
19711 * include/grub/usb.h (grub_usb_err_t): New enum value
19712 GRUB_USB_ERR_BADDEVICE.
19713
19714 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19715
19716 Fuloong video init support.
19717
19718 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19719 well.
19720 (grub_vga_read_arx): New function.
19721 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19722 definition.
19723 (framebuffer): New members io, mmioptr and mmiobase.
19724 (read_sis_cmd): New function.
19725 (write_sis_cmd): Likewise.
19726 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19727 rather than 640x400.
19728 * grub-core/video/sis315_init.c: New file.
19729
19730 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19731
19732 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19733 non-loongson.
19734 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19735 to grub_dl_register_symbol.
19736
19737 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19738
19739 Fix compilation errors.
19740
19741 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19742 potentially unused.
19743 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19744 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19745 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19746 to loongson machines.
19747
19748 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19749
19750 Several FS mtime support.
19751
19752 * grub-core/fs/affs.c (grub_affs_time): New struct.
19753 (grub_affs_file): New field mtime.
19754 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19755 type. Removed 'size'. New field 'di'. All users updated.
19756 (grub_affs_mount): Simplify checsum checking.
19757 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19758 (grub_affs_dir): Handle mtime.
19759 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19760 (grub_cpio_dir): Likewise.
19761 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19762 (grub_hfs_filerec): New field mtime.
19763 (grub_hfs_dir): Handle mtime.
19764 (grub_hfs_mtime): New function.
19765 (grub_hfs_fs): Register grub_hfs_mtime.
19766 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19767 (grub_iso9660_dir): New field mtime.
19768 (grub_fshelp_node): New field dirent.
19769 (iso9660_to_unixtime): New function.
19770 (iso9660_to_unixtime2): Likewise.
19771 (grub_iso9660_read_symlink): Use node->dirent.
19772 (grub_iso9660_iterate_dir): Likewise.
19773 (grub_iso9660_dir): Set mtime.
19774 (grub_iso9660_mtime): New function.
19775 (grub_iso9660_fs): Register grub_iso9660_mtime.
19776 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19777 (grub_jfs_inode): New fields atime, ctime and mtime.
19778 (grub_jfs_dir): Set mtime.
19779 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19780 * grub-core/fs/ntfs.c (list_file): Set mtime.
19781 (grub_ntfs_dir): Likewise.
19782 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19783 (grub_reiserfs_iterate_dir): Set mtime.
19784 (grub_reiserfs_dir): Likewise.
19785 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19786 (grub_fshelp_node): Likewise.
19787 (grub_sfs_iterate_dir): Set mtime.
19788 (grub_sfs_dir): Likewise.
19789 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19790 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19791 (grub_xfs_inode): New fields atime, mtime, ctime.
19792 (grub_xfs_dir): Set mtime.
19793 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19794 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19795 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19796
19797 Support UDF symlinks.
19798
19799 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19800 (grub_ufs_read_symlink): New function. All users updated.
19801
19802 Check amiga partmap checksum.
19803
19804 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19805 (grub_amiga_partition): Likewise.
19806 (amiga_partition_map_checksum): New function.
19807 (amiga_partition_map_iterate): Check checksum.
19808
19809 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19810
19811 ROMFS support.
19812
19813 * Makefile.util.def (libgrubmods.a): Add romfs.
19814 * grub-core/Makefile.core.def (romfs): New module.
19815 * grub-core/fs/romfs.c: New file.
19816
19817 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19818
19819 Squashfs v4 support.
19820
19821 * Makefile.util.def (libgrubmods.a): Add squash4.
19822 * grub-core/Makefile.core.def (squash4): New module.
19823 * grub-core/fs/squash4.c: New file.
19824 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19825 disk_input_start, disk_input.
19826 (get_byte): Handle disk_input.
19827 (grub_zlib_disk_read): New function.
19828 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19829
19830 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19831 2011-05-15 Feiran Zheng <famcool@gmail.com>
19832
19833 * Makefile.util.def (libgrubmods.a): Add minix3.
19834 * grub-core/Makefile.core.def (minix3): New module.
19835 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19836 (GRUB_MINIX_BSIZE): Removed.
19837 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19838 (grub_minix_ino_t): New type.
19839 (grub_minix_le_to_cpu_ino): New macro.
19840 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19841 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19842 (grub_minix_data): New field block_size.
19843 (grub_minix_read_file): Handle 64-bit correctly.
19844 * grub-core/fs/minix3.c: New file.
19845
19846 2011-05-15 Tristan Gingold <gingold@free.fr>
19847 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19848 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19849
19850 IA64 support.
19851
19852 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19853 * configure.ac: Add ia64-efi target.
19854 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19855 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19856 * gentpl.py: Add ia64_efi platform.
19857 Rename x86_efi to efi and Add ia64-efi. All users updated.
19858 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19859 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19860 Remove kern/generic/rtc_get_time_ms.c on EFI.
19861 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19862 kern/ia64/dl_helper.c on ia64-efi.
19863 Add kern/emu/cache.c on emu.
19864 (linux): Use on loader/ia64/efi/linux.c on ia64.
19865 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19866 whether symbol is a function.
19867 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19868 (grub_symbol): New field 'isfunc'.
19869 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19870 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19871 (grub_dl_load_segments): Place all sections into the same region.
19872 [__ia64__]: Create trampolines and got.
19873 [GRUB_MACHINE_EMU]: Call mprotect.
19874 (grub_dl_resolve_symbols): Resolve symbol type as well.
19875 [__ia64__]: Create function descriptors.
19876 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19877 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19878 (grub_get_rtc): New function.
19879 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19880 * grub-core/kern/emu/cache.S: Renamed to ...
19881 * grub-core/kern/emu/cache_s.S: ... this.
19882 [__ia64__]: Add a nop.
19883 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19884 [__ia64__]: New function.
19885 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19886 * grub-core/kern/ia64/dl.c: New file.
19887 * grub-core/kern/ia64/dl_helper.c: Likewise.
19888 * grub-core/kern/ia64/efi/init.c: New file.
19889 * grub-core/kern/ia64/efi/startup.S: Likewise.
19890 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19891 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19892 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19893 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19894 * grub-core/loader/ia64/efi/linux.c: New file.
19895 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19896 (GRUB_MOD_DEP): Likewise.
19897 (grub_dl) [__ia64__]: New fields got and tramp.
19898 (grub_dl): New field 'base'.
19899 (grub_dl_register_symbol): New argument isfunc. All users updated.
19900 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19901 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19902 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19903 (grub_ia64_dl_get_tramp_got_size): New proto.
19904 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19905 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19906 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19907 * include/grub/efi/api.h: Skip call wrappers on ia64.
19908 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19909 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19910 * include/grub/elf.h (ELF_ST_INFO): New definition.
19911 * include/grub/ia64/efi/kernel.h: New file.
19912 * include/grub/ia64/efi/memory.h: Likewise.
19913 * include/grub/ia64/efi/time.h: Likewise.
19914 * include/grub/ia64/kernel.h: Likewise.
19915 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19916 * include/grub/ia64/time.h: New file.
19917 * include/grub/ia64/types.h: Likewise.
19918 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19919 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19920 New protos.
19921 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19922 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19923 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19924 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19925 All users updated.
19926 (EFI64_HEADER_SIZE): New definition. All users updated.
19927 (image_targets): Add ia64-efi.
19928 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19929 jumpers_addr. All users updated.
19930 Create function descriptors.
19931 (count_funcs): New function.
19932 (unaligned_uint32): New struct.
19933 (MASK20): New definition.
19934 (MASK19): Likewise.
19935 (MASKF21): Likewise.
19936 (add_value_to_slot_20b): New function.
19937 (add_value_to_slot_21_real): Likewise.
19938 (add_value_to_slot_21): Likewise.
19939 (ia64_kernel_trampoline): New struct.
19940 (nopm): New variable.
19941 (jump): Likewise.
19942 (make_trampoline): New function.
19943 (relocate_addresses): Handle ia64.
19944 (make_reloc_section): Likewise.
19945 (load_image): Likewise.
19946
19947 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19948
19949 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19950 warning. Move variables before code while on it.
19951
19952 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19953
19954 Fuloong support.
19955
19956 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19957 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19958 * grub-core/boot/mips/loongson/fuloong.S: New file.
19959 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19960 Explicitly init CS5536.
19961 [FULOONG]: Don't use serial until CS5536 is available.
19962 Set GPIO based on dumps.
19963 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19964 [FULOONG]: Handle GPIO and memory controller differences.
19965 Parse machine type in $a2.
19966 * grub-core/boot/mips/startup_raw.S: Determine and save the
19967 architecture.
19968 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19969 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19970 init on architecture type.
19971 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19972 SIS315E. Don't init at_keyboard on fuloong.
19973 (grub_halt): Support Fuloong.
19974 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19975 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19976 (loongson_machtypes): New array.
19977 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19978 type.
19979 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19980 config. All users updated. Handle CS5536 serial.
19981 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19982 default port on machine type. Register serial as inactive.
19983 * grub-core/video/sis315pro.c: New file.
19984 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19985 definition.
19986 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19987 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19988 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19989 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19990 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19991 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19992 to ...
19993 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19994 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19995 definition.
19996 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19997 (grub_arch_machine): New extern var.
19998 * include/grub/mips/loongson/serial.h
19999 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20000 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20001 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20002 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20003 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20004 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20005 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20006 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20007 * include/grub/term.h (grub_term_register_input_inactive): New inline
20008 function.
20009 (grub_term_register_output_inactive): Likewise.
20010 * include/grub/video.h (grub_video_driver_id): New value
20011 GRUB_VIDEO_DRIVER_SIS315PRO.
20012 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20013 New field "names". All users updated.
20014 New field value IMAGE_FULOONG_FLASH.
20015 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20016
20017 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20018
20019 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20020 and add some clarification.
20021
20022 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20023
20024 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20025 platforms if kernel is compressed.
20026
20027 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20028
20029 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20030 unused modules since currently referrence counter isn't reliable and
20031 there isn't much memory to recover there anyway.
20032
20033 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20034
20035 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20036 rather than resetting it to allow modules to reference themselves
20037 in init.
20038
20039 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20040
20041 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20042 counter on dependencies since grub_dl_unref already handles this.
20043
20044 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20045
20046 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20047 on error if not already done.
20048
20049 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20050
20051 Fix few potential memory misusage.
20052
20053 * grub-core/font/font.c (load_font_index): Don't free char_index to
20054 avoid double free.
20055 (grub_font_load): Zero-fill font at alloc for safety.
20056 Close file on error.
20057 (free_font): Free bmp_idx.
20058
20059 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20060
20061 * docs/grub.texi (Installation): Fix several outdated claims.
20062
20063 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20064
20065 Handle module_license on windows.
20066
20067 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20068 sections shifted.
20069 (insert_string): Make argument const char * instead of char *.
20070 (write_section_data): Handle long section names.
20071 Handle module_license.
20072
20073 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20074
20075 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20076 handle class-free menuentries.
20077 (grub_normal_add_menu_entry): Add a check to be sure.
20078
20079 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20080
20081 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20082 PgUp and PgDown.
20083
20084 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20085
20086 * configure.ac: Bump version to 1.99.
20087
20088 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20089
20090 Give ATA device a bit more time on first try in order to allow disks
20091 to spin up.
20092
20093 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20094 if dev->present is 1. Reset dev->present on failure.
20095 (grub_ata_device_initialize): Set dev->present to 1.
20096 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20097 (grub_ata_device): New member 'present'.
20098
20099 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20100
20101 * util/grub-mkimage.c (generate_image): Update hash.
20102
20103 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20104
20105 Flush caches on DMA memory.
20106
20107 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20108 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20109 (grub_dma_free): Likewise.
20110 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20111
20112 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20115 to avoid asm treating ld and sd as macros.
20116
20117 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20118
20119 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20120 decompressor.
20121
20122 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20123
20124 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20125 grub_decompress_core since later would fail if grub_decompress_core
20126 is too far.
20127
20128 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20129
20130 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20131 R_MIPS_JALR since it's used by newer compiler.
20132
20133 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20134
20135 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20136
20137 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20138
20139 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20140 file_path to 0 for surety.
20141 (grub_chainloader_boot): Set exit_data to NULL.
20142 Unset the loader once done.
20143 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20144
20145 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20148 unknown key into a dprintf.
20149
20150 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20151
20152 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20153 on first non-existant partition.
20154
20155 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20156
20157 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20158 openning fails.
20159 Reported by: Mark Korenberg.
20160
20161 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20162
20163 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20164 overflow.
20165
20166 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20167
20168 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20169 before closing to ensure that it will be readable by grub-setup.
20170
20171 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20172
20173 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20174 (devpath_1): Use MAKE_PIWG_PATH.
20175 (devpath_2): Likewise.
20176 (devpath_3): Likewise.
20177 (devpath_4): Likewise.
20178 (devpath_5): Likewise.
20179 (devpath_6): Likewise.
20180
20181 The appleldr.mod was checked that to be binary identical to previous
20182 version.
20183
20184 2011-05-05 Zach <mikezackles>
20185
20186 Support 2010 Macbooks.
20187
20188 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20189 (devs): Add devpath_6.
20190
20191 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20192
20193 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20194 /dev/random. /dev/urandom is good enough for our purposes (salting).
20195
20196 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20197
20198 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20199
20200 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20201
20202 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20203 hexadecimal.
20204
20205 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20206
20207 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20208 and not 0 on failure.
20209
20210 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20211
20212 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20213 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20214 disk; otherwise grub_fs_probe will not fall back to the next
20215 filesystem.
20216 (grub_pxefs_open): Likewise, for consistency.
20217 Reported and tested by: Ezekiel Grave.
20218
20219 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20220
20221 * tests/partmap_test.in: Don't hardcode path to parted.
20222 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20223
20224 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20225
20226 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20227 of `ls' to find out which devices are available.
20228
20229 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20230
20231 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20232 than source address for efi mmap buffer.
20233
20234 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20235
20236 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20237 wrong action on non-detecting the magic.
20238
20239 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20240
20241 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20242 already supplied by another part of the module (fixes compilation on
20243 FreeBSD).
20244
20245 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20246
20247 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20248 match the one used by mdadm.
20249
20250 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20251
20252 * po/README: Add instructions for creating po/LINGUAS.
20253
20254 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20255
20256 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20257 #551428.
20258
20259 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20260 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20261 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20262 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20263 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20264 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20265 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20266 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20267 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20268 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20269 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20270 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20271 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20272 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20273 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20274 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20275 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20276 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20277 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20278 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20279 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20280 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20281
20282 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20283
20284 * grub-core/kern/emu/getroot.c
20285 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20286 test that was incorrectly reintroduced in r3214.
20287 Reported by: Ian Dall. Fixes Savannah bug #33133.
20288
20289 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20290
20291 Fix stack pointer handling in 16-bit relocator.
20292
20293 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20294 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20295 Fixes Ubuntu bug #683904.
20296
20297 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20298
20299 * configure.ac: Bump version to 1.99~rc2.
20300
20301 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20302
20303 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20304 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20305 * grub-core/lib/x86_64/setjmp.S: Likewise.
20306 * grub-core/lib/mips/setjmp.S: Likewise.
20307 * grub-core/lib/powerpc/setjmp.S: Likewise.
20308 * grub-core/lib/sparc64/setjmp.S: Likewise.
20309
20310 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20311
20312 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20313 * grub-core/lib/efi/datetime.c: Likewise.
20314
20315 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20316
20317 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20318 New function.
20319 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20320 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20321 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20322
20323 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20324
20325 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20326 bitmap.
20327 (grub_gfxterm_term_init): Likewise.
20328
20329 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20330
20331 Take into account the decorations the computing menu entry width.
20332
20333 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20334 (grub_gfxmenu_create_box): Register get_border_width.
20335 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20336 if available.
20337 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20338 get_border_width.
20339
20340 2011-04-18 Endres Puschner <code@e7p.de>
20341
20342 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20343 Don't skip first class.
20344
20345 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20346
20347 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20348 chunks.
20349 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20350
20351 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20352
20353 Complete 64-bit division support.
20354
20355 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20356 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20357 * include/grub/misc.h (grub_divmod64): Rename to ...
20358 (grub_divmod64_full): ... this.
20359 (grub_divmod64): New inline function.
20360
20361 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20362
20363 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20364
20365 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20366
20367 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20368 performing the necessary test.
20369
20370 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20371
20372 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20373 (kfreebsd.elf): Likewise.
20374 (pc-chainloader.elf): Likewise.
20375 (ntldr.elf): Likewise.
20376
20377 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20378
20379 Identify RAID by its UUID rather than (guessed) name.
20380
20381 * grub-core/disk/raid.c (ascii2hex): New function.
20382 (grub_raid_open): Accept mduuid/%s specification.
20383 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20384 (get_mdadm_uuid): ... this.
20385 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20386
20387 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20388
20389 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20390 to negative size.
20391
20392 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20393
20394 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20395 btrfs subvolume.
20396 * util/grub.d/20_linux_xen.in: Likewise.
20397
20398 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20399
20400 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20401 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20402
20403 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20404 Build a list of relevant visible mounts using the mnt_id and
20405 parent_mnt_id fields, and then scan that list at the end.
20406
20407 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20408
20409 * docs/grub.texi (normal): New section.
20410 (normal_exit): New section.
20411 (Embedded configuration): Add reference to normal.
20412 (GRUB only offers a rescue shell): Likewise.
20413 * docs/grub-dev.texi (Error Handling): Fix typo.
20414
20415 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20416
20417 * NEWS: Drop obsolete entry about probe-only btrfs support.
20418
20419 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20420
20421 * util/import_gcry.py: Fix typo.
20422
20423 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20424
20425 * NEWS: Add btrfs support.
20426
20427 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20428 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20429
20430 BtrFS support. Written by me (Vladimir) with important bugfixes and
20431 even more important testing by Colin.
20432
20433 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20434 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20435 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20436 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20437 mem_input_off and mem_input. All users updated to accept in-RAM input.
20438 (gzio_seek): New function.
20439 (test_zlib_header): Likewise.
20440 (grub_gzio_read): Likewise.
20441 (grub_zlib_decompress): Likewise.
20442 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20443 Accept partial and non-virtual mounts.
20444 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20445 avoid receiving /dev/dm-X as device.
20446 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20447 Handle bind and partial mounts.
20448 * grub-core/lib/crc.c: New file.
20449 * include/grub/deflate.h: Likewise.
20450 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20451 proto.
20452 * include/grub/lib/crc.h: New file.
20453
20454 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20455
20456 Implement automatic module license checking according to new GNU
20457 guidelines.
20458
20459 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20460 (grub_dl_load_core): Use grub_dl_check_license.
20461 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20462 (GRUB_MOD_LICENSE): Likewise.
20463 (GRUB_MOD_DUAL_LICENSE): Likewise.
20464 All modules updated.
20465
20466 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20467
20468 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20469 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20470 loaders.
20471 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20472
20473 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20474
20475 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20476
20477 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20478
20479 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20480 failed.
20481
20482 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20483
20484 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20485 parenthesis in the middle of the filename.
20486
20487 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20488
20489 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20490 rather than trying to put initrd way too high.
20491 Reported by: Ryan Lortie <desrt@desrt.ca>
20492
20493 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20494
20495 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20496 improperly removed string.
20497
20498 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20499
20500 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20501 is_disk.
20502 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20503 (open_device) Likewise.
20504 (grub_util_biosdisk_close): Likewise.
20505 Reported by: Mark Korenberg.
20506
20507 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20508
20509 * util/grub-mkconfig_lib.in: Add missing quotes.
20510
20511 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20512
20513 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20514 is NULL.
20515
20516 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20517
20518 Dynamically count the number of lines for the lower banner.
20519
20520 * grub-core/normal/menu_entry.c (per_term_screen): New member
20521 num_entries.
20522 (print_down): Use num_entries.
20523 (update_screen): Likewise.
20524 (grub_menu_entry_run): Set num_entries.
20525 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20526 num_entries.
20527 (grub_print_message_indented): Move real part to ...
20528 (grub_print_message_indented_real): ... here. Additional argument
20529 dry_run.
20530 (draw_border): Additional argument num_entries.
20531 (print_message): Additional argument dry_run.
20532 (print_entries): Receive menu viewer data.
20533 (grub_menu_init_page): New argment num_entries.
20534 (menu_text_set_chosen_entry): Use num_entries.
20535 (grub_menu_try_text): Likewise.
20536 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20537 All users updated.
20538 (grub_ucs4_count_lines): New function.
20539 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20540 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20541 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20542 (grub_term_border_height): Likewise.
20543 (grub_term_num_entries): Likewise.
20544
20545 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20546
20547 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20548 Remove now unused string.
20549
20550 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20551
20552 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20553 build system.
20554 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20555
20556 (Comment): Fix typo.
20557 (Getting started): General copy-editing.
20558 (Typical Development Experience): Likewise.
20559 (Error Handling): Likewise.
20560 (Video API): Likewise.
20561
20562 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20563
20564 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20565 throughout.
20566
20567 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20568
20569 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20570 directory.
20571
20572 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20573
20574 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20575 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20576 "development".
20577
20578 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20579
20580 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20581 grub_strcpy since the lines aren't necessarily 0-terminated.
20582
20583 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20584
20585 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20586 root on legacy.
20587
20588 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20589
20590 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20591 (GRUB_MOD_INIT): DEVICE isn't optional.
20592
20593 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20594
20595 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20596 word on new line if it's too long anyway. Fixes a hang.
20597
20598 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20599
20600 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20601 const.
20602 * util/grub-setup.c (main): Reuse md device name if available.
20603 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20604 not GRUB name as argument.
20605 Based on patch by: Florian Wagner <fwagner>.
20606
20607 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20608
20609 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20610 Place mbi on low memory for better compatibility.
20611
20612 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20613
20614 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20615
20616 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20617 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20618
20619 * autogen.sh: Ensure that collate and ctype locale is C.
20620 * conf/Makefile.common: Likewise.
20621
20622 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20623
20624 * grub-core/normal/menu.c: Add missing include.
20625
20626 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20627
20628 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20629
20630 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20631
20632 * util/grub-mkconfig.in: Ignore emacsen backup.
20633
20634 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20635
20636 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20637 on open.
20638 (grub_util_biosdisk_close): Likewise.
20639
20640 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20641
20642 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20643 const attribute and use grub_isdigit.
20644
20645 2011-04-06 Andrey <dev_null@ukr.net>
20646
20647 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20648 gcc warning.
20649
20650 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20651
20652 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20653 useful grub_dprintf's.
20654
20655 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20656
20657 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20658
20659 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20660
20661 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20662
20663 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20664
20665 Output errors if theme loading failed.
20666
20667 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20668 grub_gfxterm_fullscreen on error paths to ...
20669 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20670 theme loading error.
20671
20672 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20673
20674 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20675 space for older compilers.
20676 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20677
20678 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20679
20680 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20681 and report them as not RAID members since they are useless for GRUB.
20682 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20683
20684 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20685
20686 Increase LVM implementation robustness in order not to crash on
20687 configurations like pvmove. Previously code assumed that in some places
20688 only lvs or only pvs are used whereas it seems that they are used
20689 interchangeably.
20690
20691 * grub-core/disk/lvm.c (read_node): New function.
20692 (read_lv): Use read_node.
20693 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20694 Match volumes only at the end when all lvs are found. Take both
20695 pvs (first) and lvs (second) into account.
20696 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20697 mirror_* into node_*. All users updated.
20698 (grub_lvm_stripe): Merge this ...
20699 (grub_lvm_mirror): ... and this ...
20700 (grub_lvm_node): ... into this. All users updated.
20701
20702 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20703
20704 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20705 of function to allow further scanning for LVMs.
20706
20707 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20708
20709 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20710 on failed seek as it breaks open fd reusage.
20711
20712 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20713
20714 * util/grub-install.in: Add a recommendation to use --recheck before
20715 reporting bugs.
20716
20717 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20718
20719 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20720 are obtained.
20721
20722 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20723
20724 GRUB developper manual based on existing Internals section and
20725 contributions by the various authors with active copyright assignment.
20726
20727 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20728 * docs/font_char_metrics.png: New file.
20729 * docs/font_char_metrics.txt: Likewise.
20730 * docs/grub-dev.texi: Likewise.
20731 * docs/grub.texi (Internals): Move from here ...
20732 * docs/grub-dev.texi: ... here.
20733
20734 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20735
20736 Store the loopback device as data on loopback grub_disk structures,
20737 rather than the file it points to. This fixes use of freed memory
20738 if an existing loopback device is replaced.
20739
20740 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20741 disk->data, not dev->file.
20742 (grub_loopback_read): Adjust file assignment to match.
20743 Fixes Ubuntu bug #742967.
20744
20745 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20746
20747 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20748 when replacing an existing device.
20749
20750 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20751
20752 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20753 memory corruptions.
20754
20755 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20756 unsigned.
20757 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20758 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20759 (grub_jfs_read_inode): Likewise.
20760 (grub_jfs_opendir): Likewise. Remove now useless casts.
20761 (grub_jfs_getent): Likewise.
20762 Make ino a grub_uint32_t rather than int.
20763 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20764 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20765 division and module with bit operations.
20766 (grub_jfs_find_file): Make ino a grub_uint32_t.
20767 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20768
20769 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20770
20771 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20772 warning. (This was in fact always initialised before use, but GCC
20773 wasn't smart enough to prove that.)
20774 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20775
20776 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20777
20778 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20779 stack alignment.
20780 (efi_wrap_1): Likewise.
20781 (efi_wrap_2): Likewise.
20782 (efi_wrap_3): Likewise.
20783 (efi_wrap_4): Likewise.
20784 (efi_wrap_5): Likewise.
20785 (efi_wrap_6): Likewise.
20786 (efi_wrap_10): Likewise.
20787 Based on information by: Red Hat/Peter Jones.
20788
20789 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20790
20791 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20792 set-but-not-used variable.
20793
20794 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20795
20796 * docs/grub.texi (Simple configuration): Be more explicit about
20797 GRUB_DEFAULT, and add an example.
20798 Reported by: Leslie Rhorer.
20799
20800 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20801
20802 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20803 shell".
20804
20805 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20806
20807 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20808 * util/grub.d/20_linux_xen.in: Likewise.
20809
20810 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20811
20812 * util/grub.d/10_linux.in: Try alternative config filenames where
20813 we parse config file.
20814 * util/grub.d/20_linux_xen.in: Likewise.
20815
20816 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20817
20818 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20819 * util/grub.d/20_linux_xen.in: Likewise.
20820
20821 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20822
20823 * grub-core/disk/raid.c (insert_array): Add few potentially
20824 useful grub_util_info.
20825 (grub_raid_register): Likewise.
20826
20827 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20828
20829 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20830 Preserve partition number in mdadm code path.
20831
20832 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20833
20834 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20835 few potentially useful grub_util_info.
20836
20837 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20838
20839 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20840
20841 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20842
20843 * docs/grub.texi (default): Use @example rather than nested
20844 itemized lists to avoid breaking gendocs.
20845
20846 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20847
20848 * docs/grub.texi (Future): Update.
20849
20850 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20851
20852 * docs/grub.texi (Environment): New chapter.
20853 (Changes from GRUB Legacy): Link to "Environment block" section for
20854 details of limitations.
20855 (Simple configuration): Likewise. Link to documentation of gfxmode
20856 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20857 respectively.
20858 (Shell-like scripting): Note that normal variables are stored in the
20859 environment.
20860 (gettext): Link to documentation of lang and locale_dir.
20861 (list_env): New section.
20862 (load_env): New section.
20863 (save_env): New section.
20864
20865 (Reporting bugs): Fix typo.
20866
20867 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20868
20869 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20870 the example.
20871
20872 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20873
20874 * grub-core/term/at_keyboard.c (set_scancodes)
20875 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20876
20877 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20878
20879 * docs/grub.texi (Menu-specific commands): Remove some semantics
20880 that were true in GRUB Legacy but not in GRUB 2.
20881 (submenu): New section.
20882 (false): New section.
20883 (read): New section.
20884 (true): New section.
20885
20886 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20887
20888 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20889
20890 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20891
20892 * docs/grub.texi (Simple configuration): Explain some of the
20893 current limitations of grub-mkconfig.
20894 Reported by: Leslie Rhorer.
20895
20896 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20897
20898 Old macs search for boot.efi rather than for bootia32.efi.
20899
20900 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20901 * util/grub-mkrescue.in: Likewise.
20902 Suggested by: Peter Jones.
20903
20904 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20905
20906 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20907
20908 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20909
20910 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20911 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20912 (grub_lvm_mirror): New struct.
20913 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20914 (grub_lvm_iterate): Iterate only visible volumes.
20915 (grub_lvm_read): Factor out to ..
20916 (read_lv): ... this. Support mirrors.
20917 (grub_lvm_read): New wrapper function.
20918 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20919 stripped or mirrored.
20920
20921 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20922
20923 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20924
20925 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20926
20927 * docs/grub.texi (loopback): New section.
20928
20929 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20930
20931 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20932 removed -p option.
20933
20934 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20935
20936 * docs/grub.texi (BIOS installation): New section, partly based on
20937 previous text in other sections.
20938 (Installing GRUB using grub-install): Replace BIOS discussion with a
20939 cross-reference.
20940 (Images): Likewise.
20941
20942 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20945 [HAVE_DIOCGDINFO]: Add safety checks.
20946
20947 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20948
20949 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20950 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20951
20952 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20953
20954 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20955 real_sb->size is zero (e.g. RAID-0), get the disk size from
20956 real_sb->data_size instead.
20957 Fixes Ubuntu bug #743136.
20958
20959 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20960
20961 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20962 printf clauses for printing size and start.
20963
20964 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20965
20966 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20967 Reported and tested by: Timothy Nikkel.
20968
20969 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20970
20971 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20972 (dirty_region_add_real): ... this.
20973 (dirty_region_add): Don't discard margin refresh when performing
20974 scheduled repaint.
20975
20976 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20977
20978 * grub-core/lib/relocator.c (allocate_regstart)
20979 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20980 terminals are capabple of malloc-free operation.
20981 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20982 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20983
20984 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20985
20986 * util/grub-setup.c: Copy the partition table zone if floppy support
20987 is disabled, even if no partition table is found.
20988
20989 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20990 during POST if an invalid partition table is contained in the PBR
20991 of the active partition when GRUB is installed to a partition.
20992
20993 2011-03-28 Colin Watson <cjwatson@debian.org>
20994
20995 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20996 comment.
20997
20998 2011-03-28 Colin Watson <cjwatson@debian.org>
20999
21000 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21001 to be specific about what kind of RAID device we're scanning for.
21002
21003 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21004
21005 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21006 return freed string.
21007
21008 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21009
21010 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21011
21012 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21013
21014 Use libgeom on FreeBSD to detect partitions.
21015
21016 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21017 (grub-mkrelpath): Likewise.
21018 (grub-script-check): Likewise.
21019 (grub-editenv): Likewise.
21020 (grub-mkpasswd-pbkdf2): Likewise.
21021 (grub-fstest): Likewise.
21022 (grub-mkfont): Likewise.
21023 (grub-mkdevicemap): Likewise.
21024 (grub-probe): Likewise.
21025 (grub-setup): Likewise.
21026 (grub-ofpathname): Likewise.
21027 (grub-mklayout): Likewise.
21028 (example_unit_test): Likewise.
21029 (grub-menulst2cfg): Likewise.
21030 * grub-core/Makefile.core.def (grub-emu): Likewise.
21031 (grub-emu-lite): Likewise.
21032 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21033 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21034 define HAVE_DIOCGDINFO.
21035 (follow_geom_up) [FreeBSD]: New function.
21036 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21037 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21038 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21039 unconditionally of HAVE_DIOCGDINFO.
21040
21041 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21042
21043 Fix FreeBSD compilation problem.
21044
21045 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21046 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21047
21048 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21049
21050 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21051 Switch back to page zero before loading a kernel, since some kernel
21052 drivers expect that.
21053 Thanks to: Felix Kuehling.
21054
21055 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21056
21057 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21058 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21059 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21060
21061 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21062
21063 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21064 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21065
21066 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21067
21068 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21069 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21070 malloc is disabled.
21071
21072 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21073
21074 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21075 for modules headers when counting the needed allocation size.
21076
21077 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21078
21079 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21080 if no ASCII character is found to prevent crash.
21081
21082 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21083
21084 * grub-core/video/bitmap.c (match_extension): Ignore case.
21085
21086 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21087
21088 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21089
21090 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21091
21092 * grub-core/script/parser.y: Declare "time" as valid argument.
21093
21094 2011-03-23 Peter Jones <pjones@redhat.com>
21095
21096 Fix incorrect assert failure reporting.
21097
21098 * grub-core/tests/example_functional_test.c (example_test): Add
21099 a failure comment.
21100 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21101 (failure_start): ...this. Check that malloc succeeded.
21102 Don't call xvasprintf. Return failure struct.
21103 (failure_append_vtext): New function.
21104 (failure_append_text): Likewise.
21105 (add_failure): Likewise.
21106 (grub_test_assert_helper): Likewise.
21107 * include/grub/test.h (grub_test_assert_helper): New declaration.
21108 (grub_test_assert): Macro rewritten.
21109
21110 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21111
21112 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21113
21114 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21115
21116 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21117
21118 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21119
21120 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21121 into GRUB-style one.
21122
21123 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21124
21125 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21126 error and not grub_errno.
21127 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21128
21129 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21130
21131 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21132 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21133
21134 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21135
21136 * grub-core/efiemu/i386/pc/cfgtables.c
21137 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21138 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21139 (grub_xnu_unlock): Likewise.
21140 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21141
21142 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21143
21144 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21145 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21146 * grub-core/commands/hashsum.c (aliases): Likewise.
21147 * grub-core/commands/setpci.c (pci_registers): Likewise.
21148 * grub-core/disk/usbms.c (attach_hook): Likewise.
21149 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21150 (zio_checksum_table): Likewise.
21151 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21152 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21153 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21154 * grub-core/lib/relocator.c (leftovers): Likewise.
21155 (extra_blocks): Likewise.
21156 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21157 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21158 (modules_last): Likewise.
21159 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21160 (devices): Likewise.
21161 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21162 (modules_last): Likewise.
21163 * grub-core/normal/auth.c (users): Likewise.
21164 * grub-core/normal/context.c (initial_menu): Likewise.
21165 (current_menu): Likewise.
21166 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21167 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21168 (grub_serial_terminfo_input_template): Likewise.
21169 (grub_serial_terminfo_output_template): Likewise.
21170 (grub_serial_terminfo_input): Likewise.
21171 (grub_serial_terminfo_output): Likewise.
21172 (registered): Likewise.
21173 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21174
21175 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21176
21177 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21178 grub_video_mode_type_t.
21179 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21180 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21181 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21182
21183 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21184
21185 * util/grub-install.in: Correct the x86-64 name as x86_64.
21186
21187 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21188
21189 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21190 initial chunk read from the kernel always includes GRUB's multiboot
21191 header, which is now outside the first sector.
21192
21193 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21194
21195 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21196 cached mmap_size, so that this works correctly when called multiple
21197 times.
21198 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21199
21200 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21201
21202 * docs/grub.texi (Simple configuration): Tidy up formatting.
21203
21204 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21205
21206 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21207 Set-but-not-used variable removed.
21208
21209 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21210
21211 Workaround yet another IEEE1275 bug.
21212
21213 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21214 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21215 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21216 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21217 is set.
21218 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21219 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21220
21221 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21222
21223 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21224 error.
21225
21226 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21227
21228 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21229 empty, since in that case we can only generate either nothing or a
21230 syntactically invalid configuration file.
21231 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21232
21233 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21234
21235 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21236 (Making a GRUB bootable CD-ROM): Likewise.
21237 (Invoking grub-mkrescue): New section.
21238 Reported by: Yann Dirson. Fixes Debian bug #612585.
21239
21240 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21241
21242 * util/grub-install.in: Remove unnecessary brackets from tr
21243 arguments.
21244 * util/grub.d/10_hurd.in: Likewise.
21245 * util/grub.d/10_kfreebsd.in: Likewise.
21246 * util/grub.d/10_linux.in: Likewise.
21247 * util/grub.d/20_linux_xen.in: Likewise.
21248 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21249
21250 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21251
21252 * include/grub/file.h (not_easly_seekable): Rename to ...
21253 (not_easily_seekable): ... this. Update all users.
21254
21255 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21256
21257 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21258 grub-mkrescue.
21259
21260 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21261
21262 * util/grub-mkimage.c (generate_image): Refuse to create the images
21263 bigger than the actual flash (512K) in Loongson machines. 512K is also
21264 the biggest chip supported by them.
21265
21266 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21267
21268 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21269
21270 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21271
21272 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21273 super_offset field.
21274
21275 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21276
21277 * util/grub-install.in: Ignore install device on platforms
21278 where it doesn't make sense. Always use UUIDs except on pc, efi and
21279 sparc64.
21280 Reported by: Daniel Kahn Gillmor.
21281
21282 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21283
21284 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21285
21286 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21287
21288 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21289 (iterate_real): Don't rely on partition being non-NULL.
21290
21291 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21292
21293 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21294 supported platforms. Put a compile time assert for this rather than
21295 generate a warning with 32-bit shift.
21296
21297 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21298
21299 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21300 logical expression more readable.
21301
21302 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21303
21304 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21305 even if some elements have a name.
21306 Reported by: Alexander GQ Gerasiov.
21307
21308 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21309
21310 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21311 path unreadable if `grub-probe -t abstraction' fails, for example if
21312 memberlist fails on an LVM volume group.
21313 Reported by: Darius Jahandarie.
21314
21315 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21316
21317 * docs/grub.texi (Simple configuration): Document
21318 GRUB_PRELOAD_MODULES.
21319
21320 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21321
21322 * .bzrignore: Remove nonexistent grub-pbkdf2.
21323
21324 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21325
21326 * configure.ac: Bump version to 1.99~rc1.
21327
21328 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21329
21330 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21331 for safety.
21332
21333 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21334
21335 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21336 module.
21337
21338 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21339
21340 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21341
21342 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21343
21344 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21345 diskdevid.
21346
21347 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21348
21349 Fix compilation on cygwin.
21350
21351 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21352 -R .drectve on cygwin.
21353 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21354 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21355 (COND_CYGWIN): New condition.
21356 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21357 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21358 not @TARGET_OBJ2ELF@.
21359 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21360 type to determine whether aux is to be used.
21361
21362 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21363
21364 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21365 realpath'ed device string.
21366 Handle floppy (somewhat).
21367 Issue error in unknown case rather than garbage.
21368 Reported by: Axel Beckert.
21369
21370 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21371
21372 * util/grub.d/00_header.in (load_video): Handle the case when no video
21373 drivers available.
21374 Thanks to: Axel Beckert.
21375
21376 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21377
21378 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21379 variable. Fixes problem on big endian platforms.
21380
21381 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21382
21383 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21384 It doesn't work well there.
21385
21386 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21387
21388 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21389 warning.
21390 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21391 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21392 counter.
21393
21394 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21395
21396 Use alias->path rather than buggy "canon".
21397
21398 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21399 (ofdisk_hash_add): New argument curcan. All users updated.
21400
21401 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21402
21403 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21404
21405 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21406
21407 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21408 loadmask before doing any calculations. Use correct type for offset.
21409 (grub_linux_load64): Likewise.
21410
21411 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21412
21413 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21414 with NULL.
21415 (console_grub_equivalences_unshift): Likewise.
21416 Reported by: Daniel Dehennin.
21417
21418 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21419
21420 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21421 (set_env_limn_ro): Likewise.
21422 (GRUB_MOD_INIT): Likewise.
21423 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21424 ARRAY_SIZE while on it.
21425 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21426 * grub-core/normal/context.c (grub_env_export): Move from here ...
21427 * grub-core/kern/env.c (grub_env_export): ... here.
21428 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21429 prefix.
21430 * grub-core/kern/main.c (grub_main): Export root and prefix.
21431 * include/grub/env.h (grub_env_export): Export.
21432 Reported by: Seth Goldberg.
21433
21434 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21435
21436 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21437 Take into account space used by ELF sections and multiboot palette.
21438 Reported by: Grégoire Sutre.
21439
21440 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21441
21442 * BUGS: New file.
21443
21444 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21445
21446 Pass more appropriate video id to Linux.
21447
21448 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21449 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21450 fill have_vga.
21451 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21452 shift params->lfb_size.
21453 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21454
21455 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21456
21457 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21458
21459 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21460
21461 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21462 separator and pass bootpath/devid even if only one of them is available.
21463 Reported by: Seth Goldberg.
21464
21465 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21466
21467 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21468 implementations bug on them.
21469
21470 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21471 memory.
21472 (filter_memory_map): Likewise.
21473
21474 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21475
21476 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21477 Reported by: nebuchadnezzar.
21478
21479 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21480
21481 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21482 Reported by: nebuchadnezzar.
21483
21484 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21485
21486 Submenu default support.
21487
21488 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21489 auto_boot. All users updated.
21490 Declared static.
21491 Handle chosen and default with submenus.
21492 (grub_menu_execute_with_fallback): Declared static.
21493 Don't notify failure if autobooted. Upper level does it.
21494 (menuentry_eq): New function.
21495 (get_entry_number): Use menuentry_eq.
21496 (show_menu): New parameter "autobooted". All users updated.
21497 (grub_show_menu): Likewise.
21498 * include/grub/normal.h (grub_show_menu): Likewise.
21499 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21500 (grub_menu_execute_with_fallback): Likewise.
21501
21502 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21503
21504 * util/grub-mklayout.c (usage): Update help text.
21505
21506 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21507
21508 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21509
21510 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21511
21512 * util/grub-menulst2cfg.c (main): Trim the line.
21513
21514 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21515
21516 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21517 (grub_machine_init): Don't check amount of low memory as reportedly
21518 INT 12h can be broken and if low memory is too low we wouldn't have
21519 gotten into grub_machine_init anyway.
21520
21521 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21522
21523 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21524 (grub_machine_mmap_iterate): Take low memory into account
21525
21526 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21527
21528 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21529 badfs.
21530 Reported by: TiCPU.
21531
21532 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21533
21534 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21535 members errors.
21536
21537 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21538
21539 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21540 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21541
21542 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21543
21544 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21545 openbsd and netbsd types being in part_bsd module.
21546
21547 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21548
21549 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21550 (_FILE_OFFSET_BITS): Likewise.
21551 Reported by: Seth Goldberg.
21552
21553 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21554
21555 * configure.ac: Check for libdevmapper header.
21556
21557 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21558
21559 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21560 avoid aliasing.
21561 (fzap_lookup): Likewise.
21562 (dnode_get): Likewise.
21563 (make_mdn): Likewise.
21564 (zfs_mount): Likewise.
21565 (fzap_iterate): Use temporary pointer to avoid aliasing.
21566 (grub_zfs_read): Likewise.
21567 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21568 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21569 pointers to avoid aliasing.
21570 (grub_cmd_xnu_kernel64): Likewise.
21571 (grub_xnu_load_driver): Likewise.
21572
21573 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21574
21575 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21576 aliasing warning.
21577 (grub_cmd_terminal_output): Likewise.
21578 Reported and tested by: Grégoire Sutre.
21579
21580 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21581
21582 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21583 warning.
21584 Reported and tested by: Grégoire Sutre.
21585
21586 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21587
21588 * configure.ac: Do CPU substitution even if it's specified explicitly.
21589 Reported and tested by: Alain Greppin.
21590
21591 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21592
21593 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21594 Reported and tested by: Alain Greppin.
21595
21596 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21597
21598 Satisfy some bison versions need for inttypes.h.
21599
21600 * grub-core/lib/posix_wrap/inttypes.h: New file.
21601 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21602 (int16_t): Likewise.
21603 (int32_t): Likewise.
21604 (int64_t): Likewise.
21605 Reported and tested by: Alain Greppin.
21606
21607 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21608
21609 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21610 Silence spurious warning.
21611 Reported and tested by: Alain Greppin.
21612
21613 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21614
21615 * docs/grub.texi (Support automatic decompression): Update with xz
21616 decompression support.
21617
21618 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21619
21620 Improve loaders' kernel command line handling.
21621
21622 * grub-core/lib/cmdline.c: New file.
21623 * include/grub/lib/cmdline.h: Likewise.
21624 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21625 grub_create_loader_cmdline to create kernel command line.
21626 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21627 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21628 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21629 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21630 (linux): Add lib/cmdline.c on common.
21631
21632 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21633
21634 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21635 inopos might be unaligned.
21636
21637 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21638
21639 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21640 endian transformations.
21641 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21642 Based on report by: Doug Nazar.
21643
21644 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21645
21646 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21647 array->members[i].start_sector.
21648 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21649
21650 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21651
21652 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21653 Reported and tested by: Grégoire Sutre.
21654
21655 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21656
21657 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21658 avoid causing test failures by clearing the screen.
21659
21660 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21661
21662 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21663 Fix prefix check to handle the case where dir ends with a slash
21664 (most significantly, "/" itself).
21665 Reported by: Michael Vogt.
21666
21667 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21668
21669 Run terminfo_cls on initing terminfo output to clear the screen and
21670 move the cursor to (0,0).
21671
21672 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21673 Call grub_terminfo_output_init.
21674 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21675 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21676 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21677
21678 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21679
21680 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21681 only when needed.
21682
21683 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21684
21685 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21686 CTRL.
21687
21688 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21689
21690 The E820 type 5 is BADRAM, not EXEC_CODE.
21691
21692 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21693 (GRUB_E820_BADRAM): New define.
21694 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21695 into reserved. Propagate BADRAM.
21696 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21697 (GRUB_E820_BADRAM): New define.
21698
21699 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21700
21701 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21702 Ignore the memory post-4G.
21703 (grub_relocator_firmware_alloc_region): Additional debug statement.
21704
21705 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21706
21707 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21708 names.
21709 Reported by: David Pravec.
21710
21711 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21712
21713 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21714 BIOSes.
21715
21716 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21717
21718 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21719 Prevent overflow.
21720 (grub_reed_solomon_recover): Likewise.
21721
21722 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21723
21724 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21725
21726 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21727
21728 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21729 variable.
21730
21731 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21732
21733 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21734 descriptions of extract_legacy_entries_source and
21735 extract_legacy_entries_configfile.
21736 Reported by: Seung Soo, Ha.
21737
21738 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21739
21740 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21741 on devices that do not implement function 0.
21742
21743 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21744
21745 * grub-core/fs/hfsplus.c: Make parent unsigned.
21746 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21747 overflows.
21748 (grub_hfsplus_cmp_extkey): Likewise
21749
21750 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21751
21752 * util/grub-install.in: Correctly use bootloader_id and not
21753 GRUB_DISTRIBUTOR on efibootmgr line.
21754
21755 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21756
21757 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21758
21759 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21760
21761 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21762 Xen and reorder menu item wording to make it clearer that this entry
21763 will launch Xen. Print separate messages when loading Xen and
21764 Linux.
21765
21766 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21767
21768 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21769 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21770 loop in case of incorrect amiga partmap.
21771
21772 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21773
21774 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21775 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21776 Reported by:EHeM.
21777
21778 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21779
21780 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21781 spurious warning.
21782 Reported by: crocket
21783
21784 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21785
21786 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21787 Preload EFIemu.
21788 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21789
21790 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21791
21792 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21793 is loaded
21794 (grub_cmd_xnu_kextdir): Likewise.
21795 (grub_cmd_xnu_splash): Likewise.
21796
21797 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21798
21799 Avoid using Reed-Solomon with 0 redundancy.
21800
21801 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21802 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21803 or 0 redundancy.
21804 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21805 (grub_reed_solomon_recover): Likewise.
21806
21807 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21808
21809 Don't use disk subsystem in freebsd_boot.
21810
21811 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21812 (freebsd_biosdev): Likewise.
21813 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21814 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21815
21816 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21817
21818 Handling of files of unknown size is currently limited. They can't be
21819 used e.g. for initrd or modules. Moreover gzip handling of not
21820 easily seekable files is buggy. Disable unknown file size for now. May
21821 be inefficient but works.
21822
21823 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21824 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21825
21826 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21827
21828 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21829 floppy probe.
21830
21831 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21832
21833 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21834
21835 2010-12-25 Shea Levy <shlevy>
21836
21837 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21838
21839 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21840
21841 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21842 Windows Server 2008.
21843 Reported by: Devin Giddings.
21844
21845 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21846
21847 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21848 writing an error message because of async power management.
21849 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21850 (grub_reboot): Likewise.
21851
21852 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21853
21854 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21855 keep unit tests from failing when they shouldn't.
21856
21857 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21858
21859 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21860 previous patch increased the size of the RS code by 20 bytes (at
21861 least with gcc-4.4), so increase this by 20 bytes to match.
21862 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21863
21864 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21865
21866 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21867 scratch area. Make sure to initialise chosen in standalone mode as
21868 well as non-standalone.
21869 Reported by: Robert Hooker and Andy Whitcroft.
21870 Tested by: Andy Whitcroft.
21871
21872 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21873
21874 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21875 constructing a new unescaped string and passing it to grub_xputs in
21876 one go, rather than passing characters to grub_printf one at a time.
21877
21878 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21879
21880 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21881 initialising utf16.
21882
21883 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21884
21885 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21886 comment. Add an extra layer of quotation, requiring the output of
21887 this function to be used in a printf format string.
21888 (gettext_printf): New function.
21889 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21890 Extract translatable strings from here-documents and use a temporary
21891 variable instead, so that xgettext can find them.
21892 * util/grub.d/10_kfreebsd.in: Likewise.
21893 * util/grub.d/10_linux.in: Likewise.
21894 * util/grub.d/20_linux_xen.in: Likewise.
21895
21896 * po/grub.d.sed: New file.
21897 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21898 arguments. Set c-format flags on all strings extracted from
21899 util/grub.d/ (xgettext refuses to include these itself for strings
21900 it extracted from a shell file, but these really are c-format).
21901
21902 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21903
21904 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21905 Avoid next pointing to nowhere.
21906
21907 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21908
21909 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21910 rather than assuming than rootblock is exactly in the middle.
21911 (grub_affs_label): Likewise.
21912
21913 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21914
21915 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21916 reserved_first_sector to 0.
21917 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21918 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21919 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21920
21921 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21922
21923 Fix handling of UTF-16 UDF labels.
21924
21925 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21926 (read_string): .. here.
21927 (grub_udf_label): Use read_string.
21928
21929 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21930
21931 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21932 editor under argument scope.
21933 Reported by: Jordan Uggla
21934
21935 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21936
21937 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21938
21939 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21940
21941 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21942 line, and other keys scroll an entire page (previous handling was
21943 for \r and \n to scroll a page and other keys to scroll two lines).
21944
21945 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21946
21947 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21948 Set ptrdest to correct get_physical_target_address rather than
21949 incorrect get_virtual_current_address.
21950
21951 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21952
21953 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21954 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21955
21956 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21957
21958 * .bzrignore: Ignore grub-core/rs_decoder.S.
21959
21960 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21961
21962 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21963 .mo/.mo.gz opening sequence to ...
21964 (grub_mofile_open_lang): ... here.
21965 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21966 * util/grub.d/00_header.in (grub_lang): Include country part of
21967 locale.
21968 Reported by: Mario Limonciello.
21969
21970 2010-12-09 Robert Millan <rmh@gnu.org>
21971
21972 * NEWS: Document addition of ZFS support.
21973
21974 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21975
21976 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21977 rather than `/ 2', as the latter requires -Wa,--divide which would
21978 require bumping our minimum binutils version.
21979
21980 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21981
21982 * util/grub-script-check.c (main): Print script line number on
21983 error.
21984
21985 2010-12-01 Robert Millan <rmh@gnu.org>
21986
21987 * grub-core/fs/zfs/zfs.c: New file.
21988 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21989 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21990 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21991 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21992
21993 * include/grub/zfs/dmu.h: Likewise.
21994 * include/grub/zfs/dmu_objset.h: Likewise.
21995 * include/grub/zfs/dnode.h: Likewise.
21996 * include/grub/zfs/dsl_dataset.h: Likewise.
21997 * include/grub/zfs/dsl_dir.h: Likewise.
21998 * include/grub/zfs/sa_impl.h: Likewise.
21999 * include/grub/zfs/spa.h: Likewise.
22000 * include/grub/zfs/uberblock_impl.h: Likewise.
22001 * include/grub/zfs/vdev_impl.h: Likewise.
22002 * include/grub/zfs/zap_impl.h: Likewise.
22003 * include/grub/zfs/zap_leaf.h: Likewise.
22004 * include/grub/zfs/zfs.h: Likewise.
22005 * include/grub/zfs/zfs_acl.h: Likewise.
22006 * include/grub/zfs/zfs_znode.h: Likewise.
22007 * include/grub/zfs/zil.h: Likewise.
22008 * include/grub/zfs/zio.h: Likewise.
22009 * include/grub/zfs/zio_checksum.h: Likewise.
22010
22011 * Makefile.util.def: Build ZFS into libgrubmods.
22012 * grub-core/Makefile.core.def: Build zfs.mod.
22013
22014 2010-11-30 Szymon Janc <szymon@janc.net.pl>
22015
22016 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22017 variable.
22018 * grub-core/commands/wildcard.c (match_files): Likewise.
22019
22020 2010-11-30 Robert Millan <rmh@gnu.org>
22021
22022 * grub-core/loader/i386/bsd.c
22023 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22024 whether kernel is loaded using grub_loader_is_loaded(), rather
22025 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22026 certain error conditions.
22027
22028 2010-11-30 Robert Millan <rmh@gnu.org>
22029
22030 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22031 (grub_cmd_echo): Call grub_refresh() after printing a message.
22032
22033 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22034
22035 Avoid using tricks for initialising endian variables.
22036
22037 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22038 Make const.
22039 (GRUB_MOD_INIT): Don't byte-swap.
22040 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22041 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22042 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22043 (grub_swap_bytes32_compile_time): Likewise.
22044 (grub_cpu_to_le32_compile_time): Likewise.
22045 (grub_cpu_to_le16_compile_time): Likewise.
22046
22047 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22048
22049 * util/grub-setup.c (setup): Stop recommending --force. People who
22050 understand the dangers of blocklists are able to find this option
22051 anyway and the ones who don't shouldn't use it anyway.
22052
22053 2010-11-26 Robert Millan <rmh@gnu.org>
22054
22055 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22056 Update all users.
22057
22058 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22059
22060 Fix LVM-on-RAID probing.
22061
22062 * util/grub-probe.c (probe): Remember which disk was detected as
22063 RAID (perhaps an LVM physical volume). Use that disk's raidname
22064 rather than that of the top-level disk.
22065
22066 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22067
22068 Fix cmdline argument quotes for setparams command of menuentry
22069 definitions.
22070
22071 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22072 quotes for arguments.
22073 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22074 grub_strchrsub function instead.
22075
22076 * include/grub/misc.h (grub_strchrsub): New function.
22077
22078 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22079
22080 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22081 effort by skipping "." and ".." entries up-front.
22082 Suggested by: Michael Lazarev.
22083
22084 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22085
22086 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22087 ldflags to ldadd, to fix link line ordering.
22088 (none_decompress): Likewise.
22089
22090 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22091
22092 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22093 platforms.
22094 (grub-emu-lite): Remove kern/emu/cache.S.
22095
22096 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22097
22098 * util/deviceiter.c (compare_devices): If the by-id link for a
22099 device couldn't be resolved, fall back to sorting by the by-id link
22100 rather than segfaulting.
22101 Reported and tested by: Daniel Mierswa.
22102
22103 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22104
22105 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22106 ldflags, to fix link line ordering.
22107
22108 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22109
22110 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22111 linkers are picky about this.
22112
22113 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22114
22115 * grub-core/Makefile.am (command.lst): Adjust sed expression
22116 ordering so that extended and priority commands aren't treated as
22117 ordinary commands.
22118
22119 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22120
22121 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22122 Remove byte-swapping function calls, which are not valid in
22123 structure initialisers.
22124 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22125 non-const.
22126 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22127 grub_gpt_partition_type_bios_boot.
22128
22129 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22130
22131 Fix test program build on GNU/kFreeBSD.
22132
22133 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22134 $(LIBNVPAIR)' library dependencies.
22135
22136 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22137
22138 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22139
22140 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22141
22142 * util/grub-install.in: Remove excessive quoting that broke
22143 installations to RAID devices.
22144
22145 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22146
22147 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22148 bootloader version instead of 0.
22149
22150 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22151
22152 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22153 warning.
22154
22155 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22156
22157 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22158 retrieve the metadat sector if size isn't known.
22159 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22160
22161 2010-11-18 Robert Millan <rmh@gnu.org>
22162
22163 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22164 with grub_memcmp().
22165
22166 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22167
22168 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22169 arrow.
22170 Reported by: Jordan Uggla.
22171
22172 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22173
22174 Make better UTF compliant.
22175
22176 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22177 sequences as incorrect.
22178 (grub_is_valid_utf8): Likewise.
22179 (grub_utf8_to_ucs4): Likewise.
22180 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22181 (grub_ucs4_to_utf8_alloc): Likewise.
22182 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22183
22184 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22185
22186 Make legacy_source behave like source.
22187
22188 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22189 grub_show_menu.
22190 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22191
22192 2010-11-16 Colin Watson <cjwatson@debian.org>
22193
22194 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22195 (-Wunused implies -Wunused-parameter, but not vice versa).
22196
22197 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22198
22199 * configure.ac: Make error messages less confusing by testing for
22200 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22201 accepted, but produces a diagnostic if something else is wrong).
22202
22203 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22206 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22207 (now unused).
22208 (grub_keyboard_controller_init)
22209 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22210 read the initial state since controller isn't inited yet.
22211
22212 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22213
22214 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22215 allocate_regbeg may need to create new chunk header.
22216
22217 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22218
22219 Fix quoting in legacy parser.
22220
22221 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22222 single quotes.
22223 (grub_legacy_parse): Likewise.
22224 Reported by: Jordan Uggla.
22225 Tested by: Jordan Uggla.
22226
22227 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22228
22229 Don't add -lgcc on i386 and x86_64.
22230
22231 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22232 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22233 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22234
22235 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22236
22237 * configure.ac: Add -Wno-trampolines when supported.
22238
22239 2010-11-14 Modestas Vainius <modax@debian.org>
22240
22241 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22242 fakeraid.
22243
22244 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22245
22246 Add generic logical block size support for UDF.
22247
22248 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22249 (GRUB_UDF_BLKSZ): Removed.
22250 (struct grub_udf_data): New field "lbshift" to hold the logical block
22251 size of the file system in log2 format. All users updated.
22252 (sblocklist): Change type to unsigned.
22253 (grub_udf_mount): Change type of "sblklist" to unsigned.
22254 Move AVDP search before VRS recognition, because the latter requires
22255 knowledge of the logical block size, which is detected during the
22256 former.
22257 Detect and validate logical block size during AVDP search, adding
22258 support for block sizes 512, 1024 and 4096.
22259 Make VRS recognition independent of block size.
22260
22261 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22262
22263 Properly handle deleted files on UDF.
22264
22265 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22266 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22267 set.
22268
22269 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22270
22271 Support reading files larger than 2 GiB.
22272
22273 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22274 "offset" to grub_off_t.
22275 (grub_udf_read_file): Likewise for parameter "pos".
22276
22277 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22278
22279 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22280 unavailable.
22281 (Simple configuration): Refer to Changes from GRUB Legacy about
22282 save_env availability.
22283
22284 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22285
22286 * util/grub-install.in: Ignore empty partition table detection
22287 instead of trying to include part_ module.
22288
22289 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22290
22291 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22292 LVM on RAID support.
22293
22294 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22295
22296 Properly define WORDS_BIGENDIAN in wrapped environments.
22297
22298 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22299 definition.
22300 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22301
22302 Reported by: Manoel Rebelo Abranches.
22303 Tested by: Manoel Rebelo Abranches.
22304
22305 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22306
22307 * util/grub-mkconfig.in: Fix quoting.
22308
22309 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22310
22311 Support big ext2 files.
22312
22313 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22314 (grub_ext2_read_block): Support triple indirect blocks.
22315 (grub_ext2_read_file): Use 64-bit types and read size_high.
22316 (grub_ext2_open): Read size_high.
22317 Reported by: Ximin Luo.
22318 Tested by: Manoel Rebelo Abranches.
22319
22320 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22321
22322 * util/grub-install.in: Handle filenames containing spaces.
22323 Reported by: Jordan Uggla.
22324 Tested by: Jordan Uggla.
22325
22326 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22327
22328 * util/grub-mkconfig.in (grub_script_check): New variable.
22329 Use grub_script_check instead of grub-script-check.
22330 Reported by: Barry Jackson.
22331
22332 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22333
22334 * docs/grub.texi (menu): Correct the order.
22335 Reported by: D. Hugh Redelmeier.
22336
22337 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22338
22339 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22340 jump.
22341
22342 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22343
22344 * include/grub/elfload.h (grub_elf32_size): New parameter.
22345 All users updated.
22346 Return maximum segments alignment.
22347 (grub_elf64_size): Likewise.
22348 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22349 Return maximum segments alignment.
22350 (grub_elf64_size): Likewise.
22351 * grub-core/loader/powerpc/ieee1275/linux.c:
22352 (grub_linux_claimmap_iterate): New function. Uses the
22353 "available" property in the "memory" node for memory allocation
22354 for kernel in the PowerPC loader.
22355 (grub_linux_load32): Correctly find linux entry point offset.
22356 (grub_linux_load64): Likewise.
22357
22358 2010-11-07 Robert Millan <rmh@gnu.org>
22359
22360 On mips-yeeloong, build with -march=loongson2f when this flag is
22361 available (GCC >= 4.4).
22362 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22363 `-march=mips3'.
22364 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22365 or otherwise add -march=mips3.
22366
22367 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22368
22369 Suppress shell expansion on echo '*' and echo "*" like cases.
22370 Reported by: Jordan Uggla.
22371
22372 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22373 string arguments before shell expansion.
22374 * tests/grub_cmd_echo.in: New testcases.
22375
22376 2010-11-07 Robert Millan <rmh@gnu.org>
22377
22378 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22379 transition.
22380
22381 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22382
22383 * grub-core/kern/emu/hostdisk.c
22384 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22385
22386 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22387
22388 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22389 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22390 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22391
22392 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22393
22394 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22395
22396 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22397
22398 * util/grub-install.in: Replace useless recomendation to pass
22399 --modules with a recomendation to report a bug.
22400
22401 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22402
22403 Properly register serial terminfo.
22404 Reported by: Jordan Uggla
22405
22406 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22407 const.
22408 (grub_serial_terminfo_output_template): Likewise.
22409 (grub_cmd_serial): Register "serial" with terminfo.
22410 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22411 grub_serial_terminfo_output.
22412
22413 2010-11-05 Robert Millan <rmh@gnu.org>
22414
22415 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22416 needed).
22417
22418 2010-11-05 Robert Millan <rmh@gnu.org>
22419
22420 On Yeeloong, pass machine type information to Linux.
22421
22422 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22423 (LOONGSON_MACHTYPE): New macro, set to
22424 "machtype=lemote-yeeloong-2f-8.9inches".
22425 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22426 additional argument to Linux.
22427
22428 2010-11-04 Robert Millan <rmh@gnu.org>
22429
22430 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22431 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22432 (its SATA disks are detected as slaveless IDE master drives on
22433 kFreeBSD).
22434 Reported by Carsten Aulbert.
22435
22436 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22437
22438 * util/bin2h.c (main): Fix spelling error in generated output.
22439
22440 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22441
22442 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22443
22444 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22445
22446 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22447 vga= option is supplied.
22448
22449 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22450
22451 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22452 * util/grub.d/10_kfreebsd.in: Likewise.
22453 * util/grub.d/10_linux.in: Likewise.
22454 * util/grub.d/20_linux_xen.in: Likewise.
22455
22456 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22457
22458 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22459 argument as an argument to no-argument option.
22460
22461 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22462
22463 * util/grub.d/10_linux.in: Add missing load_video with explicit
22464 GRUB_GFXPAYLOAD_LINUX.
22465
22466 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22467
22468 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22469
22470 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22471
22472 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22473 elements with invlid index.
22474 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22475 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22476 members.
22477 * include/grub/raid.h (grub_raid_member): New struct.
22478 (grub_raid_array): Transform devices and start_sector into usage of
22479 grub_raid_member. All users updated
22480 (allocated_devs): New member.
22481
22482 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22483
22484 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22485 is modified
22486
22487 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22488
22489 NetBSD build fix for getline function conflict from gnulib.
22490
22491 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22492 components that depend on gnulib headers.
22493 (libgrubmods.a): Renamed from earlier libgrub.a.
22494 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22495
22496 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22497
22498 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22499 install rather than creating a broken install.
22500
22501 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22502
22503 * util/grub-setup.c (argp): Remove misleading example of installing to
22504 a partition.
22505
22506 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22507
22508 * util/grub-setup.c (setup): Clarify the error message.
22509
22510 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22511
22512 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22513
22514 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22515
22516 * grub-core/kern/emu/misc.c
22517 (grub_make_system_path_relative_to_its_root)
22518 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22519
22520 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22521
22522 * grub-core/kern/emu/misc.c
22523 (grub_make_system_path_relative_to_its_root): Revert r2882.
22524
22525 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22526
22527 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22528 useless field head. All users updated.
22529 (free_subchunk): Correct handling of IN_REGION subchunk.
22530
22531 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22532
22533 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22534 (Supported kernels): Likewise.
22535
22536 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22537
22538 Make mktemp invocations portable.
22539
22540 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22541 exit if mktemp fails.
22542 * tests/grub_script_blockarg.in: Likewise.
22543 * tests/partmap_test.in: Likewise.
22544 * tests/util/grub-shell-tester.in: Likewise.
22545 * tests/util/grub-shell.in: Likewise.
22546 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22547 * Makefile.am: Likewise, and chain shell commands with `&&'
22548 instead of ';'.
22549 * util/grub-mkrescue.in: Use the same explicit template as above, and
22550 exit if mktemp fails.
22551
22552 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22553
22554 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22555 Linux kernel, reported by Dennis Schridde.
22556
22557 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22558
22559 * grub-core/normal/auth.c (grub_auth_check_authentication):
22560 Set-but-not-used variable removed.
22561
22562 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22563
22564 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22565 32-bit linux protocol.
22566
22567 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22568
22569 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22570 cursor shape for sanity.
22571
22572 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22573
22574 * docs/grub.texi (Installation): Document buggy BIOS install.
22575
22576 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22577
22578 * docs/grub.texi (Installation): Indent.
22579
22580 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22581
22582 * util/grub-setup.c (setup): New parameter allow_floppy.
22583 (arguments): New member allow_floppy.
22584 (argp_parser): Handle --allow-floppy.
22585 (main): Pass allow_floppy.
22586 * util/grub-install.in: New option --allow-floppy passed though to
22587 grub-setup.
22588
22589 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22590
22591 * util/grub-install.in: Handle partitionless disks.
22592
22593 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22594
22595 * util/grub-setup.c (setup): Don't clean blocklists before readability
22596 verfification.
22597
22598 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22599
22600 * docs/grub.texi (Installation): Document embedding zone. Remove
22601 obsolete grub-install example.
22602
22603 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22604
22605 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22606 Set-but-not-used variable ifdef'ed.
22607 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22608 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22609 variable removed.
22610 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22611 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22612 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22613 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22614 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22615 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22616 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22617 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22618 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22619 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22620 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22621 Likewise.
22622
22623 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22624
22625 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22626 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22627 enum value.
22628
22629 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22630
22631 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22632 synonym to _S5_. Needed for some DSDTs.
22633
22634 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22635
22636 Userspace ACPI parser debugging.
22637
22638 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22639 headers and add relevant defines. Don't include standard headers.
22640 (main) [GRUB_DSDT_TEST]: New function.
22641 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22642 Don't declare functions.
22643
22644 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22645
22646 Remove dead grub_efi_mm_fini.
22647
22648 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22649 (ALLOCATED_PAGES_SIZE): Likewise.
22650 (MAX_ALLOCATED_PAGES): Likewise.
22651 (allocated_pages): Likewise.
22652 (grub_efi_allocate_pages): Don't record allocated pages.
22653 (grub_efi_free_pages): Likewise.
22654 (grub_efi_mm_init): Likewise.
22655 (grub_efi_mm_fini): Removed.
22656
22657 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22658
22659 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22660 (grub_efi_mm_init): Take into account the memory map size increase.
22661
22662 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22663
22664 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22665 (serial_hw_put): Wait based on real time rather than port reads. Don't
22666 roken ports.
22667 * include/grub/serial.h (grub_serial_port): New field broken.
22668
22669 2010-10-16 Robert Millan <rmh@gnu.org>
22670
22671 * grub-core/kern/emu/misc.c
22672 (grub_make_system_path_relative_to_its_root): Fix premature return
22673 when processing non-root ZFS filesystems.
22674 Reported by Sergio Talens-Oliag.
22675
22676 2010-10-15 Robert Millan <rmh@gnu.org>
22677
22678 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22679 guarantee compressed ones are processed first.
22680
22681 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22682
22683 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22684 grub_efiemu_autocore.
22685
22686 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22687
22688 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22689 rather than 0x1b.
22690 (grub_console_getkey): Use correct jae opcode rather than ja.
22691
22692 2010-10-12 Robert Millan <rmh@gnu.org>
22693
22694 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22695 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22696 variable. All references updated.
22697
22698 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22699
22700 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22701
22702 Correctly distinguish mdraid flavours.
22703
22704 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22705 (insert_array): New argument raid.
22706 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22707 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22708 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22709
22710 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22711
22712 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22713 handling of special keys.
22714
22715 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22716
22717 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22718 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22719
22720 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22721
22722 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22723 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22724 users updated.
22725 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22726 Use right endpoint when querying descriptor.
22727
22728 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22729
22730 Clear out 0x80 color bit on EFI.
22731 Tested by: decoder
22732 Reported by: decoder and meta tech.
22733
22734 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22735 (grub_console_setcolorstate): Clear out 0x80 bit.
22736 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22737 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22738 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22739
22740 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22741
22742 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22743 Set to "auto".
22744
22745 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22746
22747 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22748 mo_file after freeing.
22749
22750 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22751
22752 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22753
22754 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22755
22756 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22757 flags.
22758
22759 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22760
22761 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22762 usage.
22763
22764 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22765
22766 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22767
22768 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22769 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22770 and terminfo.h when needed.
22771 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22772 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22773 (terminfo): Enable only on terminfokernel.
22774 (extcmd): Likewise.
22775 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22776 * include/grub/lib/arg.h: Likewise.
22777 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22778 incorrect usage of ->.
22779
22780 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22781
22782 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22783 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22784
22785 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22786
22787 Fix coreboot compilation.
22788
22789 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22790 Take VBE info into account even if only text is supported.
22791 (fill_vbe_info): Take into account the case when only VGA text
22792 is supported.
22793 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22794 on coreboot, multiboot and qemu.
22795
22796 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22797
22798 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22799 debug messages.
22800 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22801
22802 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22803
22804 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22805 parameters.
22806
22807 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22808
22809 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22810 if they were BSD-style.
22811
22812 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22813
22814 * grub-core/boot/i386/pc/lnxboot.S: Replace
22815 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22816 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22817
22818 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22819
22820 Write embedding zone using Reed-Solomon.
22821
22822 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22823 * grub-core/Makefile.am (rs_decoder.S): New target.
22824 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22825 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22826 (multiboot): Move to RS part.
22827 (post_reed_solomon): New label.
22828 (grub_boot_drive): Move to non-RS part since it's modified in memory
22829 on boot.
22830 Include rs_decoder.S.
22831 * grub-core/lib/reed_solomon.c: New file.
22832 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22833 New definition.
22834 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22835 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22836 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22837 * include/grub/partition.h (grub_partition_map): Change prototype of
22838 embed to allow returning additional sectors.
22839 * include/grub/reed_solomon.h: New file.
22840 * util/grub-setup.c (setup): Handle Reed-Solomon.
22841
22842 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22843
22844 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22845 i386 and x86-64 definedness tests.
22846
22847 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22848
22849 Fix generation of kernel_syms.lst
22850
22851 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22852 ASM_PREFIX
22853
22854 2010-09-26 Robert Millan <rmh@gnu.org>
22855
22856 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22857
22858 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22859 the pool is an array of devices, iterate through it and return the
22860 first device that passes a stat() test (instead of blindly returning
22861 the first one).
22862
22863 2010-09-26 Robert Millan <rmh@gnu.org>
22864
22865 Build fixes for GNU/kFreeBSD.
22866
22867 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22868 to programs that require ZFS conversion.
22869 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22870 kernels that don't have FLOPPY_MAJOR.
22871
22872 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22873
22874 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22875
22876 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22877
22878 Fix grub-emu build.
22879
22880 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22881 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22882 mdraid09 and mdraid1x.
22883
22884 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22885
22886 Re-enable grub-extras.
22887
22888 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22889 avoid confusing Automake. Run autogen only twice, once for the top
22890 level and once for grub-core. Add Makefile.util.def and
22891 Makefile.core.def from extra modules to the appropriate autogen
22892 invocations. If Makefile.common exists in an extra module, include
22893 it in both Makefile.util.am and grub-core/Makefile.core.am;
22894 similarly, include any Makefile.util.common file in Makefile.util.am
22895 and any Makefile.core.common file in grub-core/Makefile.core.am.
22896 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22897 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22898 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22899 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22900
22901 * gentpl.py (gvar_add): Turn GVARS into a set.
22902 (global_variable_initializers): Sort global variables on output.
22903 (vars_init): New function.
22904 (first_time): Likewise.
22905 (library): Ensure that non-global variable initialisations are
22906 emitted before the first time we emit code for a library block.
22907 Append to variables rather than setting them. Only emit
22908 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22909 each conditional path.
22910 (program): installdir() emits an Autogen macro, so must be passed to
22911 var_add rather than gvar_add.
22912 (data): Likewise.
22913 (script): Likewise.
22914 (rules): New function, centralising handling for different target
22915 types. Set up Guile association lists for first_time and vars_init,
22916 and send most output to a diversion so that variable initialisations
22917 can be emitted first.
22918 (module_rules): Use new rules function.
22919 (kernel_rules): Likewise.
22920 (image_rules): Likewise.
22921 (library_rules): Likewise.
22922 (program_rules): Likewise.
22923 (script_rules): Likewise.
22924 (data_rules): Likewise.
22925
22926 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22927
22928 * .bzrignore: Add contrib and grub-core/contrib. Remove
22929 grub-core/Makefile.gcry.am.
22930
22931 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22932
22933 * grub-core/lib/LzFind.c: Add missing include.
22934 * grub-core/lib/LzmaEnc.c: Likewise.
22935 * grub-core/script/lexer.c: Likewise.
22936 * grub-core/script/yylex.l: Likewise.
22937 * util/grub-macho2img.c: Likewise.
22938 * util/grub-menulst2cfg.c: Likewise.
22939 * util/grub-mklayout.c: Likewise.
22940 * util/grub-mkpasswd-pbkdf2.c
22941 * util/grub-mkrelpath.c: Likewise.
22942 * util/resolve.c: Likewise.
22943
22944 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22945
22946 * Makefile.util.def (example_unit_test): Add
22947 grub-core/gnulib/libgnu.a.
22948
22949 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22950
22951 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22952
22953 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22954
22955 Support xz compression on yeeloong.
22956
22957 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22958 * configure.ac: Check for LZMA.
22959 * grub-core/Makefile.core.def (xz_decompress): New target.
22960 (none_decompress): Likewise.
22961 * grub-core/boot/decompressor/minilib.c: New file.
22962 * grub-core/boot/decompressor/none.c: Likewise.
22963 * grub-core/boot/decompressor/xz.c: Likewise.
22964 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22965 * grub-core/kern/mips/cache_flush.S: Likewise.
22966 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22967 * grub-core/kern/mips/startup.S: Move first stage to ...
22968 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22969 nomacro.
22970 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22971 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22972 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22973 Allocate statically.
22974 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22975 Allocate statically or use scratch. Don't check CRC32.
22976 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22977 Allocate statically. Don't check CRC32.
22978 * include/grub/decompressor.h: New file.
22979 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22980 Removed.
22981 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22982 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22983 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22984 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22985 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22986 * util/grub-mkimage.c (grub_compression_t): New type.
22987 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22988 (image_target_desc): New field default_compression.
22989 (image_targets): Adjust yeeloong targets.
22990 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22991 (compress_kernel): New parameter comp.
22992 (generate_image): Likewise. Handle new compression case.
22993 (options): New option --compression
22994 (help): Likewise.
22995 (main): Handle new option.
22996
22997 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22998
22999 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23000
23001 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
23002
23003 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23004 typo in __i386__ conditional.
23005
23006 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23007
23008 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23009 include.
23010
23011 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23012
23013 Implement EFI and ACPI multiboot2 extensions.
23014
23015 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23016 new tags as supported.
23017 (acpiv2_size): New function.
23018 (grub_multiboot_get_mbi_size): Take new tags into account.
23019 (grub_multiboot_make_mbi): Add new tags.
23020 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23021
23022 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23023
23024 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23025 Added missing configuration of USB device.
23026
23027 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23028
23029 * grub-core/normal/menu_entry.c (run): Make sure we always return
23030 a value.
23031
23032 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23033
23034 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23035 NumberOfPages is UINT64 according to the UEFI specification, not
23036 UINTN. Fix printf format.
23037
23038 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23039
23040 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23041 `err' to grub_usb_err_t.
23042 Reported and tested by: KESHAV P.R.
23043
23044 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23045
23046 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23047 tpart non-const, so that we can assign to it. (Since this is a
23048 typedef, the constness refers to the pointer rather than what it
23049 points to.)
23050
23051 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23052
23053 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23054 $(top_srcdir)/grub-core/gnulib as well as
23055 $(top_builddir)/grub-core/gnulib.
23056 Reported by: KESHAV P.R.
23057
23058 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23059
23060 * util/grub-install.in: Fix the bootloader ID option to be
23061 consistently --bootloader-id, not --bootloader_id.
23062 Reported by: KESHAV P.R.
23063
23064 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23065
23066 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23067 check hash checksum." consistently translatable.
23068
23069 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23070
23071 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23072 $(top_builddir).
23073
23074 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23075
23076 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23077 (GRUB_MOD_INIT): Register sha1sum command.
23078 (GRUB_MOD_FINI): Unregister sha1sum command.
23079
23080 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23081
23082 Keep boot and grub directory names in sync with utils scripts
23083
23084 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23085 * config.h.in: Add previous macros.
23086 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23087 * util/grub-install.in: Use $bootdir and $grubdir variables.
23088
23089 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23090
23091 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23092 convert partition names to disk names if the new `convert' parameter
23093 is set.
23094 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23095 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23096 disk in its own right. This can happen with Xen disk images.
23097
23098 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23099
23100 * util/grub-editenv.c: Update strings to avoid warnings when generating
23101 grub.pot file.
23102 * util/grub-setup.c: Likewise.
23103
23104 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23105
23106 * configure.ac: Change version to 1.99~beta0.
23107
23108 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23109
23110 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23111 Add BADRAM.
23112 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23113 Likewise.
23114 * include/multiboot.h: Resynced with specification.
23115 * include/multiboot2.h: Likewise.
23116
23117 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23118
23119 Fix po directory handling.
23120
23121 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23122 * grub-core/gnulib/Makefile.am: Import gettext module.
23123 * m4/gnulib-cache.m4: Likewise.
23124 * m4/gnulib-comp.m4: Likewise.
23125 * m4/gettext.m4: New file, from gnulib.
23126 * m4/glibc2.m4: Likewise.
23127 * m4/iconv.m4: Likewise.
23128 * m4/intdiv0.m4: Likewise.
23129 * m4/intl.m4: Likewise.
23130 * m4/intldir.m4: Likewise.
23131 * m4/intlmacosx.m4: Likewise.
23132 * m4/intmax.m4: Likewise.
23133 * m4/inttypes-pri.m4: Likewise.
23134 * m4/lcmessage.m4: Likewise.
23135 * m4/lib-ld.m4: Likewise.
23136 * m4/lib-link.m4: Likewise.
23137 * m4/lib-prefix.m4: Likewise.
23138 * m4/lock.m4: Likewise.
23139 * m4/nls.m4: Likewise.
23140 * m4/po.m4: Likewise.
23141 * m4/printf-posix.m4: Likewise.
23142 * m4/progtest.m4: Likewise.
23143 * m4/threadlib.m4: Likewise.
23144 * m4/uintmax_t.m4: Likewise.
23145 * m4/visibility.m4: Likewise.
23146 * po/Makefile.am: Remove.
23147 * po/Makefile.in.in: New file, from gettext.
23148 ($(DOMAIN).pot-update): Support POTFILES-shell.
23149 * po/Makevars: New file.
23150 * po/POTFILES-shell: Rename to ...
23151 * po/POTFILES-shell.in: ... this. Update.
23152 * po/POTFILES: Rename to ...
23153 * po/POTFILES.in: ... this. Update.
23154 * po/Rules-quot: New file, from gettext.
23155 * po/boldquot.sed: Likewise.
23156 * po/en@boldquot.header: Likewise.
23157 * po/en@quot.header: Likewise.
23158 * po/insert-header.sin: Likewise.
23159 * po/quot.sed: Likewise.
23160 * po/remove-potcdate.sin: Likewise.
23161
23162 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23163
23164 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23165
23166 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23167
23168 * util/grub.d/20_linux_xen.in: Use submenus.
23169
23170 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23171
23172 Support submenus.
23173
23174 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23175 parameter submenu. All users updated.
23176 * grub-core/normal/main.c (free_menu): Rename to ...
23177 (grub_normal_free_menu): ... this. Made global.
23178 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23179 if requested.
23180 * grub-core/normal/menu_entry.c (screen): New field submenu.
23181 (make_screen): Set submenu.
23182 (run): Open new context if requested.
23183 * include/grub/menu.h (grub_menu_entry): New field submenu.
23184 * include/grub/normal.h (grub_normal_free_menu): New proto.
23185
23186 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23187
23188 Menu entries extractor.
23189
23190 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23191 variants.
23192 (GRUB_MOD_INIT): Register new variants.
23193 (GRUB_MOD_FINI): Unregister new variants.
23194 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23195 into grub_cmd_legacy_source.
23196 (grub_cmd_legacy_source): Implement extractor variants.
23197 (GRUB_MOD_INIT): Register new variants.
23198 (GRUB_MOD_FINI): Unregister new variants.
23199 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23200 as an extractor.
23201 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23202 search as an extractor.
23203 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23204 test as an extractor.
23205 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23206 as an extractor.
23207 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23208 (grub_env_new_context): New function.
23209 (grub_env_context_open): Likewise.
23210 (grub_env_extractor_open): Likewise.
23211 (grub_env_extractor_close): Likewise.
23212 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23213 grub_extractor_level.
23214 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23215 * include/grub/env.h (grub_env_extractor_open): New proto.
23216 (grub_env_extractor_close): Likewise.
23217 * include/grub/normal.h (grub_extractor_level): New external variable.
23218
23219 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23220
23221 Make cutmem accept a region specification.
23222 Suggested by: Samuel Thibault
23223
23224 * grub-core/mmap/mmap.c (parsemem): New function.
23225 (grub_cmd_cutmem): Handle new arguments.
23226
23227 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23228
23229 New command cutmem.
23230
23231 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23232 (GRUB_MOD_INIT): Register new command.
23233 (GRUB_MOD_FINI): Unregister new command.
23234
23235 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23236
23237 Support some annoying BSD and Minix subpartitions.
23238
23239 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23240 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23241 Properly handle concatenation.
23242 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23243 * grub-core/normal/completion.c (iterate_partition): Likewise.
23244 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23245 contain partition. All users updated.
23246 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23247 struct.
23248 (grub_openbsdlabel_partition_map): Likewise.
23249 (bsdlabel_partition_map_iterate): Rename to ..
23250 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23251 (bsdlabel_partition_map_iterate): New function.
23252 (netopenbsdlabel_partition_map_iterate): Likewise.
23253 (netbsdlabel_partition_map_iterate): Likewise.
23254 (openbsdlabel_partition_map_iterate): Likewise.
23255 (GRUB_MOD_INIT): Register new partmaps.
23256 (GRUB_MOD_FINI): Unregister new partmaps.
23257 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23258 (grub_partition_msdos_iterate): ... this. All users updated.
23259 Don't support embedding other than in a minix partition.
23260 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23261 proto.
23262 * include/grub/partition.h (grub_partition): New field msdostype.
23263 * util/grub-install.in: Handle openbsd and netbsd types being in
23264 part_bsd module.
23265
23266 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23267
23268 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23269
23270 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23271 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23272 (mdraid09): ... this.
23273 (mdraid1x): New module.
23274 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23275 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23276
23277 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23278
23279 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23280 vsprintf.
23281
23282 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23283
23284 * grub-core/commands/efi/lsefimmap.c: Correct header.
23285 * NEWS: Update.
23286
23287 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23288
23289 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23290 as printf format strings; the translations might contain '%' which
23291 could cause a crash.
23292 (main): Likewise.
23293 * util/grub-fstest.c (argp_parser): Likewise.
23294 * util/grub-setup.c (argp_parser): Likewise.
23295 (main): Likewise.
23296
23297 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23298
23299 Use argp in grub-fstest.
23300
23301 * util/grub-fstest.c: Don't include getopt.h.
23302 Include argp.h.
23303 (root): New variable.
23304 (args_count): Likewise.
23305 (nparm): Likewise.
23306 (num_disks): Likewise.
23307 (images): Likewise.
23308 (cmd): Likewise.
23309 (debug_str): Likewise.
23310 (args): Likewise.
23311 (options): Transformed to argp.
23312 (usage): Removed.
23313 (main): Split argument parsing into ...
23314 (argp_parser): ... this. Changed to argp format.
23315 (argp): New variable.
23316 (main): Use argp_parse.
23317
23318 2010-09-20 Tristan Gingold <gingold@free.fr>
23319 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23320 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23321
23322 * grub-core/commands/efi/lsefimmap.c: New file.
23323 * grub-core/Makefile.core.def (lsefimmap): New module.
23324 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23325
23326 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23327
23328 Pause the execution (10s max) if any errors are displayed so the user
23329 has a chance to see them.
23330
23331 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23332 (grub_print_error): Increment grub_err_printed_errors.
23333 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23334 execution if any errors were displayed.
23335 (show_menu): Remove old code for pause.
23336 * grub-core/normal/menu_entry.c (run): Likewise.
23337 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23338 users updated.
23339 (grub_normal_get_char_counter): Likewise.
23340 * include/grub/err.h (grub_err_printed_errors): New external variable.
23341 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23342
23343 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23344
23345 Support multiboot VBE info.
23346
23347 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23348 Take VBE info into account.
23349 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23350 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23351 Call fill_vbe_info when appropriate.
23352 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23353 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23354 as supported.
23355 (grub_multiboot_get_mbi_size): Take new tags into account.
23356 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23357 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23358 Call fill_vbe_tag when appropriate.
23359 (grub_multiboot_make_mbi): Properly align tags.
23360 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23361 function.
23362 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23363 proto.
23364 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23365
23366 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23367
23368 Suport manual terminal geometry specification.
23369
23370 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23371 Save state in grub_ofconsole_terminfo_output.
23372 (grub_ofconsole_term): Use grub_terminfo_getwh.
23373 (grub_ofconsole_getwh): Removed.
23374 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23375 (grub_serial_term): Use grub_terminfo_getwh.
23376 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23377 (options): New struct.
23378 (OPTION_*): New enum.
23379 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23380 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23381 width and height.
23382 (grub_terminfo_getwh): New proto.
23383 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23384
23385 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23386
23387 Handle legacy "terminal" command.
23388
23389 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23390 and FLAG_TERMINAL.
23391 (legacy_commands): Add terminal and title.
23392 (grub_legacy_parse): Handle terminal. Simplify title handling.
23393
23394 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23395
23396 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23397 parameters overflow.
23398
23399 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23400
23401 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23402 widthspec.h.
23403
23404 * docs/grub.texi (Shell-like scripting): Document `!'.
23405 (Network): Simplify using new i386-pc-pxe format. Mention
23406 grub-mknetdir.
23407
23408 * NEWS: Update.
23409
23410 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23411
23412 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23413 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23414 when needed.
23415
23416 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23417
23418 * grub-core/commands/efi/lsefisystab.c: Correct header.
23419 * grub-core/commands/efi/lssal.c: Likewise.
23420 * grub-core/commands/testload.c: Likewise.
23421
23422 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23423
23424 * util/grub-mkrescue.in: Add explicit root argument to --set to
23425 prevent the UUID being interpreted as an argument to --set (matches
23426 previous change to prepare_grub_to_access_device).
23427
23428 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23429
23430 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23431 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23432 the verbosity of later #ifs.
23433 (find_partition_start): Define this function on FreeBSD too.
23434 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23435 function.
23436 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23437 on FreeBSD.
23438
23439 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23440
23441 * util/grub-editenv.c: Use argp instead of getopt.
23442
23443 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23444
23445 * util/grub-setup.c: Use argp instead of getopt.
23446
23447 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23448
23449 Use gnulib-tool to create gnulib source files.
23450
23451 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23452 grub-core/gnulib directories
23453 * .bzignore: Add **/.deps and autogenerated gnulib files
23454 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23455 of gnulib macros, add grub-core/gnulib/Makefile
23456 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23457 include m4 directory to aclocal.
23458 * Makefile.util.def: Remove direct compilation of gnulib source files
23459 and use the new grub-core/gnulib/libgnu.a.
23460 * build-aux/config.rpath: move config.rpath from top directory to
23461 build-aux
23462 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23463 in gnulib headers
23464 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23465 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23466 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23467 header.
23468 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23469 string.
23470
23471 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23472
23473 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23474 grub-core/genmod.sh and grub-core/gensyminfo.sh
23475
23476 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23477
23478 Add a test for echo command options.
23479
23480 * tests/grub_cmd_echo.in: New test.
23481 * Makefile.util.def: Rules for new test.
23482
23483 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23484
23485 Remove crc.mod and move crc command to hashsum.mod.
23486 Remove lib/crc.c - users updated to use gcrypt implementation.
23487
23488 * grub-core/commands/crc.c: Removed.
23489 * grub-core/Makefile.core.def (crc): Module removed.
23490 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23491 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23492 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23493 * grub-core/lib/crc.c: Removed.
23494 * include/grub/lib/crc.h: Removed.
23495 * Makefile.util.def (crc): Remove lib/crc.c
23496 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23497 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23498 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23499 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23500 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23501 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23502
23503 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23504
23505 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23506
23507 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23508
23509 Split config.h for util and core.
23510
23511 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23512 (ADDR32): Likewise.
23513 (DATA32): Likewise.
23514 (BSS_START_SYMBOL): Likewise.
23515 (END_SYMBOL): Likewise.
23516 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23517 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23518 * config.h.in: New file.
23519 * configure.ac: Use config-util.h as config define file.
23520 Rename MACHINE into GRUB_MACHINE. All users updated.
23521 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23522 updated.
23523 (NESTED_FUNC_ATTR): Likewise.
23524 Substitue new variables.
23525 (COND_HAVE_ASM_USCORE): New conditional.
23526 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23527 (kernel_syms.lst): Use ASM_PREFIX.
23528 * grub-core/kern/emu/console.c: Include config-util.h.
23529 * grub-core/kern/emu/misc.c: Likewise.
23530 * grub-core/kern/emu/mm.c: Likewise.
23531 * include/grub/emu/misc.h: Likewise.
23532 * include/grub/libgcc.h: Likewise.
23533
23534 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23535
23536 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23537 constants usage.
23538 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23539 Fix GRUB_TERM_KEY_* constants usage.
23540 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23541
23542 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23543
23544 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23545 print pointer.
23546 * grub-core/bus/usb/uhci.c: Remove empty define.
23547 (grub_uhci_check_transfer): Add missing cast.
23548 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23549 print pointer.
23550 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23551 PRIuGRUB_SIZE.
23552 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23553
23554 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23555
23556 * grub-core/Makefile.core.def (legacycfg): Add
23557 lib/i386/pc/vesa_modes_table.c on emu.
23558
23559 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23560
23561 Reduce number of temporary files generated by build system.
23562
23563 * grub-core/gencmdlist.sh: Removed.
23564 * grub-core/genfslist.sh: Removed.
23565 * grub-core/genhandlerlist.sh: Removed.
23566 * grub-core/genmodsrc.sh: Removed.
23567 * grub-core/genpartmaplist.sh: Removed.
23568 * grub-core/genparttoollist.sh: Removed.
23569 * grub-core/gentermiinallist.sh: Removed.
23570 * grub-core/genvideolist.sh: Removed.
23571
23572 * grub-core/genmod.sh.in: New file.
23573 * grub-core/gensyminfo.sh.in: New file.
23574
23575 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23576 * conf/Makefile.extra-dist: Update with new files.
23577 * gentpl.py: Remove rules related to unnecessary temporary files.
23578 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23579 and und-* files.
23580 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23581 genmod.sh scripts.
23582 * grub-core/bus/usb/uhci.c: Remove empty #define.
23583 * grub-core/genmoddep.awk: Updated with new syminfo format.
23584 * util/bash-completion.d/Makefile.am: Add config.log to
23585 CLEANFILES.
23586
23587 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23588
23589 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23590
23591 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23592
23593 * util/grub-mkconfig.in: Check the config script for syntax errors
23594 before saving.
23595
23596 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23597 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23598
23599 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23600 platforms.
23601 * util/grub-install.in: Add EFI and IEEE1275 support.
23602 * util/i386/efi/grub-install.in: Removed.
23603 * util/ieee1275/grub-install.in: Likewise.
23604
23605 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23606
23607 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23608 (grub_cmd_cmosclean): Likewise.
23609 (GRUB_MOD_INIT): Register command cmosclean.
23610 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23611 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23612
23613 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23614 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23615 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23616
23617 Add keyboard layouts support.
23618
23619 * Makefile.util.def (grub-mklayout): New file.
23620 (grub-kbdcomp): New script.
23621 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23622 Add keyboard_layouts.h.
23623 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23624 commands/boot.c on yeeloong.
23625 (keylayouts): New module.
23626 * grub-core/bus/usb/ohci.c
23627 * grub-core/bus/usb/uhci.c
23628 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23629 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23630 (attach_root_port): Likewise.
23631 (poll_nonroot_hub): Likewise.
23632 (grub_usb_poll_devices): Likewise.
23633 (detach_device): Close transfer.
23634 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23635 function.
23636 (grub_usb_bulk_setup_readwrite): Likewise.
23637 (grub_usb_bulk_finish_readwrite): Likewise.
23638 * grub-core/commands/keylayouts.c: New file.
23639 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23640 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23641 aliases.
23642 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23643 support scancode 2.
23644 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23645 * include/grub/keyboard_layouts.h: New file.
23646 * util/grub-mklayout.c: New file.
23647 * util/grub-kbdcomp.in: Likewise.
23648
23649 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23650
23651 Unify memory types.
23652
23653 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23654 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23655 types.
23656 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23657 (grub_upper_mem): Likewise.
23658 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23659 * include/grub/memory.h (grub_memory_type_t): New enum.
23660 All users updated.
23661
23662 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23663
23664 * grub-core/Makefile.core.def (lsapm): New module.
23665 * grub-core/commands/i386/pc/lsapm.c: New file.
23666 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23667 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23668 Likewise.
23669 * include/grub/i386/pc/apm.h: New file.
23670 * include/multiboot.h (multiboot_apm_info): New struct.
23671
23672 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23673
23674 GRUB-legacy configuration file support.
23675
23676 * Makefile.util.def (grub-menulst2cfg): New util.
23677 * docs/man/grub-menulst2cfg.h2m: New file.
23678 * grub-core/Makefile.core.def (legacycfg): New module.
23679 * grub-core/commands/legacycfg.c: New file.
23680 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23681 (grub_normal_add_menu_entry): ... this.
23682 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23683 (grub_normal_set_password): ...this.
23684 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23685 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23686 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23687 * grub-core/lib/legacy_parse.c: New file.
23688 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23689 * include/grub/i386/pc/vesa_modes_table.h: New file.
23690 * include/grub/legacy_parse.h: Likewise.
23691 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23692 * util/grub-menulst2cfg.c: New file.
23693
23694 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23695
23696 * grub-core/kern/emu/hostdisk.c
23697 (convert_system_partition_to_system_disk): Initialise node.
23698
23699 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23700
23701 * grub-core/kern/emu/hostdisk.c
23702 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23703 leak.
23704 Reported and based on patch by: Modestas Vainius.
23705
23706 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23707
23708 Fix DM-RAID probing with recent versions of device-mapper udev
23709 rules.
23710
23711 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23712 canonicalise device paths under /dev/mapper/.
23713 (convert_system_partition_to_system_disk): Compare the
23714 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23715 path, since device nodes under /dev/mapper/ are often symlinks.
23716
23717 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23718
23719 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23720
23721 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23722
23723 * configure.ac: Avoid some annoying error messages if freetype-config
23724 program is not found.
23725
23726 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23727
23728 Support RAID on virtio devices, and others.
23729
23730 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23731 Rename to ...
23732 [__MINGW32__] (grub_find_device): ... this.
23733 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23734 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23735 reasonable default if dir is NULL.
23736 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23737 ...
23738 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23739 (grub_guess_root_device): Update callers.
23740 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23741
23742 * util/raid.c (grub_util_getdiskname): Remove.
23743 (grub_util_raid_getmembers): Use grub_find_device rather than
23744 grub_util_getdiskname.
23745
23746 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23747
23748 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23749 needing to be compiled with serial support.
23750 (ls): Indicate that multiple files are accepted.
23751 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23752 indicate that multiple files are accepted.
23753
23754 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23755
23756 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23757 libgrub_a_init.c, and util/bash-completion.d/grub.
23758
23759 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23760
23761 * util/grub-setup.c (setup): Fix incorrect container semantics.
23762
23763 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23764
23765 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23766 misusage.
23767 Reported by: J. Nick Terry
23768
23769 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23770
23771 Move embedding routines to partmap sources files.
23772
23773 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23774 [GRUB_UTIL]: New variable.
23775 (gpt_partition_map_iterate): Set part.parent.
23776 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23777 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23778 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23779 New function.
23780 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23781 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23782 (grub_partition_map) [GRUB_UTIL]: New field embed.
23783 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23784 (setup): Use ->embed.
23785
23786 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23787
23788 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23789 function.
23790 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23791 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23792
23793 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23794
23795 Add function to get completions from usage.
23796
23797 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23798 completions from usage. Use LC_ALL=C to get options properly.
23799
23800 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23801
23802 * grub-core/gnulib/basename-lgpl.c: Imported.
23803 * grub-core/gnulib/basename.c: Likewise.
23804 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23805 * grub-core/gnulib/dirname.c: Likewise.
23806 * grub-core/gnulib/dirname.h: Likewise.
23807 * grub-core/gnulib/stripslash.c: Likewise.
23808
23809 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23810
23811 * grub-core/gnulib/error.c: Resynced.
23812 * grub-core/gnulib/getopt.c: Likewise.
23813 * grub-core/gnulib/getopt_int.h: Likewise.
23814 * grub-core/gnulib/regex.h: Likewise.
23815 * grub-core/gnulib/regex_internal.c: Likewise.
23816 * grub-core/gnulib/regex_internal.h: Likewise.
23817
23818 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23819
23820 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23821 CRC calculations and validity checks.
23822 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23823 calculations.
23824
23825 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23826
23827 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23828
23829 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23830
23831 Fix incorrect echo options handling.
23832 Reported by: Yves Blusseau.
23833
23834 * include/grub/command.h (grub_command_flags_t): New flags
23835 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23836 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23837 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23838
23839 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23840
23841 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23842 users updated.
23843 (GRUB_COMMAND_FLAG_MENU): Likewise.
23844 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23845 (GRUB_COMMAND_FLAG_TITLE): Removed.
23846 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23847 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23848 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23849 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23850 (grub_command_flags_t): New enum. All users updated.
23851
23852 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23853
23854 Fix solaris compilation.
23855
23856 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23857 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23858 (grub-emu-list): Likewise.
23859
23860 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23861
23862 Remove deprecated root command.
23863
23864 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23865 updated.
23866
23867 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23868
23869 * util/i386/pc/grub-setup.c: Merge this ...
23870 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23871 * util/grub-setup.c: ... into this.
23872 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23873 New struct.
23874
23875 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23876
23877 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23878 possible.
23879
23880 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23881
23882 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23883 allocate p.
23884
23885 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23886
23887 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23888 explicit root argument to set to prevent UUID to be interpreted as
23889 argument to set.
23890
23891 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23892
23893 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23894
23895 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23896
23897 Don't export grub_gate_a20.
23898
23899 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23900 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23901 to ...
23902 (grub_gate_a20): ... this. All users updated.
23903 * include/grub/i386/pc/init.h: Removed. All users updated.
23904
23905 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23906
23907 Create euro.pf2 which supports most European languages.
23908
23909 * Makefile.am (grubdata_DATA): Add euro.pf2.
23910 (euro.pf2): New target.
23911 (CLEANFILES): Add euro.pf2.
23912
23913 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23914
23915 * configure.ac: Disable emu-usb by default to prevent inadvertent
23916 device takeover.
23917
23918 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23919
23920 Disable usbserial on grub-emu since our libusb code isn't good enough
23921 yet.
23922
23923 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23924 (usbserial_pl2303): Likewise.
23925 (usbserial_ftdi): Likewise.
23926
23927 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23928
23929 * include/grub/disk.h (grub_disk): Remove has_partitions.
23930 All users updated.
23931 * disk/loopback.c (grub_loopback): Remove has_partitions.
23932 All users updated.
23933 (options): Remove partitions. All users updated.
23934 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23935 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23936 actual partition table is found.
23937
23938 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 Remove readability checks (too many false negatives).
23941
23942 * util/grub-install.in: Remove readability checks.
23943 * util/grub-mkconfig.in: Likewise.
23944 * util/grub.d/10_hurd.in: Likewise.
23945 * util/grub.d/10_kfreebsd.in: Likewise.
23946 * util/grub.d/10_linux.in: Likewise.
23947 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23948 way.
23949
23950 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23951
23952 Enable acpi shutdown on all ACPI platforms.
23953
23954 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23955 on coreboo, multiboot and EFI.
23956 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23957 (grub_acpi_halt): Likewise.
23958 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23959 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23960 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23961 * grub-core/lib/i386/halt.c (grub_halt)
23962 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23963
23964 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23965
23966 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23967 context.
23968
23969 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23970
23971 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23972 * grub-core/video/efi_uga.c: Likewise.
23973
23974 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23975
23976 Filter devaliases and never open same device twice.
23977
23978 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23979 (last_ihandle): Likewise.
23980 (ofdisk_hash_ent): New member shortest.
23981 (ofdisk_hash_add): Add canonical path too.
23982 (scan): New function.
23983 (grub_ofdisk_iterate): Iterate over hashed entries.
23984 (compute_dev_path): Don't add :0.
23985 (grub_ofdisk_open): Don't really open the disk.
23986 (grub_ofdisk_close): Avoid closing unrelated disk.
23987 (grub_ofdisk_read): Implement reopen logic.
23988 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23989 New function.
23990 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23991 New proto.
23992
23993 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23994
23995 Fix sparc64.
23996
23997 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23998 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23999 right address. Add sparc64_ieee1275_ldflags.
24000 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24001 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24002 to grub_host_to_target_addr
24003 (load_image): Likewise.
24004
24005 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24006
24007 * grub-core/normal/completion.c (complete_file): Handle device
24008 containing slash.
24009 Fix based on patch by Doug Nazar.
24010
24011 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24012
24013 grub-mknetdir script.
24014
24015 * Makefile.util.def (grub-mknetdir): New module.
24016 * tests/util/grub-shell.in: Support boot=net
24017 * util/grub-mknetdir.in: New file.
24018
24019 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24020
24021 videoinfo on non-vbe.
24022
24023 * grub-core/Makefile.core.def (vbeinfo): Removed.
24024 (vbetest): Removed.
24025 (videoinfo): New module.
24026 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24027 * grub-core/commands/i386/pc/vbetest.c: Removed.
24028 * grub-core/commands/videoinfo.c: New file.
24029 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24030 specification.
24031 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24032 as vbetest.
24033 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24034 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24035 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24036 mode_number. New parameter mode. All users updated.
24037 (grub_video_gop_iterate): New function.
24038 (grub_video_efi_gop): New member iterate.
24039 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24040 (grub_vbe_set_video_mode): Remove setting useless fields.
24041 (vbe2videoinfo): New function.
24042 (grub_video_vbe_iterate): Likewise.
24043 (grub_video_vbe_setup): Use vbe2videoinfo.
24044 (grub_video_vbe_print_adapter_specific_info): New function.
24045 (grub_video_vbe_adapter): New fields iterate and
24046 print_adapter_specific_info.
24047 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24048 All users updated.
24049 (grub_video_mode_info): New field mode_number.
24050 (grub_video_adapter): New fields iterate and
24051 print_adapter_specific_info.
24052
24053 2010-09-13 Tristan Gingold <gingold@free.fr>
24054 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24055 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24056
24057 * grub-core/commands/efi/lsefisystab.c: New file.
24058 * grub-core/commands/efi/lssal.c: Likewise.
24059 * grub-core/Makefile.core.def (lsacpi): New module.
24060 (lsefisystab): Likewise.
24061 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24062 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24063 (grub_efi_sal_system_table): New struct.
24064 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24065 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24066 (grub_efi_sal_system_table_platform_features): Likewise.
24067 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24068 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24069 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24070 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24071
24072 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24073
24074 Support explicit user claim that a device is BIOS-visible.
24075
24076 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24077 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24078 * grub-core/kern/emu/hostdisk.c
24079 (convert_system_partition_to_system_disk): Support mdX.
24080 (find_system_device): New parameter add. All users updated.
24081 (grub_util_biosdisk_is_present): New function.
24082 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24083 proto.
24084
24085 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24086
24087 Search hints support.
24088
24089 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24090 All users updated.
24091
24092 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24093
24094 Bash completion script for util commands
24095
24096 * Makefile.am: Add util/bash-completion.d directory
24097 * configure.ac: Likewise.
24098 * util/bash-completion.d/Makefile.am: New file.
24099 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24100
24101 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24102
24103 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24104 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24105 Reported by: Yves Blusseau.
24106
24107 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24108
24109 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24110 partition size and offset.
24111
24112 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24113
24114 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24115
24116 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24117
24118 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24119
24120 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24121
24122 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24123 (grub_xvasprintf): Likewise.
24124
24125 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24126
24127 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24128
24129 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24130
24131 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24132 args ending with NULL.
24133
24134 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24135
24136 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24137 pointer.
24138
24139 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24140
24141 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24142
24143 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24144
24145 Shutdown using ACPI.
24146
24147 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24148 * grub-core/commands/acpihalt.c: New file.
24149 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24150 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24151 (grub_acpi_halt): New proto.
24152 (GRUB_ACPI_SLP_EN): New const.
24153 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24154 (GRUB_ACPI_OPCODE_*): New enum.
24155 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24156
24157 2010-09-11 Tristan Gingold <gingold@free.fr>
24158 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24159 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24160
24161 * commands/lsacpi.c: New file.
24162 * grub-core/Makefile.core.def (lsacpi): New module.
24163 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24164 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24165 (grub_acpi_madt_entry_header): New struct.
24166 (grub_acpi_madt): Likewise.
24167 (grub_acpi_madt_entry_interrupt_override): Likewise.
24168 (grub_acpi_madt_entry_sapic): Likewise.
24169 (grub_acpi_madt_entry_lsapic): Likewise.
24170 (grub_acpi_madt_entry_platform_int_source): Likewise.
24171 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24172 (PRIuGRUB_UINT32_T): Likewise.
24173 (PRIxGRUB_UINT64_T): Likewise.
24174
24175 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24176
24177 Implement loading palette on ieee1275_fb.
24178
24179 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24180 (have_setcolors): Likewise.
24181 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24182 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24183 (grub_video_ieee1275_set_palette): Implement.
24184
24185 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24186 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24187
24188 * util/grub-install.in (grub_partition): New variable.
24189 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24190 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24191 Fixes a bug reported by Yves Blusseau.
24192
24193 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24194
24195 Fix emu on mipsel.
24196
24197 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24198 =grub_cpu_flush_cache on all mips and not only yeeloong.
24199 * configure.ac (COND_mips): New conditional.
24200 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24201 platforms.
24202 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24203 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24204 [GRUB_LINKER_HAVE_INIT]: New function.
24205 (grub_emu_post_init): Likewise.
24206 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24207 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24208 * include/grub/cache.h (_mips): Include mips/cache.h.
24209 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24210 LVM and RAID prototypes.
24211 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24212 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24213 function.
24214
24215 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24216
24217 * util/grub-install.in: Don't try to verify core.img until after
24218 running grub-mkimage to create it.
24219
24220 2010-09-10 Robert Millan <rmh@gnu.org>
24221
24222 * util/grub.d/10_hurd.in: Add misc readability checks.
24223 * util/grub.d/10_kfreebsd.in: Likewise.
24224 * util/grub.d/10_linux.in: Likewise.
24225
24226 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24227
24228 * util/grub-install.in: ${imgext} won't be defined here until the
24229 install branch is merged. For the meantime, only verify core.img on
24230 i386-pc and sparc64-ieee1275 platforms.
24231
24232 2010-09-10 Robert Millan <rmh@gnu.org>
24233
24234 Solaris support in grub_find_zpool_from_dir(). Thanks
24235 Seth Goldberg for referring to getextmntent() facility.
24236
24237 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24238 `sys/mkdev.h'.
24239 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24240 `<sys/mnttab.h>'.
24241 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24242 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24243 method for finding zpool name.
24244
24245 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24246
24247 grub-fstest needs the host and hostfs modules while other utilities
24248 actively require those modules to be absent, so grub-fstest needs
24249 its own initialisation and finalisation code.
24250
24251 * Makefile.am (grub_fstest.pp): New target.
24252 (grub_fstest_init.lst): Likewise.
24253 (grub_fstest_init.c): Likewise.
24254 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24255
24256 2010-09-10 Robert Millan <rmh@gnu.org>
24257
24258 * configure.ac: Check for `struct statfs.f_fstypename' and
24259 `struct statfs.f_mntfromname'.
24260
24261 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24262 kFreeBSD-specific code.
24263
24264 2010-09-10 Robert Millan <rmh@gnu.org>
24265
24266 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24267 on ZFS. Now non-main filesystems are supported as / too.
24268
24269 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24270
24271 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24272 and grub-core/disk/host.c to ...
24273 (grub-fstest): ... here. Having the host disk implementation
24274 present confuses grub-probe and other utility programs.
24275
24276 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24277 when writing to a file, not when writing to stdout.
24278
24279 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24280
24281 * tests/partmap_test.in: New test for partitions.
24282 * Makefile.util.def: Rules for new test.
24283
24284 2010-09-09 Robert Millan <rmh@gnu.org>
24285
24286 * util/grub-probe.c (probe): Fix a pair of unhandled error
24287 conditions.
24288
24289 2010-09-09 Robert Millan <rmh@gnu.org>
24290
24291 Basic Btrfs support (detection and UUID).
24292
24293 * grub-core/fs/btrfs.c: New file.
24294 * Makefile.util.def (library): Register btrfs.c.
24295 * grub-core/Makefile.core.def: Likewise.
24296
24297 2010-09-08 Robert Millan <rmh@gnu.org>
24298
24299 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24300 with (optional) parameters to specify device and relative path.
24301 * util/grub-install.in: Use is_path_readable_by_grub() to
24302 verify readability of a few critical files.
24303 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24304 verify readability of grub.cfg.new.
24305
24306 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24307
24308 Split minix.mod into minix.mod and minix2.mod.
24309
24310 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24311 * grub-core/Makefile.core.def (minix2): New module.
24312 * grub-core/fs/minix.c: Use definitions instead of runtime version
24313 checking.
24314 * grub-core/fs/minix2.c: New file.
24315
24316 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24317
24318 Add new --boot-directory option to replace --root-directory
24319
24320 * util/grub-install.in: Add new --boot-directory option
24321 * util/grub-reboot.in: Likewise.
24322 * util/grub-set-default.in: Likewise.
24323
24324 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24325
24326 * util/grub-mkconfig.in: Use new variable.
24327
24328 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24329
24330 * configure.ac: Define some useful variables.
24331
24332 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24333
24334 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24335 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24336 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24337 Use terminfo and don't use cursor-on/cursor-off unless it's known
24338 to work.
24339 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24340 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24341
24342 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24343
24344 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24345 starts with "(,", fill the drive containing the loaded image in
24346 between those two characters, but expect that a full partition
24347 specification including partition map names will follow.
24348
24349 2010-09-08 Robert Millan <rmh@gnu.org>
24350
24351 * configure.ac: Remove `--enable-grub-fstest' option.
24352 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24353
24354 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24355 `grub-fstest' instead of `grub-probe' for readability verification.
24356 * util/grub-probe.c (probe): Remove readability verification kludge.
24357
24358 2010-09-08 Robert Millan <rmh@gnu.org>
24359
24360 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24361 initializing `GRUB_FS'.
24362
24363 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24364
24365 Not command (!) support to GRUB script.
24366
24367 * tests/grub_script_not.in: New test.
24368 * Makefile.util.def: Rules for new test.
24369
24370 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24371 ! command as a special case.
24372 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24373
24374 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24375
24376 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24377 grub_free.
24378
24379 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24380
24381 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24382
24383 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24384
24385 * docs/grub.texi (Shell-like scripting): Documentation for break,
24386 continue, shift and return commands.
24387
24388 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24389
24390 Rename CD-ROM to cd on BIOS.
24391
24392 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24393 "cd".
24394 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24395
24396 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24397
24398 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24399 * util/grub-probe.c (main): Likewise.
24400 * util/i386/pc/grub-setup.c (main): Likewise.
24401 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24402 Reported and debugged by: alexxy
24403
24404 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24405
24406 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24407 diagnostic info.
24408
24409 2010-09-05 Jo Shields <directhex@apebox.org>
24410
24411 * util/grub.d/30_os-prober.in: Add missing classes.
24412
24413 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24414
24415 * docs/grub.texi (Theme file format): Document new position format.
24416
24417 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24418
24419 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24420 a table. Use @code instead of @verbatim.
24421
24422 2010-09-05 Colin D Bennett <colin@gibibit.com>
24423
24424 Gfxmenu documentation.
24425
24426 * docs/grub.texi (Theme file format): New chapter.
24427
24428 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24429
24430 * grub-core/Makefile.core.def (xzio): New module.
24431 * grub-core/io/xzio.c: New file.
24432 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24433 * grub-core/lib/xzembed/xz_config.h: Likewise.
24434 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24435 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24436 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24437 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24438 * grub-core/lib/xzembed/xz_private.h: Likewise.
24439 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24440 * include/grub/file.h (grub_file_filter_id): New compression filter
24441 GRUB_FILE_FILTER_XZIO.
24442
24443 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24444
24445 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24446 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24447 size.
24448
24449 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24450
24451 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24452 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24453
24454 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24455
24456 Uncompressed checksum support.
24457
24458 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24459 (check_list): New parameter uncompress.
24460 (grub_cmd_hashsum): Handle --uncompress.
24461
24462 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24463
24464 Reintroduce testload.
24465
24466 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24467 from here ...
24468 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24469 (GRUB_MOD_INIT): New function.
24470 (GRUB_MOD_FINI): Likewise.
24471 * grub-core/Makefile.core.def (testload): New module.
24472
24473 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24474
24475 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24476 (uint8_t): New type.
24477 (uint16_t): Likewise.
24478 (uint32_t): Likewise.
24479 (uint64_t): Likewise.
24480
24481 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24482
24483 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24484
24485 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24486
24487 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24488 Made static.
24489 (grub_gzfile_open): Removed. All users updated.
24490 (GRUB_MOD_INIT): New function.
24491 (GRUB_MOD_FINI): Likewise.
24492 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24493 (grub_file_filters_enabled): Likewise.
24494 (grub_file_open): Handle filters.
24495 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24496 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24497 * include/grub/file.h (grub_file_filter_id_t): New type.
24498 (grub_file_filter_t): Likewise.
24499 (grub_file_filters_all): New extern variable.
24500 (grub_file_filters_enabled): Likewise.
24501 (grub_file_filter_register): New inline function.
24502 (grub_file_filter_unregister): Likewise.
24503 (grub_file_filter_disable): Likewise.
24504 (grub_file_filter_disable_compression): Likewise.
24505 * include/grub/gzio.h: Removed.
24506
24507 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24508
24509 Filename expansion support for wildcards in GRUB script.
24510
24511 * tests/grub_script_expansion.in: New test.
24512 * Makefile.util.def: Rule for new test.
24513
24514 * grub-core/commands/wildcard.c: New file, implements filename
24515 expansion support for GRUB script.
24516 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24517 * grub-core/script/argv.c: Cosmetic changes.
24518 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24519 Refactored to perform wildcard expansion on arguments.
24520 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24521 struct.
24522
24523 * tests/util/grub-shell.in: Fix quoting for read input.
24524
24525 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24526
24527 Support for updating environment variables with matched substrings
24528 of regexp.
24529
24530 * tests/grub_cmd_regexp.in: New test.
24531 * Makefile.util.def: Rule for new test.
24532
24533 * grub-core/commands/regexp.c: New option -s to update environment
24534 variables with regexp matches.
24535
24536 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24537
24538 * include/grub/file.h (grub_file): New member not_easly_seekable.
24539 (grub_file_seekable): New inline function.
24540 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24541 easily seekable.
24542 (grub_gzio_open): Set not_easly_seekable.
24543 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24544 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24545
24546 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24547
24548 Support for options to appear multiple times on cmdline.
24549
24550 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24551 * grub-core/commands/extcmd.c: Support for repeatable option.
24552 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24553 repeatable option support.
24554
24555 Refactor menuentry into a regular command.
24556
24557 * grub-core/commands/menuentry.c: New file, menuentry command
24558 implementation.
24559 * grub-core/Makefile.core.def: Rule update for normal.mod.
24560 * grub-core/normal/main.c: Moved menuentry creation to
24561 grub-core/commands/menuentry.c.
24562 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24563 (grub_menu_execute_entry_real): Removed.
24564 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24565 function.
24566 (grub_script_execute_menuentry): Removed.
24567 * grub-core/script/parser.y (menuentry): Removed.
24568 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24569 * grub-core/script/yylex.l (menuentry): Removed.
24570 * include/grub/menu.h (grub_menu_init): New prototype.
24571 (grub_menu_fini): New prototype.
24572 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24573 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24574 (grub_script_execute_sourcecode): New prototype.
24575
24576 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24577
24578 "return" command for GRUB script functions.
24579
24580 * tests/grub_script_return.in: New test.
24581 * Makefile.util.def: Rules for new test.
24582
24583 * grub-core/script/execute.c (grub_script_return): New function.
24584 * grub-core/script/main.c: Register/unregister return commaond.
24585 * include/grub/script_sh.h (grub_script_return): New prototype.
24586
24587 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24588
24589 "setparams" command to update positional parameters.
24590
24591 * tests/grub_script_setparams.in: New test.
24592 * Makefile.util.def: Rules for new test.
24593
24594 * grub-core/script/argv.c (grub_script_argv_make): New function.
24595 * grub-core/script/execute.c (replace_scope): New function.
24596 (grub_script_setparams): New function.
24597 * grub-core/script/lexer.c: Remove unused variables.
24598 * grub-core/script/main.c: Register/unregister setparams command.
24599 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24600 (grub_script_setparams): New prototype.
24601
24602 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24603
24604 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24605 grub_free order.
24606
24607 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24608
24609 Support for passing block of commands as an argument to extcmds.
24610
24611 * Makefile.util.def: Rules for new test.
24612 * tests/grub_script_blockarg.in: New test.
24613 * grub-core/tests/test_blockarg.c: New file, block argument
24614 command used in the test.
24615
24616 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24617 (grub_register_extcmd_prio): New function prototype.
24618 (grub_extcmd_dispatcher): New function prototype.
24619 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24620 type.
24621 * include/grub/script_sh.h (struct grub_script): New members
24622 `children', `next_siblings' and `refcnt' for block arguments and
24623 reference counting.
24624 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24625 (grub_script_arg): New member `script' for block argument.
24626 (grub_script_argv): New member `script' for block argument.
24627 (grub_parser_param): New member `scripts' for block argument.
24628 (grub_script_mem_free): New extern function prototype.
24629 (grub_script_ref): New function prototype.
24630 (grub_script_unref): New function prototype.
24631
24632 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24633 extcmd form to support block arguments.
24634 * grub-core/script/argv.c: Block arguments support.
24635 * grub-core/script/execute.c: Likewise.
24636 * grub-core/script/lexer.c: Likewise.
24637 * grub-core/script/main.c: Likewise.
24638 * grub-core/script/script.c: Likewise.
24639 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24640 non-terminals.
24641
24642 * grub-core/commands/acpi.c: Update extcmd implementations with
24643 grub_extcmd_context_t.
24644 * grub-core/commands/cat.c: Likewise.
24645 * grub-core/commands/echo.c: Likewise.
24646 * grub-core/commands/extcmd.c: Likewise.
24647 * grub-core/commands/hashsum.c: Likewise.
24648 * grub-core/commands/hdparm.c: Likewise.
24649 * grub-core/commands/help.c: Likewise.
24650 * grub-core/commands/hexdump.c: Likewise.
24651 * grub-core/commands/i386/cpuid.c: Likewise.
24652 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24653 * grub-core/commands/i386/pc/halt.c: Likewise.
24654 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24655 * grub-core/commands/iorw.c: Likewise.
24656 * grub-core/commands/keystatus.c: Likewise.
24657 * grub-core/commands/loadenv.c: Likewise.
24658 * grub-core/commands/ls.c: Likewise.
24659 * grub-core/commands/lspci.c: Likewise.
24660 * grub-core/commands/memrw.c: Likewise.
24661 * grub-core/commands/probe.c: Likewise.
24662 * grub-core/commands/search_wrap.c: Likewise.
24663 * grub-core/commands/setpci.c: Likewise.
24664 * grub-core/commands/sleep.c: Likewise.
24665 * grub-core/disk/loopback.c: Likewise.
24666 * grub-core/hello/hello.c: Likewise.
24667 * grub-core/loader/i386/bsd.c: Likewise.
24668 * grub-core/loader/xnu.c: Likewise.
24669 * grub-core/term/gfxterm.c: Likewise.
24670 * grub-core/term/serial.c: Likewise.
24671 * grub-core/tests/lib/functional_test.c: Likewise.
24672
24673 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24674
24675 Multi-line quoted strings support.
24676
24677 * grub-core/script/lexer.c (append_newline): Removed.
24678 (grub_script_lexer_yywrap): Refactored.
24679 (grub_script_lexer_init): Refactored.
24680 * grub-core/script/yylex.l (yywrap): New function.
24681 (grub_lexer_resplit): New function.
24682 (grub_lexer_unput): New function.
24683 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24684 and resplit.
24685 * tests/grub_script_echo1.in: Added few more testcases.
24686
24687 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24688
24689 * grub-core/kern/misc.c: Don't add abort alias in utils.
24690 Reported by: echoline.
24691
24692 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24693
24694 Add missing files into "make dist" tarball for other platforms.
24695
24696 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24697 * conf/Makefile.common (dist_noinst_DATA): New variable.
24698 * conf/Makefile.extra-dist: Added missing make dist files.
24699 * grub-core/Makefile.core.def: Likewise.
24700
24701 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24702
24703 Compress grub_prefix.
24704
24705 * grub-core/boot/i386/pc/lnxboot.S: Use
24706 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24707 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24708 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24709 GRUB_MACHINE_PREFIX_END. All users updated.
24710 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24711 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24712 + 0x40.
24713 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24714 * util/grub-mkimage.c (image_target_desc): Change data_end to
24715 prefix_end. All users updated.
24716
24717 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24718
24719 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24720 value.
24721 (grub_openbsd_boot): Likewise.
24722 (grub_netbsd_boot): Likewise.
24723 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24724 (grub_xnu_boot): Likewise.
24725
24726 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24727
24728 * configure.ac: Clean LIBS variable after tests.
24729
24730 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24731
24732 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24733
24734 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24735
24736 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24737 echo if libdevmapper will be used.
24738
24739 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24740
24741 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24742 constant for the same file.
24743
24744 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24745
24746 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24747
24748 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24749
24750 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24751 grub-core/*.pp.
24752
24753 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24754
24755 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24756 required by the boot protocol.
24757
24758 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24759 ebp and edi members.
24760 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24761 state.ebp and state.edi.
24762 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24763 %ebp and %edi according to grub_relocator32_ebp and
24764 grub_relocator32_edi respectively.
24765 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24766 and state.edi.
24767
24768 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24769
24770 Add i386-pc-pxe image target.
24771
24772 * util/grub-mkimage.c (image_target_desc): New enum value
24773 IMAGE_I386_PC_PXE.
24774 (image_targets): New target i386-pc-pxe.
24775 (generate_image): Handle i386-pc-pxe image.
24776
24777 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24778
24779 Fix grub_pxe_scan.
24780
24781 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24782 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24783 All users updated.
24784 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24785 (grub_pxe_pxenv): Correct type.
24786
24787 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24788
24789 * NEWS: Document most of the important changes since 1.98.
24790
24791 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24792
24793 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24794 generated manual page) a little.
24795
24796 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24797
24798 * docs/grub.texi: Add myself as an author.
24799
24800 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24801
24802 * Makefile.util.def (libgrub.a): Add missing sunpc.
24803 Reported by: Seth Goldberg.
24804
24805 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24806
24807 Interrupt wrapping and code simplifications.
24808
24809 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24810 x86_noieee1275 which are functionaly equivalent in this case.
24811 (grub-install): Make source on each platform explicit. Enable on
24812 all noemu.
24813 * gentpl.py (x86_efi_pc): Removed group.
24814 (x86_noefi): Likewise.
24815 (i386_noefi): Likewise.
24816 (x86_noieee1275): Likewise.
24817 (i386_noieee1275): Likewise.
24818 (i386_noefi_noieee1275): Likewise.
24819 (i386_pc_qemu_coreboot): Likewise.
24820 (i386_coreboot_multiboot): Likewise.
24821 (i386_pc_coreboot_multiboot_qemu): Likewise.
24822 (x86_noefi_mips): Likewise.
24823 (noieee1275): Likewise.
24824 (ieee1275_mips): Likewise.
24825 (noemu_noieee1275): Likewise.
24826 (cmos): New group.
24827 (usb): Likewise.
24828 (videoinkernel): Likewise.
24829 (videomodules): Likewise.
24830 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24831 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24832 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24833 include/grub/loader.h, include/grub/msdos_partition.h,
24834 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24835 include/grub/machine/console.h, include/grub/machine/vga.h,
24836 include/grub/machine/vbe.h, include/grub/machine/init.h,
24837 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24838 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24839 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24840 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24841 * grub-core/Makefile.core.def (kernel): Explicit the source for
24842 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24843 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24844 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24845 Use videoinkernel tag.
24846 (usb): Enable on all usb.
24847 (usbserial_common): Likewise.
24848 (usbserial_pl2303): Likewise.
24849 (usbserial_ftdi): Likewise.
24850 (uhci): Enable on all x86.
24851 (ohci): Enable on all pci.
24852 (cmostest): Enable on all CMOS.
24853 (acpi): Include commands/acpi.c on all platforms.
24854 (halt): Add relevant lib/*/halt.c.
24855 (hdparm): Enable on all pci.
24856 (lspci): Likewise.
24857 (usbtest): Enable on all usb.
24858 (ata): Enable on all pci.
24859 (ata_pthru): Likewise.
24860 (usbms): Enable on all usb.
24861 (usb_keyboard): Likewise.
24862 (font): Use tag videomodules.
24863 (bufio): Likewise.
24864 (datetime): Use tag cmos. Enable on all noemu.
24865 (mmap): Use tags common and x86.
24866 (gfxterm): Use tag videomodules.
24867 (bitmap): Likewise.
24868 (bitmap_scale): Likewise.
24869 (video_fb): Likewise.
24870 (video): Likewise.
24871 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24872 adjust padding accordingly. All users updated.
24873 (grub_ohci_transaction): Fix bad format specification.
24874 (GRUB_MOD_INIT): Add asserts for struct size.
24875 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24876 (grub_alloc_td): Likewise.
24877 (grub_free_queue): Likewise.
24878 (grub_uhci_transfer): Likewise.
24879 (grub_uhci_transaction): Fix bad format specification.
24880 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24881 (grub_usb_bulk_readwrite): Likewise.
24882 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24883 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24884 Made static.
24885 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24886 Made static.
24887 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24888 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24889 Transformed into C.
24890 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24891 Moved from here ...
24892 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24893 ... here. Transformed into C. Made static.
24894 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24895 Moved from here ...
24896 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24897 ... here. Transformed into C. Made static.
24898 * grub-core/kern/i386/pc/startup.S
24899 (grub_biosdisk_check_int13_extensions): Moved from here ...
24900 * grub-core/disk/i386/pc/biosdisk.c
24901 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24902 Made static.
24903 * grub-core/kern/i386/pc/startup.S
24904 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24905 * grub-core/disk/i386/pc/biosdisk.c
24906 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24907 Transformed into C. Made static.
24908 * grub-core/kern/i386/pc/startup.S
24909 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24910 * grub-core/disk/i386/pc/biosdisk.c
24911 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24912 Transformed into C. Made static.
24913 * grub-core/kern/i386/pc/startup.S
24914 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24915 * grub-core/disk/i386/pc/biosdisk.c
24916 (grub_biosdisk_get_diskinfo_standard): ... here.
24917 Transformed into C. Made static.
24918 * grub-core/kern/i386/pc/startup.S
24919 (grub_biosdisk_get_num_floppies): Moved from here ...
24920 * grub-core/disk/i386/pc/biosdisk.c
24921 (grub_biosdisk_get_num_floppies): ... here.
24922 Transformed into C. Made static.
24923 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24924 New function.
24925 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24926 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24927 Transformed into C. Made static.
24928 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24929 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24930 Transformed into C. Made static.
24931 * grub-core/kern/i386/ieee1275/init.c: Removed.
24932 * grub-core/kern/i386/misc.S: Likewise.
24933 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24934 Splitted from here ...
24935 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24936 Transformed into C. Made static. All users updated.
24937 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24938 Transformed into C. Made static. All users updated.
24939 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24940 Moved from here...
24941 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24942 Transformed into C. Made static. All users updated.
24943 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24944 Moved from here...
24945 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24946 Transformed into C. Made static. All users updated.
24947 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24948 Removed (replaced by C version).
24949 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24950 Moved from here...
24951 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24952 Transformed into C. Made static.
24953 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24954 Moved from here...
24955 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24956 ... here. Transformed into C.
24957 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24958 Moved from here...
24959 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24960 ... here. Transformed into C.
24961 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24962 Moved from here...
24963 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24964 ... here. Transformed into C. Made static.
24965 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24966 Moved from here...
24967 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24968 ... here. Transformed into C.
24969 * grub-core/kern/i386/pc/startup.S
24970 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24971 * grub-core/video/i386/pc/vbe.c
24972 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24973 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24974 Moved from here...
24975 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24976 ... here. Transformed into C.
24977 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24978 Moved from here...
24979 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24980 ... here. Transformed into C.
24981 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24982 Moved from here...
24983 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24984 ... here. Transformed into C.
24985 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24986 Moved from here...
24987 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24988 ... here. Transformed into C.
24989 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24990 Moved from here...
24991 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24992 ... here. Transformed into C. Made static.
24993 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24994 Moved from here...
24995 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24996 ... here. Transformed into C. Made static.
24997 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24998 Moved from here...
24999 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25000 ... here. Transformed into C. Made static.
25001 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25002 pxe_rm_entry as third argument.
25003 (grub_bios_interrupt): New function.
25004 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25005 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25006 of calling grub_stop.
25007 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25008 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25009 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25010 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25011 * grub-core/lib/i386/halt.c: Moved from here ...
25012 * grub-core/lib/i386/halt.c: ... here.
25013 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25014 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25015 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25016 grub_stop_floppy.
25017 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25018 * include/grub/i386/coreboot/init.h: Removed.
25019 * include/grub/i386/multiboot/init.h: Likewise.
25020 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25021 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25022 * include/grub/i386/pc/int.h: New file.
25023 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25024 (grub_pxe_scan): Removed.
25025 (grub_pxe_call): Update prototype.
25026 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25027 prototypes.
25028 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25029 * include/grub/i386/qemu/init.h: Removed.
25030 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25031 noreturn.
25032 (grub_halt): Likewise.
25033 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25034 (grub_reboot): Likewise.
25035 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25036 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25037 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25038
25039 2010-08-30 Robert Millan <rmh@gnu.org>
25040
25041 * NEWS: Document addition of ZFS support in `grub-install' and
25042 `grub-mkconfig'.
25043
25044 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25045
25046 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25047 dprintf output.
25048
25049 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25050
25051 Remove leftover embedding of font objects.
25052
25053 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25054 * util/grub-install.in (font): Removed.
25055 * util/grub-mkimage.c (generate_image): Remove font support. All users
25056 updated.
25057
25058 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25059
25060 Remove leftover embedding of font objects.
25061
25062 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25063 * util/grub-install.in (font): Removed.
25064 * util/grub-mkimage.c (generate_image): Remove font support. All users
25065 updated.
25066
25067 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25068
25069 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25070 Reported by: Ian Turner
25071
25072 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25073
25074 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25075 timeout to avoid indefinite boot stalling.
25076
25077 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25078
25079 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25080 (grub_env_write_color_highlight): Likewise.
25081
25082 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25083
25084 * grub-core/normal/term.c (print_more): Return to normal and not
25085 to standard state after printing "---MORE---".
25086
25087 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25088
25089 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25090 Mask out the bit 0x80 since it has other meaning that specifiing color.
25091
25092 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25093
25094 New relocator. Allows for more kernel support and more straightforward
25095 loader writing.
25096
25097 * Makefile.am (BOOTTARGET): New variable.
25098 (QEMU32): Likewise.
25099 (linux.init.x86_64): New target.
25100 (linux.init.i386): Likewise.
25101 (multiboot.elf): Likewise.
25102 (kfreebsd.elf): Likewise.
25103 (kfreebsd.aout): Likewise.
25104 (pc-chainloader.elf): Likewise.
25105 (pc-chainloader.bin): Likewise.
25106 (ntldr.elf): Likewise.
25107 (ntldr.bin): Likewise.
25108 (multiboot2.elf): Likewise.
25109 (kfreebsd.init.x86_64): Likewise.
25110 (kfreebsd.init.i386): Likewise.
25111 (knetbsd.init.i386): Likewise.
25112 (kopenbsd.init.i386): Likewise.
25113 (knetbsd.init.x86_64): Likewise.
25114 (kopenbsd.init.x86_64): Likewise.
25115 (linux-initramfs.i386): Likewise.
25116 (linux-initramfs.x86_64): Likewise.
25117 (kfreebsd-mfsroot.i386.img): Likewise.
25118 (knetbsd.image.i386): Likewise.
25119 (kopenbsd.image.i386): Likewise.
25120 (kopenbsd.image.x86_64): Likewise.
25121 (knetbsd.miniroot-image.i386.img): Likewise.
25122 (kfreebsd-mfsroot.x86_64.img): Likewise.
25123 (knetbsd.image.x86_64): Likewise.
25124 (knetbsd.miniroot-image.x86_64.img): Likewise.
25125 (kfreebsd-mfsroot.i386.gz): Likewise.
25126 (bootcheck-kfreebsd-i386): Likewise.
25127 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25128 (bootcheck-kfreebsd-x86_64): Likewise.
25129 (knetbsd.miniroot-image.i386.gz): Likewise.
25130 (bootcheck-knetbsd-i386): Likewise.
25131 (bootcheck-kopenbsd-i386): Likewise.
25132 (bootcheck-kopenbsd-x86_64): Likewise.
25133 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25134 (bootcheck-knetbsd-x86_64): Likewise.
25135 (bootcheck-linux-i386): Likewise.
25136 (bootcheck-linux-x86_64): Likewise.
25137 (bootcheck-linux16-i386): Likewise.
25138 (bootcheck-linux16-x86_64): Likewise.
25139 (bootcheck-multiboot): Likewise.
25140 (bootcheck-multiboot2): Likewise.
25141 (bootcheck-kfreebsd-aout): Likewise.
25142 (bootcheck-pc-chainloader): Likewise.
25143 (bootcheck-ntldr): Likewise.
25144 (CLEANFILES): Add new targets.
25145 (BOOTCHECKS): New variable.
25146 (.PHONY): Add bootchecks.
25147 (SUCCESSFUL_BOOT_STRING): New variable.
25148 (BOOTCHECK_TIMEOUT): Likewise.
25149 (bootcheck): New target
25150 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25151 * configure.ac: Correct efiemu excuse.
25152 * docs/grub.texi (Supported kernels): New chapter.
25153 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25154 include/grub/mm_private.h. Simplify inclusion of
25155 include/grub/boot.h, include/grub/loader.h
25156 and include/grub/msdos_partition.h
25157 (KERNEL_HEADER_FILES) [i386_coreboot]:
25158 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25159 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25160 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25161 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25162 include/grub/machine/loader.h.
25163 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25164 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25165 extra_dist.
25166 (pci.mod): Enable on i386-multiboot.
25167 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25168 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25169 i386-qemu.
25170 (relocator.mod): Rewritten.
25171 (aout.mod): Enable on all x86.
25172 (bsd.mod): Likewise.
25173 (ntldr.mod): New module.
25174 (linux.mod): Use loader/i386/linux.c on all x86.
25175 (xnu.mod): Enable on all x86.
25176 (vga_text.mod): disable on EFI and QEMU.
25177 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25178 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25179 * grub-core/efiemu/loadcore.c: Likewise.
25180 * grub-core/efiemu/main.c: Likewise.
25181 (grub_efiemu_exit_boot_services): Removed.
25182 (grub_efiemu_finish_boot_services): Likewise.
25183 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25184 function.
25185 * grub-core/efiemu/i386/nocfgtables.c: New file.
25186 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25187 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25188 (grub_efi_finish_boot_services): Moved from here ...
25189 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25190 Fille finish memory map and related data.
25191 (finish_mmap_buf): New variable.
25192 (grub_efi_uintn_t finish_mmap_size): Likewise.
25193 (grub_efi_uintn_t finish_key): Likewise.
25194 (grub_efi_uintn_t finish_desc_size): Likewise.
25195 (grub_efi_uint32_t finish_desc_version): Likewise.
25196 (grub_efi_is_finished): Likewise.
25197 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25198 finished.
25199 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25200 (grub_elf64_phdr_iterate): Likewise.
25201 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25202 (grub_os_area_size): Likewise.
25203 (grub_machine_init): Don't reserve os area.
25204 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25205 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25206 * grub-core/kern/i386/loader.S: Removed.
25207 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25208 (grub_os_area_size): Likewise.
25209 (grub_machine_init): Don't reserve os area.
25210 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25211 Don't call grub_dl_unload_all.
25212 Don't include loader.S.
25213 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25214 Declare the memory after _end as available.
25215 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25216 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25217 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25218 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25219 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25220 * include/grub/mm_private.h (grub_mm_header): ... here.
25221 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25222 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25223 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25224 (grub_mm_region): ..here. Removed addr. Added pre_size.
25225 All users updated.
25226 * grub-core/kern/mm.c (base): Renamed to ...
25227 (grub_mm_base): ... this. Made global.
25228 (grub_real_malloc): Alloc from end of region.
25229 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25230 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25231 * grub-core/kern/powerpc/cache_flush.S: ... here.
25232 * grub-core/lib/efi/relocator.c: New file.
25233 * grub-core/lib/i386/relocator.c: Rewritten.
25234 * grub-core/lib/i386/relocator16.S: New file.
25235 * grub-core/lib/i386/relocator32.S: Likewise.
25236 * grub-core/lib/i386/relocator64.S: Likewise.
25237 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25238 * grub-core/lib/i386/relocator_common.S: New file.
25239 * grub-core/lib/ieee1275/relocator.c: Likewise.
25240 * grub-core/lib/mips/relocator.c: Rewritten.
25241 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25242 stylistic adjustments.
25243 * grub-core/lib/powerpc/relocator.c: New file.
25244 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25245 * grub-core/lib/relocator.c: Rewritten.
25246 * grub-core/lib/x86_64/relocator_asm.S: New file.
25247 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25248 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25249 (bsd_tag): New struct.
25250 (tags): New variable.
25251 (tags_last): Likewise.
25252 (netbsd_module): New struct.
25253 (netbsd_mods): New variable.
25254 (netbsd_mods_last): Likewise.
25255 (openbsd_opts): New parameter "serial".
25256 (OPENBSD_SERIAL_ARG): New definition.
25257 (netbsd_opts): New parameter "serial".
25258 (NETBSD_SERIAL_ARG): New definition.
25259 (grub_freebsd_add_meta): Reorganised into ...
25260 (grub_bsd_add_meta): ...this. All users updated.
25261 (grub_freebsd_add_mmap): Reorganised into ...
25262 (generate_e820_mmap): ...this...
25263 (grub_bsd_add_mmap): ...and this. All users updated.
25264 (grub_freebsd_list_modules): Use tags.
25265 (grub_netbsd_add_meta_module): New function.
25266 (grub_netbsd_list_modules): Likewise.
25267 (grub_freebsd_boot): Use relocator and finish EFI.
25268 (grub_openbsd_boot): Likewise.
25269 (grub_netbsd_setup_video): New function.
25270 (grub_netbsd_add_modules): Likewise.
25271 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25272 and finish EFI.
25273 (grub_bsd_unload): Unload tags.
25274 (grub_bsd_load_aout): Use relocator.
25275 (grub_bsd_elf32_size_hook): New function.
25276 (grub_bsd_elf32_hook): Use relocator.
25277 (grub_bsd_elf64_size_hook): New function.
25278 (grub_bsd_elf64_hook): Use relocator.
25279 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25280 (grub_bsd_load): Zero-out openbsd_ramdisk.
25281 (grub_bsd_load): Use relocator.
25282 (grub_cmd_openbsd): Support serial.
25283 (grub_cmd_netbsd): Support modules.
25284 (grub_cmd_freebsd_module): Use relocator.
25285 (grub_netbsd_module_load): New function.
25286 (grub_cmd_netbsd_module): Likewise.
25287 (grub_cmd_openbsd_ramdisk): Likewise.
25288 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25289 kopenbsd_ramdisk.
25290 (GRUB_MOD_FINI): Unregister new commands.
25291 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25292 (grub_freebsd_load_elfmodule_obj): Use relocator.
25293 (grub_freebsd_load_elfmodule): Likewise.
25294 (grub_freebsd_load_elf_meta): Likewise.
25295 (grub_netbsd_load_elf_meta): New function.
25296 (grub_openbsd_find_ramdisk): Likewise.
25297 * grub-core/loader/i386/bsd_helper.S: Removed.
25298 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25299 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25300 * grub-core/loader/i386/efi/linux.c: Likewise.
25301 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25302 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25303 (DEFAULT_VIDEO_MODE): Likewise.
25304 (real_mode_target): New variable.
25305 (prot_mode_target): Likewise.
25306 (initrd_mem_target): Likewise.
25307 (relocator): Likewise.
25308 (efi_mmap_buf): Likewise.
25309 (efi_mmap_size): Likewise.
25310 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25311 (free_pages): Use relocator.
25312 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25313 (grub_linux_setup_video): Return error.
25314 (grub_linux_trampoline_start): Removed.
25315 (grub_linux_trampoline_end): Likewise.
25316 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25317 andd video parameters depending on firmware.
25318 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25319 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25320 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25321 (grub_cmd_initrd): Use relocator.
25322 * grub-core/loader/i386/linux_trampoline.S: Removed.
25323 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25324 (elf_sec_entsize): Likewise.
25325 (elf_sec_shstrndx): Likewise.
25326 (elf_sections): Likewise.
25327 (grub_multiboot_load): Use relocator.
25328 (grub_multiboot_get_mbi_size): Account for sections.
25329 (grub_multiboot_make_mbi): Use relocator and support sections.
25330 (grub_multiboot_add_elfsyms): New function.
25331 (grub_multiboot_free_mbi): Free sections.
25332 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25333 (grub_linux_real_target): Likewise.
25334 (grub_linux_real_chunk): Likewise.
25335 (grub_linux16_prot_size): Likewise.
25336 (grub_linux16_boot): Use relocator.
25337 (grub_linux_unload): Unload relocator.
25338 (grub_cmd_linux): Use relocator.
25339 (grub_cmd_initrd): Likewise.
25340 * grub-core/loader/i386/pc/ntldr.c: New file.
25341 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25342 Don't try to guess CPU frequency.
25343 (grub_xnu_set_video): Stretch bitmap.
25344 (grub_xnu_boot): Use relocator.
25345 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25346 (grub_linux_unload): Free relocator.
25347 (grub_linux_load32): Use relocator.
25348 (grub_linux_load64): Likewise.
25349 (grub_cmd_initrd): Likewise.
25350 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25351 (grub_multiboot_unload): Unload relocator.
25352 (grub_cmd_multiboot): Use relocator.
25353 (grub_cmd_module): Likewise.
25354 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25355 Use relocator and support sections.
25356 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25357 (elf_sec_entsize): Likewise.
25358 (elf_sec_shstrndx): Likewise.
25359 (elf_sections): Likewise.
25360 (grub_multiboot_load): Use relocator.
25361 (grub_multiboot_get_mbi_size): Account for sections.
25362 (grub_multiboot_make_mbi): Use relocator and support sections.
25363 (grub_multiboot_add_elfsyms): New function.
25364 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25365 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25366 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25367 Prototype changed. All users updated.
25368 (grub_xnu_align_heap): Simplified.
25369 (grub_xnu_writetree_toheap): Likewise.
25370 (grub_xnu_unload): Unload relocator.
25371 (grub_cmd_xnu_kernel): Use relocator.
25372 (grub_cmd_xnu_kernel64): Likewise.
25373 (grub_xnu_register_memory): Simplified.
25374 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25375 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25376 EFI is finished.
25377 (grub_console_checkkey): Likewise.
25378 (grub_console_getkey): Likewise.
25379 (grub_console_getwh): Likewise.
25380 (grub_console_getxy): Likewise.
25381 (grub_console_gotoxy): Likewise.
25382 (grub_console_cls): Likewise.
25383 (grub_console_setcolorstate): Likewise.
25384 (grub_console_setcursor): Likewise.
25385 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25386 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25387 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25388 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25389 * grub-core/tests/boot/kernel-8086.S: Likewise.
25390 * grub-core/tests/boot/kernel-i386.S: Likewise.
25391 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25392 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25393 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25394 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25395 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25396 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25397 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25398 * grub-core/tests/boot/linux.cfg: Likewise.
25399 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25400 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25401 * grub-core/tests/boot/linux16.cfg: Likewise.
25402 * grub-core/tests/boot/multiboot.cfg: Likewise.
25403 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25404 * grub-core/tests/boot/ntldr.cfg: Likewise.
25405 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25406 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25407 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25408 New definition.
25409 * include/grub/dl.h (grub_dl_unload_all): Removed.
25410 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25411 (grub_efi_finish_boot_services): Change prototype.
25412 (grub_efi_is_finished): New variable.
25413 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25414 Changed prototype.
25415 (grub_efiemu_finish_boot_services): Removed.
25416 (grub_machine_efiemu_init_tables): New prototype.
25417 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25418 (grub_elf64_phdr_iterate): Likewise.
25419 * include/grub/i386/bsd.h: Include relocator.h.
25420 (freebsd_tag_header): New struct.
25421 (grub_openbsd_bios_mmap): Removed.
25422 (grub_unix_real_boot): Removed.
25423 (grub_freebsd_load_elfmodule32): Changed prototype.
25424 (grub_freebsd_load_elfmodule_obj64): Likewise.
25425 (grub_freebsd_load_elf_meta32): Likewise.
25426 (grub_freebsd_load_elf_meta64): Likewise.
25427 (grub_freebsd_add_meta): Removed.
25428 (grub_netbsd_load_elf_meta32): New prototype.
25429 (grub_netbsd_load_elf_meta64): Likewise.
25430 (grub_bsd_add_meta): Likewise.
25431 (grub_openbsd_ramdisk_descriptor): New struct.
25432 (grub_openbsd_find_ramdisk32): New prototype.
25433 (grub_openbsd_find_ramdisk64): Likewise.
25434 * include/grub/i386/coreboot/loader.h: Removed.
25435 * include/grub/i386/efi/loader.h: Likewise.
25436 * include/grub/i386/ieee1275/loader.h: Likewise.
25437 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25438 to grub_uint32_t.
25439 * include/grub/i386/loader.h: Removed.
25440 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25441 value.
25442 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25443 (grub_phys_addr_t): New type.
25444 (grub_vtop): New inline function.
25445 (grub_map_memory): Likewise.
25446 (grub_unmap_memory): Likewise.
25447 * include/grub/i386/multiboot/loader.h: Removed.
25448 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25449 (NETBSD_BTINFO_CONSOLE): New definition.
25450 (NETBSD_BTINFO_SYMTAB): Likewise.
25451 (NETBSD_BTINFO_MODULES): Likewise.
25452 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25453 (grub_netbsd_bootinfo): New struct.
25454 (grub_netbsd_btinfo_common): Use explicit bitsize.
25455 (grub_netbsd_btinfo_mmap_entry): Removed.
25456 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25457 (grub_netbsd_btinfo_bootdisk): New struct.
25458 (grub_netbsd_btinfo_symtab): Likewise.
25459 (grub_netbsd_btinfo_serial): Likewise.
25460 (grub_netbsd_btinfo_modules): Likewise.
25461 (grub_netbsd_btinfo_framebuf): Likewise.
25462 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25463 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25464 Likewise.
25465 (grub_openbsd_bootargs): Use explicit bitsize.
25466 (grub_openbsd_bootarg_console): New struct.
25467 (GRUB_OPENBSD_COM_MAJOR): New definition.
25468 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25469 * include/grub/i386/pc/efiemu.h: Removed.
25470 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25471 * include/grub/i386/qemu/loader.h: Removed.
25472 * include/grub/i386/relocator.h: Rewritten.
25473 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25474 * include/grub/mips/memory.h: New file.
25475 * include/grub/mips/multiboot.h: Rewritten.
25476 * include/grub/mips/relocator.h: Rewritten.
25477 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25478 (grub_vtop): New function.
25479 (grub_map_memory): Likewise.
25480 (grub_unmap_memory): Likewise.
25481 * include/grub/misc.h (ALIGN_DOWN): New definition.
25482 * include/grub/mm.h (grub_mm_check_real): New proto.
25483 (GRUB_MM_CHECK): New definition.
25484 * include/grub/mm_private.h: New file.
25485 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25486 (grub_multiboot_get_mbi_size): Removed.
25487 (grub_multiboot_make_mbi): Change prottype.
25488 (grub_multiboot_set_accepts_video): New proto.
25489 (grub_multiboot_add_elfsyms): Likewise.
25490 (grub_multiboot_payload_eip): New variable.
25491 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25492 New prototype.
25493 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25494 New definition.
25495 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25496 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25497 * include/grub/powerpc/ieee1275/loader.h: Removed.
25498 * include/grub/powerpc/memory.h: New file.
25499 * include/grub/powerpc/relocator.h: Likewise.
25500 * include/grub/relocator.h: Likewise.
25501 * include/grub/relocator_private.h: Likewise.
25502 * include/grub/sparc64/ieee1275/loader.h: Removed.
25503 * include/grub/x86_64/memory.h: New file.
25504 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25505 (grub_xnu_heap_malloc): Likewise.
25506 (grub_xnu_heap_real_start): Removed.
25507 (grub_xnu_heap_start): Likewise.
25508 (grub_xnu_relocator): New variable.
25509 (grub_xnu_heap_target_start): Likewise.
25510 * tests/util/grub-shell.in: Support non-pc.
25511 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25512
25513 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25514
25515 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25516 on malloc error.
25517 (grub_bidi_logical_to_visual): Check that malloc succeded.
25518 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25519 puts.
25520 (grub_xputs_normal): Likewise.
25521
25522 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25523
25524 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25525 extra_dist.
25526
25527 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25528
25529 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25530
25531 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25532
25533 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25534
25535 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25536
25537 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25538 dprintf.
25539
25540 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25541
25542 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25543
25544 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25545
25546 * grub-core/normal/term.c (print_more): Fix a memory leak.
25547 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25548 (grub_xputs_normal): Likewise.
25549
25550 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25551
25552 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25553 the begining of the string
25554
25555 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25556
25557 * grub-core/script/script.c (grub_script_parse): Free parsed on
25558 failure.
25559
25560 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25561
25562 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25563 on failure.
25564
25565 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25566
25567 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25568 return.
25569
25570 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25571
25572 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25573 (scroll_up): Fix a memory leak.
25574
25575 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25576
25577 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25578 errors.
25579
25580 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25581
25582 Handle USB pendrives exposed as floppies.
25583
25584 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25585 floppy.
25586 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25587 Check for partitions on all devices.
25588
25589 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25590
25591 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25592 (readkey): Likewise.
25593
25594 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25595
25596 Multiple variable names support to "export" command.
25597
25598 * normal/context.c (grub_cmd_export): "export" command supports
25599 multiple variable names.
25600
25601 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25602
25603 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25604 --target=drive output to Mach device name.
25605
25606 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25607
25608 New Automake based build system for GRUB.
25609
25610 * ABOUT-NLS: New file.
25611 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25612 in Makefile.util.def file.
25613 * Makefile.util.def: New file. Autogen build definitions file for
25614 GRUB host utils.
25615 * conf/Makefile.common: New file. Common variables for GRUB host
25616 utils and target modules.
25617 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25618 * docs/Makefile.am: New file. Automake file for docs.
25619 * gentpl.py: New file. Python script to generate Autogen
25620 template.
25621 * grub-core/Makefile.am: New file. GRUB target modules' rules
25622 that doesn't fit in Makefile.core.def file.
25623 * grub-core/Makefile.core.def: New file. Autogen build
25624 definitions file for GRUB target modules.
25625 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25626 specific setjmp.S file.
25627 * po/Makefile.am: New file.
25628
25629 * .bzrignore: New ignores.
25630 * INSTALL: New requirements, without Ruby.
25631 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25632 * autogen.sh: Updated to invoke autogen as necessary.
25633 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25634 and defines for Automake conditionals.
25635 * geninit.sh: Refactoring.
25636
25637 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25638 necessary.
25639 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25640 New prototype.
25641
25642 * include/grub/test.h: Fix functional test modules' naming.
25643 * grub-core/tests/example_functional_test.c: Fix test module name.
25644
25645 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25646 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25647 * util/grub-editenv.c: Likewise.
25648 * util/grub-fstest.c: Likewise.
25649 * util/grub-mkdevicemap.c: Likewise.
25650 * util/grub-mkfont.c: Likewise.
25651 * util/grub-mkimage.c: Likewise.
25652 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25653 * util/grub-probe.c: Likewise.
25654 * util/grub-script-check.c: Likewise.
25655 * util/i386/pc/grub-setup.c: Likewise.
25656 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25657
25658 * tests/util/grub-shell.in: Fix override directory path.
25659 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25660 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25661
25662 * util/lvm.c: Update #includes.
25663 * util/raid.c: Likewise.
25664 * util/resolve.c: Likewise.
25665 * grub-core/bus/emu/pci.c: Likewise.
25666 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25667 * grub-core/lib/posix_wrap/string.h: Likewise.
25668 * grub-core/kern/emu/main.c: Likewise.
25669
25670 * grub-core/gensymlist.sh: New file. Script for generating kernel
25671 symbols file.
25672 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25673
25674 * grub-core/gentrigtables.c: Fix unused variable warnings.
25675
25676 * Makefile.in: Removed.
25677 * conf/any-emu.rmk: Removed.
25678 * conf/common.rmk: Removed.
25679 * conf/i386-coreboot.rmk: Removed.
25680 * conf/i386-efi.rmk: Removed.
25681 * conf/i386-ieee1275.rmk: Removed.
25682 * conf/i386-multiboot.rmk: Removed.
25683 * conf/i386-pc.rmk: Removed.
25684 * conf/i386-qemu.rmk: Removed.
25685 * conf/i386.rmk: Removed.
25686 * conf/mips-yeeloong.rmk: Removed.
25687 * conf/mips.rmk: Removed.
25688 * conf/powerpc-ieee1275.rmk: Removed.
25689 * conf/sparc64-ieee1275.rmk: Removed.
25690 * conf/tests.rmk: Removed.
25691 * conf/x86-efi.rmk: Removed.
25692 * conf/x86_64-efi.rmk: Removed.
25693 * gendistlist.sh: Removed.
25694 * geninitheader.sh: Removed.
25695 * genkernsyms.sh.in: Removed.
25696 * genmk.rb: Removed.
25697 * gensymlist.sh.in: Removed.
25698 * mkinstalldirs: Removed.
25699 * boot: Moved ...
25700 * grub-core/boot: ... to here.
25701 * bus: Moved ...
25702 * grub-core/bus: ... to here.
25703 * commands: Moved ...
25704 * grub-core/commands: ... to here.
25705 * disk: Moved ...
25706 * grub-core/disk: ... to here.
25707 * efiemu: Moved ...
25708 * grub-core/efiemu: ... to here.
25709 * font: Moved ...
25710 * grub-core/font: ... to here.
25711 * fs: Moved ...
25712 * grub-core/fs: ... to here.
25713 * gencmdlist.sh: Moved ...
25714 * grub-core/gencmdlist.sh: ... to here.
25715 * genemuinit.sh: Moved ...
25716 * grub-core/genemuinit.sh: ... to here.
25717 * genemuinitheader.sh: Moved ...
25718 * grub-core/genemuinitheader.sh: ... to here.
25719 * genfslist.sh: Moved ...
25720 * grub-core/genfslist.sh: ... to here.
25721 * genhandlerlist.sh: Moved ...
25722 * grub-core/genhandlerlist.sh: ... to here.
25723 * genmoddep.awk: Moved ...
25724 * grub-core/genmoddep.awk: ... to here.
25725 * genmodsrc.sh: Moved ...
25726 * grub-core/genmodsrc.sh: ... to here.
25727 * genpartmaplist.sh: Moved ...
25728 * grub-core/genpartmaplist.sh: ... to here.
25729 * genparttoollist.sh: Moved ...
25730 * grub-core/genparttoollist.sh: ... to here.
25731 * genterminallist.sh: Moved ...
25732 * grub-core/genterminallist.sh: ... to here.
25733 * gentrigtables.c: Moved ...
25734 * grub-core/gentrigtables.c: ... to here.
25735 * genvideolist.sh: Moved ...
25736 * grub-core/genvideolist.sh: ... to here.
25737 * gettext: Moved ...
25738 * grub-core/gettext: ... to here.
25739 * gfxmenu: Moved ...
25740 * grub-core/gfxmenu: ... to here.
25741 * gnulib: Moved ...
25742 * grub-core/gnulib: ... to here.
25743 * hello: Moved ...
25744 * grub-core/hello: ... to here.
25745 * hook: Moved ...
25746 * grub-core/hook: ... to here.
25747 * io: Moved ...
25748 * grub-core/io: ... to here.
25749 * kern: Moved ...
25750 * grub-core/kern: ... to here.
25751 * lib: Moved ...
25752 * grub-core/lib: ... to here.
25753 * loader: Moved ...
25754 * grub-core/loader: ... to here.
25755 * mmap: Moved ...
25756 * grub-core/mmap: ... to here.
25757 * normal: Moved ...
25758 * grub-core/normal: ... to here.
25759 * partmap: Moved ...
25760 * grub-core/partmap: ... to here.
25761 * parttool: Moved ...
25762 * grub-core/parttool: ... to here.
25763 * script: Moved ...
25764 * grub-core/script: ... to here.
25765 * term: Moved ...
25766 * grub-core/term: ... to here
25767 * tests/example_functional_test.c: Moved ...
25768 * grub-core/tests/example_functional_test.c: ... to here.
25769 * tests/lib/functional_test.c: Moved ...
25770 * grub-core/tests/lib/functional_test.c: ... to here.
25771 * tests/lib/test.c: Moved ...
25772 * grub-core/tests/lib/test.c: ... to here.
25773 * video: Moved ...
25774 * grub-core/video: ... to here.
25775
25776 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25777
25778 Replace --enable-grub-emu-modules with grub-emu-lite.
25779
25780 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25781 cache.S.
25782
25783 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25784 * kern/emu/full.c: New file. For grub-emu specific initialization.
25785 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25786 * kern/emu/main.c: Call initialization function grub_emu_init.
25787
25788 * Makefile.in: Include grub-emu-lite in install.
25789 * commands/parttool.c: Use grub_no_autoload to differentiate
25790 between grub-emu and grub-emu-lite.
25791 * include/grub/misc.h: New variable grub_no_autoload.
25792
25793 * conf/any-emu.rmk: New rules for grub-emu-lite.
25794 * configure.ac: Remove --enable-grub-emu-modules.
25795 * genmk.rb: Cleanup unnecessary rules.
25796 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25797
25798 * normal/main.c: Don't load list files on grub-emu-lite.
25799 * util/misc.c (grub_arch_sync_caches): Removed.
25800
25801 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25802
25803 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25804 grub-mkimage rather than grub-mkelfimage.
25805 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25806
25807 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25808
25809 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25810 a key after CapsLock or NumLock. It's just a qemu bug.
25811
25812 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25813
25814 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25815 needed by libusb wrapper.
25816
25817 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25818
25819 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25820
25821 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25822
25823 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25824 --nounzip is passed.
25825
25826 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25827
25828 USB hotunplugging and USB serial support.
25829
25830 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25831 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25832 (grub_uhci_transfer): Respect timeout and set *actual.
25833 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25834 non-standard length.
25835 (grub_usb_device_attach): Autoload modules.
25836 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25837 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25838 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25839 users updated.
25840 (grub_usb_add_hub): Fill nports and children.
25841 (attach_root_port): Receive hub instead of controller.
25842 All users updated. Fill hub->devices.
25843 (grub_usb_root_hub): Allocate hub->devices.
25844 (detach_device): New function.
25845 (poll_nonroot_hub): Fill children and detach devices.
25846 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25847 actual arguments. All users updated.
25848 (grub_usb_bulk_read_extended): New function.
25849 * bus/usb/serial/common.c: New file.
25850 * bus/usb/serial/ftdi.c: Likewise.
25851 * bus/usb/serial/pl2303.c: Likewise.
25852 * commands/terminal.c (handle_command): Support wildcard.
25853 * commands/usbtest.c: Output "Unknown" instead of empty string.
25854 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25855 (usbserial_common_mod_SOURCES): New variable.
25856 (usbserial_common_mod_CFLAGS): Likewise.
25857 (usbserial_common_mod_LDFLAGS): Likewise.
25858 (pkglib_MODULES): Add usbserial_pl2303.mod.
25859 (usbserial_pl2303_mod_SOURCES): New variable.
25860 (usbserial_pl2303_mod_CFLAGS): Likewise.
25861 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25862 (pkglib_MODULES): Add usbserial_ftdi.mod.
25863 (usbserial_ftdi_mod_SOURCES): New variable.
25864 (usbserial_ftdi_mod_CFLAGS): Likewise.
25865 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25866 (pkglib_MODULES): Add serial.mod.
25867 (serial_mod_SOURCES): New variable.
25868 (serial_mod_CFLAGS): Likewise.
25869 (serial_mod_LDFLAGS): Likewise.
25870 * conf/i386-pc.rmk: Likewise.
25871 * conf/mips-yeeloong.rmk: Likewise.
25872 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25873 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25874 * disk/usbms.c (first_available_slot): New variable.
25875 (grub_usbms_attach): Don't reuse free slots due to potential cache
25876 problems.
25877 * include/grub/serial.h: Moved to ..
25878 * include/grub/ns8250.h: ...this.
25879 * include/grub/serial.h: New file.
25880 * include/grub/term.h (grub_term_poll_usb): New variable.
25881 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25882 readkey. All users updated.
25883 (grub_terminfo_output_state): Pass term to put.
25884 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25885 (grub_usb_controller_dev): Add timeout and actual arguments to
25886 transfer. All users updated.
25887 (grub_usb_interface): New field detach_data.
25888 (grub_usb_device): New fields children and nports.
25889 (grub_usb_ep_type_t): New type.
25890 (grub_usb_get_ep_type): New function.
25891 (grub_usb_bulk_read_extended): Likewise.
25892 * include/grub/usbdesc.h (grub_usb_desc): New type.
25893 * include/grub/usbserial.h: New file.
25894 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25895 * kern/term.c (grub_term_poll_usb): New variable.
25896 (grub_getkey): Call grub_term_poll_usb if set.
25897 (grub_checkkey): Likewise.
25898 (grub_getkeystatus): Likewise.
25899 * term/serial.c: Moved controller-specific parts to ...
25900 * term/ns8250.c: ... here.
25901 * term/serial.c: Mostly rewritten.
25902 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25903 according to spec.
25904
25905 2010-08-20 Robert Millan <rmh@gnu.org>
25906
25907 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25908 a separate module and maybe other interesting combinations.
25909
25910 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25911 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25912 (kfreebsd_entry): Add generic filesystem module load routine.
25913 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25914
25915 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25916
25917 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25918 "numcenter" (I misunderstood the purpose of this entry).
25919 * docs/grub.texi (sendkey): Likewise.
25920
25921 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25922
25923 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25924 status flag options; simply omitting the option is equivalent and
25925 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25926 (keysym_table): Rename "num5numlock" to "numlock".
25927 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25928 can uniformly say that only the last of multiple `sendkey'
25929 invocations has any effect.
25930 * docs/grub.texi (sendkey): New section.
25931
25932 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25933
25934 * commands/i386/pc/sendkey.c (options): Fix three typos.
25935
25936 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25937
25938 Implement sendkey support.
25939
25940 * commands/i386/pc/sendkey.c: New file.
25941 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25942 (sendkey_mod_SOURCES): New variable.
25943 (sendkey_mod_CFLAGS): Likewise.
25944 (sendkey_mod_LDFLAGS): Likewise.
25945
25946 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25947
25948 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25949 fix warnings from Autoconf.
25950
25951 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25952
25953 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25954 to avoid false positives with some assemblers that output things
25955 like "someprefix_func" as part of their output.
25956
25957 2010-08-15 Robert Millan <rmh@gnu.org>
25958
25959 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25960 errors.
25961 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25962 grub_get_libzfs_handle() errors.
25963
25964 2010-08-14 Robert Millan <rmh@gnu.org>
25965
25966 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25967 filesystem is not ZFS.
25968
25969 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25970
25971 Fix for misspelled color names defaulting to black/black (bug
25972 reported by Doug Nazar)
25973
25974 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25975 status to prototype.
25976 * normal/color.c (grub_parse_color_name_pair): Return failure
25977 status.
25978 (grub_env_write_color_normal): Ignore bad color names.
25979 (grub_env_write_color_highlight): Likewise.
25980 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25981
25982 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25983
25984 "shift" command support to GRUB script.
25985
25986 * include/grub/script_sh.h (grub_script_shift): New prototype.
25987 * script/execute.c (grub_script_shift): New function.
25988 * script/main.c (grub_script_init): Register shift command.
25989 (grub_script_fini): Unregister shift command.
25990 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25991
25992 * tests/grub_script_shift.in: New testcase.
25993 * conf/tests.rmk: Rules for new testcase.
25994
25995 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25996
25997 "continue" command support to GRUB script.
25998
25999 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26000 (grub_script_break): Continue support.
26001 * script/main.c (grub_script_init): Register continue command.
26002 (grub_script_fini): Unregister continue command.
26003
26004 * tests/grub_script_continue.in: New testcase.
26005 * conf/tests.rmk: Rules for new testcase.
26006
26007 2010-08-12 BVK Chaitanya <bvk@dbook>
26008
26009 "break" command support to GRUB script.
26010
26011 * conf/common.rmk: Rule updates to grub-script-check.
26012 * include/grub/misc.h (grub_min): New function.
26013 * include/grub/script_sh.h (grub_script_init): New prototype.
26014 (grub_script_fini): New prototype.
26015 (grub_script_break): New prototype.
26016 * script/main.c (grub_script_init): New function.
26017 (grub_script_fini): New function.
26018 * script/execute.c (grub_script_break): New function.
26019 * normal/main.c: Calls to grub_script_{init,fini}.
26020 * util/grub-script-check.c (grub_script_break): New function.
26021
26022 * tests/grub_script_break.in: New testcase.
26023 * conf/tests.rmk: Rules for new test case.
26024
26025 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26026
26027 Function parameters support to GRUB script.
26028
26029 * script/yylex.l (VARIABLE): Regular expression update.
26030 * script/function.c (grub_script_function_call): Moved ...
26031 * script/execute.c (grub_script_function_call): ... to here.
26032 (grub_script_execute_arglist_to_argv): Removed.
26033 (grub_script_arglist_to_argv): New function.
26034 * script/argv.c: New file.
26035 (grub_script_argv_free): New function.
26036 (grub_script_argv_next): Likewise.
26037 (grub_script_argv_append): Likewise.
26038 (grub_script_argv_split_append): Likewise.
26039 * include/grub/script_sh.h (grub_script_argv): New struct.
26040 (grub_script_argv_free): New function.
26041 (grub_script_argv_next): Likewise.
26042 (grub_script_argv_append): Likewise.
26043 (grub_script_argv_split_append): Likewise.
26044
26045 * conf/common.rmk (normal.mod): New source script/argv.c.
26046
26047 * tests/grub_script_echo1.in: More tests.
26048 * tests/grub_script_vars1.in: Likewise.
26049 * tests/grub_script_functions.in: New test case.
26050 * conf/tests.rmk: Rules for new testcase.
26051
26052 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26053
26054 Remove grub_script_cmdblock struct.
26055
26056 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26057 * script/parser.y: Likewise.
26058 * script/execute.c: Rename cmdblock suffix to cmdlist.
26059 * script/script.c: Likewise.
26060 * util/grub-script-check.c: Likewise.
26061
26062 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26063
26064 * .bzrignore: add grub-macho2img
26065
26066 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26067
26068 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26069
26070 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26071
26072 Remove the dump of sm712 initialisation sequence.
26073
26074 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26075 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26076 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26077 (GRUB_VGA_CR_*): Added many registers.
26078 (GRUB_VGA_SR_*): Likewise.
26079 (GRUB_VGA_GR_*): Likewise.
26080 (grub_vga_write_arx): New function.
26081 (grub_video_hw_config): New struct.
26082 (grub_vga_set_geometry): New function.
26083 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26084 GRUB_PCI_CLASS_SUBCLASS_VGA.
26085 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26086 * video/sm712.c (grub_sm712_write_reg): New function
26087 (grub_sm712_read_reg): Likewise.
26088 (grub_sm712_sr_write): Likewise.
26089 (grub_sm712_gr_write): Likewise.
26090 (grub_sm712_cr_write): Likewise.
26091 (grub_sm712_write_arx): Likewise.
26092 (grub_sm712_cr_shadow_write): Likewise.
26093 (grub_sm712_write_dda_lookup): Likewise.
26094 (grub_video_sm712_setup): Initialise the video rather then
26095 blindly replay the dump.
26096 (main) [TEST]: Add a routine to be able to compile as standalone for
26097 tests.
26098 * video/sm712_init.c (sm712_init): Removed.
26099 (sm712_sr_seq1): New array.
26100 (sm712_sr_seq2): Likewise.
26101
26102 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26103
26104 * include/grub/vga.h: Add missing grub/pci.h include.
26105
26106 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26107
26108 * util/grub-macho2img.c (main): fix typo
26109
26110 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26111
26112 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26113 (grub_vga_gr_read): Likewise.
26114 (grub_vga_cr_write): Likewise.
26115 (grub_vga_cr_read): Likewise.
26116 (grub_vga_sr_write): Likewise.
26117 (grub_vga_sr_read): Likewise.
26118 (grub_vga_palette_read): Likewise.
26119 (grub_vga_palette_write): Likewise.
26120 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26121 (grub_sm712_sr_read): New function.
26122 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26123 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26124
26125 2010-08-09 Robert Millan <rmh@gnu.org>
26126
26127 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26128 out unused variables on non-ZFS build.
26129
26130 2010-08-08 Robert Millan <rmh@gnu.org>
26131
26132 Fix path generation for sub-filesystems in ZFS.
26133
26134 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26135 missing slash.
26136
26137 2010-08-08 Robert Millan <rmh@gnu.org>
26138
26139 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26140
26141 2010-08-08 Robert Millan <rmh@gnu.org>
26142
26143 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26144 exist, issue a proper error message (rely on `ls' for translated
26145 strings).
26146
26147 2010-08-08 Robert Millan <rmh@gnu.org>
26148
26149 Fix grub-probe invocation.
26150
26151 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26152
26153 2010-08-04 Robert Millan <rmh@gnu.org>
26154
26155 * configure.ac: Remove checks for getfsstat() and getmntany().
26156 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26157 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26158 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26159 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26160 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26161 function.
26162 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26163 via find_mount_point_from_dir() and getfsstat() / getmntany().
26164
26165 2010-08-04 Robert Millan <rmh@gnu.org>
26166
26167 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26168 (grub_find_zpool_from_mount_point): Merge into ...
26169 (grub_find_zpool_from_dir): ... this.
26170 * kern/emu/misc.c: Likewise.
26171
26172 * kern/emu/misc.c
26173 (grub_make_system_path_relative_to_its_root): Replace
26174 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26175 with grub_find_zpool_from_dir().
26176 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26177
26178 2010-08-04 Robert Millan <rmh@gnu.org>
26179
26180 Support OpenSolaris in ZFS device resolution.
26181
26182 * configure.ac: Check for getmntany().
26183 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26184 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26185 support.
26186
26187 2010-08-03 Robert Millan <rmh@gnu.org>
26188
26189 Fix grub-emu build.
26190
26191 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26192 * include/grub/emu/misc.h: ... here.
26193
26194 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26195 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26196
26197 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26198 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26199 (grub_get_libzfs_handle): Move to ...
26200 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26201 (grub_get_libzfs_handle): ... here.
26202
26203 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26204
26205 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26206 as command name case.
26207
26208 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26209
26210 * disk/raid.c (insert_array): Select unique numbers for named arrays
26211 as well, for use as keys in the disk cache.
26212
26213 2010-08-01 Robert Millan <rmh@gnu.org>
26214
26215 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26216 kFreeBSD device name, except on ZFS where the filesystem label is
26217 used.
26218 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26219 `/boot/zfs/zpool.cache'.
26220 Set mountfrom kernel variable using ${kfreebsd_device}.
26221
26222 2010-08-01 Robert Millan <rmh@gnu.org>
26223
26224 Make it even harder to use uninitialized `libzfs_handle' (and
26225 make the interface a bit simpler).
26226
26227 * include/grub/util/misc.h (grub_util_init_libzfs)
26228 (libzfs_handle): Remove.
26229 (grub_get_libzfs_handle): New prototype.
26230
26231 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26232 attribute.
26233 (grub_util_init_libzfs): Remove.
26234 (grub_get_libzfs_handle): New function.
26235
26236 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26237 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26238 accessing `libzfs_handle' directly.
26239
26240 2010-08-01 Robert Millan <rmh@gnu.org>
26241
26242 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26243 (grub_find_zpool_from_mount_point): New function prototypes.
26244
26245 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26246 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26247
26248 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26249 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26250 `static' attribute.
26251
26252 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26253 finding zpool from mount point into ...
26254 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26255
26256 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26257 requested path is part of a ZFS pool, use
26258 grub_find_zpool_from_mount_point() to detect its filesystem name,
26259 and generate a path with `/fsname@path' syntax.
26260
26261 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26262
26263 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26264 (void) rather than () so that this is a proper prototype.
26265
26266 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26267
26268 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26269
26270 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26271
26272 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26273 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26274
26275 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26276
26277 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26278
26279 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26280
26281 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26282
26283 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26284
26285 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26286 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26287 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26288 disable gfxpayload.
26289 (Shell-like scripting): Add real content.
26290 (Serial terminal): Suggest `terminal_input serial; terminal_output
26291 serial' rather than putting the two commands on separate lines,
26292 since console input will be inoperative after the first command.
26293 (menuentry): Document --class, --users, and --hotkey options.
26294 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26295 Vladimir Serbinenko).
26296
26297 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26298 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26299
26300 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26301
26302 2010-08-01 Robert Millan <rmh@gnu.org>
26303
26304 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26305 (grub_find_zpool_from_mount_point): New function prototypes.
26306
26307 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26308 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26309
26310 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26311 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26312 `static' attribute.
26313
26314 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26315 finding zpool from mount point into ...
26316 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26317
26318 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26319 requested path is part of a ZFS pool, use
26320 grub_find_zpool_from_mount_point() to detect its filesystem name,
26321 and generate a path with `/fsname@path' syntax.
26322
26323 2010-08-01 Robert Millan <rmh@gnu.org>
26324
26325 Prevent accidental use of uninitialized libzfs_handle.
26326
26327 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26328 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26329 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26330
26331 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26332
26333 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26334 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26335
26336 2010-08-01 Robert Millan <rmh@gnu.org>
26337
26338 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26339
26340 2010-07-31 Robert Millan <rmh@gnu.org>
26341
26342 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26343
26344 2010-07-31 Robert Millan <rmh@gnu.org>
26345
26346 * kern/emu/misc.c: Add missing license header.
26347
26348 2010-07-31 Robert Millan <rmh@gnu.org>
26349
26350 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26351
26352 * include/grub/util/libnvpair.h: Include `<config.h>'.
26353 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26354 declaring libnvpair prototypes ourselves.
26355 * include/grub/util/libzfs.h: Include `<config.h>'.
26356 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26357 declaring libzfs prototypes ourselves.
26358
26359 (libzfs_handle): Moved to ...
26360 * include/grub/util/misc.h (libzfs_handle): ... here.
26361 Include `<grub/util/libzfs.h>'.
26362
26363 2010-07-30 Robert Millan <rmh@gnu.org>
26364
26365 * include/grub/emu/misc.h: Add missing license header.
26366
26367 2010-07-30 Robert Millan <rmh@gnu.org>
26368
26369 Enable `grub-probe -t device' resolution on ZFS.
26370
26371 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26372 * include/grub/util/libnvpair.h: New file.
26373 * include/grub/util/libzfs.h: New file.
26374
26375 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26376 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26377 `<grub/util/libnvpair.h>'.
26378 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26379
26380 (find_mount_point_from_dir): New static function.
26381 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26382 function.
26383 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26384 find_root_device_from_libzfs() before ressorting to find_root_device().
26385
26386 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26387 prototype.
26388 * util/misc.c: Include `<grub/util/libzfs.h>'.
26389 (grub_util_init_libzfs): New function.
26390 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26391 [HAVE_LIBZFS] (fini_libzfs): New static function.
26392 (grub_util_init_libzfs): New function.
26393 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26394
26395 2010-07-30 Robert Millan <rmh@gnu.org>
26396
26397 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26398 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26399 `warn_unused_result' attribute.
26400 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26401 (grub_xasprintf, grub_xvasprintf): Likewise.
26402 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26403
26404 2010-07-29 Robert Millan <rmh@gnu.org>
26405
26406 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26407 (probe): Handle `PRINT_FS_LABEL'.
26408 (main): Handle `-t fs_label'.
26409
26410 2010-07-29 Robert Millan <rmh@gnu.org>
26411
26412 * configure.ac: Remove grub-mkisofs checks.
26413
26414 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26415
26416 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26417 Reported by: Lennart Sorensen.
26418
26419 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26420
26421 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26422 prior to terminal_input/terminal_output separation. It's been over 1.5
26423 years and those versions weren't widely deployed.
26424
26425 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26426
26427 * disk/raid.c (insert_array): Don't count named arrays when looking
26428 for unused array numbers.
26429 Reported and tested by: Michael Guntsche.
26430
26431 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26432
26433 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26434 implementation of this so that grub-emu links again, with a note
26435 that this should support hotplugging in the future.
26436
26437 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26438
26439 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26440
26441 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26442
26443 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26444 handle on failure.
26445 (grub_loopback_close): Remove empty function.
26446 (grub_loopback_dev): Remove close method.
26447
26448 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26449
26450 Disable EFI cursor when the EFI console becomes inactive.
26451
26452 * term/efi/console.c (grub_efi_console_init): New function.
26453 (grub_efi_console_fini): New function.
26454 (grub_console_term_output): Register init and fini methods.
26455
26456 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26457
26458 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26459 sh script.
26460
26461 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26462
26463 * disk/loopback.c (grub_loopback): Replace filename with file.
26464 (delete_loopback): Handle new semantics.
26465 (grub_cmd_loopback): Likewise.
26466 (grub_loopback_iterate): Likewise.
26467 (grub_loopback_close): Likewise.
26468
26469 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26470
26471 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26472 with -p "".
26473 Reported by: Tito Keitel.
26474
26475 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26476
26477 * docs/grub.texi (Naming convention): Document new naming convention.
26478
26479 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26480 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26481
26482 Generate device.map in something closer to the old ordering.
26483
26484 * util/deviceiter.c (struct device): New declaration.
26485 (compare_file_names): Rename to ...
26486 (compare_devices): ... this. Sort by kernel name in preference to
26487 the stable by-id name, but keep the latter as a fallback comparison.
26488 Update header comment.
26489 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26490 of `struct device' rather than of plain file names.
26491
26492 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26493
26494 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26495 on i386.
26496
26497 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26498
26499 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26500 hardcoding size.
26501 (setv1table): Likewise.
26502
26503 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26504
26505 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26506 removing the homehost if present.
26507 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26508 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26509 removing the homehost if present.
26510 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26511 if possible.
26512 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26513
26514 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26515 parameter. Set its pointer target to 0.
26516 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26517 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26518 `data_offset' value from the superblock for 1.x metadata.
26519 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26520 data on the device.
26521 (insert_array): Record the start sector of data on the device.
26522 (grub_raid_register): Pass start_sector parameters to
26523 grub_raid_list->detect and insert_array.
26524 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26525 member.
26526 (struct grub_raid): Add start_sector parameter to `detect'.
26527
26528 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26529 __attribute__ ((packed)), leaving a comment.
26530 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26531 (grub_mdraid_detect_09): ... here and ...
26532 (grub_mdraid_detect_1x): ... here.
26533
26534 2010-07-20 Peter Henn <peter.henn@web.de>
26535
26536 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26537 chunk size and disk size, which are already given as sector counts
26538 as distinct from the 0.90 units. Fetch the correct device number
26539 from the role table instead of using the table index.
26540
26541 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26542
26543 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26544 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26545 (WriteMostly1): New macro.
26546 Set array->name to NULL for metadata format 0.90. Add support for
26547 metadata 1.x. Fix some comments.
26548 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26549 few comments.
26550 * util/getroot.c (grub_util_get_grub_dev): Add support for
26551 /dev/md/name style devices.
26552
26553 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26554
26555 * .bzrignore: Ignore 20_linux_xen.
26556
26557 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26558
26559 * util/import_unicode.py: Remove unnecessary imports.
26560
26561 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26562
26563 Hotplugging and USB hub support.
26564
26565 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26566 (grub_ohci): Likewise.
26567 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26568 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26569 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26570 (GRUB_OHCI_CTRL_EDS): Likewise.
26571 (GRUB_OHCI_BULK_EDS): Likewise.
26572 (GRUB_OHCI_TDS): Likewise.
26573 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26574 (grub_ohci_ed_phys2virt): New function.
26575 (grub_ohci_virt_to_phys): Likewise.
26576 (grub_ohci_td_phys2virt): Likewise.
26577 (grub_ohci_td_virt2phys): Likewise.
26578 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26579 attachment.
26580 (grub_ohci_find_ed): New function.
26581 (grub_ohci_alloc_td): Likewise.
26582 (grub_ohci_free_td): Likewise.
26583 (grub_ohci_free_tds): Likewise.
26584 (grub_ohci_transfer): Use previously allocated memory.
26585 (grub_ohci_portstatus): Reset status changed bit.
26586 (grub_ohci_detect_dev): Supply status changed.
26587 (grub_ohci_fini_hw): Free memory.
26588 (grub_ohci_restore_hw): Reallocate memory.
26589 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26590 Reset status change.
26591 (grub_uhci_detect_dev): Supply status_change.
26592 * bus/usb/usb.c (attach_hooks): New var.
26593 (grub_usb_device_attach): New function.
26594 (grub_usb_register_attach_hook_class): Likewise.
26595 (grub_usb_unregister_attach_hook_class): Likewise.
26596 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26597 (grub_usb_add_hub): Reset connection changed bit.
26598 (attach_root_port): New function.
26599 (grub_usb_root_hub): Likewise.
26600 (poll_nonroot_hub): Likewise.
26601 (grub_usb_poll_devices): Likewise.
26602 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26603 * disk/usbms.c (grub_usbms_open): Use device hooks.
26604 (grub_usbms_iterate) :Poll devices.
26605 (grub_usbms_finddevs): Split into ...
26606 (grub_usbms_attach): ... this ...
26607 (grub_usbms_attach): ... and this.
26608 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26609 in detect_dev.
26610 (grub_usb_interface): New fields attached and detach_hook.
26611 (grub_usb_attach_hook_class): New type.
26612 (grub_usb_attach_desc): New struct.
26613 (grub_usb_register_attach_hook_class): New function.
26614 (grub_usb_unregister_attach_hook_class): Likewise.
26615 (grub_usb_poll_devices): Likewise.
26616 (grub_usb_device_attach): Likewise.
26617 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26618 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26619
26620 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26621
26622 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26623 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26624 delta determination style. Works with most NetBSD partitions too.
26625
26626 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26627
26628 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26629 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26630
26631 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26632
26633 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26634
26635 2010-07-14 Anton Blanchard <anton@samba.org>
26636
26637 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26638 ET_DYN files.
26639
26640 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26641
26642 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26643
26644 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26645
26646 * kern/partition.c (grub_partition_check_containment): New function to
26647 check that a partition is physically contained in a parent. Since
26648 offsets are relative (and non-negative), this reduces to checking that
26649 the partition ends before its parent.
26650 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26651 (grub_partition_iterate): Likewise.
26652 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26653 comments.
26654 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26655 partitions that start before their parent, and add debug printfs.
26656
26657 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26658
26659 * Makefile.in (.SUFFIX): Spell correctly, as ...
26660 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26661 bare module name without `.mod', e.g. `test') tried to invoke a
26662 Modula-2 compiler.
26663
26664 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26665
26666 * README: Point to the Info manual.
26667
26668 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26669
26670 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26671 2nd superblock position from partition size.
26672
26673 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26674
26675 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26676 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26677 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26678 outputs.
26679
26680 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26681
26682 Restructure SCSI .id handling.
26683 Reported and tested by: Aleš Nesrsta.
26684
26685 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26686 (grub_atapi_dev): Changed .name to "ata". New field .id.
26687 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26688 (grub_usbms_dev): New field .id.
26689 * disk/scsi.c (grub_scsi_iterate): Generate name.
26690 (grub_scsi_open): Parse name.
26691 * include/grub/scsi.h (grub_make_scsi_id): New function.
26692 (grub_scsi_dev): Change iterate and open to number instead of naming
26693 busses. All users updated.
26694 (grub_scsi): Remove name. Add .bus.
26695
26696 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26697
26698 * commands/help.c (grub_cmd_help): Fix a typo.
26699
26700 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26701
26702 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26703 Reported and tested by: Colin Watson.
26704
26705 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26706
26707 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26708 in this context.
26709
26710 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26711
26712 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26713
26714 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26715
26716 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26717 indentation.
26718
26719 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26720
26721 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26722 and disk/raid6_recover.c.
26723 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26724 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26725
26726 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26727
26728 * term/gfxterm.c (repaint_schedulded): Rename to ...
26729 (repaint_scheduled): ... this. Update all callers.
26730 (repaint_was_schedulded): Rename to ...
26731 (repaint_was_scheduled): ... this. Update all callers.
26732
26733 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26734
26735 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26736 which we expect to be handled by upper layers.
26737
26738 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26739
26740 * bus/usb/usbhub.c: #include time.h header.
26741
26742 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26743
26744 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26745 entry_name also for entries without stat blocks (e.g. ".."); fixes
26746 corruption of the first entry in a directory.
26747
26748 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26749
26750 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26751 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26752 doesn't work otherwise.
26753
26754 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26755
26756 * docs/grub.texi (Features): Update list of supported file systems.
26757 (GNU/Linux): Update for GRUB 2.
26758 (Serial terminal): Remove mention of --disable-serial, which was a
26759 GRUB Legacy configure option. Update instructions to use
26760 `terminal_input' and `terminal_output' rather than `terminal'.
26761 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26762 configuration' and `Installing GRUB using grub-install'.
26763 (Menu entry editor): Update for GRUB 2.
26764 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26765 Document new -a, -u, and -v options.
26766 (initrd): New section.
26767 (initrd16): New section.
26768 (linux): New section.
26769 (linux16): New section.
26770 (search): The `var' argument to `--set' is optional.
26771 (GRUB only offers a rescue shell): Go into a little more detail on
26772 drive ordering.
26773
26774 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26775
26776 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26777
26778 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26779
26780 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26781 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26782
26783 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26784
26785 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26786 install_prefix, in line with install_dos_part and install_bsd_part.
26787 Add new prefix variable, which is copied to install_prefix after
26788 comparing core.img in memory with the one read from disk in the
26789 no-embedding case, and use that rather than overwriting
26790 install_prefix immediately when installing to a partition.
26791 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26792 Bicakci.
26793
26794 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26795
26796 * configure.ac: Avoid == in test command, it's not portable.
26797 * util/grub.d/30_os-prober.in: Likewise.
26798
26799 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26800
26801 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26802
26803 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26804
26805 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26806 multiple (top-level) partmaps.
26807
26808 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26809
26810 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26811 Reported by: Tino Keitel.
26812
26813 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26814
26815 Bidi and diacritics support.
26816
26817 * Makefile.in (widthspec.bin): New target.
26818 (widthspec.h): Likewise.
26819 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26820 * autogen.sh: Generate unidata.c.
26821 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26822 * commands/ls.c (grub_ls_list_devices): Likewise.
26823 (grub_ls_list_files): Likewise.
26824 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26825 (grub_mini_cmd_lsmod): Likewise.
26826 * commands/read.c: Likewise.
26827 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26828 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26829 * lib/arg.c (grub_arg_show_help): Likewise.
26830 * lib/crypto.c (grub_password_get): Likewise.
26831 * normal/auth.c (grub_username_get): Likewise.
26832 * normal/misc.c (grub_normal_print_device_info): Likewise.
26833 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26834 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26835 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26836 (normal/charset.c_DEPENDENCIES): New variable.
26837 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26838 (pkglib_MODULES): Remove charset.mod.
26839 (charset_mod_SOURCES): Removed.
26840 (charset_mod_CFLAGS): Likewise.
26841 (charset_mod_LDFLAGS): Likewise.
26842 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26843 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26844 and term/tparm.c.
26845 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26846 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26847 (kernel_img_HEADERS): Add terminfo.h.
26848 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26849 Fill ->font. Reverse ascii bitmaps.
26850 (grub_font_get_xheight): New function.
26851 * font/font.c (grub_font_get_string_width): Moved from here ...
26852 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26853 * font/font.c (grub_font_draw_string): Moved from here ...
26854 * gfxmenu/font.c (grub_font_draw_string): ... here.
26855 * font/font.c (grub_font_dup_glyph): New function.
26856 (grub_font_blit_glyph): Likewise.
26857 (grub_font_blit_glyph_mirror): Likewise.
26858 (blit_comb): Likewise.
26859 (grub_font_construct_dry_run): Likewise.
26860 (grub_font_get_constructed_device_width): Likewise.
26861 (grub_font_construct_glyph): Likewise.
26862 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26863 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26864 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26865 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26866 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26867 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26868 (grub_font_get_xheight): New proto.
26869 (grub_font_get_constructed_device_width): Likewise.
26870 (grub_font_construct_glyph): Likewise.
26871 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26872 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26873 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26874 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26875 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26876 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26877 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26878 (grub_console_getcharwidth): Likewise.
26879 * include/grub/misc.h (grub_xputs): New proto.
26880 (grub_puts): Inlined.
26881 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26882 (grub_normal_get_line_counter): Removed.
26883 (grub_install_newline_hook): Likewise.
26884 (grub_normal_get_char_counter): New proto.
26885 (grub_normal_reset_more): Likewise.
26886 (grub_xputs_normal): Likewise.
26887 * include/grub/powerpc/ieee1275/console.h: Removed.
26888 * include/grub/sparc64/ieee1275/console.h: Likewise.
26889 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26890 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26891 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26892 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26893 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26894 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26895 (grub_term_input): Pass reference to self. All users updated.
26896 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26897 Pass reference to self. New fields normal_color, highlight_color and
26898 data. All users updated.
26899 (grub_putchar): Removed.
26900 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26901 (grub_unicode_estimate_width): New function.
26902 (grub_term_getcharwidth): Add defaults.
26903 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26904 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26905 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26906 (grub_cls): Remove EXPORT_FUNC.
26907 (grub_setcolorstate): Inline.
26908 (grub_newline_hook): Removed.
26909 * include/grub/terminfo.h: Rewritten. All users updated.
26910 * include/grub/unicode.h: New file.
26911 * include/grub/video.h (grub_video_signed_rect): New type.
26912 * kern/emu/console.c (grub_console_highlight_color): Removed.
26913 (grub_console_normal_color): Likewise.
26914 (grub_console_standard_color): Made static.
26915 (grub_ncurses_putchar): Remove mapping.
26916 (grub_ncurses_getcharwidth): Removed.
26917 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26918 (grub_ncurses_setcolor): Removed.
26919 (grub_ncurses_getcolor): Likewise.
26920 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26921 (grub_console_putchar): ... this.
26922 (grub_console_putchar): Handle argument difference.
26923 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26924 console_init_early and console_init_lately.
26925 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26926 * kern/misc.c (grub_puts): Removed.
26927 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26928 (grub_vsnprintf_real): Remove str = NULL support.
26929 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26930 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26931 * kern/term.c (grub_putcode): Renamed to ...
26932 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26933 (grub_putchar): Removed.
26934 (grub_xputs_dumb): New function.
26935 (grub_xputs): New variable.
26936 * lib/charset.c: Move from here ...
26937 * normal/charset.c: ... to here.
26938 (grub_ucs4_to_utf8): New function.
26939 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26940 (join_types): New variable.
26941 (unpack_join): New function.
26942 (bidi_types): New variable.
26943 (unpack_bidi): New function.
26944 (get_bidi_type): Likewise.
26945 (get_join_type): Likewise.
26946 (is_mirrored): Likewise.
26947 (grub_unicode_get_comb_type): Likewise.
26948 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26949 (is_type_after): Likewise.
26950 (grub_unicode_aglomerate_comb): Likewise.
26951 (bidi_line_wrap): Likewise.
26952 (grub_bidi_line_logical_to_visual): Likewise.
26953 (grub_bidi_logical_to_visual): Likewise.
26954 (grub_unicode_mirror_code): Likewise.
26955 (grub_unicode_shape_code): Likewise.
26956 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26957 Don't use grub_putchar.
26958 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26959 (grub_normal_reader_init): Likewise.
26960 (grub_xputs_saved): New variable.
26961 (GRUB_MOD_INIT): Set grub_xputs.
26962 (GRUB_MOD_FINI): Restore grub_xputs.
26963 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26964 (menu_init): Avoid printing gfxmenu error.
26965 (show_menu): Use grub_normal_get_char_counter.
26966 * normal/menu_entry.c (update_screen): Fix out-of-array.
26967 (complete): Avoid NULL dereferencing.
26968 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26969 * normal/menu_text.c (print_spaces): Removed.
26970 (grub_print_ucs4): Likewise.
26971 (grub_print_message_indented): Use grub_print_ucs4.
26972 (print_message): Use grub_putcode.
26973 (print_entry): Hanlde diacritics.
26974 * normal/term.c (term_state): New type.
26975 (grub_more_lines): Removed.
26976 (term_states): New variable.
26977 (grub_normal_line_counter): Renamed to ..
26978 (grub_normal_char_counter): ...this. All users updated.
26979 (grub_normal_get_line_counter): Renamed to ...
26980 (grub_normal_get_char_counter): ... this.
26981 (grub_normal_reset_more): New function.
26982 (process_newline): Removed.
26983 (print_more): New function.
26984 (grub_install_newline_hook): Removed.
26985 (map_code): New function.
26986 (grub_puts_terminal): Use grub_print_ucs4.
26987 (putglyph): New function.
26988 (putcode_real): Likewise.
26989 (grub_putcode): Use putcode_real.
26990 (get_maxwidth): New function.
26991 (get_startwidth): Likewise.
26992 (print_ucs4_terminal): Likewise.
26993 (find_term_state): Likewise.
26994 (put_glyphs_terminal): Likewise.
26995 (print_backlog): Likewise.
26996 (print_ucs4_real): Likewise.
26997 (grub_print_ucs4): Likewise.
26998 (grub_xputs_normal): Likewise.
26999 * term/efi/console.c (grub_console_putchar): Output diacritics.
27000 (grub_console_getcharwidth): Removed.
27001 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27002 * term/gfxterm.c (clear_char): Free chars.
27003 (scroll_up): Avoid leaking memory.
27004 (grub_gfxterm_putchar): Support diacritics.
27005 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27006 * term/i386/pc/console.c (grub_console_term_output): Declare as
27007 GRUB_TERM_CODE_TYPE_VGA.
27008 * term/i386/pc/vga.c (grub_vga_term): Declare as
27009 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27010 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27011 GRUB_TERM_CODE_TYPE_VGA.
27012 * term/i386/vga_common.c (map_char): Removed.
27013 (grub_console_putchar): Likewise.
27014 (grub_console_getcharwidth): Likewise.
27015 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27016 (colors): Reordered to match terminfo.
27017 (grub_ofconsole_normal_color): Removed.
27018 (grub_ofconsole_writeesc): Likewise.
27019 (grub_ofconsole_highlight_color): Likewise.
27020 (grub_ofconsole_getcharwidth): Likewise.
27021 (grub_ofconsole_setcolorstate): Likewise.
27022 (grub_ofconsole_setcolor): Likewise.
27023 (grub_ofconsole_getcolor): Likewise.
27024 (grub_ofconsole_readkey): Renamed to ...
27025 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27026 key.
27027 (grub_ofconsole_checkkey): Removed.
27028 (grub_ofconsole_getkey): Likewise.
27029 (grub_ofconsole_getxy): Likewise.
27030 (grub_ofconsole_gotoxy): Likewise.
27031 (grub_ofconsole_cls): Likewise.
27032 (grub_ofconsole_refresh): Likewise.
27033 (grub_ofconsole_terminfo_input): New struct.
27034 (grub_ofconsole_terminfo_output): Likewise.
27035 (grub_ofconsole_term_input): Use terminfo.
27036 (grub_ofconsole_term_output): Likewise.
27037 (grub_console_init): Split into ...
27038 (grub_console_init_early): ...this and ...
27039 (grub_console_init_lately): ...this. Use terminfo.
27040 (grub_ofconsole_putchar): Renamed to ...
27041 (put): ... this. Remove mapping.
27042 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27043 * term/serial.c: Simplify using terminfo.
27044 (xpos): Removed.
27045 (ypos): Likewise.
27046 (keep_track): Likewise.
27047 (registered): Likewise.
27048 (input_buf): Likewise.
27049 (npending): Likewise.
27050 (serial_translate_key_sequence): Likewise.
27051 (fill_input_buf): Likewise.
27052 (grub_serial_checkkey): Likewise.
27053 (grub_serial_getkey): Likewise.
27054 (grub_serial_getxy): Likewise.
27055 (grub_serial_gotoxy): Likewise.
27056 (grub_serial_putchar): Likewise.
27057 (grub_serial_cls): Likewise.
27058 (grub_serial_setcolorstate): Likewise.
27059 (grub_serial_setcursor): Likewise.
27060 (serial_hw_init): Use serial_hw_fetch.
27061 (grub_serial_terminfo_input): New variable.
27062 (grub_serial_terminfo_output): Likewise.
27063 (grub_serial_term_input): Use terminfo.
27064 (grub_serial_term_output): Likewise.
27065 * term/terminfo.c (putstr): Use put.
27066 (grub_terminfo_all_free): New function
27067 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27068 (grub_terminfo_output_register): New function.
27069 (grub_terminfo_output_unregister): Likewise.
27070 (grub_terminfo_getxy): Likewise.
27071 (grub_terminfo_readkey): Likewise.
27072 (grub_terminfo_checkkey): Likewise.
27073 (grub_terminfo_getkey): Likewise.
27074 (grub_terminfo_input_init): Likewise.
27075 (print_terminfo): Likewise.
27076 (grub_cmd_terminfo): Handle encoding.
27077 (grub_terminfo_gotoxy): Track position.
27078 (grub_terminfo_cls): Likewise.
27079 (grub_terminfo_putchar): Likewise.
27080 (grub_terminfo_setcolorstate): Handle colors
27081 (grub_terminfo_cursor_on): This ...
27082 (grub_terminfo_cursor_off): ... and this merged into ...
27083 (grub_terminfo_setcursor): ... this.
27084 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27085 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27086 * unicode/BidiMirroring.txt: Likewise.
27087 * unicode/UnicodeData.txt: Likewise.
27088 * unicode/COPYING: Likewise.
27089 * util/grub-editenv.c (grub_putchar): Removed.
27090 (grub_xputs_real): New function.
27091 (grub_xputs): New variable.
27092 * util/grub-fstest.c (grub_putchar): Removed.
27093 (grub_xputs_real): New function.
27094 (grub_xputs): New variable.
27095 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27096 (grub_xputs_real): New function.
27097 (grub_xputs): New variable.
27098 * util/grub-probe.c (grub_putchar): Removed.
27099 (grub_xputs_real): New function.
27100 (grub_xputs): New variable.
27101 * util/grub-script-check.c (grub_putchar): Removed.
27102 (grub_xputs_real): New function.
27103 (grub_xputs): New variable.
27104 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27105 (grub_xputs_real): New function.
27106 (grub_xputs): New variable.
27107 * util/import_unicode.py: New file.
27108 * util/grub-mkfont.c (ft_errmsgs): New array.
27109 (grub_glyph_info): Make bitmap a pointer.
27110 (file_formats): New type WIDTH_SPEC.
27111 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27112 (options): Add width-spec.
27113 (help): Likewise.
27114 (add_char): Renamed to ...
27115 (add_glyph): ... this.
27116 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27117 (glyph_replace): New type.
27118 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27119 (add_char): New function.
27120 (add_subst): Likewise.
27121 (process_cursive): Likewise.
27122 (add_font): Handle GSUB.
27123 (write_font_width_spec): New function.
27124 (main): Sort glyphs.
27125 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27126 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27127 * kern/term.c (grub_cls): Moved from here...
27128 * normal/term.c (grub_cls): ... here.
27129
27130 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27131
27132 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27133 suitable for using within the format argument of printf when
27134 converting grub_size_t.
27135 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27136 "x" to convert grub_size_t arguments.
27137
27138 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27139
27140 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27141 too long captions.
27142 (list_get_minimal_size): Take selection box into account.
27143
27144 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27145
27146 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27147 NULL font.
27148
27149 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27150
27151 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27152 devices when iterating over /dev/disk/by-id; they will be handled
27153 later if appropriate, which they aren't always (e.g. LVM).
27154
27155 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27156
27157 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27158 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27159 fails.
27160 (grub_halt): Likewise.
27161 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27162 reset-all fails.
27163 (grub_halt): Don't return, even if all of shut-down, power-off, and
27164 poweroff fail.
27165
27166 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27167
27168 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27169 arguments, not three.
27170
27171 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27172
27173 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27174 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27175 LVM-on-RAID is handled correctly.
27176
27177 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27178
27179 * docs/grub.texi (Changes from GRUB Legacy): New section.
27180 (Future): Fix typo.
27181
27182 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27183
27184 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27185 grub.d/README accidentally ends up executable for one reason or
27186 another. Ignore it.
27187
27188 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27189
27190 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27191 (gpt_partition_map_iterate): Support non-512B sectors.
27192
27193 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27194
27195 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27196 Tested by: Seth Goldberg.
27197
27198 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27199
27200 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27201 Properly align mbi.
27202 Reported by: Seth Goldberg.
27203
27204 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27205
27206 * util/grub-mkrescue.in: Avoid module duplication.
27207
27208 2010-07-01 Sean Finney <seanius@seanius.net>
27209
27210 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27211
27212 2010-07-01 Sean Finney <seanius@seanius.net>
27213
27214 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27215
27216 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27217
27218 * disk/lvm.c (grub_lvm_checkvalue): New function.
27219 (grub_lvm_check_flag): Likewise.
27220
27221 2010-07-01 Robert Millan <rmh@gnu.org>
27222
27223 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27224 Support 'p' as partition separator on kernel of FreeBSD (used
27225 with GPT labels).
27226 (grub_util_biosdisk_get_grub_dev): Likewise.
27227
27228 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27229
27230 Yeeloong firmware port.
27231
27232 * boot/mips/yeeloong/fwstart.S: New file.
27233 * bus/cs5536.c (gpiodump): New const.
27234 (set_io_space): New function.
27235 (set_iod): Likewise.
27236 (set_p2d): Likewise.
27237 (grub_cs5536_init_geode): Likewise.
27238 * commands/mips/yeeloong/lsspd.c: New file.
27239 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27240 (serial_mod_SOURCES): New variable.
27241 (serial_mod_CFLAGS): Likewise.
27242 (serial_mod_LDFLAGS): Likewise.
27243 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27244 term/terminfo.c and term/tparm.c.
27245 (pkglib_IMAGES): Add fwstart.img.
27246 (fwstart_img_SOURCES): New variable.
27247 (fwstart_img_CFLAGS): Likewise.
27248 (fwstart_img_ASFLAGS): Likewise.
27249 (fwstart_img_LDFLAGS): Likewise.
27250 (fwstart_img_FORMAT): Likewise.
27251 (pkglib_MODULES): Add lsspd.mod.
27252 (lsspd_mod_SOURCES): New variable.
27253 (lsspd_mod_CFLAGS): Likewise.
27254 (lsspd_mod_LDFLAGS): Likewise.
27255 (pkglib_MODULES): Add halt.mod.
27256 (halt_mod_SOURCES): New variable.
27257 (halt_mod_CFLAGS): Likewise.
27258 (halt_mod_LDFLAGS): Likewise.
27259 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27260 (serial_mod_SOURCES): Removed.
27261 (serial_mod_CFLAGS): Likewise.
27262 (serial_mod_LDFLAGS): Likewise.
27263 * disk/ata.c (check_device): New function.
27264 (grub_ata_device_initialize): Use check_device.
27265 (grub_ata_iterate): Recheck devices.
27266 (grub_ata_open): Likewise.
27267 (grub_atapi_iterate): Likewise.
27268 (grub_atapi_open): Likewise.
27269 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27270 (GRUB_ATA_CH1_PORT1): Likewise.
27271 (GRUB_ATA_CH0_PORT2): Likewise.
27272 (GRUB_ATA_CH1_PORT2): Likewise.
27273 * include/grub/mips/loongson.h: New file.
27274 * include/grub/mips/yeeloong/ec.h: Likewise.
27275 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27276 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27277 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27278 * include/grub/misc.h (grub_halt): Declare as noreturn.
27279 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27280 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27281 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27282 (UART_ENABLE_DTRRTS): Likewise.
27283 (UART_ENABLE_MODEM): Removed.
27284 (UART_ENABLE_OUT2): New const.
27285 * include/grub/term.h (grub_term_register_input_active): New function.
27286 (grub_term_register_output_active): Likewise.
27287 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27288 argument.
27289 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27290 (init_pci): New function.
27291 (grub_machine_init): Execute platform init when firmware. Init serial.
27292 (grub_halt): Implement.
27293 (grub_exit): Likewise.
27294 (grub_reboot): Likewise.
27295 * term/serial.c (serial_hw_init): Update macros.
27296 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27297 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27298 (image_targets): New target mipsel-yeeloong-flash.
27299 (generate_image): Support IMAGE_YEELOONG_FLASH.
27300 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27301 (grub_video_sm712_setup): Init card.
27302 (grub_video_sm712_set_palette): Removed.
27303 * video/sm712_init.c: New file.
27304
27305 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27306
27307 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27308 PATH when running help2man and then run it on the unadorned
27309 executable names, rather than passing $(builddir)/* paths to
27310 help2man. This avoids the build directory ending up in generated
27311 manual pages.
27312
27313 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27314
27315 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27316 to avoid accidents when debugging with 'sh -x'.
27317 * util/grub-mkrescue.in: Likewise.
27318 * util/grub.d/00_header.in: Likewise.
27319 * util/grub.d/10_hurd.in: Likewise.
27320 * util/grub.d/10_kfreebsd.in: Likewise.
27321 * util/grub.d/10_linux.in: Likewise.
27322 * util/grub.d/10_netbsd.in: Likewise.
27323 * util/grub.d/10_windows.in: Likewise.
27324 * util/grub.d/20_linux_xen.in: Likewise.
27325 * util/grub.d/30_os-prober.in: Likewise.
27326 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27327
27328 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27329
27330 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27331 last character in the buffer.
27332 Reported by: Vladimir Serbinenko.
27333
27334 2010-06-29 Robert Millan <rmh@gnu.org>
27335
27336 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27337 (Command-line and menu entry commands): Document `badram' command.
27338
27339 2010-06-28 Robert Millan <rmh@gnu.org>
27340
27341 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27342 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27343 command using ${GRUB_BADRAM} as parameter.
27344
27345 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27346
27347 * docs/grub.texi (Device map): New section.
27348 (Themes): New section (stub).
27349 * Makefile.in (docs/grub.info): The info documentation now builds
27350 without errors. Make sure it stays that way.
27351
27352 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27353
27354 Use normal parser for menu entries.
27355 Reported by: Thomas Frauendorfer
27356
27357 * include/grub/parser.h (grub_parser_execute): Don't export.
27358 * normal/menu.c (grub_menu_execute_entry_real): New function.
27359 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27360
27361 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27362
27363 * docs/grub.texi (Embedded configuration): New section (replacing
27364 old "Preset Menu" stub).
27365 (Images): New section.
27366 (configfile): Note that any menu entries defined in `file' are shown
27367 immediately.
27368
27369 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27370
27371 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27372
27373 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27374
27375 * util/grub-install.in: Add --debug-image= option.
27376
27377 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27378
27379 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27380 possible on Linux.
27381
27382 * util/deviceiter.c (check_device): Rename to ...
27383 (check_device_readable_unique): ... this. Update all callers.
27384 Maintain and check a list of which devices (by canonicalized name)
27385 have already been seen.
27386 (clear_seen_devices): New function.
27387 (compare_file_names) [__linux__]: New function.
27388 (grub_util_iterate_devices): Clear the list of seen devices on exit
27389 and (just in case) on entry.
27390 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27391 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27392 seen-devices list, superseded by general code in check_device.
27393
27394 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27395
27396 * commands/cat.c (options): New variable.
27397 (grub_cmd_cat): Parse options. If the --dos option is given, print
27398 DOS-style "\r\n" line endings as simple newlines (Debian bug
27399 #586358).
27400 (GRUB_MOD_INIT): Use extcmd.
27401 (GRUB_MOD_FINI): Likewise.
27402 * docs/grub.texi (cat): Document --dos.
27403
27404 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27405
27406 XEN with Linux grub-mkconfig support.
27407
27408 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27409 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27410 GRUB_CMDLINE_XEN_DEFAULT.
27411 * util/grub.d/20_linux_xen.in: New file.
27412
27413 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27414
27415 Initialise VGA video on qemu ourselves.
27416
27417 * boot/i386/qemu/boot.S: Don't call 0xc000.
27418 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27419 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27420 (kernel_img_HEADERS): Add pci.h.
27421 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27422 * configure.ac: Force unifont on qemu and yeeloong.
27423 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27424 (grub_vga_palette_write): Use correct register.
27425 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27426 Call grub_qemu_init_cirrus.
27427 * kern/i386/qemu/init.c: New file.
27428 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27429
27430 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27431
27432 2010-06-26 Pavel Roskin <proski@gnu.org>
27433
27434 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27435 13.
27436
27437 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27438
27439 * docs/grub.texi (Simple configuration): Explain that
27440 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27441 set to `true' to disable their respective recovery entries, not
27442 merely set.
27443
27444 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27445
27446 Make the `source' command slightly faster.
27447
27448 * normal/main.c (grub_normal_execute): Don't re-read list files when
27449 nested.
27450
27451 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27452
27453 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27454 field position and mask size to red fields from mode_info, not
27455 green.
27456 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27457 Remove redundant tag->common.framebuffer_type assignment.
27458 Reported by: Seth Goldberg.
27459
27460 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27461
27462 Sync up other versions of the Linux loader with Robert Millan's
27463 change of 2010-01-09, "Make loader output a bit more user-friendly".
27464
27465 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27466 grub_dprintf().
27467 (grub_cmd_linux): Likewise.
27468 (grub_cmd_initrd): Likewise.
27469 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27470 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27471
27472 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27473
27474 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27475 larger than MEMORY_MAP_SIZE.
27476
27477 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27478
27479 Fix parallel build.
27480
27481 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27482 dependency.
27483 * script/parser.y: #include grub_script.tab.h header.
27484
27485 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27486
27487 Support >3GiB and <16MiB RAM in i386-qemu.
27488
27489 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27490 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27491 (grub_lower_mem): Removed.
27492 (grub_upper_mem): Likewise.
27493 (mem_size): Made static.
27494 (above_4g): New variable.
27495 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27496 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27497 support.
27498
27499 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27500
27501 Cirrus 5446 and Bochs video cards support.
27502
27503 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27504 video_bochs.mod
27505 (video_cirrus_mod_SOURCES): New variable.
27506 (video_cirrus_mod_CFLAGS): Likewise.
27507 (video_cirrus_mod_LDFLAGS): Likewise.
27508 (video_bochs_mod_SOURCES): Likewise.
27509 (video_bochs_mod_CFLAGS): Likewise.
27510 (video_bochs_mod_LDFLAGS): Likewise.
27511 * include/grub/vga.h: New file.
27512 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27513 (grub_video_fb_set_page_t): New type.
27514 (grub_video_fb_setup): New prototype.
27515 (grub_video_fb_swap_buffers): Likewise.
27516 (grub_video_fb_get_info_and_fini): Likewise.
27517 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27518 (CRTC_DATA_PORT): Likewise.
27519 (CRTC_CURSOR): Likewise.
27520 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27521 (CRTC_CURSOR_ADDR_LOW): Likewise.
27522 (CRTC_CURSOR_DISABLE): Likewise.
27523 (update_cursor): Use grub_vga_cr_write.
27524 (grub_vga_text_setcursor): Likewise.
27525 * video/bochs.c: New file.
27526 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27527 (palette): Likewise.
27528 (palette_size): Likewise.
27529 (framebuffer): New variable.
27530 (grub_video_fb_init): Use 'framebuffer'.
27531 (grub_video_fb_fini): Likewise.
27532 (grub_video_fb_get_info): Likewise.
27533 (grub_video_fb_get_palette): Likewise.
27534 (grub_video_fb_set_palette): Likewise.
27535 (grub_video_fb_set_viewport): Likewise.
27536 (grub_video_fb_get_viewport): Likewise.
27537 (grub_video_fb_map_color): Likewise.
27538 (grub_video_fb_map_rgb): Likewise.
27539 (grub_video_fb_map_rgba): Likewise.
27540 (grub_video_fb_unmap_color): Likewise.
27541 (grub_video_fb_unmap_color_int): Likewise.
27542 (grub_video_fb_fill_rect): Likewise.
27543 (grub_video_fb_blit_bitmap): Likewise.
27544 (grub_video_fb_blit_render_target): Likewise.
27545 (grub_video_fb_scroll): Likewise.
27546 (grub_video_fb_create_render_target): Likewise.
27547 (grub_video_fb_doublebuf_blit_init): Likewise.
27548 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27549 (doublebuf_pageflipping_update_screen): New function.
27550 (doublebuf_pageflipping_init): Likewise.
27551 (grub_video_fb_setup): Likewise.
27552 (grub_video_fb_swap_buffers): Likewise.
27553 (grub_video_fb_get_info_and_fini): Likewise.
27554 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27555 All users updated.
27556 (doublebuf_pageflipping_commit): Restructured into ...
27557 (doublebuf_pageflipping_set_page): ... this.
27558 (doublebuf_pageflipping_update_screen): Removed.
27559 (doublebuf_pageflipping_init): Likewise.
27560 (double_buffering_init): Likewise.
27561 (grub_video_vbe_setup): Use grub_video_fb_setup.
27562 (grub_video_vbe_swap_buffers): Removed.
27563 (grub_video_vbe_set_active_render_target): Likewise.
27564 (grub_video_vbe_get_active_render_target): Likewise.
27565 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27566 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27567 grub_video_fb_set_active_render_target and
27568 grub_video_fb_get_active_render_target.
27569 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27570 (SEQUENCER_DATA_PORT): Likewise.
27571 (MAP_MASK_REGISTER): Likewise.
27572 (CRTC_ADDR_PORT): Likewise.
27573 (CRTC_DATA_PORT): Likewise.
27574 (START_ADDR_HIGH_REGISTER): Likewise.
27575 (START_ADDR_LOW_REGISTER): Likewise.
27576 (GRAPHICS_ADDR_PORT): Likewise.
27577 (GRAPHICS_DATA_PORT): Likewise.
27578 (READ_MAP_REGISTER): Likewise.
27579 (INPUT_STATUS1_REGISTER): Likewise.
27580 (INPUT_STATUS1_VERTR_BIT): Likewise.
27581 (get_map_mask): Use grub_vga_sr_read.
27582 (set_map_mask): Use grub_vga_sr_write.
27583 (set_read_map): Use grub_vga_gr_write.
27584 (set_start_address): Use grub_vga_cr_write.
27585 * video/sm712.c (framebuffer): Remove leftover fields.
27586
27587 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27588
27589 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27590 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27591 instead. Replace the gfxterm backend check with a check that
27592 ${GRUB_PREFIX}/video.lst is non-empty.
27593 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27594 again.
27595 (load_video): New generated function. Call it before loading
27596 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27597 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27598 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27599 * docs/grub.texi (Simple configuration): Document
27600 GRUB_VIDEO_BACKEND.
27601
27602 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27603
27604 Use video functions in linux and xnu loaders.
27605
27606 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27607 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27608 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27609 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27610 loader/i386/pc/linux.c.
27611 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27612 (find_line_len): Removed.
27613 (find_framebuf): Likewise.
27614 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27615 * loader/i386/efi/xnu.c: Removed.
27616 * loader/i386/pc/xnu.c: Moved from here...
27617 * loader/i386/xnu.c: ...here.
27618
27619 Enable priorities in video drivers.
27620
27621 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27622 (grub_video_adapter): New field prio.
27623 (grub_video_register): Respect prio when inserting.
27624 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27625 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27626 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27627 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27628 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27629 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27630 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27631
27632 Fix SDL driver ID.
27633
27634 * include/grub/video.h (grub_video_driver_id_t): New value
27635 GRUB_VIDEO_DRIVER_SDL.
27636 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27637
27638 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27639
27640 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27641 argument to printf.
27642 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27643
27644 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27645
27646 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27647 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27648
27649 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27650
27651 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27652 directly, and recommend grub-install instead.
27653 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27654
27655 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27656
27657 Fix i386-pc prefix handling with nested partitions (Debian bug
27658 #585068). Note that the case where the core image is booted using
27659 multiboot and relocated from its original location still requires
27660 more work.
27661
27662 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27663 with "(,", fill the boot drive in between those two characters, but
27664 expect that a full partition specification including partition map
27665 names will follow.
27666 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27667 specified, write a prefix without the drive name but including a
27668 full partition specification.
27669
27670 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27671
27672 * util/grub-mkconfig.in: Ignore non-option arguments, for
27673 compatibility with older versions (before 2010-06-12) which did the
27674 same. In particular, this makes it easier to ship an update-grub
27675 wrapper which is compatible with that used with GRUB Legacy (Debian
27676 bug #586056).
27677
27678 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27679
27680 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27681 for manual page generation.
27682
27683 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27684
27685 * po/POTFILES: Remove leftover commands/handler.c.
27686
27687 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27688
27689 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27690 left this script non-functional.
27691
27692 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27693
27694 * docs/man/grub-emu.h2m: New file.
27695
27696 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27697
27698 * docs/grub.texi (Commands): Document reduced command set in rescue
27699 mode.
27700 (cpuid): New section.
27701
27702 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27703
27704 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27705 new partition naming style.
27706 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27707
27708 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27709
27710 Add "-o grub.iso" like cmdline options support.
27711
27712 * util/grub-install.in: Improve cmdline option parsing.
27713 * util/grub-mkconfig.in: Likewise.
27714 * util/grub-mkrescue.in: Likewise.
27715 * util/grub-reboot.in: Likewise.
27716 * util/grub-set-default.in: Likewise.
27717 * util/i386/efi/grub-install.in: Likewise.
27718 * util/ieee1275/grub-install.in: Likewise.
27719 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27720
27721 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27722
27723 * .bzrignore: Ignore 41_custom.
27724
27725 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27726
27727 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27728
27729 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27730
27731 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27732 prototype declarations.
27733
27734 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27735 generating fs, partmap, and video lists.
27736 * include/grub/fs.h (grub_fs_register): Omit prototype if
27737 GRUB_LST_GENERATOR is defined.
27738 * include/grub/partition.h (grub_partition_map_register): Likewise.
27739 * include/grub/video.h (grub_video_register): Likewise.
27740
27741 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27742
27743 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27744
27745 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27746
27747 * util/grub-mkrescue.in: Support --xorriso argument.
27748
27749 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27750
27751 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27752 Suggested by: Thomas Schmitt.
27753
27754 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27755
27756 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27757 Suggested by: Thomas Schmitt.
27758
27759 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27760
27761 custom.cfg support.
27762
27763 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27764 * util/grub.d/41_custom.in: New file.
27765
27766 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27767
27768 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27769 been merged back into normal.
27770
27771 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27772
27773 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27774 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27775
27776 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27777
27778 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27779 when generating manual pages.
27780 * docs/man/grub-bin2h.h2m: New file.
27781 * docs/man/grub-editenv.h2m: New file.
27782 * docs/man/grub-fstest.h2m: New file.
27783 * docs/man/grub-install.h2m: New file.
27784 * docs/man/grub-macho2img.h2m: New file.
27785 * docs/man/grub-mkconfig.h2m: New file.
27786 * docs/man/grub-mkdevicemap.h2m: New file.
27787 * docs/man/grub-mkfont.h2m: New file.
27788 * docs/man/grub-mkimage.h2m: New file.
27789 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27790 * docs/man/grub-mkrelpath.h2m: New file.
27791 * docs/man/grub-mkrescue.h2m: New file.
27792 * docs/man/grub-ofpathname.h2m: New file.
27793 * docs/man/grub-pe2elf.h2m: New file.
27794 * docs/man/grub-probe.h2m: New file.
27795 * docs/man/grub-reboot.h2m: New file.
27796 * docs/man/grub-script-check.h2m: New file.
27797 * docs/man/grub-set-default.h2m: New file.
27798 * docs/man/grub-setup.h2m: New file.
27799
27800 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27801
27802 Use FOR_* macros instead of *_iterate whenever possible.
27803
27804 * commands/handler.c: Removed.
27805 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27806 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27807 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27808 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27809 (grub_probe_SOURCES): Remove kern/parser.c.
27810 (util/grub-script-check.c_DEPENDENCIES): Removed.
27811 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27812 and grub_script_check_init.c.
27813 (grub_script_check_init.lst): Removed.
27814 (grub_script_check_init.h): Likewise.
27815 (grub_script_check_init.c): Likewise.
27816 (pkglib_MODULES): Remove handler.mod and sh.mod.
27817 (handler_mod_SOURCES): Removed.
27818 (handler_mod_CFLAGS): Likewise.
27819 (handler_mod_LDFLAGS): Likewise.
27820 (normal_mod_SOURCES): Remove normal/handler.c.
27821 Add script/main.c, script/script.c, script/execute.c,
27822 script/function.c, script/lexer.c, grub_script.tab.c
27823 and grub_script.yy.c.
27824 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27825 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27826 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27827 (grub_setup_SOURCES): Remove kern/parser.c.
27828 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27829 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27830 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27831 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27832 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27833 (grub_setup_SOURCES): Remove kern/parser.c.
27834 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27835 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27836 * include/grub/command.h (grub_command_iterate): Removed.
27837 (FOR_COMMANDS): New macro.
27838 * include/grub/dl.h (grub_dl): New member next.
27839 (grub_dl_iterate): Removed.
27840 (grub_dl_head): New variable declaration.
27841 (FOR_DL_MODULES): New macro.
27842 * include/grub/fs.h: Include list.h.
27843 (grub_fs): Make next first element.
27844 (grub_fs_list): New variable declaration.
27845 (grub_fs_register): Make inline.
27846 (grub_fs_unregister): Likewise.
27847 (grub_fs_iterate): Removed.
27848 (FOR_FILESYSTEMS): New macro.
27849 * include/grub/handler.h: Removed.
27850 * include/grub/list.h (grub_list_hook_t): Removed.
27851 (grub_list_test_t): Likewise.
27852 (grub_list_pop): Likewise.
27853 (grub_list_iterate): Likewise.
27854 (grub_list_insert): Likewise.
27855 (FOR_LIST_ELEMENTS): New macro.
27856 * include/grub/parser.h (grub_parser_class): Removed.
27857 (grub_parser_register): Likewise.
27858 (grub_parser_unregister): Likewise.
27859 (grub_parser_get_current): Likewise.
27860 (grub_parser_set_current): Likewise.
27861 (grub_register_rescue_parser): Likewise.
27862 (grub_rescue_parse_line): New function.
27863 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27864 * include/grub/script_sh.h (grub_script_function_list): New variable
27865 declaration.
27866 (FOR_SCRIPT_FUNCTIONS): New macro.
27867 (grub_script_function_iterate): Removed.
27868 (grub_normal_parse_line): New prototype.
27869 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27870 (FOR_DISABLED_TERM_INPUTS): Likewise.
27871 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27872 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27873 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27874 element.
27875 (grub_video_register): Inline.
27876 (grub_video_unregister): Likewise.
27877 (grub_video_adapter_list): New variable declaration.
27878 (grub_video_iterate): Removed.
27879 (FOR_VIDEO_ADAPTERS): New macro.
27880 * kern/dl.c (grub_dl_list): Removed. All users updated.
27881 (grub_dl_iterate): Removed.
27882 * kern/fs.c (grub_fs_list): Make global.
27883 (grub_fs_register): Removed.
27884 (grub_fs_unregister): Likewise.
27885 (grub_fs_iterate): Likewise.
27886 * kern/handler.c: Removed.
27887 * kern/list.c (grub_list_pop): Removed.
27888 (grub_list_iterate): Likewise.
27889 (grub_list_insert): Likewise.
27890 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27891 (grub_prio_list_insert): Don't use grub_list_insert.
27892 * kern/main.c (grub_register_rescue_parser): Don't call
27893 grub_register_rescue_parser.
27894 * kern/parser.c (grub_parser_class): Removed.
27895 (grub_parser_execute): Use grub_rescue_parse_line.
27896 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27897 (grub_rescue_parser): Removed.
27898 (grub_register_rescue_parser): Likewise.
27899 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27900 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27901 (grub_auth_check_authentication): Likewise.
27902 * normal/completion.c (iterate_command): Removed.
27903 (grub_normal_do_completion): Use FOR_COMMANDS.
27904 * normal/handler.c: Removed.
27905 * normal/main.c (read_config_file): Remove parser changing.
27906 (grub_normal_execute): Don't call read_handler_list.
27907 (grub_normal_read_line_real): Statically allocate prompt.
27908 (grub_cmdline_run): Use grub_normal_parse_line.
27909 (GRUB_MOD_FINI): Don't call free_handler_list.
27910 * normal/menu_entry.c (run): Likewise.
27911 * script/function.c (grub_script_function_list): Make global.
27912 (grub_script_function_iterate): Removed.
27913 * script/main.c (grub_normal_parse_line): Make global.
27914 (grub_sh_parser): Removed.
27915 (GRUB_MOD_INIT): Likewise.
27916 (GRUB_MOD_FINI): Likewise.
27917 * tests/lib/functional_test.c (grub_functional_test): Use
27918 FOR_LIST_ELEMENTS.
27919 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27920 (grub_test_run): Use FOR_LIST_ELEMENTS.
27921 * tests/lib/unit_test.c (main): Likewise.
27922 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27923 grub_list_pop.
27924 * util/grub-fstest.c (grub_term_input_class): Removed.
27925 (grub_term_output_class): Likewise.
27926 * util/grub-probe.c: Likewise.
27927 * util/i386/pc/grub-setup.c: Likewise.
27928 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27929 * util/grub-script-check.c (main): Don't call grub_init_all and
27930 grub_fini_all.
27931 * video/video.c (grub_video_adapter_list): Make global.
27932 (grub_video_register): Removed.
27933 (grub_video_unregister): Likewise.
27934 (grub_video_iterate): Likewise.
27935
27936 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27937
27938 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27939 reported by Henrique Ferreiro.
27940
27941 2010-06-09 Robert Millan <rmh@gnu.org>
27942
27943 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27944 ones, when both are available.
27945
27946 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27947
27948 Make --version uniform and avoid hard-coded program name.
27949
27950 * util/grub-mkimage.c (main): Use `program_name' instead of
27951 hard-coded string.
27952 * util/i386/pc/grub-setup.c (main): Likewise.
27953 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27954 * util/grub-install.in: Save the basename of $0 in $self, and use the
27955 latter in informational messages. Use the same format for --version
27956 as the binary programs.
27957 * util/grub-mkconfig.in: Likewise.
27958 * util/grub-mkrescue.in: Likewise.
27959 * util/grub-reboot.in: Likewise.
27960 * util/grub-set-default.in: Likewise.
27961 * util/i386/efi/grub-install.in: Likewise.
27962 * util/ieee1275/grub-install.in: Likewise.
27963 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27964
27965 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27966
27967 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27968 embedding area. Use <= instead of == when checking for non-emptiness.
27969
27970 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27971
27972 * configure.ac: Add `.' to the directories searched for unifont.
27973
27974 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27975
27976 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27977 grub_script.yy.h.
27978
27979 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27980
27981 * docs/grub.texi (History): Expand to cover GRUB 2.
27982 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27983 commands, not `terminal'.
27984 (serial): Likewise.
27985 (terminal_input): New section.
27986 (terminal_output): New section.
27987 (uppermem): New section (stub).
27988 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27989
27990 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27991
27992 * docs/grub.texi (Security): Menu entries are unrestricted by
27993 default, not restricted to superusers as I had previously thought.
27994 Reword to account for this.
27995
27996 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27997
27998 * kern/emu/misc.c (device_mapper_null_log): New function.
27999 (grub_device_mapper_supported): New function.
28000 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28001 prototype.
28002 * kern/emu/hostdisk.c (find_partition_start): Check whether
28003 device-mapper is supported before trying to use it.
28004 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28005
28006 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28007
28008 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28009 (File name syntax): Likewise.
28010 (help): --all is no longer supported in GRUB 2. Be more precise
28011 about pattern matching.
28012
28013 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28014
28015 * normal/completion.c (grub_normal_do_completion): When completing
28016 arguments to "set" and the current word contains an equals sign,
28017 skip to after the equals sign before starting completion.
28018
28019 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28020
28021 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28022
28023 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28024
28025 * docs/grub.texi (Network): New section.
28026 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28027 `(nd)' as in GRUB Legacy.
28028 (pxe_unload): New section.
28029
28030 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28031
28032 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28033 in the rescue shell, so recommend using `set' instead. Thanks,
28034 Jordan Uggla.
28035
28036 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28037
28038 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28039 (password): New section.
28040 (password_pbkdf2): New section.
28041 (search): New section.
28042 (Security): New section.
28043 (Troubleshooting): New section, currently very incomplete.
28044 (Invoking grub-mkpasswd-pbkdf2): New section.
28045 (Internals): New section, currently very incomplete.
28046
28047 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28048
28049 * util/grub.d/00_header.in: Add some more quoting (of
28050 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28051 work again.
28052 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28053
28054 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28055
28056 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28057 to `count', fixing variable shadowing that broke the -c option.
28058
28059 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28060
28061 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28062 in case they contain spaces.
28063
28064 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28065
28066 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28067 "part_" to partmap module names, in line with grub-install.
28068 Reported by: Jindřich Makovička (Debian bug #584426).
28069
28070 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28071
28072 * util/grub-mkimage.c: Make target-related error messages slightly
28073 more helpful; -O talks about "format". Explicitly point to the use
28074 of -O if no target is specified.
28075 Reported by: Didier Raboud (Debian bug #584415).
28076
28077 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28078
28079 * INSTALL: Document several build requirements for optional features
28080 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28081
28082 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28083
28084 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28085 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28086 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28087
28088 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28089
28090 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28091 Thanks to Jordan Uggla for spotting this.
28092
28093 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28094
28095 Finally make USB usable.
28096
28097 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28098 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28099 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28100 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28101 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28102 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28103 (GRUB_OHCI_FSMPS): Likewise.
28104 (GRUB_OHCI_PERIODIC_START): Likewise.
28105 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28106 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28107 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28108 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28109 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28110 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28111 (grub_ohci_transaction): Likewise.
28112 (grub_ohci_transfer): Improve condition detection algorithms.
28113 Handle toggle property. Program the transactions correctly.
28114 Improve error handling. Various important fixups.
28115 (grub_ohci_portstatus): Put register writes in right order.
28116 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28117 (grub_uhci_transfer): Don't show "failed" message on success.
28118 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28119 array.
28120 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28121 determine its size.
28122 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28123 before initialization is completed. Use IN direction for empty
28124 transfers. Use last_trans and compute toggle.
28125 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28126 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28127 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28128 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28129 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28130 (grub_usb_device): Increase toggle to 256.
28131 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28132 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28133 GRUB_USBMS_SUBCLASS_SFF8070.
28134 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28135 (grub_scsi_inquiry): New member page and alloc_length.
28136 (grub_scsi_request_sense): New structure.
28137 (grub_scsi_request_sense_data): Likewise.
28138 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28139 control.
28140 * disk/scsi.c (grub_scsi_request_sense): New function.
28141 (grub_scsi_test_unit_ready): Likewise.
28142 (grub_scsi_inquiry): Fill new fields.
28143 (grub_scsi_read_capacity): Likewise.
28144 (grub_scsi_read10): Add request sense at the end.
28145 (grub_scsi_read12): Likewise.
28146 (grub_scsi_write10): Likewise.
28147 (grub_scsi_write12): Likewise.
28148 (grub_scsi_open): Add Test Unit Ready.
28149 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28150 Support additional subclasses. Con't clear halt yet. Activate the
28151 proper config. Calculate LUNs correctly.
28152 (grub_usbms_transfer): Various important fixups.
28153
28154 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28155
28156 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28157 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28158 (grub_ohci_fini_hw): New function.
28159 (grub_ohci_restore_hw): Likewise.
28160 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28161 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28162 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28163
28164 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28165
28166 Dedicated DMA allocations.
28167
28168 * bus/pci.c (grub_memalign_dma32): New function
28169 (grub_dma_free): Likewise.
28170 (grub_dma_get_virt): Likewise.
28171 (grub_dma_get_phys): Likewise.
28172 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28173 (grub_ohci_pci_iter): Use dma32_alloc.
28174 (grub_ohci_transfer): Likewise.
28175 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28176 (grub_usb_bulk_readwrite): Likewise.
28177 * include/grub/pci.h: Add declarations.
28178
28179 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28180
28181 CS5536 support.
28182
28183 * bus/cs5536.c: New file.
28184 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28185 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28186 (cs5536_mod_SOURCES): New variable.
28187 (cs5536_mod_CFLAGS): Likewise.
28188 (cs5536_mod_LDFLAGS): Likewise.
28189 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28190 machine/pci.h.
28191 (kernel_img_SOURCES): Add bus/cs5536.c.
28192 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28193 usb_keyboard.mod.
28194 (usb_mod_SOURCES): New variable.
28195 (usb_mod_CFLAGS): New variable.
28196 (usb_mod_LDFLAGS): New variable.
28197 (usbtest_mod_SOURCES): New variable.
28198 (usbtest_mod_CFLAGS): New variable.
28199 (usbtest_mod_LDFLAGS): New variable.
28200 (ohci_mod_SOURCES): New variable.
28201 (ohci_mod_CFLAGS): New variable.
28202 (ohci_mod_LDFLAGS): New variable.
28203 (usbms_mod_SOURCES): New variable.
28204 (usbms_mod_CFLAGS): New variable.
28205 (usbms_mod_LDFLAGS): New variable.
28206 (usb_keyboard_mod_SOURCES): New variable.
28207 (usb_keyboard_mod_CFLAGS): New variable.
28208 (usb_keyboard_mod_LDFLAGS): New variable.
28209 * include/grub/smbus.h: New file.
28210 * include/grub/cs5536.h: New file.
28211
28212 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28213
28214 * util/grub.d/00_header.in: Add safety check to make sure that
28215 ${locale_dir} exists before trying to probe it.
28216
28217 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28218
28219 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28220 per the GNU Coding Standards; this is now too obscure to be worth
28221 documenting.
28222 (QNX): Likewise.
28223 (chainloader): Remove cross-reference to `SCO UnixWare'.
28224
28225 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28226
28227 * docs/grub.texi (Chain-loading): New section.
28228 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28229 adjusted for GRUB 2.
28230 (SCO UnixWare): Likewise.
28231 (QNX): Likewise.
28232 (chainloader): Add reference to `Block list syntax'.
28233 (drivemap): New section.
28234 (parttool): New section.
28235
28236 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28237
28238 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28239 the grub shell'.
28240 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28241 (Installing GRUB using grub-install): Remove reference to the grub
28242 shell; mention `grub-mkimage' and `grub-setup' instead.
28243 (Invoking grub-install): Likewise.
28244 (Interface): Add reference to `Menu entry editor'.
28245 (serial): Remove `--device' option.
28246
28247 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28248
28249 * docs/grub.texi (Configuration): New section, documenting
28250 configuration file generation using grub-mkconfig. I've left a slot
28251 for documenting the full shell scripting format but have not yet
28252 started on writing that up.
28253 (Invoking grub-mkconfig): New section.
28254
28255 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28256
28257 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28258 (GNU GRUB manual): Likewise.
28259 (General commands): Update description of `terminfo' for GRUB 2.
28260
28261 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28262
28263 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28264 (GRUB_MOD_INIT): Fix capitalisation.
28265 * docs/grub.texi (Command-line and menu entry commands): Document
28266 gettext and gptsync commands.
28267
28268 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28269
28270 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28271 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28272
28273 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28274
28275 Add btrfs probing support, currently only in the single-device case.
28276
28277 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28278 function.
28279 (grub_guess_root_device): Call find_root_device_from_mountinfo
28280 before looking in /dev.
28281
28282 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28283
28284 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28285 GRUB_DISK_SIZE_UNKNOWN.
28286 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28287
28288 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28289
28290 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28291 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28292 corrupted or not synced properly.
28293
28294 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28295
28296 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28297 Reported by: Seth Goldberg.
28298
28299 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28300
28301 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28302 addition of dest.
28303 Reported by: Seth Goldberg.
28304
28305 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28306
28307 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28308 Reported by: Seth Goldberg.
28309
28310 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28311
28312 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28313 64-bit address as signed on MIPS.
28314
28315 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28316
28317 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28318 to the empty string.
28319
28320 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28321
28322 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28323
28324 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28325 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28326 * kern/misc.c (__enable_execute_stack): Disable on
28327 GRUB_MACHINE_EMU.
28328
28329 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28330
28331 Make grub-probe work with symbolic links under /dev/mapper as well
28332 as with real block devices. The Linux world seems to be (at best)
28333 in transition here, and GRUB shouldn't get caught in the middle.
28334
28335 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28336 /dev/mapper.
28337
28338 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28339
28340 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28341 input files (in which case exit zero).
28342
28343 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28344
28345 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28346 return NULL for various reasons even if it has a maximum-length
28347 buffer: for example, there might be a symlink loop, or the path
28348 might exceed PATH_MAX. If this happens, return NULL.
28349
28350 2010-05-27 Robert Millan <rmh@gnu.org>
28351
28352 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28353 partmap module to handle cross-partmap setups.
28354 Reported by Orestes Mas. Gràcies!
28355
28356 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28357
28358 * util/grub-mkrescue.in: Initialise override_dir rather than
28359 assuming that it's unset or empty in the environment.
28360
28361 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28362
28363 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28364 variable index into p_index to suppress a warning with -Wshadow.
28365
28366 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28367
28368 * INSTALL: Added flex >= 2.5.35 requirement.
28369
28370 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28371
28372 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28373
28374 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28375
28376 cmostest support.
28377
28378 * commands/i386/cmostest.c: New file.
28379 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28380 (cmostest_mod_SOURCES): New variable.
28381 (cmostest_mod_CFLAGS): Likewise.
28382 (cmostest_mod_LDFLAGS): Likewise.
28383 * conf/i386-pc.rmk: Likewise.
28384 * docs/grub.texi (Vendor power-on keys): New section.
28385 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28386 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28387 and GRUB_BUTTON_CMOS_ADDRESS.
28388 * util/grub.d/00_header.in: Handle powering-on by separate button.
28389
28390 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28391
28392 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28393 Removed drawing_scrollbar argument. All users updated
28394 Fixes #29792.
28395 Reported by Jo Shields
28396
28397 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28398
28399 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28400 buffer since gfxterm handles double repaint.
28401
28402 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28403
28404 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28405 * term/gfxterm.c (real_scroll): Likewise.
28406
28407 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28408
28409 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28410 before calling BIOS.
28411
28412 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28413
28414 * include/grub/i18n.h: Always enable grub_gettext.
28415
28416 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28417
28418 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28419 partition naming style.
28420
28421 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28422
28423 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28424 not the first option.
28425
28426 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28427
28428 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28429
28430 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28431
28432 * util/misc.c: Move inclusion of <limits.h> to ...
28433 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28434
28435 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28436
28437 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28438 Fix merge error in NetBSD code.
28439 (find_partition_start) [__NetBSD__]: Likewise.
28440
28441 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28442
28443 Fix grub-mkrescue usage unit testing.
28444
28445 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28446
28447 2010-05-18 Christian Franke <franke@computer.org>
28448
28449 * util/grub.d/10_windows.in: Use path names instead of
28450 drive letters to prevent warning from Cygwin 1.7.
28451 Add drivemap command to menuentry if needed.
28452
28453 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28454
28455 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28456 gnumach and gnumach.gz.
28457
28458 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28459
28460 * include/grub/i18n.h (gettext): Inline instead of using #define.
28461 (grub_gettext): Likewise.
28462 (_): Likewise.
28463
28464 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28465
28466 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28467 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28468 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28469 (main): Add a slash after pkglibdirroot.
28470
28471 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28472
28473 * util/grub-install.in: Add missing "in" keyword.
28474
28475 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28476
28477 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28478 Reported by: Seth Goldberg.
28479
28480 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28481
28482 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28483
28484 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28485
28486 * configure.ac: Check for Linux device-mapper support.
28487
28488 * util/hostdisk.c (device_is_mapped): New function.
28489 (find_partition_start): New function, partly broken out from
28490 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28491 device-mapper support added.
28492 (linux_find_partition): Use find_partition_start.
28493 (convert_system_partition_to_system_disk): Add `st' argument.
28494 Support Linux /dev/mapper/* devices if device-mapper support is
28495 available; only DM-RAID devices are understood at present.
28496 (find_system_device): Add `st' argument. Pass it to
28497 convert_system_partition_to_system_disk.
28498 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28499 find_system_device and convert_system_partition_to_system_disk. Use
28500 find_partition_start.
28501
28502 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28503 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28504 * util/deviceiter.c [__linux__]: Define MINOR.
28505 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28506 * util/mkdevicemap.c (grub_putchar): New function.
28507 (grub_getkey): New function.
28508 (grub_refresh): New function.
28509 (main): Set debug=all if -v -v is used.
28510
28511 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28512
28513 Fix build with non-GNU libcs.
28514
28515 * util/misc.c (canonicalize_file_name): Move to ...
28516 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28517 grub_make_system_path_relative_to_its_root.
28518
28519 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28520
28521 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28522 we handle finding grub-mkimage. Default to finding grub-mkimage in
28523 ${bindir} with program_transform_name applied, and provide a
28524 --grub-mkimage option to override this.
28525
28526 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28527
28528 Remove grub-mkisofs.
28529
28530 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28531 (grub_mkisofs_SOURCES): Removed.
28532 (grub_mkisofs_CFLAGS): Removed.
28533 * util/mkisofs/defaults.h: Removed.
28534 * util/mkisofs/eltorito.c: Likewise.
28535 * util/mkisofs/exclude.h: Likewise.
28536 * util/mkisofs/hash.c: Likewise.
28537 * util/mkisofs/include/: Likewise.
28538 * util/mkisofs/include/fctldefs.h: Likewise.
28539 * util/mkisofs/include/mconfig.h: Likewise.
28540 * util/mkisofs/include/prototyp.h: Likewise.
28541 * util/mkisofs/include/statdefs.h: Likewise.
28542 * util/mkisofs/iso9660.h: Likewise.
28543 * util/mkisofs/joliet.c: Likewise.
28544 * util/mkisofs/match.c: Likewise.
28545 * util/mkisofs/match.h: Likewise.
28546 * util/mkisofs/mkisofs.c: Likewise.
28547 * util/mkisofs/mkisofs.h: Likewise.
28548 * util/mkisofs/msdos_partition.h: Likewise.
28549 * util/mkisofs/multi.c: Likewise.
28550 * util/mkisofs/name.c: Likewise.
28551 * util/mkisofs/rock.c: Likewise.
28552 * util/mkisofs/tree.c: Likewise.
28553 * util/mkisofs/write.c: Likewise.
28554
28555 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28556
28557 Unify grub-mkimage accross platforms.
28558
28559 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28560 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28561 (grub_mkelfimage_SOURCES): Removed.
28562 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28563 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28564 (bin_UTILITIES): Add grub-mkimage.
28565 (grub_mkimage_SOURCES): New variable.
28566 (kernel_img_HEADERS): Remove machine/kernel.h.
28567 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28568 (pkglib_PROGRAMS): Add kernel.img.
28569 (kernel_img_HEADERS): Add machine/kernel.h.
28570 (kernel_img_FORMAT): Removed.
28571 (bin_UTILITIES): Remove grub-mkimage.
28572 (grub_mkimage_SOURCES): Removed.
28573 (grub_mkimage_CFLAGS): Likewise.
28574 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28575 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28576 (pkglib_PROGRAMS): Add kernel.img.
28577 (bin_UTILITIES): Remove grub-mkimage.
28578 (grub_mkimage_SOURCES): Removed.
28579 (grub_mkimage_CFLAGS): Likewise.
28580 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28581 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28582 (pkglib_PROGRAMS): Add kernel.img.
28583 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28584 (pkglib_PROGRAMS): Add kernel.img.
28585 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28586 (grub_mkimage_SOURCES): Removed.
28587 (grub_mkimage_CFLAGS): Likewise.
28588 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28589 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28590 (pkglib_PROGRAMS): Add kernel.img.
28591 (bin_UTILITIES): Remove grub-mkimage.
28592 (grub_mkimage_SOURCES): Removed.
28593 (grub_mkimage_CFLAGS): Likewise.
28594 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28595 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28596 (grub_mkimage_SOURCES): Removed.
28597 (grub_mkimage_CFLAGS): Likewise.
28598 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28599 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28600 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28601 (grub_pe32_optional_header): ... this.
28602 (grub_pe64_optional_header): ... and this. All users updated.
28603 (GRUB_PE32_PE32_MAGIC): Split into ..
28604 (GRUB_PE32_PE32_MAGIC): .. this.
28605 (GRUB_PE32_PE64_MAGIC): .. and this.
28606 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28607 * include/grub/elf.h (PT_GNU_STACK): New definition.
28608 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28609 * include/grub/i386/efi/kernel.h: Likewise.
28610 * include/grub/i386/kernel.h: Likewise.
28611 * include/grub/i386/pc/kernel.h: Likewise.
28612 * include/grub/i386/qemu/boot.h: Likewise.
28613 * include/grub/mips/kernel.h: Likewise.
28614 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28615 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28616 * include/grub/powerpc/kernel.h: Likewise.
28617 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28618 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28619 * include/grub/sparc64/kernel.h: Likewise.
28620 * include/grub/x86_64/efi/kernel.h: Likewise.
28621 * include/grub/x86_64/kernel.h: Likewise.
28622 * include/grub/offsets.h: New file.
28623 * include/grub/kernel.h (grub_module_info): Split into ...
28624 (grub_module_info32): ... this.
28625 (grub_module_info64): ... and this.
28626 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28627 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28628 (grub_boot_blocklist): Moved from here ...
28629 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28630 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28631 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28632 * include/grub/types.h (grub_target_to_host16): Removed.
28633 (grub_target_to_host32): Likewise.
28634 (grub_target_to_host64): Likewise.
28635 (grub_host_to_target16): Likewise.
28636 (grub_host_to_target32): Likewise.
28637 (grub_host_to_target64): Likewise.
28638 (grub_host_to_target_addr): Likewise.
28639
28640 Support grub-mkrescue for efi, coreboot and qemu.
28641
28642 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28643 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28644 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28645 * util/grub-mkrawimage.c: Moved from here ...
28646 * util/grub-mkimage.c: ... here. All users updated.
28647 (ALIGN_ADDR): Use image_target.
28648 (TARGET_NO_FIELD): New const.
28649 (image_target_desc): New type.
28650 (image_targets): New array.
28651 (grub_target_to_host64): Use image_target.
28652 (grub_target_to_host32): Likewise.
28653 (grub_target_to_host16): Likewise.
28654 (grub_host_to_target64): Likewise.
28655 (grub_host_to_target32): Likewise.
28656 (grub_host_to_target16): Likewise.
28657 (grub_host_to_target_addr): Likewise.
28658 (generate_image): Handle multiimage.
28659 (main): Require -O parameter. All users updated.
28660 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28661 util/efi/grub-mkimage.c
28662 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28663 New option --rom-directory.
28664 Use xorriso.
28665 * util/i386/efi/grub-mkimage.c: Removed.
28666 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28667 (grub_target_to_host32): Likewise.
28668 (grub_target_to_host64): Likewise.
28669 (grub_host_to_target16): Likewise.
28670 (grub_host_to_target32): Likewise.
28671 (grub_host_to_target64): Likewise.
28672 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28673 (grub_target_to_host32): Likewise.
28674 (grub_target_to_host64): Likewise.
28675 (grub_host_to_target16): Likewise.
28676 (grub_host_to_target32): Likewise.
28677 (grub_host_to_target64): Likewise.
28678
28679 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28680
28681 Source tree is reorganized for emu build.
28682
28683 * include/grub/util/console.h: Move from here...
28684 * include/grub/emu/console.h: ...to here.
28685 * include/grub/util/getroot.h: Move from here...
28686 * include/grub/emu/getroot.h: ...to here.
28687 * include/grub/util/hostdisk.h: Move from here...
28688 * include/grub/emu/hostdisk.h: ...to here.
28689 * util/console.c: Move from here...
28690 * kern/emu/console.c: ...to here.
28691 * util/getroot.c: Move from here...
28692 * kern/emu/getroot.c: ...to here.
28693 * util/grub-emu.c: Move from here...
28694 * kern/emu/main.c: ...to here.
28695 * util/hostdisk.c: Move from here...
28696 * kern/emu/hostdisk.c: ...to here.
28697 * util/hostfs.c: Move from here...
28698 * kern/emu/hostfs.c: ...to here.
28699 * util/mm.c: Move from here...
28700 * kern/emu/mm.c: ...to here.
28701 * util/pci.c: Move from here...
28702 * bus/emu/pci.c: ...to here.
28703 * util/sdl.c: Move from here...
28704 * video/emu/sdl.c: ...to here.
28705 * util/time.c: Move from here...
28706 * kern/emu/time.c: ...to here.
28707 * util/usb.c: Move from here...
28708 * bus/usb/emu/usb.c: ...to here.
28709
28710 * include/grub/emu/misc.h: New header for grub-emu functions.
28711 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28712
28713 * conf/any-emu.rmk: Rule updates for above renames.
28714 * conf/common.rmk: Likewise.
28715 * conf/i386-pc.rmk: Likewise.
28716 * conf/i386-qemu.rmk: Likewise.
28717 * conf/mips.rmk: Likewise.
28718 * conf/sparc64-ieee1275.rmk: Likewise.
28719 * conf/x86-efi.rmk: Likewise.
28720
28721 * disk/lvm.h: #include updates for above renames.
28722 * util/grub-mkrelpath.c: Likewise.
28723 * util/grub-probe.c: Likewise.
28724 * util/i386/pc/grub-setup.c: Likewise.
28725 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28726 * kern/emu/console.c: Likewise.
28727 * kern/emu/getroot.c: Likewise.
28728 * kern/emu/hostdisk.c: Likewise.
28729 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28730
28731 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28732 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28733 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28734 * util/misc.c: Remove grub-emu functions.
28735
28736 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28737
28738 Fix gfxmenu crash.
28739 Reported by: Thorsten Grützmacher.
28740
28741 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28742 timeout hook.
28743 (circprog_set_property): Register and unregister timeout hook.
28744 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28745 (label_destroy): Free template. and unregister hook.
28746 (label_set_state): New function.
28747 (label_set_property): Handle templates and hooks.
28748 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28749 timeout hook.
28750 (progress_bar_set_property): Register and unregister timeout hook.
28751 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28752 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28753 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28754 (update_timeout_visit): Removed.
28755 (update_timeouts): New function.
28756 (redraw_timeouts): Likewise.
28757 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28758 (grub_gfxmenu_clear_timeout): Likewise.
28759 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28760 (grub_gfxmenu_timeout_notify): Likewise.
28761 (grub_gfxmenu_timeout_notifications): New external variable.
28762 (grub_gfxmenu_timeout_register): New function.
28763 (grub_gfxmenu_timeout_unregister): Likewise.
28764
28765 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28766
28767 Transform (broken) vga terminal into (working) vga video driver.
28768
28769 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28770 video/i386/pc/vga.c.
28771 * include/grub/video.h (grub_video_driver_id):
28772 Add GRUB_VIDEO_DRIVER_VGA.
28773 * term/i386/pc/vga.c: Renamed to ...
28774 * video/i386/pc/vga.c: ...this
28775 (DEBUG_VGA): Removed.
28776 (CHAR_WIDTH): Likewise.
28777 (CHAR_HEIGHT): Likewise.
28778 (TEXT_WIDTH): Likewise.
28779 (TEXT_HEIGHT): Likewise.
28780 (DEFAULT_FG_COLOR): Likewise.
28781 (DEFAULT_BG_COLOR): Likewise.
28782 (colored_char): Likewise.
28783 (xpos): Likewise.
28784 (ypos): Likewise.
28785 (cursor_state): Likewise.
28786 (fg_color): Likewise.
28787 (bg_color): Likewise.
28788 (text_buf): Likewise.
28789 (page): Likewise.
28790 (font): Likewise.
28791 (framebuffer): New variable.
28792 (set_read_map): Disabled.
28793 (setup): New variable.
28794 (is_target): Likewise.
28795 (grub_vga_mod_init): Likewise.
28796 (grub_vga_mod_fini): Likewise.
28797 (check_vga_mem): Likewise.
28798 (write_char): Likewise.
28799 (write_cursor): Likewise.
28800 (scroll_up): Likewise.
28801 (grub_vga_putchar): Likewise.
28802 (grub_vga_getcharwidth): Likewise.
28803 (grub_vga_getwh): Likewise.
28804 (grub_vga_getxy): Likewise.
28805 (grub_vga_gotoxy): Likewise.
28806 (grub_vga_cls): Likewise.
28807 (grub_vga_setcolorstate): Likewise.
28808 (grub_vga_setcursor): Likewise.
28809 (grub_video_vga_init): New function.
28810 (grub_video_vga_setup): Likewise.
28811 (grub_video_vga_fini): Likewise.
28812 (update_target): Likewise.
28813 (grub_video_vga_blit_bitmap): Likewise.
28814 (grub_video_vga_blit_render_target): Likewise.
28815 (grub_video_vga_set_active_render_target): Likewise.
28816 (grub_video_vga_get_active_render_target): Likewise.
28817 (grub_video_vga_swap_buffers): Likewise.
28818 (grub_video_vga_set_palette): Likewise.
28819 (grub_video_vga_get_info_and_fini): Likewise.
28820 (grub_vga_term): Removed.
28821 (grub_video_vga_adapter): New variable.
28822 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28823 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28824
28825 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28826
28827 * video/readers/jpeg.c: Indented.
28828
28829 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28830
28831 Various jpeg cleanups.
28832
28833 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28834 (grub_jpeg_decode_quan_table): Use sizeof.
28835 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28836
28837 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28838
28839 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28840 tables. Ignore non-last ac bit.
28841 (grub_jpeg_decode_quan_table): Likewise.
28842
28843 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28844
28845 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28846 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28847 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28848 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28849 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28850 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28851
28852 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28853
28854 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28855 error.
28856
28857 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28858
28859 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28860
28861 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28862
28863 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28864 condition.
28865
28866 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28867
28868 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28869 part.
28870
28871 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28872
28873 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28874 pointers.
28875
28876 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28877
28878 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28879
28880 2010-05-01 Christian Franke <franke@computer.org>
28881
28882 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28883 Remove broken Cygwin path conversion.
28884 * util/misc.c: [__CYGWIN__] Add include and define.
28885 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28886 for Cygwin 1.7.
28887 (make_system_path_relative_to_its_root): Simplify loop, replace early
28888 return by break.
28889 [__CYGWIN__] Add conversion to win32 path.
28890 Include "/" case in trailing slash removal.
28891
28892 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28893
28894 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28895 Reported by: Seth Goldberg
28896
28897 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28898
28899 * commands/help.c (grub_cmd_help): Fix a typo.
28900 Reported by: Seth Goldberg
28901
28902 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28903
28904 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28905 name and add N_.
28906 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28907 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28908 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28909 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28910 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28911 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28912 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28913 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28914 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28915 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28916 * normal/context.c (GRUB_MOD_INIT): Likewise.
28917 * normal/main.c (GRUB_MOD_INIT): Likewise.
28918 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28919 * term/serial.c (GRUB_MOD_INIT): Likewise.
28920 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28921
28922 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28923
28924 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28925 extra == 0.
28926
28927 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28928
28929 * commands/iorw.c: New file.
28930 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28931 (iorw_mod_SOURCES): New variable.
28932 (iorw_mod_CFLAGS): Likewise.
28933 (iorw_mod_LDFLAGS): Likewise.
28934
28935 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28936
28937 Hotkey support
28938
28939 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28940 * normal/main.c (hotkey_aliases): New variable.
28941 (grub_normal_add_menu_entry): Parse "--hotkey".
28942 * normal/menu_text.c (run_menu): Handle hotkeys.
28943
28944 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28945
28946 * kern/i386/coreboot/init.c (grub_machine_init): Call
28947 grub_machine_mmap_init on qemu.
28948
28949 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28950
28951 * boot/i386/qemu/boot.S: Add a missing .code16.
28952
28953 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28954
28955 Use LBIO on coreboot.
28956
28957 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28958 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28959 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28960 New declaration.
28961 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28962 grub_machine_mmap_init on coreboot.
28963 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28964 GRUB_LINUXBIOS_MEMBER_LINK.
28965 (grub_machine_mmap_iterate): Fix declaration.
28966 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28967
28968 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 Split coreboot and multiboot ports.
28971
28972 * conf/i386-multiboot.rmk: New file.
28973 * configure.ac: Add multiboot port.
28974 * include/grub/i386/multiboot/boot.h: New file.
28975 * include/grub/i386/multiboot/console.h: Likewise.
28976 * include/grub/i386/multiboot/init.h: Likewise.
28977 * include/grub/i386/multiboot/kernel.h: Likewise.
28978 * include/grub/i386/multiboot/loader.h: Likewise.
28979 * include/grub/i386/multiboot/memory.h: Likewise.
28980 * include/grub/i386/multiboot/serial.h: Likewise.
28981 * include/grub/i386/multiboot/time.h: Likewise.
28982 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28983 * loader/multiboot.c: Likewise.
28984 * loader/multiboot_mbi2.c: Likewise.
28985 * util/grub-mkrescue.in: Generate multiboot rescue.
28986
28987 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28988
28989 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28990
28991 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28992
28993 Merge handling of input and output terminals. Fix a hang.
28994
28995 * commands/terminal.c (abstract_terminal): New struct.
28996 (handle_command): New function. Based on grub_cmd_terminal_input.
28997 (grub_cmd_terminal_input): Use handle_command.
28998 (grub_cmd_terminal_output): Use handle_command.
28999
29000 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29001
29002 Fix comment handling.
29003
29004 * tests/grub_script_comments.in: New testcase.
29005 * conf/tests.rmk: Rules for new testcase.
29006 * script/yylex.l: Updated flex rules.
29007
29008 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29009
29010 * docs/grub.texi (play): Document that zero pitches produce rests.
29011 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29012 if argc is 1.
29013
29014 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29015
29016 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29017 autogen issues.
29018
29019 2010-04-26 Christian Franke <franke@computer.org>
29020
29021 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29022 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29023 (grub_get_prefix): Remove function.
29024 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29025 make_system_path_relative_to_its_root ().
29026 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29027
29028 2010-04-24 Christian Franke <franke@computer.org>
29029
29030 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29031 (kernel_img_LDFLAGS): Remove -static-libgcc.
29032
29033 2010-04-24 Christian Franke <franke@computer.org>
29034
29035 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29036 and CHECK_END_SYMBOL if grub-emu is built.
29037 Unset TARGET_OBJ2ELF if grub-emu is built
29038 without module support.
29039
29040 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29041
29042 Nilfs2 support.
29043
29044 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29045 (grub_fstest_SOURCES): Likewise.
29046 (pkglib_MODULES): Add nilfs2.mod.
29047 (nilfs2_mod_SOURCES): New variable.
29048 (nilfs2_mod_CFLAGS): Likewise.
29049 (nilfs2_mod_LDFLAGS): Likewise.
29050 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29051 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29052 * fs/nilfs2.c: New file.
29053
29054 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29055
29056 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29057 is not supported.
29058
29059 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29060
29061 Add grub-mkconfig support for NetBSD.
29062
29063 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29064 * util/grub-mkconfig.in: export new NetBSD specific variables.
29065 * po/POTFILES-shell: added 10_netbsd.in.
29066 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29067
29068 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29069
29070 Fix emu build with grub-emu-pci and grub-emu-modules.
29071
29072 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29073 functions.
29074 * include/grub/libpciaccess.h: New file.
29075 * conf/any-emu.rmk: Update kernel headers for emu build.
29076
29077 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29078
29079 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29080
29081 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29082
29083 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29084
29085 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29086
29087 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29088 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29089 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29090 util/ieee1275/ofpath.c.
29091 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29092 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29093 * include/grub/sparc64/ieee1275/boot.h
29094 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29095 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29096 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29097 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29098 const char *.
29099 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29100 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29101 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29102 install.
29103
29104 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29105
29106 * util/grub-mkconfig.in: Corrected two == equality tests.
29107 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29108 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29109 expect a number appended to it.
29110 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29111 expects a number appended to it.
29112
29113 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29114
29115 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29116
29117 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29118
29119 * util/hostdisk.c (make_device_name): Change to new partition naming.
29120
29121 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29122
29123 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29124
29125 2010-04-17 Christian Franke <franke@computer.org>
29126
29127 * Makefile.in: Add missing localedir setting.
29128
29129 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29130
29131 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29132 mistake in r2156. Noticed by Anthony Fok.
29133
29134 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29135 @localedir@.
29136 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29137
29138 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29139
29140 Fix a spurious, uninitialized variable warning.
29141
29142 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29143 Initialize variable, shdr.
29144 (grub_freebsd_load_elfmodule): Likewise.
29145 (grub_freebsd_load_elf_meta): Likewise.
29146
29147 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29148
29149 Fix for escaped dollar in double quoted strings.
29150
29151 * script/yylex.l: Updated flex rules.
29152 * conf/tests.rmk: Rule for new testcase.
29153 * tests/grub_script_dollar.in: New testcase.
29154
29155 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29156 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29157
29158 Enclose all translated strings in grub.cfg in single quotes, and
29159 escape them appropriately (Ubuntu bug #552921).
29160
29161 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29162 * util/grub.d/10_hurd.in: Use it.
29163 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29164 * util/grub.d/10_linux.in (linux_entry): Likewise.
29165
29166 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29167
29168 Fix cygwin compilation.
29169
29170 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29171 * include/grub/misc.h (__register_frame_info)
29172 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29173 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29174 * kern/misc.c (__register_frame_info)
29175 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29176 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29177
29178 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29179
29180 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29181
29182 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29183
29184 Unify libgcc processing.
29185
29186 * Makefile.in (kernel_img_LDFLAGS): New variable.
29187 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29188 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29189 overwriting.
29190 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29191 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29192 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29193 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29194 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29195 overwriting. Remove -lgcc and -static-libgcc
29196 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29197 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29198 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29199 (kernel_img_LDFLAGS): Append instead of overwriting.
29200 Remove -lgcc and -static-libgcc
29201 * conf/sparc64-ieee1275.rmk: Likewise.
29202 * include/grub/powerpc/libgcc.h: Move to ...
29203 * include/grub/libgcc.h: .. this.
29204 * include/grub/libgcc.h: Don't export most of the function on x86.
29205 (__bswapsi2): New export.
29206 (__bswapdi2): Likewise.
29207 * include/grub/mips/libgcc.h: Removed.
29208 * include/grub/sparc64/libgcc.h: Likewise.
29209
29210 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29211
29212 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29213 disk_info_msg (conflicts with gettexting into languages with cases).
29214
29215 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29216
29217 Add grub-probe support for NetBSD.
29218
29219 * util/getroot.c (find_root_device): Convert block device to
29220 character device on NetBSD.
29221 * util/probe.c (probe): Require character device on NetBSD.
29222 * util/hostdisk.c: NetBSD specific headers.
29223 (configure_device_driver): new function to tune device driver
29224 parameters (currently only for NetBSD floppy driver).
29225 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29226 via disklabel ioctl).
29227 (open_device): call configure_device_driver on NetBSD.
29228 (convert_system_partition_to_system_disk): NetBSD specific code.
29229 (device_is_wholedisk): Likewise.
29230 (grub_util_biosdisk_get_grub_dev): Likewise.
29231 (make_device_name): Fixed a typo in bsd_part_str.
29232 * configure.ac: check for opendisk() and getrawpartition() on
29233 NetBSD and set LIBUTIL.
29234 * Makefile.in: add LIBUTIL to LIBS.
29235
29236 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29237
29238 Documentation fix.
29239
29240 * util/grub-script-check.c: Better help message.
29241
29242 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29243
29244 Fix FreeBSD build.
29245
29246 * configure.ac: Flex version check.
29247 * conf/common.rmk: Add -Wno-error to sh.mod.
29248 * script/yylex.l: Remove all #pragma.
29249
29250 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29251
29252 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29253 prototype.
29254 Reported by: Seth Goldberg.
29255
29256 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29257
29258 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29259 Rename "module" to "module2".
29260 Reported by: Seth Goldberg.
29261
29262 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29263
29264 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29265 EXPORT_FUNC.
29266 Reported by: Seth Goldberg.
29267
29268 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29269
29270 * lib/posix_wrap/locale.h: Add missing file.
29271 Reported by: Seth Goldberg.
29272
29273 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29274
29275 grub-emu module load support.
29276
29277 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29278 NO_DYNAMIC_MODULES switched to this.
29279 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29280 (CFLAGS): Likewise.
29281 * conf/any-emu.rmk: Generate symlist.
29282 (kernel_img_HEADERS): Add util/datetime.h.
29283 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29284 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29285 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29286 kern/$(target_cpu)/cache.S.
29287 * configure.ac (grub-emu-modules): New option.
29288 * genmk.rb: Handle multiple source lists.
29289 * include/grub/sdl.h: New file.
29290 * include/grub/libusb.h: Likewise.
29291 * util/grub-emu.c (main): Hanle (host) root.
29292 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29293 GRUB_ERR_UNKNOWN_DEVICE.
29294 * util/misc.c: Move mm functions to ...
29295 * util/mm.c: ... here. All users updated.
29296
29297 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29298
29299 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29300 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29301 missing files.
29302 (maintainer-clean): Remove libgcrypt-grub.
29303
29304 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29305
29306 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29307
29308 2010-04-09 EFI Coder <eficoder@hotmail.com>
29309
29310 * normal/menu_text.c (print_message): Clean up the message and show
29311 the Fn information when on EFI
29312 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29313
29314 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29315
29316 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29317 All users updated.
29318 * normal/crypto.c (read_crypto_list): Likewise.
29319 * normal/dyncmd.c (read_command_list): Likewise.
29320 * normal/term.c (read_terminal_list): Likewise.
29321 * normal/main.c (read_lists): Use explicit prefix.
29322 (read_lists_hook): Use read_lists.
29323 (grub_normal_execute): Likewise.
29324
29325 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29326
29327 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29328 Reported by: Thomas Schmitt.
29329 Add -no-emul-boot to grub-mkisofs parameters.
29330
29331 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29332
29333 * font/font.c: Indented.
29334
29335 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29336
29337 Elif support to GRUB script (by Deepak Vankadaru).
29338
29339 * tests/grub_script_if.in: New testcase.
29340 * conf/tests.rmk: Rule for new testcase.
29341 * script/parser.y: Grammar rules for elif.
29342
29343 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29344
29345 While and until loops support to GRUB script.
29346
29347 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29348 (grub_script_create_cmdwhile): New function prototype.
29349 (grub_script_execute_cmdwhile): New function prototype.
29350 * script/execute.c (grub_script_execute_cmdwhile): New function.
29351 * script/parser.y (command): New commands.
29352 (whilecmd): New grammar rule.
29353 (untilcmd): New grammar rule.
29354 * script/script.c (grub_script_create_cmdwhile): New function.
29355 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29356 function.
29357
29358 * tests/grub_script_while1.in: New testcase.
29359 * conf/tests.rmk: Rule for new testcase.
29360
29361 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29362
29363 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29364 as *.jpg.
29365
29366 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29367
29368 GRUB_BACKGROUND support.
29369
29370 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29371 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29372
29373 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29374
29375 Load fonts and modules for gfxmenu in grub-mkconfig.
29376 Idea by: Mario Vazquez
29377
29378 * util/grub.d/00_header.in: Load pf2 and image modules.
29379
29380 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29381
29382 grub-mkconfig multiple terminal support.
29383
29384 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29385 * util/grub.d/00_header.in: Likewise.
29386
29387 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29388
29389 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29390 we use cd $(srcdir).
29391
29392 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29393
29394 * util/grub.d/10_linux.in: Only use the first word of
29395 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29396 spaces in GRUB_DISTRIBUTOR.
29397 * util/grub.d/10_kfreebsd.in: Likewise.
29398 * util/grub.d/10_hurd.in: Likewise.
29399
29400 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29401
29402 Fix unit testing framework for Qemu 0.12.
29403
29404 * tests/util/grub-shell.in: Remove -serial stdio option.
29405
29406 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29407
29408 POSIX header file wrappers.
29409
29410 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29411 equivalents.
29412 * lib/posix_wrap/ctype.h: Likewise.
29413 * lib/posix_wrap/errno.h: Likewise.
29414 * lib/posix_wrap/langinfo.h: Likewise.
29415 * lib/posix_wrap/limits.h: Likewise.
29416 * lib/posix_wrap/localcharset.h: Likewise.
29417 * lib/posix_wrap/stdint.h: Likewise.
29418 * lib/posix_wrap/stdio.h: Likewise.
29419 * lib/posix_wrap/stdlib.h: Likewise.
29420 * lib/posix_wrap/string.h: Likewise.
29421 * lib/posix_wrap/sys/types.h: Likewise.
29422 * lib/posix_wrap/unistd.h: Likewise.
29423 * lib/posix_wrap/wchar.h: Likewise.
29424 * lib/posix_wrap/wctype.h: Likewise.
29425 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29426 (grub_script.yy.h): Likewise.
29427 * script/yylex.l: Remove POSIX emulation #defines.
29428 * Makefile.in (POSIX_CFLAGS): New variable.
29429 (GNULIB_UTIL_CFLAGS): Likewise.
29430
29431 Regexp support.
29432
29433 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29434 (regexp_mod_SOURCES): New variable.
29435 (regexp_mod_CFLAGS): Likewise.
29436 (regexp_mod_LDFLAGS): Likewise.
29437 * commands/regexp.c: New file.
29438 * gnulib/regcomp.c: New file. Imported from gnulib.
29439 * gnulib/regex.c: Likewise.
29440 * gnulib/regex_internal.c: Likewise.
29441 * gnulib/regex_internal.h: Likewise.
29442 * gnulib/regexec.c: Likewise.
29443 * gnulib/regex.h: Likewise.
29444
29445 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29446
29447 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29448 unsupported video mode types.
29449
29450 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29451
29452 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29453
29454 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29455
29456 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29457 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29458
29459 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29460
29461 Remove unused grub_vga_get_font.
29462
29463 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29464 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29465
29466 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29467
29468 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29469 * include/grub/misc.h: Likewise.
29470
29471 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29472
29473 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29474 for which failure is fatal.
29475
29476 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29477
29478 * util/grub-install.in: Use mkdir -p to create grub directory.
29479 * util/i386/efi/grub-install.in: Likewise.
29480 * util/ieee1275/grub-install.in: Likewise.
29481
29482 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29483
29484 * Makefile.in (LEX): new variable.
29485
29486 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29487
29488 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29489 `=' and added double quotes on operands of this equality test.
29490
29491 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29492
29493 * Makefile.in (uninstall): Remove a leftover debug echo.
29494 Reported by: Grégoire Sutre
29495
29496 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29497
29498 MIPS multiboot2 support.
29499
29500 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29501 (multiboot2_mod_SOURCES): New variable.
29502 (multiboot2_mod_CFLAGS): Likewise.
29503 (multiboot2_mod_LDFLAGS): Likewise.
29504 (multiboot2_mod_ASFLAGS): Likewise.
29505 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29506 definition.
29507 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29508 (MULTIBOOT_MBI_REGISTER): Likewise.
29509 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29510 (MULTIBOOT_ELF32_MACHINE): Likewise.
29511 (MULTIBOOT_ELF64_MACHINE): Likewise.
29512 * include/grub/mips/multiboot.h: New file.
29513 * include/grub/video.h (grub_video_driver_id): New type
29514 GRUB_VIDEO_DRIVER_SM712.
29515 (grub_video_get_info_and_fini): Export.
29516 (grub_video_get_palette): Likewise.
29517 (grub_video_get_driver_id): Likewise.
29518 * include/multiboot2.h: Resynced with spec.
29519 * loader/i386/multiboot.c: Moved from here ...
29520 * loader/multiboot.c: ... here. All users updated.
29521 (grub_multiboot_boot): Use platform-specific macros.
29522 * loader/i386/multiboot_elfxx.c: Moved from here ...
29523 * loader/multiboot_elfxx.c: ... here. All users updated.
29524 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29525 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29526 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29527
29528 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29529
29530 Import gnulib argp module.
29531
29532 * gnulib/argp-ba.c: New file.
29533 * gnulib/argp-eexst.c: Likewise.
29534 * gnulib/argp-fmtstream.c: Likewise.
29535 * gnulib/argp-fmtstream.h: Likewise.
29536 * gnulib/argp-fs-xinl.c: Likewise.
29537 * gnulib/argp-help.c: Likewise.
29538 * gnulib/argp-namefrob.h: Likewise.
29539 * gnulib/argp-parse.c: Likewise.
29540 * gnulib/argp-pin.c: Likewise.
29541 * gnulib/argp-pv.c: Likewise.
29542 * gnulib/argp-pvh.c: Likewise.
29543 * gnulib/argp-version-etc.c: Likewise.
29544 * gnulib/argp-version-etc.h: Likewise.
29545 * gnulib/argp-xinl.c: Likewise.
29546 * gnulib/argp.h: Likewise.
29547
29548 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29549
29550 * kern/device.c (grub_device_iterate): Clear errors after failed
29551 opening device.
29552
29553 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29554
29555 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29556 returned by firmware.
29557
29558 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29559
29560 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29561 compilation on coreboot and qemu
29562
29563 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29564
29565 * include/multiboot2.h: Resync with spec.
29566
29567 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29568
29569 Multiboot2 tag support
29570
29571 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29572 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29573 Remove loader/multiboot_loader.c.
29574 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29575 (grub_multiboot2_real_boot): Likewise.
29576 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29577 (grub_get_multiboot_mmap_count): New proto.
29578 (grub_fill_multiboot_mmap): Likewise.
29579 (grub_multiboot_set_video_mode): Likewise.
29580 (grub_multiboot_set_console): Likewise.
29581 (grub_multiboot_load): Likewise.
29582 (grub_multiboot_load_elf): Likewise.
29583 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29584 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29585 * include/multiboot.h: Resynced with specification.
29586 * include/multiboot2.h: Resynced with specification.
29587 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29588 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29589 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29590 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29591 users updated.
29592 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29593 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29594 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29595 Removed.
29596 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29597 Moved from here...
29598 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29599 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29600 Moved from here...
29601 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29602 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29603 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29604 All users updated.
29605 * loader/i386/multiboot_mbi2.c: New file.
29606
29607 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29608
29609 Resync with gnulib.
29610
29611 * Makefile.in (GNULIB_CFLAGS): New variable.
29612 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29613 (grub_script_check_CFLAGS): New variable.
29614 * gnulib/alloca.h: Resync with gnulib.
29615 * gnulib/error.c: Likewise.
29616 * gnulib/error.h: Likewise.
29617 * gnulib/fnmatch.c: Likewise.
29618 * gnulib/fnmatch_loop.c: Likewise.
29619 * gnulib/getdelim.c: Likewise.
29620 * gnulib/getline.c: Likewise.
29621 * gnulib/getopt.c: Likewise.
29622 * gnulib/getopt1.c: Likewise.
29623 * gnulib/getopt_int.h: Likewise.
29624 * gnulib/gettext.h: Likewise.
29625 * gnulib/progname.c: Likewise.
29626 * gnulib/progname.h: Likewise.
29627
29628 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29629
29630 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29631 which is the case with --disabled-nls.
29632
29633 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29634 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29635 * util/misc.c: Likewise.
29636 * util/mkisofs/mkisofs.c: Likewise.
29637 * util/mkisofs/mkisofs.h: Likewise.
29638
29639 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29640
29641 Simplify Apple CC support.
29642
29643 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29644 Add 0 byte at the end not to have a symbol with empty target.
29645 * mmap/i386/pc/mmap_helper.S: Likewise.
29646 * genmk.rb: Ignore errors 2030 and 2050.
29647 * kern/i386/pc/startup.S: Use LOCAL when possible.
29648
29649 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29650
29651 Testcase and the fix for final semicolon on cmdline.
29652
29653 * tests/grub_script_final_semicolon.in: New testcase.
29654 * conf/tests.rmk: Rules for the new testcase.
29655 * script/parser.y: Grammar fix.
29656
29657 2010-03-26 BVK Chaitanya <bvk@localhost>
29658
29659 Blank lines testcase for GRUB script.
29660
29661 * tests/grub_script_blanklines.in: New testcase.
29662 * conf/tests.rmk: Rules for the new testcase.
29663
29664 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29665
29666 Don't use __FILE__.
29667
29668 * genmk.rb: Add -DGRUB_FILE to all C targets.
29669 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29670 * include/grub/list.h: Likewise.
29671 * include/grub/misc.h: Likewise.
29672 * include/grub/mm.h: Likewise.
29673 * include/grub/test.h: Likewise.
29674 * kern/mm.c: Likewise.
29675 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29676
29677 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29678
29679 Sunpc partitions support.
29680
29681 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29682 (grub_fstest_SOURCES): Likewise.
29683 (pkglib_MODULES): Add part_sunpc.mod.
29684 (part_sunpc_mod_SOURCES): New variable.
29685 (part_sunpc_mod_CFLAGS): Likewise.
29686 (part_sunpc_mod_LDFLAGS): Likewise.
29687 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29688 * partmap/sunpc.c: New file.
29689
29690 2010-03-26 BVK Chaitanya <bvk@localhost>
29691
29692 For loop support to GRUB script.
29693
29694 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29695 (grub_script_create_cmdfor): New function prototype.
29696 (grub_script_execute_cmdfor): New function prototype.
29697 * script/execute.c (grub_script_execute_cmdfor): New function.
29698 * script/parser.y (command): New for command.
29699 (forcmd): New grammar rule.
29700 * script/script.c (grub_script_create_cmdfor): New function.
29701 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29702 function.
29703 * tests/grub_script_for1.in: New testcase.
29704 * conf/tests.rmk: Rules for new testcase.
29705
29706 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29707
29708 Nested partitions
29709
29710 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29711 'partition' is NULL, grub_partition_get_start already does that.
29712 * commands/loadenv.c (check_blocklists): Likewise.
29713 (write_blocklists): Likewise.
29714 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29715 (grub_fstest_SOURCES): Likewise.
29716 (pkglib_MODULES): Add part_bsd.mod.
29717 (part_bsd_mod_SOURCES): New variable.
29718 (part_bsd_mod_CFLAGS): Likewise.
29719 (part_bsd_mod_LDFLAGS): Likewise.
29720 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29721 (grub_emu_SOURCES): Likewise.
29722 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29723 * include/grub/bsdlabel.h: New file.
29724 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29725 'get_name'.
29726 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29727 (grub_partition_map_list): New variable.
29728 (grub_partition_map_register): Inline.
29729 (grub_partition_map_unregister): Likewise.
29730 (FOR_PARTITION_MAPS): New macro.
29731 (grub_partition_map_iterate): Removed.
29732 (grub_partition_get_start): Handle nested partitions.
29733 * include/grub/msdos_partition.h: Remove bsd-related entries.
29734 (grub_pc_partition): Remove.
29735 * kern/disk.c (grub_disk_close): Free partition data.
29736 (grub_disk_adjust_range): Handle nested partitions.
29737 * kern/partition.c (grub_partition_map_probe): New function.
29738 (grub_partition_probe): Parse name to number, handle subpartitions.
29739 (get_partmap): New function.
29740 (grub_partition_iterate): Handle subpartitions.
29741 (grub_partition_get_name): Likewise.
29742 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29743 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29744 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29745 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29746 Set 'number'.
29747 (acorn_partition_map_probe): Remove.
29748 (acorn_partition_map_get_name): Likewise.
29749 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29750 Set 'number'.
29751 Set 'index' to 0 since there can be only one partition entry per sector.
29752 (amiga_partition_map_probe): Remove.
29753 (amiga_partition_map_get_name): Likewise.
29754 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29755 Set 'number'.
29756 Set 'offset' and 'index' to real positions of partitions.
29757 (apple_partition_map_probe): Remove.
29758 (apple_partition_map_get_name): Likewise.
29759 * partmap/bsdlabel.c: New file.
29760 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29761 Set 'number'.
29762 Allocate 'data' so it can be correctly freed.
29763 Set 'index' to offset inside sector.
29764 (gpt_partition_map_probe): Remove.
29765 (gpt_partition_map_get_name): Likewise.
29766 * partmap/msdos.c (grub_partition_parse): Remove.
29767 (pc_partition_map_iterate): Don't force raw access.
29768 Set 'number'.
29769 Make 'ext_offset' a local variable.
29770 (pc_partition_map_probe): Remove.
29771 (pc_partition_map_get_name): Remove.
29772 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29773 Set 'number'.
29774 (sun_partition_map_probe): Remove.
29775 (sun_partition_map_get_name): Likewise.
29776 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29777 (grub_pcpart_type): Likewise.
29778 * util/hostdisk.c (open_device): Handle new numbering scheme.
29779 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29780 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29781 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29782 * util/grub-install.in: Insert all subpartition modules.
29783 * util/ieee1275/grub-install.in: Likewise.
29784
29785 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29786
29787 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29788 grammar.
29789
29790 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29791
29792 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29793
29794 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29795
29796 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29797 match where 'make install' puts them.
29798 * util/i386/efi/grub-install.in: Likewise.
29799
29800 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29801
29802 * .bzrignore: Add gentrigtables, grub-script-check,
29803 grub_script_check_init.c, grub_script_check_init.h, and
29804 trigtables.c.
29805
29806 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29807
29808 * kern/parser.c: Indented.
29809
29810 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29811
29812 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29813
29814 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29815
29816 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29817 alpha_mask_size == 0 case.
29818
29819 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29820
29821 GRUB shell lexer and parser improvements.
29822
29823 * conf/any-emu.rmk: Build rule updates.
29824 * conf/common.rmk: Likewise.
29825 * conf/i386-coreboot.rmk: Likewise.
29826 * conf/i386-efi.rmk: Likewise.
29827 * conf/i386-ieee1275.rmk: Likewise.
29828 * conf/i386-pc.rmk: Likewise.
29829 * conf/powerpc-ieee1275.rmk: Likewise.
29830 * conf/x86_64-efi.rmk: Likewise.
29831
29832 * configure.ac: Configure check for flex.
29833
29834 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29835 types.
29836 (grub_lexer_param): Struct member updates.
29837 (grub_parser_param): Likewise.
29838 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29839 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29840 (grub_script_lexer_init): Prototype update.
29841 (grub_script_lexer_record_start): Likewise.
29842 (grub_script_lexer_record_stop): Likewise.
29843 (grub_script_lexer_yywrap): New function prototype.
29844 (grub_script_lexer_fini): Likewise.
29845 (grub_script_execute_argument_to_string): Removed by...
29846 (grub_script_execute_argument_to_argv): ...better version.
29847
29848 * script/execute.c (ROUND_UPTO): New macro.
29849 (grub_script_execute_cmdline): Out of memory fixes.
29850 (grub_script_execute_menuentry): Likewise.
29851 (grub_script_execute_argument_to_string): Removed. Update all
29852 users by...
29853 (grub_script_execute_argument_to_argv): ...better version.
29854 * script/function.c (grub_script_function_create): Use
29855 grub_script_execute_argument_to_argv instead of
29856 grub_script_execute_argument_to_string.
29857
29858 * script/lexer.c (check_varstate): Removed.
29859 (check_textstate): Removed.
29860 (grub_script_lexer_record_start): Likewise.
29861 (grub_script_lexer_record_stop): Likewise.
29862 (recordchar): Replaced with...
29863 (grub_script_lexer_record): ...new function.
29864 (nextchar): Removed.
29865 (grub_script_lexer_init): Rewritten.
29866 (grub_script_yylex): Rewritten.
29867 (append_newline): New function.
29868 (grub_script_lexer_yywrap): New function.
29869 (grub_script_lexer_fini): New function.
29870 (grub_script_yyerror): Sets error flag.
29871
29872 * script/yylex.l: New file.
29873 (grub_lexer_yyfree): Wrapper for flex yyffre.
29874 (grub_lexer_yyalloc): Likewise.
29875 (grub_lexer_yyrealloc): Likewise.
29876 * script/parser.y: Refactored.
29877
29878 * script/script.c (grub_script_arg_add): Out of memory fixes.
29879 (grub_script_add_arglist): Likewise.
29880 (grub_script_create_cmdline): Likewise.
29881 (grub_script_create_cmdmenu): Likewise.
29882 (grub_script_add_cmd): Likewise.
29883 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29884 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29885 unnecessary code.
29886
29887 * tests/grub_script_echo1.in: New testcase.
29888 * tests/grub_script_vars1.in: New testcase.
29889 * tests/grub_script_echo_keywords.in: New testcase.
29890
29891 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29892
29893 Remove some redundancy in build system.
29894
29895 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29896 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29897 (TARGET_LDFLAGS): Add -nostdlib.
29898 (TARGET_IMG_LDFLAGS): Likewise.
29899 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29900 anything since mmap isn't available.
29901 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29902 Add util/time.c.
29903 (pkglib_MODULES): Remove reboot.mod.
29904 (reboot_mod_SOURCES): Removed.
29905 (reboot_mod_CFLAGS): Likewise.
29906 (reboot_mod_LDFLAGS): Likewise.
29907 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29908 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29909 (DEFSYMFILES): Add kernel_syms.lst.
29910 (kernel_img_HEADERS): Add common headers.
29911 (symlist.c): New target.
29912 (kernel_syms.lst): Likewise.
29913 (pkglib_MODULES): Add memdisk.mod.
29914 (memdisk_mod_SOURCES): New variable.
29915 (memdisk_mod_CFLAGS): Likewise.
29916 (memdisk_mod_LDFLAGS): Likewise.
29917 (pkglib_MODULES): Add reboot.mod.
29918 (reboot_mod_SOURCES): New variable.
29919 (reboot_mod_CFLAGS): Likewise.
29920 (reboot_mod_LDFLAGS): Likewise.
29921 (pkglib_MODULES): Add date.mod.
29922 (date_mod_SOURCES): New variable.
29923 (date_mod_CFLAGS): Likewise.
29924 (date_mod_LDFLAGS): Likewise.
29925 (pkglib_MODULES): Add datehook.mod.
29926 (datehook_mod_SOURCES): New variable.
29927 (datehook_mod_CFLAGS): Likewise.
29928 (datehook_mod_LDFLAGS): Likewise.
29929 (pkglib_MODULES): Add lsmmap.mod.
29930 (lsmmap_mod_SOURCES): New variable.
29931 (lsmmap_mod_CFLAGS): Likewise.
29932 (lsmmap_mod_LDFLAGS): Likewise.
29933 (pkglib_MODULES): Add boot.mod.
29934 (boot_mod_SOURCES): New variable.
29935 (boot_mod_CFLAGS): Likewise.
29936 (boot_mod_LDFLAGS): Likewise.
29937 * conf/i386-coreboot.rmk: Removed redundant parts.
29938 * conf/i386-ieee1275.rmk: Likewise.
29939 * conf/i386-pc.rmk: Likewise.
29940 * conf/mips-yeeloong.rmk: Likewise.
29941 * conf/mips.rmk: Likewise.
29942 * conf/powerpc-ieee1275.rmk: Likewise.
29943 * conf/sparc64-ieee1275.rmk: Likewise.
29944 * conf/x86_64-efi.rmk: Likewise.
29945 * conf/i386-coreboot.rmk: Moved qemu parts ..
29946 * conf/i386-qemu.rmk: ... here
29947 * conf/i386-efi.rmk: Moved common parts to...
29948 * conf/x86-efi.rmk: ... here.
29949 * conf/i386.rmk: Added modules common to all x86 variants.
29950 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29951 * disk/memdisk.c: Remove grub/machine/kernel.h.
29952 * gensymlist.sh.in: Include symbol.h.
29953 * hook/datehook.c: Correct module name.
29954 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29955 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29956 * include/grub/i386/efi/serial.h: New file.
29957 * include/grub/x86_64/efi/serial.h: Likewise.
29958 * util/time.c: Likewise.
29959 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29960
29961 2010-03-14 Colin King <colin.king@ubuntu.com>
29962 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29963
29964 Shrink the pre-partition-table part of boot.img by eight bytes.
29965
29966 * boot/i386/pc/boot.S (ERR): New macro.
29967 (chs_mode): Use ERR.
29968 (geometry_error): Likewise.
29969 (hd_probe_error): Remove. This is only used once, so we wrwite
29970 it inline instead.
29971 (read_error): Instead of printing read_error_string, just set up
29972 %si and fall through to ...
29973 (error_message): ... this new function, also used by ERR.
29974
29975 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29976
29977 Speed up consecutive hostdisk operations on the same device.
29978
29979 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29980 (grub_util_biosdisk_open): Initialise disk->data.
29981 (struct linux_partition_cache): New structure.
29982 (linux_find_partition): Cache partition start positions; these are
29983 expensive to compute on every read and write.
29984 (open_device): Cache open file descriptor in disk->data, so that we
29985 don't have to reopen it and flush the buffer cache for consecutive
29986 operations on the same device.
29987 (grub_util_biosdisk_close): New function.
29988 (grub_util_biosdisk_dev): Set `close' member.
29989
29990 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29991 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29992 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29993 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29994 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29995
29996 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29997
29998 Compile parts of grub-emu as modules.
29999
30000 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30001 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30002 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30003 (all-local): Add $(GRUB_EMU).
30004 (install-local): Install $(GRUB_EMU).
30005 (uninstall): Uninstall $(GRUB_EMU).
30006 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30007 * kern/dl.c: Likewise.
30008 * commands/sleep.c: Not include machine/time.h.
30009 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30010 (COMMON_CFLAGS): Likewise.
30011 (sbin_UTILITIES): Remove grub-emu.
30012 (grub_emu_SOURCES): Removed.
30013 (kernel_img_RELOCATABLE): New variable.
30014 (pkglib_PROGRAMS): Add kernel.img.
30015 (kernel_img_SOURCES): New variable
30016 (kernel_img_CFLAGS): Likewise.
30017 (kernel_img_LDFLAGS): Likewise.
30018 (TARGET_NO_STRIP): Likewise.
30019 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30020 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30021 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30022 (grub-emu): New target.
30023 (GRUB_EMU): New variable.
30024 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30025 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30026 * loader/xnu.c: Likewise.
30027 * include/grub/pci.h: Likewise.
30028 * genemuinit.sh: New file.
30029 * genemuinitheader.sh: Likewise.
30030 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30031 Support TARGET_NO_DYNAMIC_MODULES.
30032 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30033 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30034 * disk/loopback.c: Likewise.
30035 * font/font_cmd.c: Likewise.
30036 * partmap/acorn.c: Likewise.
30037 * partmap/amiga.c: Likewise.
30038 * partmap/apple.c: Likewise.
30039 * partmap/gpt.c: Likewise.
30040 * partmap/msdos.c: Likewise.
30041 * partmap/sun.c: Likewise.
30042 * parttool/msdospart.c: Likewise.
30043 * term/gfxterm.c: Likewise.
30044 * video/bitmap.c: Likewise.
30045 * video/readers/jpeg.c: Likewise.
30046 * video/readers/png.c: Likewise.
30047 * video/readers/tga.c: Likewise.
30048 * video/video.c: Likewise.
30049 * util/grub-emu.c (read_command_list): Removed.
30050 (main): Don't call util_init_nls.
30051 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30052 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30053
30054 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30055
30056 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30057 date.mod, datehook.mod.
30058 (datetime_mod_SOURCES): New variable.
30059 (datetime_mod_CFLAGS): Likewise.
30060 (datetime_mod_LDFLAGS): Likewise.
30061 (date_mod_SOURCES): Likewise.
30062 (date_mod_CFLAGS): Likewise.
30063 (date_mod_LDFLAGS): Likewise.
30064 (datehook_mod_SOURCES): Likewise.
30065 (datehook_mod_CFLAGS): Likewise.
30066 (datehook_mod_LDFLAGS): Likewise.
30067 * conf/sparc64-ieee1275.rmk: Likewise.
30068 * lib/ieee1275/datetime.c: New file.
30069
30070 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30071
30072 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30073 (ieee1275_fb_mod_SOURCES): New variable.
30074 (ieee1275_fb_mod_CFLAGS): Likewise.
30075 (ieee1275_fb_mod_LDFLAGS): Likewise.
30076 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30077 New proto.
30078 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30079 (HEAP_MAX_ADDR): Likewise.
30080 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30081 type.
30082 Correct stop condition.
30083 (grub_ieee1275_devices_iterate): New function.
30084 * video/ieee1275.c: New file.
30085
30086 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30087
30088 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30089
30090 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30091 as scratch.
30092 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30093 SCRATCH_PAD_DISKBOOT as scratch.
30094 (bootit): Pass Openfirmware pointer in %o4.
30095 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30096 of 0x200000.
30097 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30098 with util/grub-mkrawimage.c.
30099 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30100 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30101 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30102 (grub_aout_load) [GRUB_UTIL]: Likewise.
30103 * include/grub/kernel.h (grub_modules_get_end): New proto.
30104 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30105 (SCRATCH_PAD_BOOT): New definition.
30106 (SCRATCH_PAD_DISKBOOT): Likewise.
30107 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30108 * include/grub/sparc64/ieee1275/ieee1275.h
30109 (grub_ieee1275_original_stack): New variable
30110 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30111 New definition
30112 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30113 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30114 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30115 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30116 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30117 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30118 (grub_platform_image_format_t): New type.
30119 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30120 * kern/main.c (grub_modules_get_end)
30121 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30122 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30123 (codestart): Switch stacks.
30124 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30125 variable.
30126 (grub_heap_init): Use grub_modules_get_end.
30127 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30128 stack.
30129 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30130 (main): Likewise.
30131 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30132
30133 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30134
30135 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30136
30137 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30138
30139 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30140 bug #559005).
30141
30142 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30143
30144 * genmoddep.awk: Output all missing symbols and not only first.
30145
30146 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30147
30148 * NEWS: Put the date of 1.98 release.
30149
30150 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30151
30152 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30153 ft2build.h.
30154
30155 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30156
30157 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30158 completition in the middle of string.
30159
30160 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30161
30162 * util/grub-mkrescue.in: Use mktemp with explicit template.
30163
30164 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30165
30166 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30167
30168 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30169
30170 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30171 right pointer.
30172
30173 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30174
30175 Fix FreeBSD compilation.
30176
30177 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30178 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30179
30180 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30181
30182 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30183
30184 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30185
30186 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30187
30188 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30189
30190 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30191
30192 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30193
30194 Support relative image path in theme file.
30195
30196 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30197 (image_set_property): Handle theme_dir and relative path.
30198
30199 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30200
30201 * configure.ac: Alias amd64 to x86_64.
30202
30203 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30204
30205 * NEWS: mention multiboot on EFI.
30206
30207 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30208
30209 * kern/main.c (grub_load_modules): Handle errors from init functions of
30210 embeded modules.
30211
30212 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30213
30214 * normal/autofs.c (autoload_fs_module): Handle errors.
30215
30216 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30217
30218 Disable linux.mod on qemu-mips since it's not functional and leads
30219 to compilation failure.
30220
30221 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30222 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30223 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30224 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30225 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30226 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30227 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30228 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30229 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30230 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30231 Reported by: BVK Chaitanya
30232
30233 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30234
30235 * INSTALL: Add gettext as a dependency and add qemu to a new section
30236 "Prerequisites for make-check".
30237
30238 2010-03-04 Christian Franke <franke@computer.org>
30239
30240 * util/grub-pe2elf.c: Add missing include "progname.h".
30241
30242 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30243
30244 * normal/crypto.c (read_crypto_list): Fix a typo.
30245 Reported by: Seth Goldberg.
30246
30247 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30248
30249 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30250 Reported by: Seth Goldberg.
30251
30252 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30253
30254 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30255 ascii.bitmaps.
30256
30257 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30258
30259 * genmk.rb: Remove terminal*.lst in make clean.
30260 Reported by: Seth Goldberg.
30261
30262 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30263
30264 * util/i386/efi/grub-install.in: Copy gettext files.
30265
30266 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30267
30268 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30269
30270 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30271
30272 Wait for user entry basing on presence of output rather than on errors.
30273
30274 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30275 (grub_install_newline_hook): Likewise.
30276 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30277 * normal/menu.c (show_menu): Check line_counter to determine presence
30278 of output.
30279 * normal/term.c (grub_normal_line_counter): New variable.
30280 (grub_normal_get_line_counter): New function.
30281 (grub_install_newline_hook): Likewise.
30282
30283 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30284
30285 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30286
30287 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30288
30289 * configure.ac: Update version to 1.98.
30290
30291 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30292
30293 * util/grub.d/10_linux.in (linux_entry): Don't default to
30294 gfxpayload=keep if Linux doesn't support video handover.
30295
30296 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30297
30298 Don't compile video modules on yeeloong since video subsystem is part
30299 of kernel.
30300
30301 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30302 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30303 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30304 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30305 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30306 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30307 * include/grub/bitmap_scale.h: Likewise.
30308 * include/grub/bufio.h: Likewise.
30309 * include/grub/font.h: Likewise.
30310 * include/grub/gfxterm.h: Likewise.
30311 * include/grub/video.h: Likewise.
30312 * include/grub/vbe.h: Don't include video_fb.h.
30313 * video/i386/pc/vbe.c: Include video_fb.h.
30314 * commands/i386/pc/vbetest.c: Include video.h.
30315
30316 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30317
30318 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30319 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30320 default entry if GRUB_SAVEDEFAULT=true. This allows using
30321 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30322 saving a new default on every boot.
30323
30324 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30325
30326 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30327 * normal/term.c (read_terminal_list): Likewise.
30328 * normal/main.c (grub_normal_init_page): Likewise.
30329 (grub_normal_read_line_real): Likewise.
30330
30331 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30332
30333 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30334 memory leak.
30335 Reported by: Seth Goldberg.
30336
30337 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30338
30339 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30340 duplicate declaration of `start'.
30341
30342 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30343
30344 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30345 filename.
30346 Reported by: Georgy Buranov
30347
30348 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30349
30350 * util/grub-mkrawimage.c (usage): Change string formatting to
30351 improve gettext.
30352
30353 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30354
30355 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30356 backspace keys.
30357
30358 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30359
30360 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30361 Reported by: Michael Suchanek.
30362
30363 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30364
30365 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30366 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30367
30368 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30369
30370 Remove any reference to non-free fonts.
30371
30372 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30373 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30374 uses non-free components.
30375 * font/font.c (grub_font_get_name): Remove example name.
30376 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30377 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30378 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30379 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30380
30381 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30382
30383 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30384
30385 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30386
30387 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30388 Double divisor.
30389 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30390 features.
30391 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30392
30393 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30394
30395 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30396
30397 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30398
30399 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30400 * docs/grub.texi (Command-line and menu entry commands): Document play
30401 command.
30402
30403 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30404
30405 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30406 parse arguments as inline tempo and notes. Move code for playing notes
30407 to...
30408 (play): ... new function.
30409
30410 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30411
30412 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30413 grub_uint16_t instead of short.
30414 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30415 disk from little endian to cpu endianness.
30416
30417 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30418
30419 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30420 GRUB_TICKS_PER_SECOND instead of 120.
30421
30422 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30423
30424 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30425 escape sequence after \e.
30426
30427 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30428
30429 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30430 non-ASCII characters.
30431
30432 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30433
30434 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30435 set root in single quotes to prevent \, from being unescaped.
30436
30437 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30438
30439 Prevent unknown commands from stopping menuentry execution.
30440
30441 * script/execute.c (grub_script_execute_cmdline): Print error after
30442 unknown command.
30443
30444 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30445
30446 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30447 Reported by: Pavel Pisa.
30448
30449 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30450
30451 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30452
30453 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30454
30455 Merge grub_ieee1275_map_physical into grub_map and rename to
30456 grub_ieee1275_map
30457
30458 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30459 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30460 Remove.
30461 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30462 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30463 necessary.
30464 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30465
30466 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30467
30468 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30469 opening and not after.
30470
30471 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30472
30473 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30474 constants.
30475
30476 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30477
30478 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30479 (alloc_phys): Use ALIGN_UP instead of align_addr.
30480
30481 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30482
30483 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30484
30485 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30486
30487 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30488
30489 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30490
30491 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30492 verbose dprintf.
30493
30494 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30495
30496 Fix over-4GiB seek on sparc64.
30497
30498 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30499 Replace pos_i and pos_lo with pos. All users updated.
30500 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30501 New constant.
30502 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30503 Likewise.
30504 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30505 and pos_lo.
30506
30507 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30508
30509 * util/grub-mkrawimage.c (main): Call set_program_name.
30510
30511 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30512
30513 Properly align 64-bit targets.
30514
30515 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30516 (generate_image): Use ALIGN_ADDR.
30517
30518 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30519
30520 Properly create cross-endian images.
30521
30522 * include/grub/types.h (grub_host_to_target_addr): New macro
30523 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30524
30525 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30526
30527 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30528
30529 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30530
30531 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30532
30533 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30534 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30535 (grub_linux_boot): Divide by 64K when on VESA.
30536
30537 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30538
30539 Support GRUB_GFXPAYLOAD_LINUX.
30540
30541 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30542 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30543
30544 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30545
30546 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30547 to show messages instead of discarding them.
30548 Process errors after executing command and not before. Keep old method
30549 too as precaution.
30550
30551 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30552
30553 * configure.ac: Check for ft2build.h.
30554
30555 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30556
30557 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30558
30559 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30560
30561 * genkernsyms.sh.in: Use TARGET_CC.
30562
30563 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30564
30565 * NEWS: Update.
30566
30567 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30568
30569 * include/grub/multiboot2.h: Remove leftover file.
30570 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30571 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30572
30573 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30574
30575 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30576
30577 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30578
30579 Fix warnings in grub-emu when compiling with maximum warning options.
30580
30581 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30582 (grub_arch_modules_addr): Return 0 and not NULL.
30583 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30584 (xstrdup): Use newstr instead of dup.
30585 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30586 of disk to dsk to avoid shadowing.
30587 (find_free_slot): Fix prototype.
30588 * util/getroot.c (grub_util_is_dmraid): Make static.
30589 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30590 Add missing prototype.
30591 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30592
30593 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30594
30595 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30596 appropriately.
30597
30598 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30599
30600 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30601 code out.
30602
30603 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30604
30605 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30606 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30607 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30608 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30609 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30610 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30611
30612 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30613
30614 * include/grub/err.h (grub_err_printf): Don't export.
30615
30616 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30617
30618 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30619
30620 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30621
30622 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30623 * kern/misc.c (grub_gettext_dummy): Make static.
30624
30625 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30626
30627 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30628 by non-valid ones.
30629 * kern/term.c (grub_putchar): Likewise.
30630
30631 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30632
30633 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30634 buggy hook call and memory leak.
30635
30636 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30637
30638 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30639
30640 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30641
30642 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30643
30644 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30645
30646 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30647 modevar.
30648 Return grub_errno on allocation error.
30649
30650 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30651
30652 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30653
30654 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30655
30656 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30657 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30658
30659 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30660
30661 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30662 non-pxe disk.
30663 (grub_pxefs_open): Likewise.
30664
30665 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30666
30667 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30668 * util/grub.d/10_kfreebsd.in: Likewise.
30669 * util/grub.d/10_linux.in: Likewise.
30670
30671 2010-02-06 Colin D Bennett <colin@gibibit.com>
30672
30673 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30674 (gfxmenu_mod_SOURCES): New variable.
30675 (gfxmenu_mod_CFLAGS): Likewise.
30676 (gfxmenu_mod_LDFLAGS): Likewise.
30677 * include/grub/term.h (grub_term_set_current_output): Declare
30678 argument as const.
30679 * docs/gfxmenu-theme-example.txt: New file.
30680 * gfxmenu/gfxmenu.c: Likewise.
30681 * gfxmenu/gui_box.c: Likewise.
30682 * gfxmenu/gui_canvas.c: Likewise.
30683 * gfxmenu/gui_circular_progress.c: Likewise.
30684 * gfxmenu/gui_image.c: Likewise.
30685 * gfxmenu/gui_label.c: Likewise.
30686 * gfxmenu/gui_list.c: Likewise.
30687 * gfxmenu/gui_progress_bar.c: Likewise.
30688 * gfxmenu/gui_string_util.c: Likewise.
30689 * gfxmenu/gui_util.c: Likewise.
30690 * gfxmenu/icon_manager.c: Likewise.
30691 * gfxmenu/model.c: Likewise.
30692 * gfxmenu/named_colors.c: Likewise.
30693 * gfxmenu/theme_loader.c: Likewise.
30694 * gfxmenu/view.c: Likewise.
30695 * gfxmenu/widget-box.c: Likewise.
30696 * include/grub/gfxmenu_model.h: Likewise.
30697 * include/grub/gfxmenu_view.h: Likewise.
30698 * include/grub/gfxwidgets.h: Likewise.
30699 * include/grub/gui.h: Likewise.
30700 * include/grub/gui_string_util.h: Likewise.
30701 * include/grub/icon_manager.h: Likewise.
30702
30703 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30704
30705 Agglomerate scrolling in gfxterm.
30706
30707 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30708 (grub_virtual_screen_setup): Initialise 'total_screen'.
30709 (write_char): Split to ...
30710 (paint_char): ... this ...
30711 (write_char): ... and this.
30712 (paint_char): Handle delayed scrolling.
30713 (draw_cursor): Likewise.
30714 (scroll_up): Split to ...
30715 (real_scroll): ... this ...
30716 (scroll_up): ... and this.
30717 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30718 characters.
30719 (grub_gfxterm_refresh): Call real_scroll.
30720
30721 2010-02-06 Colin D Bennett <colin@gibibit.com>
30722
30723 * include/grub/misc.h (grub_iscntrl): New inline function.
30724 (grub_isalnum): Likewise.
30725 (grub_strtol): Likewise.
30726
30727 2010-02-06 Colin D Bennett <colin@gibibit.com>
30728
30729 * normal/menu_text.c (get_entry_number): Move from here ...
30730 * normal/menu.c (get_entry_number): ... moved here.
30731 * include/grub/menu.h (grub_menu_get_default_entry_index):
30732 New prototype.
30733 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30734 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30735 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30736 (grub_menu_viewer_should_return): Likewise.
30737 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30738 * normal/menu_text.c (run_menu): Enable menu switching.
30739 * normal/menu_viewer.c (should_return): New variable.
30740 (menu_viewer_changed): Likewise.
30741 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30742 (grub_menu_viewer_should_return): New function.
30743 (menuviewer_write_hook): Likewise.
30744 (grub_menu_viewer_init): Likewise.
30745
30746 2010-02-06 Colin D Bennet <colin@gibibit.com>
30747 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30748
30749 Support for gfxterm in a window.
30750
30751 * include/grub/gfxterm.h: New file.
30752 * include/grub/video.h (struct grub_video_rect): New declaration.
30753 (grub_video_rect_t): Likewise.
30754 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30755 (refcount): New variable.
30756 (render_target): Likewise.
30757 (window): Likewise.
30758 (repaint_callback): Likewise.
30759 (grub_virtual_screen_setup): Use 'render_target'.
30760 (init_window): New function.
30761 (grub_gfxterm_init_window): Likewise.
30762 (grub_gfxterm_init): Check reference counter.
30763 Use init_window.
30764 (destroy_window): New function.
30765 (grub_gfxterm_destroy_window): Likewise.
30766 (grub_gfxterm_fini): Check reference counter.
30767 Use destroy_window.
30768 (redraw_screen_rect): Restore viewport.
30769 Use 'render_target' and 'window'.
30770 Call 'repaint_callback'.
30771 (write_char): Use 'render_target'.
30772 (draw_cursor): Likewise.
30773 (scroll_up): Restore viewport.
30774 Use 'render_target' and 'window'.
30775 Call 'repaint_callback'.
30776 (grub_gfxterm_cls): Likewise.
30777 (grub_gfxterm_refresh): Use 'window'.
30778 (grub_gfxterm_set_repaint_callback): New function.
30779 (grub_gfxterm_background_image_cmd): Use 'window'.
30780 (grub_gfxterm_get_term): New function.
30781 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30782
30783 2010-02-06 Colin D Bennett <colin@gibibit.com>
30784
30785 Bitmap scaling support.
30786
30787 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30788 (bitmap_scale_mod_SOURCES): New variable.
30789 (bitmap_scale_mod_CFLAGS): Likewise.
30790 (bitmap_scale_mod_LDFLAGS): Likewise.
30791 * include/grub/bitmap_scale.h: New file.
30792 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30793 (background_image_cmd_options): New variable.
30794 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30795 (cmd): Rename and change type to ...
30796 (background_image_cmd_handle): ... this. All users updated.
30797 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30798 * video/bitmap_scale.c: New file.
30799
30800 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30801
30802 SDL support.
30803
30804 * Makefile.in (LIBSDL): New variable.
30805 (enable_grub_emu_sdl): Likewise.
30806 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30807 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30808 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30809 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30810 * util/sdl.c: New file.
30811
30812 2010-02-06 Colin D Bennett <colin@gibibit.com>
30813 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30814
30815 Double buffering support.
30816
30817 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30818 * include/grub/video.h: Update comment.
30819 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30820 New type.
30821 (grub_video_fb_doublebuf_blit_init): New prototype.
30822 * term/gfxterm.c (scroll_up): Support double buffering.
30823 (grub_gfxterm_refresh): Likewise.
30824 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30825 (grub_video_fb_doublebuf_blit_init): Likewise.
30826 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30827 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30828 'displayed_page', 'render_page' and 'update_screen'.
30829 (grub_video_vbe_fini): Free offscreen buffer.
30830 (doublebuf_pageflipping_commit): New function.
30831 (doublebuf_pageflipping_update_screen): Likewise.
30832 (doublebuf_pageflipping_init): Likewise.
30833 (double_buffering_init): Likewise.
30834 (grub_video_vbe_setup): Enable doublebuffering.
30835 (grub_video_vbe_swap_buffers): Implement.
30836 (grub_video_vbe_set_active_render_target): Handle double buffering.
30837 (grub_video_vbe_get_active_render_target): Likewise.
30838 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30839 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30840 (grub_video_vbe_enable_double_buffering): Likewise.
30841 (grub_video_vbe_swap_buffers): Use update_screen.
30842 (grub_video_set_mode): Use double buffering.
30843
30844 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30845
30846 * maintainance/gentrigtables.py: Remove.
30847 * lib/trig.c: Likewise.
30848
30849 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30850
30851 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30852 `trigtables.c'.
30853 (trigtables.c): New rule.
30854 (gentrigtables): Likewise.
30855 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30856
30857 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30858
30859 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30860 integer constants.
30861
30862 2010-02-06 Colin D Bennet <colin@gibibit.com>
30863
30864 Trigonometry support.
30865
30866 * include/grub/trig.h: New file.
30867 * lib/trig.c: Likewise.
30868 * maintainance/gentrigtables.py: Likewise.
30869 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30870 (trig_mod_SOURCES): New variable.
30871 (trig_mod_CFLAGS): Likewise.
30872 (trig_mod_LDFLAGS): Likewise.
30873
30874 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30875
30876 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30877 disk devices.
30878
30879 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30880
30881 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30882 error.
30883
30884 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30885
30886 * util/hostdisk.c (open_device): Don't use partition device when reading
30887 before the partition.
30888 (grub_util_biosdisk_read): Don't read from partition and before the
30889 partition in single operation.
30890 (grub_util_biosdisk_write): Don't write to partition and before the
30891 partition in single operation.
30892
30893 2010-02-03 Torsten Landschoff <torsten@debian.org>
30894
30895 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30896 last sectors.
30897
30898 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30899
30900 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30901 CDROM reads.
30902 (grub_biosdisk_write): Refuse to write to CDROM.
30903
30904 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30905
30906 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30907
30908 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30909
30910 * font/font.c (find_glyph): Check that bmp_idx is available before
30911 using it.
30912 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30913 with (font == NULL).
30914
30915 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30916
30917 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30918
30919 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30920
30921 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30922 * util/grub-script-check.c (getline): Fix empty lines case.
30923
30924 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30925
30926 * Makefile.in (check): Exit with fail status when one of the tests
30927 fails.
30928 * tests/example_functional_test.c (example_test): Fix reversed assert.
30929 * tests/example_unit_test.c (example_test): Likewise.
30930
30931 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30932
30933 * util/grub.d/10_linux.in: This script does not use any of the
30934 contents of gettext.sh, only the external command `gettext', so stop
30935 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30936 the same prefix as GRUB.)
30937 * util/grub.d/10_kfreebsd.in: Likewise.
30938
30939 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30940
30941 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30942 of the line.
30943
30944 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30945
30946 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30947 last sectors.
30948
30949 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30950
30951 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30952 having a 4KiB and not 32KiB buffer size.
30953
30954 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30955
30956 * util/hostfs.c: Include `<errno.h>'.
30957 (grub_hostfs_read): Handle errors from fseeko() and fread().
30958
30959 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30960
30961 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30962 loop when using read hooks on files whose size isn't sector-aligned.
30963
30964 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30965
30966 Remove unused parameter.
30967
30968 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30969 (grub_iso9660_open): Remove initialization of `data->length'.
30970
30971 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30972
30973 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30974 memleak conditions.
30975
30976 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30977
30978 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30979 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30980
30981 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30982
30983 * util/bin2h.c (usage): Fix warning (space after backslash).
30984
30985 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30986
30987 * font/font.c: Include `grub/fontformat.h.
30988 Remove font file format constants.
30989 (grub_font_load): Use the new macros.
30990 * include/grub/fontformat.h: New file.
30991 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30992 (write_font_pf2): Use the new macros.
30993
30994 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30995
30996 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30997 does.
30998
30999 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31000
31001 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31002
31003 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31004 (_start): Macroify `0x7F'.
31005
31006 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31007 (make_install_device): Use "(pxe)" as fallback prefix when booting
31008 via PXE.
31009
31010 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31011
31012 * configure.ac: Reset LIBS after check for libgcc symbols.
31013
31014 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
31015
31016 * util/hostdisk.c (open_device): Add trailing newline to debug
31017 message.
31018
31019 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31020
31021 * configure.ac: Check for `limits.h'.
31022 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31023
31024 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31025
31026 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31027 capitalize error strings.
31028
31029 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31030
31031 * util/grub.d/10_hurd.in: Add a recovery mode.
31032
31033 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31034
31035 * configure.ac: Check for libgcc symbols with -nostdlib.
31036
31037 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31038
31039 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31040
31041 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31042
31043 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31044 stack since heap may be unavailable at that point.
31045 (grub_ofconsole_gotoxy): Likewise.
31046
31047 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31048
31049 * configure.ac: Check for _restgpr_14_x.
31050 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31051 and _savegpr_* prototypes.
31052
31053 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31054
31055 Use generic grub_reboot() for i386-efi.
31056
31057 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31058 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31059 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31060
31061 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31062
31063 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31064 presence of "prefix" variable as it breaks when normal.mod is
31065 embedded.
31066
31067 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31068
31069 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31070 stack since heap is unavailable at that point.
31071
31072 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31073
31074 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31075 (grub_freebsd_bootinfo): Rewritten.
31076 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31077
31078 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31079
31080 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31081
31082 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31083
31084 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31085 domain now.
31086
31087 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31088
31089 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31090 around for handling "/" to the correct fix. Fix a memory leak. Use
31091 xstrdup instead of strdup.
31092
31093 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31094
31095 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31096
31097 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31098
31099 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31100
31101 * font/font.c (struct grub_font): New member 'bmp_idx'.
31102 (font_init): Initialise 'bmp_idx'.
31103 (load_font_index): Fill 'bmp_idx'.
31104 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31105
31106 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31107
31108 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31109 unnecessary calls.
31110
31111 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31112
31113 Move context handling out of the kernel.
31114
31115 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31116 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31117 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31118 * conf/i386-efi.rmk: Likewise.
31119 * conf/i386-ieee1275.rmk: Likewise.
31120 * conf/i386-pc.rmk: Likewise.
31121 * conf/powerpc-ieee1275.rmk: Likewise.
31122 * conf/sparc64-ieee1275.rmk: Likewise.
31123 * conf/x86_64-efi.rmk: Likewise.
31124 * include/grub/env.h: Include grub/menu.h.
31125 (grub_env_var_type): Removed.
31126 (grub_env_var): Replaced field 'type' with 'global'.
31127 (grub_env_find): New prototype.
31128 (grub_env_context_open): Remove EXPORT_FUNC.
31129 (grub_env_context_close): Likewise.
31130 (grub_env_export): Likewise.
31131 (grub_env_set_data_slot): Removed.
31132 (grub_env_get_data_slot): Likewise.
31133 (grub_env_unset_data_slot): Likewise.
31134 (grub_env_unset_menu): New prototype.
31135 (grub_env_set_menu): Likewise.
31136 (grub_env_get_menu): Likewise.
31137 * include/grub/env_private.h: New file.
31138 * include/grub/normal.h (grub_context_init): New prototype.
31139 (grub_context_fini): Likewise.
31140 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31141 * normal/context.c (grub_cmd_export): ... to here.
31142 * kern/env.c: Include env_private.h.
31143 (HASHSZ): Moved to include/grub/env_private.h.
31144 (grub_env_context): Likewise.
31145 (grub_env_sorted_var): Likewise.
31146 (current_context): Renamed from this ...
31147 (grub_current_context): ...to this. 'static' removed. All users updated.
31148 (grub_env_find): Removed 'static'.
31149 (grub_env_context_open): Moved to normal/context.c.
31150 (grub_env_context_close): Likewise.
31151 (grub_env_export): Likewise.
31152 (mangle_data_slot_name): Removed.
31153 (grub_env_set_data_slot): Likewise.
31154 (grub_env_get_data_slot): Likewise.
31155 (grub_env_unset_data_slot): Likewise.
31156 * kern/main.c (grub_set_root_dev): Don't export root.
31157 It will be done later.
31158 (grub_main): Don't export prefix.
31159 It will be done later.
31160 * normal/context.c: New file.
31161 * normal/main.c (free_menu): Use grub_env_unset_menu.
31162 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31163 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31164 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31165 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31166
31167 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31168
31169 setpci support.
31170
31171 * commands/setpci.c: New file.
31172 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31173 (setpci_mod_SOURCES): New variable.
31174 (setpci_mod_CFLAGS): Likewise.
31175 (setpci_mod_LDFLAGS): Likewise.
31176
31177 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31178
31179 Byte-addressable PCI configuration space.
31180
31181 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31182 dword address.
31183 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31184 GRUB_PCI_REG_CACHELINE.
31185 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31186 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31187 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31188 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31189 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31190 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31191 grub_pci_make_address.
31192 (lock_rom_area): Likewise.
31193 * commands/lspci.c (grub_lspci_iter): Use macroses
31194 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31195 of grub_pci_make_address.
31196 * disk/ata.c (grub_ata_pciinit): Likewise.
31197 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31198 (GRUB_PCI_REG_VENDOR): Likewise.
31199 (GRUB_PCI_REG_DEVICE): Likewise.
31200 (GRUB_PCI_REG_COMMAND): Likewise.
31201 (GRUB_PCI_REG_STATUS): Likewise.
31202 (GRUB_PCI_REG_REVISION): Likewise.
31203 (GRUB_PCI_REG_CLASS): Likewise.
31204 (GRUB_PCI_REG_CACHELINE): Likewise.
31205 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31206 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31207 (GRUB_PCI_REG_BIST): Likewise.
31208 (GRUB_PCI_REG_ADDRESSES): Likewise.
31209 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31210 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31211 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31212 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31213 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31214 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31215 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31216 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31217 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31218 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31219 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31220 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31221 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31222 (GRUB_PCI_REG_MIN_GNT): Likewise.
31223 (GRUB_PCI_REG_MAX_LAT): Likewise.
31224 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31225 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31226 * video/efi_uga.c (find_framebuf): Likewise.
31227 * video/sm712.c (grub_video_sm712_setup): Likewise.
31228 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31229 space.
31230
31231 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31232
31233 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31234 can be reliably determined to be supported.
31235
31236 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31237
31238 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31239 that VESA is supported.
31240 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31241 supported.
31242
31243 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31244
31245 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31246
31247 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31248
31249 * util/misc.c (make_system_path_relative_to_its_root): Work around
31250 special-casing of "/", as previous incarnation of this routine did.
31251
31252 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31253
31254 Fix any-emu compilation.
31255
31256 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31257 * grub_bin2h_SOURCES: New variable.
31258
31259 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31260
31261 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31262
31263 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31264
31265 * util/grub.d/00_header.in: Fix handling of locale_dir.
31266
31267 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31268
31269 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31270 as possible unifont location (Gentoo).
31271 Reported by: Alexander Brüning
31272
31273 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31274
31275 Don't try to generate lists for kernel.img.
31276
31277 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31278 (pkglib_MODULES): Remove kernel.img.
31279 (kernel_img_EXPORTS): Removed.
31280 (kernel_img_RELOCATABLE): New variable.
31281 * conf/x86_64-efi.rmk: Likewise.
31282 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31283
31284 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31285
31286 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31287 grub_xasprintf or grub_snprintf.
31288 (grub_vsprintf): Likewise.
31289 (grub_snprintf): New proto.
31290 (grub_vsnprintf): Likewise.
31291 (grub_xasprintf): Likewise.
31292 (grub_xvasprintf): Likewise.
31293 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31294 (grub_sprintf): Removed.
31295 (grub_vsnprintf): New function.
31296 (grub_snprintf): Likewise.
31297 (grub_xvasprintf): Likewise.
31298 (grub_xasprintf): Likewise.
31299 (grub_vsprintf): Renamed to ...
31300 (grub_vsnprintf_real): ...this. New argument max_len.
31301
31302 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31303
31304 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31305 fix grub-script-check warning.
31306
31307 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31308
31309 * include/grub/font.h (grub_font_load): Fix prototype.
31310
31311 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31312
31313 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31314
31315 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31316
31317 * include/grub/x86_64/at_keyboard.h: New file.
31318
31319 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31320
31321 * loader/mips/linux.c: Include missing grub/i18n.h.
31322
31323 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31324
31325 * normal/menu.c (notify_execution_failure): Clarify error message.
31326
31327 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31328
31329 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31330 return value (and revert all return statements). Update users.
31331
31332 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31333
31334 * kern/device.c (grub_device_iterate): Allocate new part_ent
31335 structure based on sizeof (*p) rather than sizeof (p->next), to
31336 account for structure padding.
31337
31338 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31339 disk is NULL, which might happen for LVM physical volumes with no
31340 LVM signature.
31341
31342 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31343
31344 * loader/mips/linux.c (grub_cmd_initrd)
31345 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31346
31347 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31348
31349 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31350 (grub_video_video_init, grub_video_bitmap_init)
31351 (grub_font_manager_init, grub_term_gfxterm_init)
31352 (grub_at_keyboard_init): New extern declarations.
31353 (grub_machine_init): Initialize gfxterm and at_keyboard.
31354
31355 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31356
31357 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31358 `gfxterm.mod' into core image.
31359
31360 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31361 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31362 (kernel_img_FORMAT): Copy to ...
31363
31364 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31365 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31366 (kernel_img_FORMAT): ... here, and ...
31367
31368 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31369 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31370 (kernel_img_FORMAT): ... here.
31371
31372 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31373 and input (at_keyboard) terminals in kernel.
31374 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31375
31376 (pkglib_MODULES): Remove `pci.mod'.
31377 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31378 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31379 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31380 (at_keyboard_mod_LDFLAGS): Remove variables.
31381
31382 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31383
31384 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31385
31386 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31387
31388 * include/grub/mips/libgcc.h: Only export symbols for functions
31389 that libgcc provides.
31390
31391 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31392
31393 MIPS support.
31394
31395 * bus/bonito.c: New file.
31396 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31397 GRUB_PCI_NUM_DEVICES.
31398 * term/i386/pc/serial.c: Move to ...
31399 * term/serial.c: ... here. All users updated.
31400 * util/i386/pc/grub-mkimage.c: Move to ...
31401 * util/grub-mkrawimage.c: ... here. All users updated.
31402 * term/i386/pc/at_keyboard.c: Move to ...
31403 * term/at_keyboard.c: ... here. All users updated.
31404 * conf/mips-qemu-mips.rmk: New file.
31405 * conf/mips-yeeloong.rmk: Likewise.
31406 * conf/mips.rmk: Likewise.
31407 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31408 mipsel-qemu-mips.
31409 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31410 to port addresses.
31411 (grub_ata_pciinit): Support CS5536.
31412 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31413 * font/font_cmd.c (loadfont_command): Open file before passing it to
31414 grub_font_load.
31415 (pseudo_file_read): New function.
31416 (pseudo_file_close): Likewise.
31417 (pseudo_fs): New structure.
31418 (load_font_module): New function.
31419 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31420 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31421 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31422 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31423 * include/grub/i386/at_keyboard.h: Split into ...
31424 * include/grub/at_keyboard.h: ... this ...
31425 * include/grub/i386/at_keyboard.h: ... and this.
31426 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31427 New prototype.
31428 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31429 updated.
31430 (grub_elf64_size): Likewise.
31431 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31432 filename.
31433 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31434 * include/grub/i386/coreboot/serial.h: Rewritten.
31435 * include/grub/i386/ieee1275/serial.h: Include
31436 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31437 * include/grub/i386/pc/serial.h: Moved from here ...
31438 * include/grub/serial.h: ... to here. All users updated.
31439 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31440 (GRUB_PCI_NUM_BUS): Likewise.
31441 (GRUB_PCI_NUM_DEVICES): Likewise.
31442 (grub_pci_device_map_range): Add missing volatile keyword.
31443 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31444 * include/grub/mips/at_keyboard.h: New file.
31445 * include/grub/mips/cache.h: Likewise.
31446 * include/grub/mips/io.h: Likewise.
31447 * include/grub/mips/kernel.h: Likewise.
31448 * include/grub/mips/libgcc.h: Likewise.
31449 * include/grub/mips/pci.h: Likewise.
31450 * include/grub/mips/qemu-mips/boot.h: Likewise.
31451 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31452 * include/grub/mips/qemu-mips/loader.h: Likewise.
31453 * include/grub/mips/qemu-mips/memory.h: Likewise.
31454 * include/grub/mips/qemu-mips/serial.h: Likewise.
31455 * include/grub/mips/qemu-mips/time.h: Likewise.
31456 * include/grub/mips/relocator.h: Likewise.
31457 * include/grub/mips/time.h: Likewise.
31458 * include/grub/mips/types.h: Likewise.
31459 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31460 * include/grub/mips/yeeloong/boot.h: Likewise.
31461 * include/grub/mips/yeeloong/kernel.h: Likewise.
31462 * include/grub/mips/yeeloong/loader.h: Likewise.
31463 * include/grub/mips/yeeloong/memory.h: Likewise.
31464 * include/grub/mips/yeeloong/pci.h: Likewise.
31465 * include/grub/mips/yeeloong/serial.h: Likewise.
31466 * include/grub/mips/yeeloong/time.h: Likewise.
31467 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31468 * kern/elf.c (grub_elf32_size): New parameter. All users
31469 updated.
31470 (grub_elf64_size): Likewise.
31471 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31472 Load modules before saying "Welcome to GRUB!".
31473 Call grub_refresh after saying "Welcome to GRUB!".
31474 * kern/mips/cache.S: New file.
31475 * kern/mips/cache_flush.S: Likewise.
31476 * kern/mips/dl.c: Likewise.
31477 * kern/mips/init.c: Likewise.
31478 * kern/mips/qemu-mips/init.c: Likewise.
31479 * kern/mips/startup.S: Likewise.
31480 * kern/mips/yeeloong/init.c: Likewise.
31481 * kern/term.c (grub_putcode): Handle NULL terminal.
31482 (grub_getcharwidth): Likewise.
31483 (grub_getkey): Likewise.
31484 (grub_checkkey): Likewise.
31485 (grub_getkeystatus): Likewise.
31486 (grub_getxy): Likewise.
31487 (grub_getwh): Likewise.
31488 (grub_gotoxy): Likewise.
31489 (grub_cls): Likewise.
31490 (grub_setcolorstate): Likewise.
31491 (grub_setcolor): Likewise.
31492 (grub_getcolor): Likewise.
31493 (grub_refresh): Likewise.
31494 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31495 (write_jump): Add hatch nop.
31496 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31497 * lib/mips/setjmp.S: New file.
31498 * loader/mips/linux.c: Likewise.
31499 * term/i386/pc/at_keyboard.c: Move from here ...
31500 * term/at_keyboard.c: ... to here.
31501 * term/i386/pc/serial.c: Moved from here ...
31502 * term/serial.c: ... to here. All users updated.
31503 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31504 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31505 (serial_translate_key_sequence): Avoid deadlock.
31506 (grub_serial_getkey): Handle backspace.
31507 (grub_serial_putchar): Fix newline handling.
31508 * util/i386/pc/grub-mkimage.c: Move from here ...
31509 * util/grub-mkrawimage.c: ... to here. All users updated.
31510 (generate_image): New parameters 'font_path' and 'format'.
31511 Support embedding font.
31512 Use grub_host_to_target* instead of grub_cpu_to_le*.
31513 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31514 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31515 (options): New option "--font".
31516 (usage): Likewise.
31517 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31518 (main): Handle "--font".
31519 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31520 (grub_virtual_screen_setup): Set bg_color_display.
31521 (redraw_screen_rect): Use bg_color_display instead of incorrect
31522 bg_color.
31523 (grub_gfxterm_cls): Likewise.
31524 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31525 Support embedding config file.
31526 (add_segments): Likewise.
31527 (options): New option "--config".
31528 (main): Handle "--config".
31529 * video/sm712.c: New file.
31530
31531 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31532
31533 Fix parallel builds.
31534
31535 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31536 font.c depend on ascii.h).
31537
31538 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31539
31540 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31541
31542 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31543
31544 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31545 By default: disabled.
31546 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31547 parameter.
31548
31549 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31550
31551 * font/font.c: Update copyright years.
31552 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31553
31554 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31555
31556 * font/font.c: Include `ascii.h'.
31557 (ASCII_BITMAP_SIZE): New macro.
31558 (ascii_font_glyph): Define.
31559 (ascii_glyph_lookup): New function.
31560 (grub_font_get_string_width): Change comment. If glyph not found, use
31561 ascii_glyph_lookup.
31562 (grub_font_get_glyph_with_fallback): If glyph not available returns
31563 ascii_glyph_lookup.
31564 * util/grub-mkfont.c (file_formats): New enum.
31565 (options): Add `ascii-bitmaps' new option.
31566 (usage): Add `asii-bitmaps' new option.
31567 (write_font_ascii_bitmap): New function.
31568 (write_font): Rename to ...
31569 (write_font_p2): ... this. Remove print_glyphs call.
31570 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31571 used. Call print_glyphs.
31572 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31573
31574 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31575
31576 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31577 (grub_bin2h_SOURCES): New variable.
31578 * util/bin2h.c: New file.
31579
31580 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31581
31582 * include/multiboot.h: Resynced with spec.
31583 * include/multiboot2.h: Likewise.
31584 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31585 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31586
31587 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31588
31589 * include/grub/term.h (grub_term_register_input,
31590 grub_term_register_output): Check return of terminal init()
31591 routines, and abort if errors are raised.
31592
31593 * commands/terminal.c: Update copyright year.
31594
31595 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31596
31597 * commands/terminal.c (grub_cmd_terminal_input)
31598 (grub_cmd_terminal_output): Check return of terminal init()
31599 routines, and abort if errors are raised.
31600
31601 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31602
31603 * include/grub/i386/bsd.h: Fix include pathes.
31604
31605 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31606
31607 Add missing *BSD copyright headers.
31608
31609 * include/grub/aout.h: Add BSD licence.
31610 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31611 * include/grub/i386/freebsd_linker.h: ... here,
31612 * include/grub/i386/freebsd_reboot.h: ... here,
31613 * include/grub/i386/netbsd_bootinfo.h: ... here,
31614 * include/grub/i386/netbsd_reboot.h: ... here,
31615 * include/grub/i386/openbsd_bootarg.h: ... here,
31616 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31617 licence to each file.
31618
31619 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31620
31621 * acinclude.m4: Remove `nop' assembly instruction; it's not
31622 implemented by all architectures.
31623
31624 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31625
31626 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31627 ELILO. This is no longer necessary.
31628
31629 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31630
31631 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31632
31633 * util/grub-script-check.c: grub-script-check tool.
31634 * conf/common.rmk: Make rules for grub-script-check.
31635
31636 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31637
31638 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31639 spotting it back in 2008. Shame on me for forgetting he did.
31640
31641 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31642
31643 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31644
31645 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31646 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31647 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31648 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31649 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31650 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31651
31652 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31653
31654 * include/grub/test.h: Add license header.
31655 * tests/example_functional_test.c: Likewise.
31656 * tests/example_unit_test.c: Likewise.
31657 * tests/lib/functional_test.c: Likewise.
31658 * tests/lib/test.c: Likewise.
31659 * tests/lib/unit_test.c: Likewise.
31660
31661 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31662
31663 Use flag-based instead of hook-based video mode selection and "auto"
31664 keyword.
31665
31666 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31667 (grub_video_set_mode): Changed prototype. All users updated.
31668 (grub_video_check_mode_flag): New inline function.
31669 * video/video.c (parse_modespec): New function.
31670 (grub_video_set_mode): Parse flags and keywords.
31671
31672 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31673
31674 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31675 fprintf call.
31676
31677 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31678
31679 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31680
31681 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31682
31683 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31684 string.
31685 * util/grub-emu.c (usage): Likewise.
31686 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31687 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31688 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31689 * util/i386/pc/grub-setup.c (usage): Likewise.
31690
31691 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31692
31693 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31694 the message.
31695 (grub_util_info): Likewise.
31696 (grub_util_error): Likewise.
31697 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31698 and/or new lines in `grub_util_warna', `grub_util_info',
31699 `grub_util_error' calls.
31700 * util/getroot.c: Likewise.
31701 * util/grub-editenv.c: Likewise.
31702 * util/grub-emu.c: Likewise.
31703 * util/grub-fstest.c: Likewise.
31704 * util/grub-mkdevicemap.c: Likewise.
31705 * util/grub-mkfont.c: Likewise.
31706 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31707 * util/grub-mkrelpath.c: Likewise.
31708 * util/grub-pe2elf.c: Likewise.
31709 * util/grub-probe.c: Likewise.
31710 * util/hostdisk.c: Likewise.
31711 * util/i386/efi/grub-mkimage.c: Likewise.
31712 * util/i386/pc/grub-mkimage.c: Likewise.
31713 * util/i386/pc/grub-setup.c: Likewise.
31714 * util/ieee1275/ofpath.c: Likewise.
31715 * util/mkisofs/eltorito.c: Likewise.
31716 * util/mkisofs/rock.c: Likewise.
31717 * util/mkisofs/write.c: Likewise.
31718 * util/raid.c: Likewise.
31719 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31720 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31721
31722 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31723
31724 Enable multiboot on non-pc.
31725
31726 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31727 multiboot.mod and multiboot2.mod to ...
31728 * conf/i386.rmk (pkglib_MODULES): ... here.
31729 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31730 Moved to ...
31731 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31732 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31733 Moved to ...
31734 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31735 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31736 Moved to ...
31737 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31738 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31739 Moved to ...
31740 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31741 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31742 relocator.mod.
31743 (ata_mod_SOURCES): Removed.
31744 (ata_mod_CFLAGS): Likewise.
31745 (ata_mod_LDFLAGS): Likewise.
31746 (relocator_mod_SOURCES): Removed.
31747 (relocator_mod_CFLAGS): Likewise.
31748 (relocator_mod_ASFLAGS): Likewise.
31749 (relocator_mod_LDFLAGS): Likewise.
31750 Include i386.mk.
31751 * include/grub/x86_64/multiboot.h: New file.
31752 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31753 Terminate EFI.
31754
31755 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31756
31757 Video multiboot support.
31758
31759 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31760 New prototype.
31761 * include/multiboot.h: Resynced with multiboot specification.
31762 * include/multiboot2.h: Likewise.
31763 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31764 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31765 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31766 (HAS_VGA_TEXT): Likewise.
31767 (accepts_video): New variable.
31768 (grub_multiboot_set_accepts_video): New function.
31769 (grub_multiboot_get_mbi_size): Account for video structures.
31770 (set_video_mode): New function.
31771 (retrieve_video_parameters): Likewise.
31772 (grub_multiboot_make_mbi): Fill video fields.
31773
31774 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31775
31776 Video driver ids.
31777
31778 * include/grub/video.h (grub_video_driver_id): New type.
31779 (grub_video_adapter): New member 'id'. All users updated.
31780 (grub_video_get_driver_id): New proto.
31781 * video/video.c (grub_video_get_driver_id): New function.
31782
31783 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31784
31785 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31786 `var=val'.
31787
31788 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31789
31790 * normal/cmdline.c (print_completion): Gettextizze.
31791
31792 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31793
31794 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31795
31796 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31797
31798 * gettext/gettext.c (grub_gettext_translate): Push and pop
31799 grub_errno.
31800 (grub_gettext_delete_list): Change comment style.
31801 * kern/err.c (grub_error): Gettextizze.
31802 (grub_fatal): Gettextizze.
31803
31804 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31805
31806 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31807 (grub_linux16_real_boot): ... this.
31808 * kern/i386/loader.S: Likewise.
31809 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31810 (grub_linux16_boot): New function. Switches to text mode and calls
31811 grub_linux16_real_boot().
31812
31813 * loader/i386/bsd.c: Include `<grub/video.h>'.
31814 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31815 text mode before calling grub_unix_real_boot().
31816
31817 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31818 (grub_multiboot_boot): Switch to text mode before calling
31819 grub_relocator32_boot().
31820
31821 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31822 (grub_chainloader_boot): Switch to text mode before calling
31823 grub_chainloader_real_boot().
31824
31825 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31826 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31827
31828 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31829 non-empty value.
31830
31831 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31832 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31833
31834 * util/grub.d/00_header.in: Define a "savedefault" function for use
31835 in menu entries.
31836 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31837
31838 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31839 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31840
31841 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31842 saved_entry if boot_once is unset.
31843 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31844 previous saved entry (i.e. grub-reboot).
31845
31846 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31847
31848 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31849
31850 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31851
31852 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31853 `var=val'.
31854 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31855
31856 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31857
31858 * util/grub-reboot.in: Fix --version output.
31859 * util/grub-set-default.in: Likewise.
31860
31861 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31862
31863 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31864 blocks.
31865
31866 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31867
31868 * util/grub.d/00_header.in: Quote the value assigned to `default',
31869 in case it contains spaces.
31870
31871 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31872
31873 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31874 `save_default_entry' call from the macosx case to the linux case.
31875
31876 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31877 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31878
31879 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31880 in `chosen' environment variable.
31881 * normal/menu_text.c (get_entry_number): Check if the variable
31882 matches the title of a menu entry.
31883 (run_menu): Pass menu to get_entry_number.
31884
31885 * util/grub-reboot.in: New file.
31886 * util/grub-set-default.in: New file.
31887 * conf/common.rmk (grub-reboot): New utility.
31888 (grub-set-default): New utility.
31889
31890 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31891 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31892 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31893 move it to `saved_entry' for the next boot. Load environment on
31894 initialisation.
31895 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31896 * util/grub.d/10_hurd.in: Likewise.
31897 * util/grub.d/10_linux.in (linux_entry): Likewise.
31898 * util/grub.d/10_windows.in: Likewise.
31899 * util/grub.d/30_os-prober.in: Likewise.
31900
31901 * util/grub-install.in: Create environment block.
31902 * util/i386/efi/grub-install.in: Likewise.
31903 * util/ieee1275/grub-install.in: Likewise.
31904 * util/sparc64/ieee1275/grub-install.in: Likewise.
31905
31906 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31907
31908 Unit testing framework for GRUB.
31909
31910 * Makefile.in: Test framework build rules for 'make check'.
31911 * conf/tests.rmk: Build rules for individual tests and framework.
31912
31913 * include/grub/test.h: Header file for whitebox tests.
31914 * tests/lib/functional_test.c: Framework support for whitebox
31915 functional tests.
31916 * tests/lib/test.c: Common whitebox testing code for unit and
31917 functional tests.
31918 * tests/lib/unit_test.c: Framework support for whitebox unit
31919 tests.
31920
31921 * tests/util/grub-shell-tester.in: Support utility for grub-script
31922 tests.
31923 * tests/util/grub-shell.in: Utility to execute grub-script
31924 commands in a Qemu instance.
31925
31926 * tests/example_functional_test.c: Example whitebox functional
31927 test.
31928 * tests/example_grub_script_test.in: Example grub-script test.
31929 * tests/example_scripted_test.in: Example scripted test.
31930 * tests/example_unit_test.c: Example whitebox unit test.
31931
31932 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31933
31934 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31935 Add loader/i386/multiboot_mbi.c.
31936 (multiboot2_mod_SOURCES): Likewise.
31937 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31938 (multiboot2_mod_SOURCES): Likewise.
31939 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31940 (grub_multiboot_make_mbi): Likewise.
31941 (grub_multiboot_free_mbi): Likewise.
31942 (grub_multiboot_init_mbi): Likewise.
31943 (grub_multiboot_add_module): Likewise.
31944 (grub_multiboot_set_bootdev): Likewise.
31945 * loader/i386/multiboot.c (mbi): Removed.
31946 (mbi_dest): Likewise.
31947 (alloc_mbi): New variable.
31948 (grub_multiboot_payload_size): Removed. All users updated.
31949 (grub_multiboot_pure_size): New variable.
31950 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31951 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31952 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31953 (grub_fill_multiboot_mmap): Likewise.
31954 (grub_multiboot_get_bootdev): Likewise.
31955 (grub_multiboot): Use multiboot_mbi functions.
31956 * loader/i386/multiboot_mbi.c: New file.
31957
31958 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31959
31960 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31961 it would result in module crash.
31962
31963 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31964
31965 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31966 (grub_ofconsole_getwh): Split to ...
31967 (grub_ofconsole_getwh): ... this.
31968 (grub_ofconsole_dimensions): ...and this.
31969 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31970
31971 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31972
31973 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31974
31975 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31976
31977 * loader/i386/pc/multiboot2.c: Removed stalled file.
31978
31979 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31980
31981 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31982 Reported by: Grégoire Sutre
31983
31984 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31985
31986 * util/misc.c (canonicalize_file_name): New function.
31987 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31988 instead of realpath().
31989
31990 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31991
31992 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31993 and make it clearer that it's optional. Based on confusion
31994 witnessed on IRC.
31995
31996 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31997
31998 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31999 in premature implicit newline.
32000
32001 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32002
32003 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32004 which resulted in garbled command line at the end of screen.
32005
32006 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32007
32008 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32009 initialization with similar approach as with other Linux loaders.
32010
32011 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32012
32013 Fix i386-ieee1275 build.
32014
32015 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32016 and grub_term_height() for video_{width,height} initialization.
32017
32018 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32019
32020 Fix grub-emu build.
32021
32022 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32023
32024 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32025 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32026
32027 Support for multiple terminals.
32028
32029 * Makefile.in (pkglib_DATA): terminal.lst.
32030 (terminal.lst): New target.
32031 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32032 (GRUB_MOD_INIT(handler)): Likewise.
32033 (GRUB_MOD_FINI(handler)): Likewise.
32034 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32035 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32036 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32037 (grub_cmd_sleep): Use grub_term_save_pos.
32038 * commands/terminal.c: New file.
32039 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32040 commands/terminal.c and lib/charset.c.
32041 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32042 (pkglib_MODULES): Add terminal.mod.
32043 (terminal_mod_SOURCES): New variable.
32044 (terminal_mod_CFLAGS): Likewise.
32045 (terminal_mod_LDFLAGS): Likewise.
32046 * genhandlerlist.sh: Don't handle terminals.
32047 * genmk.rb: Generate terminal-*.lst.
32048 * genterminallist.sh: New file.
32049 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32050 (grub_is_valid_utf8): Likewise.
32051 (grub_utf8_to_ucs4_alloc): Likewise.
32052 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32053 (grub_menu_register_viewer): Changed argument.
32054 (grub_menu_try_text): New proto.
32055 (grub_gfxmenu_try_hook): New declaration.
32056 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32057 (grub_menu_init_page): Additional argument term.
32058 (grub_normal_init_page): Likewise.
32059 (grub_cmdline_get): Arguments simplified.
32060 (grub_utf8_to_ucs4_alloc): Removed.
32061 (grub_print_ucs4): Additional argument term.
32062 (grub_getstringwidth): Likewise.
32063 (grub_print_message_indented): Likewise.
32064 (grub_menu_text_register_instances): New proto.
32065 (grub_show_menu): Likewise.
32066 (read_terminal_list): Likewise.
32067 (grub_set_more): Likewise.
32068 * include/grub/parser.h: Include handler.h.
32069 * include/grub/reader.h: Rewritten.
32070 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32071 (GRUB_TERM_WIDTH): Changed to function.
32072 (GRUB_TERM_HEIGHT): Likewise.
32073 (GRUB_TERM_BORDER_WIDTH): Likewise.
32074 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32075 (GRUB_TERM_NUM_ENTRIES): Likewise.
32076 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32077 (GRUB_TERM_CURSOR_X): Likewise.
32078 (grub_term_input_class): Likewise.
32079 (grub_term_output_class): Likewise.
32080 (grub_term_outputs_disabled): New declaration.
32081 (grub_term_inputs_disabled): Likewise.
32082 (grub_term_outputs): Likewise.
32083 (grub_term_inputs): Likewise.
32084 (grub_term_register_input): Rewritten.
32085 (grub_term_register_output): Likewise.
32086 (grub_term_unregister_input): Likewise.
32087 (grub_term_unregister_output): Likewise.
32088 (FOR_ACTIVE_TERM_INPUTS): New macro.
32089 (FOR_DISABLED_TERM_INPUTS): Likewise.
32090 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32091 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32092 * include/grub/terminfo.h: Add oterm argument to all protypes.
32093 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32094 Use grub_rescue_run.
32095 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32096 All users updated.
32097 * kern/reader.c: Removed. All users updated.
32098 * kern/rescue_reader.c (grub_rescue_init): Removed.
32099 (grub_rescue_reader): Likewise.
32100 (grub_register_rescue_reader): Likewise.
32101 (grub_rescue_run): New function based on kern/reader.c.
32102 * kern/term.c: Adapted for multiterm.
32103 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32104 (grub_is_valid_utf8): Likewise.
32105 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32106 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32107 right terminal.
32108 * loader/i386/linux.c (grub_linux_boot): Likewise.
32109 * normal/auth.c (grub_username_get): New function.
32110 (grub_auth_check_authentication): Use grub_username_get.
32111 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32112 * normal/color.c: Adapt for multiterm.
32113 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32114 (grub_normal_init_page): Additional argument term.
32115 (read_lists): Call read_terminal_lists.
32116 (grub_enter_normal_mode): Call grub_cmdline_run.
32117 Handle grub_normal_exit_level.
32118 (grub_cmd_normal): Make reentrant.
32119 (grub_cmd_normal_exit): New function.
32120 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32121 * normal/menu.c: Adapt for multiterm.
32122 * normal/menu_entry.c: Likewise.
32123 * normal/menu_text.c: Likewise.
32124 * normal/menu_viewer.c: Removed. All users updated.
32125 * normal/term.c: New file.
32126 * util/console.c: Change order of includes to workaround a bug in
32127 ncurses headers.
32128 * term/terminfo.c: New argument oterm on all exported functions.
32129 All users updated.
32130 * util/grub-editenv.c (grub_term_input_class): Removed.
32131 (grub_term_output_class): Likewise.
32132
32133 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32134
32135 Make loader output a bit more user-friendly.
32136
32137 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32138 is being loaded. Likewise for the Hurd.
32139
32140 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32141 that kernel of FreeBSD ${version} is being loaded.
32142
32143 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32144 grub_dprintf().
32145 (grub_cmd_initrd): Likewise.
32146 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32147 that Linux ${version} is being loaded. Likewise for initrd.
32148
32149 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32150
32151 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32152
32153 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32154
32155 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32156 (GRUB_MOD_INIT): Gettextizze.
32157 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32158 (GRUB_MOD_INIT): Gettextizze.
32159 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32160 (grub_cmd_linux): Capitalise Linux.
32161 (GRUB_MOD_INIT): Gettextizze.
32162 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32163 (grub_cmd_linux): Capitalise Linux.
32164 (GRUB_MOD_INIT): Gettextizze.
32165 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32166 (grub_cmd_linux): Capitalise Linux.
32167 (GRUB_MOD_INIT): Gettextizze.
32168 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32169 (GRUB_MOD_INIT): Gettextizze.
32170 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32171 (grub_cmd_linux): Capitalise Linux.
32172 (GRUB_MOD_INIT): Gettextizze.
32173 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32174 (grub_cpu_xnu_init): Gettextizze.
32175 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32176 (GRUB_MOD_INIT): Gettextizze.
32177 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32178 (GRUB_MOD_INIT): Gettextizze.
32179 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32180 (grub_linux_load64): Capitalise Linux.
32181 (GRUB_MOD_INIT): Gettextizze.
32182 * loader/xnu.c: Include `<grub/i18n.h>'.
32183 (GRUB_MOD_INIT): Gettextizze.
32184 * po/POTFILES: Add `loader/efi/appleloader.c',
32185 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32186 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32187 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32188 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32189 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32190 and `loader/xnu.c'.
32191
32192 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32193
32194 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32195
32196 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32197
32198 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32199 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32200 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32201
32202 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32203
32204 Reset Multiboot 2 support. New loader implements the draft in
32205 /branches/multiboot2 and shares as much code as possible with the
32206 production Multiboot 1 implementation.
32207
32208 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32209 * loader/multiboot2.c: Likewise.
32210 * loader/i386/multiboot_helper.S: Likewise.
32211 * include/multiboot2.h: Replace with latest version from the draft
32212 in /branches/multiboot2.
32213
32214 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32215 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32216 and `loader/multiboot2.c'.
32217 (pkglib_MODULES): Add `multiboot2.mod'.
32218 (multiboot2_mod_SOURCES): New variable.
32219 (multiboot2_mod_LDFLAGS): Likewise.
32220 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32221
32222 * conf/i386-pc.rmk: Likewise.
32223
32224 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32225 (multiboot_mod_SOURCES): Remove variable.
32226 (multiboot_mod_LDFLAGS): Likewise.
32227 (multiboot_mod_CFLAGS): Likewise.
32228
32229 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32230 `<multiboot2.h>' instead of `<multiboot.h>'.
32231 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32232 (MULTIBOOT_HEADER_MAGIC): New macros.
32233
32234 * loader/multiboot_loader.c (module_version_status): Remove variable.
32235 (find_multi_boot2_header): Remove function.
32236 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32237 logic. Always check for the Multiboot version we're compiling for.
32238 (grub_cmd_module_loader): Likewise.
32239 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32240 command instead of `multiboot'.
32241
32242 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32243
32244 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32245 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32246 all users.
32247
32248 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32249 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32250
32251 Fix breakage introduced with previous commit.
32252
32253 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32254 commands.
32255 * normal/handler.c (read_handler_list): Revert part of previous commit
32256 affecting this file.
32257 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32258 (grub_normal_execute): ... here.
32259
32260 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32261
32262 Merge prefix-redefinition-fix branch.
32263
32264 * normal/autofs.c (read_fs_list): Make function capable of being
32265 run multiple times, gracefuly replacing the previous data
32266 structures.
32267 * normal/dyncmd.c (read_command_list): Likewise.
32268 * normal/handler.c (read_handler_list): Likewise.
32269 * normal/main.c (read_lists): New function. Calls all the
32270 list reading functions.
32271 (grub_normal_execute): Use read_lists() instead of calling all
32272 list reading functions explicitly. Register read_lists() as a
32273 variable hook attached to ${prefix}.
32274
32275 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32276
32277 Merge crypto branch.
32278
32279 * Makefile.in (pkglib_DATA): Add crypto.lst.
32280 (crypto.lst): New target.
32281 * commands/hashsum.c: New file.
32282 * commands/password.c (check_password): Use grub_crypto_memcmp.
32283 * commands/password_pbkdf2.c: New file.
32284 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32285 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32286 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32287 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32288 -I$(srcdir)/lib/libgcrypt_wrap.
32289 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32290 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32291 password_pbkdf2.mod.
32292 (crypto_mod_SOURCES): New variable.
32293 (crypto_mod_CFLAGS): Likewise.
32294 (crypto_mod_LDFLAGS): Likewise.
32295 (hashsum_mod_SOURCES): New variable.
32296 (hashsum_mod_CFLAGS): Likewise.
32297 (hashsum_mod_LDFLAGS): Likewise.
32298 (pbkdf2_mod_SOURCES): New variable.
32299 (pbkdf2_mod_CFLAGS): Likewise.
32300 (pbkdf2_mod_LDFLAGS): Likewise.
32301 (password_pbkdf2_mod_SOURCES): New variable.
32302 (password_pbkdf2_mod_CFLAGS): Likewise.
32303 (password_pbkdf2_mod_LDFLAGS): Likewise.
32304 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32305 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32306 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32307 Include conf/gcry.rmk.
32308 * include/grub/auth.h: Rewritten.
32309 * include/grub/crypto.h: New file.
32310 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32311 * include/grub/normal.h (read_crypto_list): New prototype.
32312 * lib/crypto.c: New file.
32313 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32314 * lib/pbkdf2.c: Likewise.
32315 * normal/auth.c (grub_auth_strcmp): Removed.
32316 (grub_iswordseparator): Likewise.
32317 (grub_auth_strword): Likewise.
32318 (is_authenticated): Use grub_strword.
32319 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32320 and grub_strword. Pass entered password to authentication callback.
32321 * normal/crypto.c: New file.
32322 * normal/main.c: Call read_crypto_list.
32323 * util/grub-mkpasswd-pbkdf2.c: New file.
32324 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32325
32326 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32327
32328 Fix descent and ascent calculation.
32329
32330 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32331 (options): New option "asce".
32332 (usage): Likewise.
32333 (add_char): Ignore invalid glyphs for descent calculation.
32334 Calculate ascent from actual content.
32335 (print_glyphs): Use 'asce'.
32336 (write_font): Likewise. Allow ascent override.
32337 (main): Handle "asce" option.
32338
32339 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32340
32341 * kern/err.c: Include `<grub/i18n.h>'.
32342 (grub_print_error): Add full stop. Gettextizze.
32343 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32344 (grub_bsd_load_elf): Capitalise ELF.
32345 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32346 (grub_cmd_freebsd_module): Likewise.
32347 (grub_cmd_freebsd_module_elf): Likewise.
32348 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32349
32350 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32351
32352 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32353 * commands/search_file.c (HELP_MESSAGE): New macro.
32354 * commands/search_label.c (HELP_MESSAGE): Likewise.
32355 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32356 * po/POTFILES: Add `commands/search_file.c',
32357 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32358 `commands/search.c'.
32359
32360 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32361
32362 * config.rpath: Update from Gnulib.
32363
32364 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32365
32366 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32367
32368 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32369
32370 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32371
32372 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32373
32374 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32375 arguments to fread so that we get a return value in bytes, rather
32376 than something that will normally be rounded down to 0.
32377 Adjust error handling to avoid producing garbage when size_t is not
32378 the same size as long long.
32379
32380 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32381
32382 * util/mkisofs/write.c (padblock_write): Check return value of
32383 fread.
32384
32385 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32386
32387 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32388 floppy images now.
32389
32390 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32391
32392 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32393
32394 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32395 instead of manual alignment.
32396 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32397 verbose). Avoid attempts to read past end of the device
32398 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32399 but GRUB_DISK_CACHE_SIZE may exceed that).
32400
32401 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32402
32403 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32404 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32405 it to upper layer.
32406
32407 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32408
32409 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32410 New constant.
32411 (grub_efi_piwg_device_path): New structure
32412 (grub_efi_piwg_device_path_t): New type.
32413 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32414 (devpath_1): Transform to a structure. All users updated.
32415 (devpath_2): Likewise.
32416 (devpath_3): Likewise.
32417 (devpath_4): Likewise.
32418 (devpath_5): Likewise.
32419
32420 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32421
32422 * loader/efi/appleloader.c: Restored. Update all users.
32423
32424 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32425
32426 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32427
32428 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32429 (struct boot_blocklist): Move from here ...
32430 * include/grub/i386/pc/boot.h [ASM_FILE]
32431 (struct grub_boot_blocklist): ... to here. Update all users.
32432 (setup): Only initialize `start' member of `first_block'
32433 structure. Add assert() calls to verify the other members.
32434
32435 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32436 (generate_image): Fix broken blocklist length initialization.
32437 Add assert() call to verify blocklist `segment' field.
32438
32439 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32440
32441 * loader/efi/appleloader.c: Remove. Update all users.
32442
32443 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32444
32445 * boot/i386/pc/boot.S: Update copyright year.
32446 * boot/i386/pc/cdboot.S: Likewise.
32447 * boot/i386/pc/diskboot.S: Likewise.
32448 * boot/i386/pc/lnxboot.S: Likewise.
32449 * boot/i386/pc/pxeboot.S: Likewise.
32450 * bus/pci.c: Likewise.
32451 * commands/cmp.c: Likewise.
32452 * commands/help.c: Likewise.
32453 * commands/hexdump.c: Likewise.
32454 * commands/i386/pc/halt.c: Likewise.
32455 * commands/i386/pc/play.c: Likewise.
32456 * commands/i386/pc/vbeinfo.c: Likewise.
32457 * commands/ls.c: Likewise.
32458 * commands/test.c: Likewise.
32459 * disk/dmraid_nvidia.c: Likewise.
32460 * disk/i386/pc/biosdisk.c: Likewise.
32461 * disk/ieee1275/nand.c: Likewise.
32462 * disk/ieee1275/ofdisk.c: Likewise.
32463 * disk/lvm.c: Likewise.
32464 * disk/raid.c: Likewise.
32465 * disk/raid6_recover.c: Likewise.
32466 * disk/scsi.c: Likewise.
32467 * fs/affs.c: Likewise.
32468 * fs/cpio.c: Likewise.
32469 * fs/ext2.c: Likewise.
32470 * fs/hfs.c: Likewise.
32471 * fs/iso9660.c: Likewise.
32472 * fs/ntfs.c: Likewise.
32473 * fs/sfs.c: Likewise.
32474 * fs/udf.c: Likewise.
32475 * fs/ufs.c: Likewise.
32476 * fs/xfs.c: Likewise.
32477 * gencmdlist.sh: Likewise.
32478 * genmk.rb: Likewise.
32479 * include/grub/disk.h: Likewise.
32480 * include/grub/efi/api.h: Likewise.
32481 * include/grub/efi/efi.h: Likewise.
32482 * include/grub/efi/pe32.h: Likewise.
32483 * include/grub/elf.h: Likewise.
32484 * include/grub/fs.h: Likewise.
32485 * include/grub/i386/at_keyboard.h: Likewise.
32486 * include/grub/i386/pc/memory.h: Likewise.
32487 * include/grub/i386/pc/vbe.h: Likewise.
32488 * include/grub/i386/pci.h: Likewise.
32489 * include/grub/i386/tsc.h: Likewise.
32490 * include/grub/ieee1275/ieee1275.h: Likewise.
32491 * include/grub/ntfs.h: Likewise.
32492 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32493 * include/grub/sparc64/libgcc.h: Likewise.
32494 * include/grub/symbol.h: Likewise.
32495 * include/grub/types.h: Likewise.
32496 * include/multiboot2.h: Likewise.
32497 * io/gzio.c: Likewise.
32498 * kern/device.c: Likewise.
32499 * kern/disk.c: Likewise.
32500 * kern/efi/efi.c: Likewise.
32501 * kern/efi/mm.c: Likewise.
32502 * kern/elf.c: Likewise.
32503 * kern/file.c: Likewise.
32504 * kern/i386/dl.c: Likewise.
32505 * kern/i386/pc/init.c: Likewise.
32506 * kern/i386/pc/startup.S: Likewise.
32507 * kern/ieee1275/ieee1275.c: Likewise.
32508 * kern/ieee1275/init.c: Likewise.
32509 * kern/main.c: Likewise.
32510 * kern/mm.c: Likewise.
32511 * kern/powerpc/dl.c: Likewise.
32512 * kern/sparc64/dl.c: Likewise.
32513 * kern/x86_64/dl.c: Likewise.
32514 * lib/hexdump.c: Likewise.
32515 * loader/efi/appleloader.c: Likewise.
32516 * loader/i386/ieee1275/linux.c: Likewise.
32517 * loader/i386/pc/chainloader.c: Likewise.
32518 * loader/i386/pc/linux.c: Likewise.
32519 * loader/i386/pc/multiboot2.c: Likewise.
32520 * loader/ieee1275/multiboot2.c: Likewise.
32521 * loader/multiboot2.c: Likewise.
32522 * loader/multiboot_loader.c: Likewise.
32523 * loader/powerpc/ieee1275/linux.c: Likewise.
32524 * normal/completion.c: Likewise.
32525 * normal/menu_entry.c: Likewise.
32526 * partmap/apple.c: Likewise.
32527 * util/grub.d/10_hurd.in: Likewise.
32528 * util/hostfs.c: Likewise.
32529 * video/readers/png.c: Likewise.
32530
32531 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32532
32533 * include/grub/misc.h (GNUC_PREREQ): New macro.
32534 (ATTRIBUTE_ERROR): New macro.
32535 * include/grub/list.h (grub_bad_type_cast_real): Use
32536 ATTRIBUTE_ERROR.
32537
32538 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32539
32540 * normal/menu_text.c (print_message): Change messages.
32541
32542 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32543
32544 * normal/menu_entry.c (store_completion): Gettextizze.
32545
32546 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32547
32548 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32549
32550 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32551
32552 * po/POTFILES: Sort correctly.
32553
32554 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32555
32556 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32557 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32558 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32559 full stop.
32560 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32561 summary. Gettextizze the strings.
32562 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32563 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32564 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32565 full stop.
32566 (GRUB_MOD_INIT): Remove command name from summary.
32567 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32568 summary.
32569 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32570 * term/i386/pc/serial.c (options): Add full stops.
32571 (GRUB_MOD_INIT): Remove command name from the summary.
32572
32573 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32574
32575 * commands/acpi.c: Gettextizze help strings and/or options. Include
32576 `grub/i18n.h' if needed.
32577 * commands/blocklist.c: Likewise.
32578 * commands/boot.c: Likewise.
32579 * commands/cat.c: Likewise.
32580 * commands/cmp.c: Likewise.
32581 * commands/configfile.c: Likewise.
32582 * commands/crc.c: Likewise.
32583 * commands/date.c: Likewise.
32584 * commands/echo.c: Likewise.
32585 * commands/efi/fixvideo.c: Likewise.
32586 * commands/efi/loadbios.c: Likewise.
32587 * commands/gptsync.c: Likewise.
32588 * commands/halt.c: Likewise.
32589 * commands/handler.c: Likewise.
32590 * commands/hdparm.c: Likewise.
32591 * commands/hexdump.c: Likewise.
32592 * commands/i386/cpuid.c: Likewise.
32593 * commands/i386/pc/drivemap.c: Likewise.
32594 * commands/i386/pc/halt.c: Likewise.
32595 * commands/i386/pc/pxecmd.c: Likewise.
32596 * commands/i386/pc/vbeinfo.c: Likewise.
32597 * commands/i386/pc/vbetest.c: Likewise.
32598 * commands/ieee1275/suspend.c: Likewise.
32599 * commands/keystatus.c: Likewise.
32600 * commands/loadenv.c: Likewise.
32601 * commands/ls.c: Likewise.
32602 * commands/lsmmap.c: Likewise.
32603 * commands/lspci.c: Likewise.
32604 * commands/memrw.c: Likewise.
32605 * commands/minicmd.c: Likewise.
32606 * commands/parttool.c: Likewise.
32607 * commands/password.c: Likewise.
32608 * commands/probe.c: Likewise.
32609 * commands/read.c: Likewise.
32610 * commands/reboot.c: Likewise.
32611 * commands/search.c: Likewise.
32612 * commands/sleep.c: Likewise.
32613 * commands/test.c: Likewise.
32614 * commands/true.c: Likewise.
32615 * commands/usbtest.c: Likewise.
32616 * commands/videotest.c: Likewise.
32617 * commands/xnu_uuid.c: Likewise.
32618 * disk/loopback.c: Likewise.
32619 * hello/hello.c: Likewise.
32620 * loader/i386/bsd.c: Likewise.
32621 * term/i386/pc/serial.c: Likewise.
32622 * po/POTFILES: Add new files.
32623
32624 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32625
32626 * term/i386/pc/at_keyboard.c
32627 (keyboard_controller_wait_untill_ready): Rename to ...
32628 (keyboard_controller_wait_until_ready): ... this. Update all users.
32629
32630 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32631
32632 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32633 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32634 string using string width.
32635 * normal/menu_text.c (grub_print_message_indented): Use
32636 grub_print_spaces and not print_spaces.
32637 (print_timeout): Likewise.
32638 (print_spaces): Move to...
32639 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32640
32641 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32642
32643 Import from Gnulib.
32644
32645 * gnulib/getdelim.c: New file.
32646 * gnulib/getline.c: Likewise.
32647
32648 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32649
32650 * include/grub/list.h (grub_assert_fail): Removed.
32651 (grub_bad_type_cast_real): New function.
32652 (grub_bad_type_cast): New macro.
32653 (GRUB_AS_LIST): Use grub_bad_type_cast.
32654 (GRUB_AS_LIST_P): Likewise.
32655 (GRUB_AS_NAMED_LIST): Likewise.
32656 (GRUB_AS_NAMED_LIST_P): Likewise.
32657 (GRUB_AS_PRIO_LIST): Likewise.
32658 (GRUB_AS_PRIO_LIST_P): Likewise.
32659 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32660
32661 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32662
32663 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32664 Fix syntax error.
32665
32666 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32667
32668 * configure.ac: Check for TARGET_CFLAGS initialization before we
32669 initialize it ourselves (sigh).
32670 Move a few modifications to TARGET_CFLAGS to be unconditional
32671 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32672 eh_frame)
32673
32674 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32675 * term/i386/pc/at_keyboard.c
32676 (keyboard_controller_wait_untill_ready): Likewise.
32677 (keyboard_controller_led): Rename `led_status' paramter to avoid
32678 name conflict.
32679
32680 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32681
32682 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32683 quotes.
32684
32685 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32686
32687 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32688
32689 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32690
32691 * normal/menu_text.c (grub_print_message_indented): Prevent
32692 past-the-end-of-array dereference.
32693
32694 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32695
32696 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32697 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32698
32699 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32700
32701 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32702 * normal/main.c (grub_normal_read_line): Remove a space from the
32703 default prompt.
32704
32705 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32706
32707 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32708 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32709 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32710 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32711 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32712 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32713 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32714
32715 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32716
32717 * video/readers/jpeg.c (cmd): Declare.
32718 (grub_cmd_jpegtest): Use `grub_command_t' type.
32719 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32720 Assign to `cmd'.
32721 (GRUB_MOD_FINI): Use `cmd' to unregister.
32722 * video/readers/png.c (cmd): Declare.
32723 (grub_cmd_pngtest): Use `grub_command_t' type.
32724 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32725 Assign to `cmd'.
32726 (GRUB_MOD_FINI): Use `cmd' to unregister.
32727 * video/readers/tga.c (cmd): Declare.
32728 (grub_cmd_tgatest): Use `grub_command_t' type.
32729 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32730 Assign to `cmd'.
32731 (GRUB_MOD_FINI): Use `cmd' to unregister.
32732
32733 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32734
32735 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32736 stops.
32737 * kern/corecmd.c (grub_register_core_commands): Likewise.
32738 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32739 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32740 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32741 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32742 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32743 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32744 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32745 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32746 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32747 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32748 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32749 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32750 * normal/handler.c (insert_handler): Likewise.
32751 * normal/main.c (GRUB_MOD_INIT): Likewise.
32752 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32753
32754 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32755
32756 * commands/help.c (grub_cmd_help): Print the command name before the
32757 summary.
32758 (GRUB_MOD_INIT): Remove command name from the summary.
32759 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32760 string as summary.
32761 * lib/arg.c (find_long): Print the command name before the summary.
32762 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32763 summary.
32764 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32765 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32766 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32767 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32768 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32769 * commands/date.c (GRUB_MOD_INIT): Likewise.
32770 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32771 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32772 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32773 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32774 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32775 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32776 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32777 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32778 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32779 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32780 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32781 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32782 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32783 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32784 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32785 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32786 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32787 * commands/password.c (GRUB_MOD_INIT): Likewise.
32788 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32789 * commands/read.c (GRUB_MOD_INIT): Likewise.
32790 * commands/search.c (GRUB_MOD_INIT): Likewise.
32791 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32792 * commands/test.c (GRUB_MOD_INIT): Likewise.
32793 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32794 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32795 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32796 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32797 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32798 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32799 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32800 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32801 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32802 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32803 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32804 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32805 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32806 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32807
32808 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32809
32810 Use search command for preliminar UUID search.
32811
32812 * commands/search.c: Split into ...
32813 * commands/search_wrap.c: ...this
32814 * commands/search.c: ...and this.
32815 * commands/search_file.c: New file.
32816 * commands/search_label.c: New file.
32817 * commands/search_uuid.c: New file.
32818 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32819 Add commands/search_wrap.c, commands/search_file.c,
32820 commands/search_label.c and commands/search_uuid.c.
32821 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32822 (search_mod_SOURCES): Set to commands/search_wrap.c.
32823 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32824 search_label.mod.
32825 (search_fs_file_mod_SOURCES): New variable.
32826 (search_fs_file_mod_CFLAGS): Likewise.
32827 (search_fs_file_mod_LDFLAGS): Likewise.
32828 (search_label_mod_SOURCES): Likewise.
32829 (search_label_mod_CFLAGS): Likewise.
32830 (search_label_mod_LDFLAGS): Likewise.
32831 (search_fs_uuid_mod_SOURCES): New variable.
32832 (search_fs_uuid_mod_CFLAGS): Likewise.
32833 (search_fs_uuid_mod_LDFLAGS): Likewise.
32834 (fs_file_mod_SOURCES): Removed.
32835 (fs_file_mod_CFLAGS): Likewise.
32836 (fs_file_mod_LDFLAGS): Likewise.
32837 (fs_uuid_mod_SOURCES): Removed.
32838 (fs_uuid_mod_CFLAGS): Likewise.
32839 (fs_uuid_mod_LDFLAGS): Likewise.
32840 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32841 Set to util/grub-install.in.
32842 * disk/fs_file.c: Removed.
32843 * disk/fs_uuid.c: Likewise.
32844 * include/grub/search.h: New file.
32845 * util/grub-install.in: Handle sparc64.
32846 Create and use load.cfg.
32847 * util/sparc64/ieee1275/grub-install.in: Removed.
32848
32849 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32850
32851 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32852 Ignore return status if CF is cleared.
32853 (grub_biosdisk_get_diskinfo_standard): Likewise.
32854
32855 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32856
32857 * term/i386/pc/at_keyboard.c
32858 (keyboard_controller_wait_untill_ready): New function.
32859 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32860 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32861 for keyboard polling, rather than duplicate the same loop. This
32862 saves a few bytes in code size.
32863
32864 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32865
32866 Support for (pxe[:server[:gateway]]) syntax and
32867 use environment variable for PXE.
32868
32869 * commands/i386/pc/pxecmd.c (options): Removed.
32870 (print_ip): Removed.
32871 (grub_cmd_pxe): Removed
32872 (grub_cmd_pxe_unload): New function.
32873 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32874 (grub_pxe_your_ip): Made static.
32875 (grub_pxe_default_server_ip): Likewise.
32876 (grub_pxe_default_gateway_ip): Likewise.
32877 (grub_pxe_blksize): Likewise.
32878 (parse_ip): New function.
32879 (grub_pxe_open): Support server and gateway specification.
32880 (grub_pxe_close): Free disk->data.
32881 (grub_pxefs_open): Use disk->data.
32882 (grub_pxefs_read): Likewise.
32883 (grub_env_write_readonly): New function.
32884 (set_mac_env): Likewise.
32885 (set_env_limn_ro): Likewise.
32886 (parse_dhcp_vendor): Likewise.
32887 (grub_pxe_detect): Set the environment variables.
32888 (set_ip_env): New function.
32889 (write_ip_env): Likewise.
32890 (grub_env_write_pxe_default_server): Likewise.
32891 (grub_env_write_pxe_default_gateway): Likewise.
32892 (grub_env_write_pxe_blocksize): Likewise.
32893 (GRUB_MOD_INIT(pxe)): Set environment variables.
32894 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32895 (grub_pxe_mac_addr_t): ... this. All users updated.
32896 (grub_pxe_your_ip): Removed.
32897 (grub_pxe_server_ip): Likewise.
32898 (grub_pxe_gateway_ip): Likewise.
32899 (grub_pxe_blksize): Likewise.
32900
32901 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32902
32903 * commands/help.c: Include `<grub/i18n.h>'.
32904 (grub_cmd_help): Gettextizze.
32905 (GRUB_MOD_INIT): Likewise.
32906 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32907 (GRUB_MOD_INIT): Gettextizze.
32908 * commands/search.c: Include `<grub/i18n.h>'.
32909 (options): Gettextizze.
32910 (GRUB_MOD_INIT): Gettextizze.
32911 * lib/arg.c: Include `<grub/i18n.h>'.
32912 (help_options): Gettextizze.
32913 (find_long): Likewise.
32914 (grub_arg_show_help): Likewise.
32915 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32916 (read_command_list): Gettextizze.
32917 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32918 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32919
32920 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32921
32922 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32923 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32924 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32925 (led_status): New variable.
32926 (keyboard_controller_led): New function.
32927 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32928 update led status for caps lock, num lock and scroll lock.
32929
32930 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32931
32932 * util/hostdisk.c (open_device): Fix a comment.
32933
32934 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32935
32936 * util/grub-install.in (host_os): New variable.
32937 * util/i386/efi/grub-install.in (host_os): Likewise.
32938
32939 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32940
32941 * util/mkisofs/write.c (padblock_write): Abort when given an
32942 excedingly large embed image, instead of silently truncating it.
32943
32944 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32945
32946 * include/multiboot.h: Indentation fixes.
32947
32948 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32949
32950 * include/multiboot.h (struct multiboot_aout_symbol_table)
32951 (struct multiboot_elf_section_header_table): New structure
32952 declarations (stolen from GRUB Legacy).
32953 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32954 table information.
32955
32956 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32957 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32958 type aliases.
32959
32960 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32961
32962 * include/multiboot.h: Make comments src2texi-friendly.
32963
32964 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32965
32966 For consistency with [multiboot]/docs/boot.S.
32967
32968 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32969 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32970 (MULTIBOOT_MAGIC2): Rename from this ...
32971 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32972
32973 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32974
32975 * include/multiboot.h: Remove `<grub/types.h>'.
32976 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32977 types. Update all users.
32978
32979 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32980
32981 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32982 `couldn't' and `can not' by `cannot'.
32983 * commands/i386/pc/drivemap.c: Likewise.
32984 * disk/ata.c: Likewise.
32985 * disk/ieee1275/nand.c: Likewise.
32986 * fs/affs.c: Likewise.
32987 * fs/fat.c: Likewise.
32988 * fs/hfs.c: Likewise.
32989 * fs/hfsplus.c: Likewise.
32990 * fs/iso9660.c: Likewise.
32991 * fs/jfs.c: Likewise.
32992 * fs/minix.c: Likewise.
32993 * fs/reiserfs.c: Likewise.
32994 * fs/sfs.c: Likewise.
32995 * fs/udf.c: Likewise.
32996 * fs/ufs.c: Likewise.
32997 * fs/xfs.c: Likewise.
32998 * loader/powerpc/ieee1275/linux.c: Likewise.
32999 * loader/sparc64/ieee1275/linux.c: Likewise.
33000 * util/grub-probe.c: Likewise.
33001 * util/misc.c: Likewise.
33002
33003 2009-12-24 Carles Pina i Estany <carles@pina.cat>
33004
33005 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33006 grub_errno calls.
33007 * commands/acpi.c: Likewise.
33008 * commands/blocklist.c: Likewise.
33009 * commands/efi/loadbios.c: Likewise.
33010 * commands/i386/pc/drivemap.c: Likewise.
33011 * commands/loadenv.c: Likewise.
33012 * commands/memrw.c: Likewise.
33013 * commands/password.c: Likewise.
33014 * commands/videotest.c: Likewise.
33015 * disk/ata.c: Likewise.
33016 * disk/ata_pthru.c: Likewise.
33017 * disk/dmraid_nvidia.c: Likewise.
33018 * disk/ieee1275/nand.c: Likewise.
33019 * disk/ieee1275/ofdisk.c: Likewise.
33020 * disk/loopback.c: Likewise.
33021 * disk/lvm.c: Likewise.
33022 * disk/mdraid_linux.c: Likewise.
33023 * disk/raid.c: Likewise.
33024 * disk/raid6_recover.c: Likewise.
33025 * disk/scsi.c: Likewise.
33026 * efiemu/main.c: Likewise.
33027 * efiemu/mm.c: Likewise.
33028 * efiemu/pnvram.c: Likewise.
33029 * efiemu/symbols.c: Likewise.
33030 * font/font.c: Likewise.
33031 * fs/cpio.c: Likewise.
33032 * fs/hfsplus.c: Likewise.
33033 * fs/iso9660.c: Likewise.
33034 * fs/jfs.c: Likewise.
33035 * fs/minix.c: Likewise.
33036 * fs/ntfs.c: Likewise.
33037 * fs/ntfscomp.c: Likewise.
33038 * fs/reiserfs.c: Likewise.
33039 * fs/ufs.c: Likewise.
33040 * fs/xfs.c: Likewise.
33041 * gettext/gettext.c: Likewise.
33042 * include/grub/auth.h: Likewise.
33043 * kern/elf.c: Likewise.
33044 * kern/file.c: Likewise.
33045 * kern/ieee1275/init.c: Likewise.
33046 * kern/ieee1275/mmap.c: Likewise.
33047 * kern/ieee1275/openfw.c: Likewise.
33048 * kern/powerpc/dl.c: Likewise.
33049 * kern/sparc64/dl.c: Likewise.
33050 * lib/arg.c: Likewise.
33051 * loader/i386/bsd.c: Likewise.
33052 * loader/i386/bsdXX.c: Likewise.
33053 * loader/i386/efi/linux.c: Likewise.
33054 * loader/i386/efi/xnu.c: Likewise.
33055 * loader/i386/ieee1275/linux.c: Likewise.
33056 * loader/i386/linux.c: Likewise.
33057 * loader/i386/multiboot.c: Likewise.
33058 * loader/i386/pc/linux.c: Likewise.
33059 * loader/i386/pc/multiboot2.c: Likewise.
33060 * loader/i386/xnu.c: Likewise.
33061 * loader/ieee1275/multiboot2.c: Likewise.
33062 * loader/macho.c: Likewise.
33063 * loader/machoXX.c: Likewise.
33064 * loader/multiboot2.c: Likewise.
33065 * loader/multiboot_loader.c: Likewise.
33066 * loader/powerpc/ieee1275/linux.c: Likewise.
33067 * loader/sparc64/ieee1275/linux.c: Likewise.
33068 * loader/xnu.c: Likewise.
33069 * loader/xnu_resume.c: Likewise.
33070 * mmap/i386/pc/mmap.c: Likewise.
33071 * normal/menu_viewer.c: Likewise.
33072 * partmap/acorn.c: Likewise.
33073 * partmap/amiga.c: Likewise.
33074 * partmap/apple.c: Likewise.
33075 * script/lexer.c: Likewise.
33076 * term/gfxterm.c: Likewise.
33077 * term/i386/pc/serial.c: Likewise.
33078 * term/i386/pc/vga.c: Likewise.
33079 * term/ieee1275/ofconsole.c: Likewise.
33080 * term/terminfo.c: Likewise.
33081 * video/bitmap.c: Likewise.
33082 * video/efi_gop.c: Likewise.
33083 * video/efi_uga.c: Likewise.
33084 * video/fb/video_fb.c: Likewise.
33085 * video/i386/pc/vbe.c: Likewise.
33086 * video/readers/tga.c: Likewise.
33087 * video/video.c: Likewise.
33088
33089 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33090
33091 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33092 * commands/lspci.c: Likewise.
33093 * commands/probe.c: Likewise.
33094 * commands/xnu_uuid.c: Likewise.
33095 * conf/i386-coreboot.rmk: Likewise.
33096 * conf/i386-efi.rmk: Likewise.
33097 * conf/i386-ieee1275.rmk: Likewise.
33098 * conf/i386-pc.rmk: Likewise.
33099 * conf/powerpc-ieee1275.rmk: Likewise.
33100 * conf/sparc64-ieee1275.rmk: Likewise.
33101 * conf/x86_64-efi.rmk: Likewise.
33102 * fs/i386/pc/pxe.c: Likewise.
33103 * gettext/gettext.c: Likewise.
33104 * include/grub/efi/graphics_output.h: Likewise.
33105 * include/grub/i386/pc/memory.h: Likewise.
33106 * kern/env.c: Likewise.
33107 * kern/i386/qemu/startup.S: Likewise.
33108 * lib/i386/pc/biosnum.c: Likewise.
33109 * lib/i386/relocator.c: Likewise.
33110 * lib/i386/relocator_asm.S: Likewise.
33111 * lib/relocator.c: Likewise.
33112 * loader/i386/bsd.c: Likewise.
33113 * loader/i386/multiboot.c: Likewise.
33114 * loader/i386/pc/chainloader.c: Likewise.
33115 * loader/i386/xnu.c: Likewise.
33116 * loader/xnu.c: Likewise.
33117 * normal/main.c: Likewise.
33118 * normal/menu_text.c: Likewise.
33119 * util/getroot.c: Likewise.
33120 * util/grub-mkconfig_lib.in: Likewise.
33121 * util/grub.d/00_header.in: Likewise.
33122 * util/i386/pc/grub-mkimage.c: Likewise.
33123 * util/mkisofs/eltorito.c: Likewise.
33124 * util/mkisofs/exclude.h: Likewise.
33125 * util/mkisofs/hash.c: Likewise.
33126 * util/mkisofs/iso9660.h: Likewise.
33127 * util/mkisofs/joliet.c: Likewise.
33128 * util/mkisofs/mkisofs.c: Likewise.
33129 * util/mkisofs/mkisofs.h: Likewise.
33130 * util/mkisofs/multi.c: Likewise.
33131 * util/mkisofs/name.c: Likewise.
33132 * util/mkisofs/rock.c: Likewise.
33133 * util/mkisofs/tree.c: Likewise.
33134 * util/mkisofs/write.c: Likewise.
33135 * video/efi_gop.c: Likewise.
33136
33137 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33138
33139 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33140 size counting.
33141
33142 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33143
33144 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33145 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33146
33147 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33148
33149 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33150 (GRUB_MOD_INIT(memrw)): Update help line.
33151
33152 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33153
33154 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33155 Use grub_extcmd_t. All users updated.
33156 (options): New variable.
33157 (grub_cmd_read): Restructure for readability. Support "-v" option.
33158 (grub_cmd_write): Restructure for readability.
33159
33160 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33161
33162 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33163
33164 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33165
33166 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33167 with the actual contents of the correspondending make variable.
33168 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33169 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33170 specifying `*.lst' and `efiemu??.o'
33171
33172 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33173
33174 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33175 after function name.
33176 Noticed by Rene Engelhard <rene@debian.org>.
33177
33178 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33179
33180 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33181 (options): New variable.
33182 (iospace): Likewise.
33183 (grub_lspci_iter): List IO spaces if "-i" was given.
33184 (grub_cmd_lspci): Parse options.
33185 (GRUB_MOD_INIT(lspci)): Use extcmd.
33186 (GRUB_MOD_FINI(lspci)): Likewise.
33187
33188 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33189
33190 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33191 `function' keyword.
33192 Patch by Tony Mancill <tmancill@debian.org>.
33193
33194 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33195
33196 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33197 (grub_uhci_portstatus): Likewise.
33198 (grub_uhci_portstatus): Add necessary delay.
33199 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33200
33201 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33202
33203 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33204 (GRUB_MOD_INIT): Likewise.
33205 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33206 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33207 * commands/echo.c (options): Fix capitalizations and/or full stops.
33208 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33209 (enable_rom_area): Likewise.
33210 (GRUB_MOD_INIT): Likewise.
33211 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33212 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33213 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33214 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33215 * commands/hexdump.c (options): Likewise.
33216 * commands/i386/cpuid.c (options): Likewise.
33217 (GRUB_MOD_INIT): Likewise.
33218 * commands/i386/pc/drivemap.c (options): Likewise.
33219 (GRUB_MOD_INIT): Likewise.
33220 * commands/i386/pc/halt (options): Likewise.
33221 (GRUB_MOD_INIT): Likewise.
33222 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33223 * commands/i386/pc/pxecmd.c (options): Likewise.
33224 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33225 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33226 * commands/keystatus.c (options): Likewise.
33227 (GRUB_MOD_INIT): Likewise.
33228 * commands/loadenv.c (options): Likewise.
33229 * commands/ls.c (options): Likewise.
33230 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33231 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33232 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33233 * commands/parttool.c (helpmsg): Likewise.
33234 * commands/probe.c (options): Likewise.
33235 * commands/read.c (GRUB_MOD_INIT): Likewise.
33236 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33237 * commands/search.c (options): Likewise.
33238 * commands/sleep.c (options): Likewise.
33239 * commands/test.c (GRUB_MOD_INIT): Likewise.
33240 * commands/true.c (GRUB_MOD_INIT): Likewise.
33241 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33242 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33243 * lib/arg.c (help_options): Likewise.
33244 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33245 `$(XGETTEXT)'.
33246 * po/POTFILES: Add `commands/loadenv.c'.
33247
33248 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33249
33250 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33251 instead of specifying them explicit.
33252
33253 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33254
33255 * NEWS: Add grub-probe support for GNU/Hurd.
33256
33257 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33258
33259 * NEWS: gettext was added after 1.97.
33260
33261 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33262
33263 * util/mkisofs/msdos_partition.h: New file (based on
33264 include/grub/msdos_partition.h).
33265 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33266 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33267 (ld_options, main): Recognize --protective-msdos-label.
33268 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33269 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33270 (padblock_write): If `use_protective_msdos_label' is set, patch a
33271 protective DOS-style label in the output image.
33272
33273 * util/grub-mkrescue.in: Use --protective-msdos-label.
33274
33275 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33276
33277 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33278 boot.
33279
33280 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33281
33282 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33283 variables.
33284 (ld_options, main): Recognize `--embedded-boot'.
33285 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33286 declarations.
33287 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33288 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33289 (padblock_write): Likewise. Rewrite to support embedded boot image.
33290
33291 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33292 for BIOS-based disk boot instead of only ElTorito.
33293
33294 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33295
33296 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33297 build (not needed for bootstrap).
33298
33299 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33300
33301 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33302 from i386-pc build (not needed for bootstrap).
33303 Rewrite a pair of strings.
33304
33305 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33306
33307 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33308
33309 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33310
33311 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33312
33313 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33314
33315 * kern/env.c (grub_env_context_open): Mark exported variable for
33316 reexport.
33317
33318 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33319
33320 * kern/env.c (grub_env_export): Create nonexistent variables before
33321 exporting.
33322
33323 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33324
33325 * include/grub/auth.h: Include `<grub/i18n.h>'.
33326 (GRUB_GET_PASSWORD): Gettextizze string.
33327 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33328 menu_text.c.
33329 (grub_utf8_to_ucs4_alloc): Fix indentation.
33330 (grub_print_ucs4): Likewise.
33331 (grub_getstringwidth): Likewise.
33332 (print_message_indented): New declaration.
33333 * normal/auth.c: Include `<grub/i18n.h>'.
33334 (grub_auth_check_authentication): Gettexttize string.
33335 * normal/cmdline.c: Include `<grub/i18n.h>'.
33336 (grub_cmdline_get): Gettextizze.
33337 * normal/color.c: Include `<grub/i18n.h>'.
33338 (grub_parse_color_name_pair): Gettexttize strings.
33339 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33340 string (use `print_message_indented').
33341 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33342 `include/grub/normal.h'.
33343 (print_message_indented): Renamed to ...
33344 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33345 used in normal/main.c).
33346 (print_message): Use `grub_print_message_indented' instead of
33347 `print_message_indented'.
33348 (print_timeout): Likewise.
33349 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33350 (grub_normal_print_device_info): Gettexttize strings.
33351 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33352
33353 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33354
33355 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33356 of arguments. Return number of tokens and not arguments. All users
33357 updated.
33358
33359 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33360
33361 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33362 non-MSDOS paritions.
33363
33364 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33365
33366 * include/grub/types.h (UNUSED): Removed since it conflicts with
33367 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33368 Reported by Grégoire Sutre.
33369
33370 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33371
33372 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33373 (grub_print_ucs4_alloc): Likewise.
33374 (grub_getstringwidth): Likewise.
33375 * normal/main.c (grub_normal_init_page): Gettextize version string.
33376 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33377 (getstringwidth): Renamed to ...
33378 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33379 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33380 (grub_print_ucs4): Remove `static' qualifer (now used in
33381 normal/main.c).
33382 * po/POTFILES: Add normal/main.c.
33383
33384 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33385
33386 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33387 (print_message_indented): Add `margin_left' and `margin_right'
33388 parameters.
33389 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33390 strings.
33391 (print_timeout): Use `print_message_indented' to print the message.
33392 Deletes `second_stage' parameter.
33393 (run_menu): Update `print_timeout' calls.
33394
33395 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33396
33397 Fix console palette on OpenFirmware.
33398
33399 * term/ieee1275/ofconsole.c (MAX): Removed.
33400 (colors): Redone based on VGA palette.
33401 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33402 colors are supported.
33403 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33404
33405 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33406
33407 Fix potential EfiEmu double prepare.
33408
33409 * efiemu/main.c (prepared): New variable
33410 (grub_efiemu_unload): Set prepare to '0'.
33411 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33412
33413 set_virtual_address_map support.
33414
33415 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33416 prototype.
33417 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33418 prototype.
33419 (grub_efiemu_crc32): Likewise.
33420 (grub_efiemu_crc64): Likewise.
33421 (grub_efiemu_set_virtual_address_map): Likewise.
33422 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33423 New definition.
33424 (grub_autoefi_set_virtual_address_map): Likewise.
33425 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33426 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33427 Restructure flow to accomodate it.
33428 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33429 (grub_efiemu_crc): Recompute CRC32.
33430 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33431 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33432 * efiemu/symbols.c (relocated_handle): New variable.
33433 (grub_efiemu_free_syms): Free relocated_handle.
33434 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33435 (grub_efiemu_write_sym_markers): New function.
33436 (grub_efiemu_set_virtual_address_map): Likewise.
33437
33438 Newer XNU parameters.
33439
33440 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33441 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33442 (grub_xnu_fill_devicetree): New prototype.
33443 (grub_xnu_heap_real_start): New variable.
33444 * loader/xnu.c (get_name_ptr): New function.
33445 (grub_xnu_load_driver): Fill namelen and name.
33446
33447 64-bit xnu support.
33448
33449 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33450 and 'loader/macho64.c'.
33451 * conf/i386-pc.rmk: Likewise.
33452 * conf/x86_64-efi.rmk: Likewise.
33453 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33454 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33455 * include/grub/macho.h (grub_macho_segment64): New structure.
33456 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33457 (grub_macho_size32): ... to this.
33458 (grub_macho32_get_entry_point): Renamed from ...
33459 (grub_macho_get_entry_point32): ... to this.
33460 (grub_macho_contains_macho64): New prototype.
33461 (grub_macho_size64): Likewise.
33462 (grub_macho_get_entry_point64): Likewise.
33463 (grub_macho32_load): Renamed from ...
33464 (grub_macho_load32): ... to this.
33465 (grub_macho32_filesize): Renamed from ...
33466 (grub_macho_filesize32): ... to this.
33467 (grub_macho32_readfile): Renamed from ...
33468 (grub_macho_readfile32): ... to this.
33469 (grub_macho_filesize64): New prototype.
33470 (grub_macho_readfile64): Likewise.
33471 (grub_macho_parse32): Likewise.
33472 (grub_macho_parse64): Likewise.
33473 * loader/macho.c: Split into ...
33474 * loader/machoXX.c: ... and this. Replace 32 with XX.
33475 * loader/macho32.c: New file.
33476 * loader/macho64.c: Likewise.
33477 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33478 (grub_cmd_xnu_kernel): Make 32-bit only.
33479 (grub_cmd_xnu_kernel64): New function.
33480 (grub_xnu_load_driver): Support Mach-O 64.
33481 (grub_cmd_xnu_mkext): Likewise.
33482 * util/grub.d/30_os-prober.in (osx_entry): New function.
33483 Generate entries for 64-bit boot too.
33484
33485 Eliminate ad-hoc tree format in XNU and EfiEmu.
33486
33487 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33488 * efiemu/pnvram.c: Rewritten to use environment variables.
33489 All users updated.
33490
33491 Inline utf16_to_utf8.
33492
33493 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33494 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33495 All users updated.
33496 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33497
33498 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33499 * commands/usbtest.c (grub_usb_get_string): ... move here.
33500 (usb_print_str): Fix error handling.
33501 * include/grub/usb.h (grub_usb_get_string): Remove.
33502
33503 UTF-8 to UTF-16 transformation.
33504
33505 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33506 (charset_mod_SOURCES): New variable.
33507 (charset_mod_CFLAGS): Likewise.
33508 (charset_mod_LDFLAGS): Likewise.
33509 * include/grub/utf.h: New file.
33510 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33511
33512 Support for device properties.
33513
33514 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33515 (grub_xnu_devprop_device_header): Likewise.
33516 (grub_xnu_devprop_device_descriptor): Likewise.
33517 (grub_xnu_devprop_add_device): New prototype.
33518 (grub_xnu_devprop_remove_device): Likewise.
33519 (grub_xnu_devprop_remove_property): Likewise.
33520 (grub_xnu_devprop_add_property_utf8): Likewise.
33521 (grub_xnu_devprop_add_property_utf16): Likewise.
33522 (grub_cpu_xnu_init): Likewise.
33523 (grub_cpu_xnu_fini): Likewise.
33524 (grub_cpu_xnu_unload): Likewise.
33525 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33526 (property_descriptor): Likewise.
33527 (devices): New variable.
33528 (grub_xnu_devprop_remove_property): New function.
33529 (grub_xnu_devprop_add_device): Likewise.
33530 (grub_xnu_devprop_remove_device): Likewise.
33531 (grub_xnu_devprop_add_property): Likewise.
33532 (grub_xnu_devprop_add_property_utf8): Likewise.
33533 (grub_xnu_devprop_add_property_utf16): Likewise.
33534 (hextoval): Likewise.
33535 (grub_cpu_xnu_fill_devprop): Likewise.
33536 (grub_cmd_devprop_load): Likewise.
33537 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33538 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33539 (cmd_devprop_load): New variable.
33540 (grub_cpu_xnu_init): New function.
33541 (grub_cpu_xnu_fini): Likewise.
33542 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33543 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33544 (grub_cmd_xnu_devtree): Likewise.
33545 (hextoval): New function.
33546 (unescape): Likewise.
33547 (grub_xnu_fill_devicetree): Likewise.
33548
33549 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33550 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33551
33552 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33553
33554 Workaround for broken ATI VBE.
33555
33556 * video/i386/pc/vbe.c (last_set_mode): New variable.
33557 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33558 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33559 (grub_video_vbe_setup): Don't check for reserved flag.
33560
33561 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33562
33563 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33564 the `find' command.
33565
33566 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33567
33568 UUID support for HFS.
33569
33570 * fs/hfs.c (grub_hfs_uuid): New function.
33571 (grub_hfs_fs): New value .uuid.
33572 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33573
33574 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33575
33576 Fix a segfault with parsing unknown long options.
33577
33578 * util/grub-mkrelpath.c (options): Zero terminate it.
33579
33580 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33581
33582 * include/grub/misc.h (grub_puts): New declaration.
33583 (grub_puts_): Likewise.
33584 * kern/misc.c (grub_puts): New definition.
33585 (grub_puts_): Likewise.
33586
33587 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33588
33589 * util/grub-probe.c (probe): Improve error message.
33590
33591 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33592
33593 * loader/i386/multiboot_elfxx.c
33594 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33595 initialization.
33596
33597 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33598
33599 Relocator framework
33600
33601 * loader/i386/xnu_helper.S: Removed. All users updated.
33602 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33603 (relocator_mod_SOURCES): New variable.
33604 (relocator_mod_CFLAGS): Likewise.
33605 (relocator_mod_LDFLAGS): Likewise.
33606 (relocator_mod_ASFLAGS): Likewise.
33607 * conf/x86_64.rmk: Likewise.
33608 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33609 (grub_multiboot_payload_entry_offset): Likewise.
33610 (grub_multiboot_forward_relocator): Likewise.
33611 (grub_multiboot_forward_relocator_end): Likewise.
33612 (grub_multiboot_backward_relocator): Likewise.
33613 (grub_multiboot_backward_relocator_end): Likewise.
33614 (grub_multiboot_payload_eip): New variable.
33615 (grub_multiboot_payload_orig): Likewise.
33616 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33617 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33618 * include/grub/i386/memory.h
33619 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33620 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33621 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33622 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33623 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33624 * include/grub/i386/relocator.h: New file.
33625 * include/grub/x86_64/relocator.h: Likewise.
33626 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33627 (XNU_RELOCATOR): New macro.
33628 (grub_xnu_launcher_start): Remove.
33629 (grub_xnu_launcher_end): Likewise.
33630 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33631 (grub_xnu_heap_real_start): Remove.
33632 (grub_xnu_heap_start): Change to void *. All users updated.
33633 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33634 * lib/i386/relocator.c: New file.
33635 * lib/i386/relocator_asm.S: Likewise.
33636 * lib/i386/relocator_backward.S: Likewise.
33637 * lib/mips/relocator.c: Likewise.
33638 * lib/mips/relocator_asm.S: Likewise.
33639 * lib/relocator.c: Likewise.
33640 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33641 (entry): Removed.
33642 (playground): Likewise.
33643 (grub_multiboot_payload_orig): New variable.
33644 (grub_multiboot_payload_dest): Likewise.
33645 (grub_multiboot_payload_size): Likewise.
33646 (grub_multiboot_payload_eip): Likewise.
33647 (grub_multiboot_payload_esp): Likewise.
33648 (grub_multiboot_boot): Use grub_relocator32_boot.
33649 (grub_multiboot_unload): Free relocators.
33650 (grub_multiboot): Setup stack. Use relocators.
33651 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33652 (grub_multiboot_load_elfXX): Use relocators.
33653 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33654 (grub_multiboot_payload_size): Likewise.
33655 (grub_multiboot_payload_dest): Likewise.
33656 (grub_multiboot_payload_entry_offset): Likewise.
33657 (grub_multiboot_forward_relocator): Likewise.
33658 (grub_multiboot_backward_relocator): Likewise.
33659 (grub_multiboot_real_boot): Likewise.
33660 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33661 (grub_xnu_entry_point): Likewise.
33662 (grub_xnu_arg1): Likewise.
33663 (grub_xnu_stack): Likewise.
33664 (grub_xnu_launch): Removed.
33665 (grub_xnu_boot_resume): New function.
33666 (grub_xnu_boot): Use relocators.
33667 * loader/i386/xnu_helper.S: Removed.
33668 * loader/xnu.c (grub_xnu_heap_start): New variable.
33669 (grub_xnu_heap_size): Likewise.
33670 (grub_xnu_heap_malloc): Use relocators.
33671 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33672
33673 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33674
33675 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33676 anything.
33677
33678 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33679
33680 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33681 GRUB_ERR_NONE before calling grub_env_set.
33682
33683 2009-12-12 Robert Millan <rmh@aybabtu.com>
33684
33685 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33686 * genmk.rb (video): New variable.
33687 (CLEANFILES, VIDEOFILES): Add #{video}.
33688 (#{video}): New target rule.
33689 * genvideolist.sh: New file.
33690 * Makefile.in (pkglib_DATA): Add video.lst.
33691 (video.lst): New target rule.
33692 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33693 `video.lst'.
33694 * util/grub.d/30_os-prober.in: Replace `vbe' with
33695 ${GRUB_VIDEO_BACKEND}.
33696
33697 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33698
33699 * THANKS: Add David Miller.
33700
33701 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33702
33703 libpciaccess support.
33704
33705 * Makefile.in (LIBPCIACCESS): New variable.
33706 (enable_grub_emu_pci): Likewise.
33707 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33708 util/pci.c and commands/lspci.c.
33709 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33710 * configure.ac (grub-emu-pci): New option.
33711 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33712 (grub_pci_device_unmap_range): Likewise.
33713 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33714 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33715 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33716 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33717 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33718 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33719 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33720 * include/grub/pciutils.h: New file.
33721 * util/pci.c: Likewise.
33722
33723 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33724
33725 * util/misc.c: Don't include <errno.h> twice.
33726
33727 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33728
33729 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33730 name in an error message.
33731 (grub_biosdisk_rw): Likewise.
33732
33733 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33734
33735 Eliminate NTFS 4Gib barrier.
33736
33737 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33738 (read_run_data): Likewise.
33739 (grub_ntfs_read_run_list): Likewise.
33740 (grub_ntfs_read_block): Likewise.
33741 (grub_ntfs_iterate_dir): Likewise.
33742 (read_mft): Likewise.
33743 (read_data): Likewise.
33744 Use COM_LOG_LEN.
33745 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33746 to avoid 64-bit division
33747 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33748 (grub_ntfs_rlst): Use grub_disk_addr_t.
33749
33750 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33751
33752 Eliminate grub-fstest 4Gib barrier.
33753
33754 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33755 (read_file): Fix error reporting.
33756
33757 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33758
33759 Eliminate hexdump 4Gib barrier.
33760
33761 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33762 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33763
33764 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33765
33766 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33767 Fixes amarsh bug.
33768
33769 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33770
33771 Remove miscellaneous files in distclean target.
33772
33773 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33774
33775 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33776
33777 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33778 if they're already set. This resolves the conflict between my
33779 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33780 fixing the --grub-probe option again.
33781 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33782 change on 2009-10-06, so that we now once again source
33783 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33784
33785 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33786
33787 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33788 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33789 `util/devicemap.c'.
33790
33791 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33792
33793 * include/grub/misc.h (grub_printf_): New declaration.
33794 * kern/misc.c (grub_printf_): New definition.
33795 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33796 instead of `grub_printf' and `_'.
33797 * normal/menu_entry.c (store_completion): Likewise.
33798 (run): Likewise.
33799 (grub_menu_entry_run): Likewise.
33800 * normal/menu_text.c (grub_wait_after_message): Likewise.
33801 (notify_booting): Likewise.
33802 (notify_fallback): Likewise.
33803 (notify_execution_failure): Likewise.
33804
33805 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33806
33807 * configure.ac: Check for vasprintf.
33808 * util/misc.c (asprintf): Move allocation from here ...
33809 (vasprintf): ... to here. New function.
33810 (xasprintf): New function.
33811 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33812 prototypes.
33813 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33814 * util/grub-mkfont.c (write_font): Likewise.
33815 * util/grub-probe.c (probe): Likewise.
33816 * util/hostdisk.c (make_device_name): Likewise.
33817
33818 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33819
33820 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33821 anything even prefixed with 'cdrom' as a cdrom.
33822
33823 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33824
33825 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33826 mount points.
33827
33828 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33829
33830 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33831 grub_gettext_msg_list.
33832 (grub_gettext_gettranslation_from_position): Return const char *
33833 and not char *.
33834 (grub_gettext_translate): Add the translated strings into a list,
33835 returns from the list if existing there.
33836 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33837 (grub_gettext_delete_list): Delete the list.
33838 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33839 lang environment variable is changed.
33840 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33841
33842 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33843
33844 Rename kernel.mod to kernel.img.
33845
33846 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33847 (kernel_mod_EXPORTS): Rename to ...
33848 (kernel_img_EXPORTS): ... this.
33849 (kernel_mod_SOURCES): Rename to ...
33850 (kernel_img_SOURCES): ... this.
33851 (kernel_mod_HEADERS): Rename to ...
33852 (kernel_img_HEADERS): ... this. All users updated.
33853 (kernel_mod_CFLAGS): Rename to ...
33854 (kernel_img_CFLAGS): ... this.
33855 (kernel_mod_ASFLAGS): Rename to ...
33856 (kernel_img_ASFLAGS): ... this.
33857 (kernel_mod_LDFLAGS): Rename to ...
33858 (kernel_img_LDFLAGS): ... this.
33859 * conf/x86_64-efi.rmk: Likewise.
33860 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33861 (read_kernel_image): ... this. All users updated.
33862 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33863
33864 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33865
33866 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33867 (print_spaces): New function.
33868 (grub_print_ucs4): New function.
33869 (getstringwidth): New function.
33870 (print_message_indented): New function.
33871 (print_message): Gettexttize strings using print_message_indented.
33872 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33873 width.
33874 (get_entry_number): Gettextize and uses dynamic terminal width.
33875 (notify_booting, notify_fallback, notify_execution_failure):
33876 Gettextize.
33877 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33878 string.
33879 (run): Likewise.
33880 (grub_menu_entry_run): Likewise.
33881 * PO/POTFILES: Add normal/menu_entry.c.
33882
33883 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33884
33885 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33886
33887 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33888
33889 * util/grub-install.in: Install gettext .mo files.
33890 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33891
33892 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33893
33894 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33895 grub_dprintf.
33896
33897 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33898
33899 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33900 non-firmware-dependant one in realmode.S takes precedence.
33901
33902 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33903
33904 * commands/halt.c: Replace misc arch-specific headers with
33905 `<grub/misc.h>'.
33906 * commands/reboot.c: Likewise.
33907 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33908 `<grub/misc.h>'.
33909 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33910 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33911 (kernel_img_SOURCES): ... to here.
33912
33913 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33914 * include/grub/i386/pc/init.h: Likewise.
33915 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33916 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33917
33918 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33919
33920 * include/grub/i386/halt.h: Remove.
33921 * include/grub/i386/reboot.h: Likewise.
33922
33923 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33924
33925 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33926
33927 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33928 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33929 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33930 "progname.h"
33931 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33932 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33933 (usage): Add missing comma in printf.
33934
33935 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33936
33937 Use the same reboot approach on i386 coreboot and qemu as we do on
33938 BIOS.
33939
33940 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33941 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33942 * kern/i386/reboot.c: Remove.
33943 * include/grub/i386/reboot.h (grub_reboot): Export function.
33944 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33945 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33946 0xf000:0xfff0 instead of 0xffff:0x0000.
33947 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33948 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33949
33950 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33951
33952 Fix $srcdir != $objdir build.
33953
33954 * Makefile.in (po/%.po): Rewrite as ...
33955 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33956
33957 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33958
33959 Fix GNU/Hurd grub-install crash.
33960 * util/grub-probe.c (probe): Try to access `path' only when it is not
33961 NULL.
33962
33963 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33964
33965 Correct module naming.
33966
33967 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33968 (GRUB_MOD_INIT(efi_uga)): ... to this
33969 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33970 (GRUB_MOD_FINI(efi_uga)): ... to this
33971 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33972 (GRUB_MOD_INIT(efi_gop)): ... to this
33973 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33974 (GRUB_MOD_FINI(efi_gop)): ... to this
33975
33976 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33977
33978 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33979 translatable.
33980 (usage): Translate `arg' strings using gettext().
33981 Thanks to Jordi Mallach for the suggestion.
33982
33983 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33984
33985 GOP support. Based on patch from Bean
33986 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33987
33988 * video/efi_gop.c: New file.
33989 * include/grub/efi/graphics_output.h: Likewise.
33990 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33991 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33992 variables.
33993 * conf/x86_64-efi.rmk: Likewise.
33994
33995 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33996
33997 Rename efi_fb to efi_uga.
33998
33999 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34000 'efi_uga.mod'.
34001 (efi_fb_mod_SOURCES): Rename this ...
34002 (efi_uga_mod_SOURCES): ... to this.
34003 (efi_fb_mod_CFLAGS): Rename this ...
34004 (efi_uga_mod_CFLAGS): ... to this.
34005 (efi_fb_mod_LDFLAGS): Rename this ...
34006 (efi_uga_mod_LDFLAGS): ... to this.
34007 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34008 'efi_uga.mod'.
34009 (efi_fb_mod_SOURCES): Rename this ...
34010 (efi_uga_mod_SOURCES): ... to this.
34011 (efi_fb_mod_CFLAGS): Rename this ...
34012 (efi_uga_mod_CFLAGS): ... to this.
34013 (efi_fb_mod_LDFLAGS): Rename this ...
34014 (efi_uga_mod_LDFLAGS): ... to this.
34015 * video/efi_fb.c: Move this ...
34016 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34017
34018 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34019
34020 * po/README: New file. Explain our PO file workflow.
34021
34022 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34023
34024 * po/ChangeLog: Remove. Move relevant entries back to ...
34025 * ChangeLog: ... here.
34026 * po/ca.po: Remove (now handled by TLP).
34027 * po/id.po: Likewise.
34028 * po/zh_CN.po: Likewise.
34029 * Makefile.in (LINGUAS): Initialize in a way that supports
34030 empty set.
34031
34032 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34033
34034 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34035 reliing on po/LINGUAS.
34036 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34037 (po/%.po): ... this.
34038
34039 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34040
34041 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34042 (main): Use `program_name' instead of nonexistent `progname'.
34043
34044 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34045
34046 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34047 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34048
34049 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34050
34051 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34052 commit.
34053 * conf/i386-efi.rmk: Likewise.
34054 * conf/i386-ieee1275.rmk: Likewise.
34055 * conf/powerpc-ieee1275.rmk: Likewise.
34056 * conf/sparc64-ieee1275.rmk: Likewise.
34057 * conf/x86_64-efi.rmk: Likewise.
34058
34059 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34060
34061 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34062
34063 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34064
34065 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34066
34067 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34068
34069 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34070 (grub_mkdevicemap_SOURCES): New variable.
34071 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34072 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34073 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34074 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34075 (grub_mkdevicemap_SOURCES): Remove.
34076 * conf/i386-efi.rmk: Likewise.
34077 * conf/i386-ieee1275.rmk: Likewise.
34078 * conf/i386-pc.rmk: Likewise.
34079 * conf/powerpc-ieee1275.rmk: Likewise.
34080 * conf/sparc64-ieee1275.rmk: Likewise.
34081 * conf/x86_64-efi.rmk: Likewise.
34082 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34083 (usage): Fix strings to use `program_name'.
34084 (main): Initialize gettext.
34085 * util/grub-editenv.c: Likewise.
34086 * util/grub-emu.c: Likewise.
34087 * util/grub-fstest.c: Likewise.
34088 * util/grub-mkdevicemap.c: Likewise.
34089 * util/grub-mkfont.c: Likewise.
34090 * util/grub-mkrelpath.c: Likewise.
34091 * util/grub-pe2elf.c: Likewise.
34092 * util/grub-probe.c: Likewise.
34093 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34094 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34095 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34096
34097 * util/misc.c: Include `"progname.h"'.
34098 (progname): Remove variable.
34099 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34100
34101 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34102
34103 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34104 printf and print a newline after the menuentry header line.
34105 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34106
34107 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34108
34109 autoconf >= 2.60 support $(localedir).
34110
34111 * INSTALL: Note that autoconf 2.60 is required.
34112 * configure.ac (AC_PREREQ): Bump to 2.60.
34113 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34114 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34115
34116 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34117
34118 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34119 aclocal is run.
34120
34121 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34122
34123 * normal/main.c (grub_normal_read_line): Fix off-by-one
34124 buffer overflow.
34125
34126 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34127
34128 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34129 "parser.grub" in grub_command_execute() call.
34130
34131 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34132
34133 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34134 * conf/i386-efi.rmk: Likewise.
34135 * conf/i386-ieee1275.rmk: Likewise.
34136 * conf/i386-pc.rmk: Likewise.
34137 * conf/powerpc-ieee1275.rmk: Likewise.
34138 * conf/sparc64-ieee1275.rmk: Likewise.
34139 * conf/x86_64-efi.rmk: Likewise.
34140 * gettext/gettex.c: Include <grub/i18n.h>.
34141 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34142 here ...
34143 * include/grub/i18n.h: ... to here
34144 * include/grub/i18n.h: ... to here.
34145 * kern/misc.c: Include <grub/i18n.h>
34146 (grub_gettext_dummy): Move above user.
34147
34148 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34149
34150 * util/Makefile.in (install-local): Convert a `for' into a normal
34151 shell expansion.
34152
34153 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34154
34155 * autogen.sh: Add automake call.
34156 * config.guess: Remove.
34157 * config.sub: Likewise.
34158 * install-sh: Likewise.
34159
34160 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34161
34162 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34163
34164 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34165
34166 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34167 function to a normal shell `for'.
34168
34169 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34170
34171 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34172
34173 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34174
34175 * util/grub-mkrelpath.c: New file.
34176 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34177 (grub_mkrelpath_SOURCES): New variable.
34178 * include/grub/util/misc.h: New function prototype.
34179 * util/misc.c (make_system_path_relative_to_its_root): New function.
34180
34181 * util/grub-mkconfig_lib.in (bindir): New variable.
34182 (grub_mkrelpath): Likewise.
34183 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34184
34185 * util/probe.c (probe): Make the file path relative to its root.
34186 Change a info message to use the GRUB path. Enable again the
34187 check if we can read the file with GRUB facilities.
34188
34189 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34190 to its root.
34191
34192 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34193
34194 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34195 platform.
34196
34197 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34198
34199 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34200 strncmp().
34201
34202 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34203
34204 * util/getroot.c (grub_util_is_dmraid): New function.
34205 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34206 devices as normal ones, not as LVM.
34207
34208 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34209
34210 * conf/common.rmk: Add grub-gettext_lib target and updates
34211 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34212 LDFLAGS.
34213 * gettext/gettext.c: New file. (Reads mo files).
34214 * include/grub/file.h (grub_file_pread): New prototype.
34215 * include/grub/i18n.h (_): New prototype.
34216 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34217 prototypes.
34218 * kern/misc.c (grub_gettext_dummy): New function.
34219 * normal/menu_text.c: Include <grub/i18n.h>.
34220 * normal/menu_text.c (print_timeout): Gettexttize string.
34221 * normal/menu_text.c (print_message): Gettexttize string.
34222 * po/POTFILES: Add `normal/menu_text.c'.
34223 * po/ca.po: Add new translations.
34224 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34225 gettext module and defines locale_dir and lang in grub.cfg.
34226 * NEWS: Add gettext support.
34227
34228 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34229
34230 * util/hostdisk.c: Include `<grub/i18n.h>'.
34231 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34232 (make_device_name): Rewrite using asprintf.
34233 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34234 (find_system_device): If a device is not found, generate one just
34235 by reusing the OS path name.
34236 (read_device_map): Make it permissible for device.map not to exist.
34237
34238 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34239
34240 * script/sh/execute.c: Move from here ...
34241 * script/execute.c: ... to here. Update all users.
34242 * script/sh/function.c: Move from here ...
34243 * script/function.c: ... to here. Update all users.
34244 * script/sh/lexer.c: Move from here ...
34245 * script/lexer.c: ... to here. Update all users.
34246 * script/sh/main.c: Move from here ...
34247 * script/main.c: ... to here. Update all users.
34248 * script/sh/parser.y: Move from here ...
34249 * script/parser.y: ... to here. Update all users.
34250 * script/sh/script.c: Move from here ...
34251 * script/script.c: ... to here. Update all users.
34252
34253 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34254
34255 * configure.ac: Detect all `emu' platforms. Define
34256 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34257 --enable-grub-emu logic. Disable include/grub/machine
34258 symlink on `emu' platforms.
34259
34260 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34261 * gensymlist.sh.in: Likewise.
34262
34263 * include/grub/i386/coreboot/machine.h: Remove file.
34264 * include/grub/i386/efi/machine.h: Likewise.
34265 * include/grub/i386/ieee1275/machine.h: Likewise.
34266 * include/grub/i386/pc/machine.h: Likewise.
34267 * include/grub/i386/qemu/machine.h: Likewise.
34268 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34269 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34270 * include/grub/x86_64/efi/machine.h: Likewise.
34271
34272 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34273 * commands/halt.c: Likewise.
34274 * commands/reboot.c: Likewise.
34275 * include/grub/autoefi.h: Likewise.
34276 * include/grub/i386/at_keyboard.h: Likewise.
34277 * include/grub/i386/kernel.h: Likewise.
34278 * include/grub/i386/loader.h: Likewise.
34279 * include/grub/i386/pc/memory.h: Likewise.
34280 * kern/dl.c: Likewise.
34281 * kern/i386/coreboot/init.c: Likewise.
34282 * loader/i386/bsd.c: Likewise.
34283 * loader/i386/linux.c: Likewise.
34284 * loader/multiboot_loader.c: Likewise.
34285 * term/i386/pc/serial.c: Likewise.
34286 * term/usb_keyboard.c: Likewise.
34287
34288 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34289 `<grub/machine/machine.h>'
34290 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34291 * util/misc.c: Remove `<grub/machine/machine.h>' and
34292 `<grub/machine/time.h>'.
34293
34294 * Makefile.in (enable_grub_emu): Remove variable.
34295 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34296
34297 * conf/any-emu.rmk: New file.
34298 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34299 (grub_emu_init.c): Move from here ...
34300 * conf/any-emu.rmk: ... to here.
34301
34302 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34303 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34304 * conf/any-emu.rmk: ... to here.
34305
34306 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34307
34308 * include/grub/parser.h (grub_parser_register): Document need
34309 of `name' parameter.
34310 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34311 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34312 "sh" to "grub".
34313
34314 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34315
34316 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34317 `$(XGETTEXT)'.
34318 * include/grub/i18n.h (N_): New macro.
34319 * util/mkisofs/mkisofs.h: Likewise.
34320 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34321 around N_().
34322 (usage): Use gettext() to translate help strings when printing them.
34323
34324 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34325
34326 Based on patch from Bean
34327 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34328
34329 * video/efi_fb.c: New file.
34330 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34331 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34332 variables.
34333 * conf/x86_64-efi.rmk: Likewise.
34334
34335 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34336
34337 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34338 * util/i386/pc/grub-setup.c: Likewise.
34339
34340 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34341
34342 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34343 <hurd/fs.h>
34344 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34345 file_get_storage_info to implement grub_guess_root_device.
34346
34347 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34348
34349 * Makefile.in (target): Use make's builtin $(shell) function
34350 instead of calling directly $(SHELL) to create the locale directories,
34351 inside the $(foreach) function.
34352
34353 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34354
34355 * util/grub-mkrescue.in: Print an error and usage if output option
34356 has not been given.
34357
34358 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34359
34360 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34361 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34362 root and /boot are on different devices.
34363
34364 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34365
34366 Fix build for srcdir != objdir.
34367
34368 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34369 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34370 $(srcdir).
34371 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34372 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34373 reference for input.
34374
34375 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34376
34377 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34378 or hardlinking it). Remove -J option, Joliet is not compatible with
34379 multiple source directories.
34380
34381 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34382 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34383
34384 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34385 (process_input_dir): New function. Process an arbitrary input
34386 directory.
34387 Misc adjustments to support both "override mode" and system-wide mode.
34388
34389 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34390
34391 * configure.ac (UNIFONT_BDF): Rename to ...
34392 (FONT_SOURCE): ... this. Update all users.
34393
34394 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34395
34396 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34397 to the list of unifont files to look for.
34398
34399 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34400
34401 Patch from Joe Auricchio <jauricchio@gmail.com>
34402 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34403 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34404 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34405
34406 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34407
34408 * Makefile.in (install-local): Add a missing backslash.
34409
34410 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34411
34412 * include/grub/x86_64/io.h: New file.
34413
34414 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34415
34416 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34417 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34418 Include `"progname.h"'.
34419 (main): Initialize gettext.
34420 * util/i386/pc/grub-setup.c: Gettexttize.
34421 * util/i386/pc/grub-mkimage.c: Likewise.
34422
34423 * Makefile.in (po/*.po): Redefine as ...
34424 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34425
34426 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34427
34428 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34429
34430 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34431 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34432 (program_name): Remove.
34433 (main): Initialize gettext support.
34434 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34435 Include `<libintl.h>'.
34436 (_): New macro.
34437
34438 * util/mkisofs/eltorito.c: Gettexttize.
34439 * util/mkisofs/joliet.c: Likewise.
34440 * util/mkisofs/mkisofs.c: Likewise.
34441 * util/mkisofs/multi.c: Likewise.
34442 * util/mkisofs/rock.c: Likewise.
34443 * util/mkisofs/tree.c: Likewise.
34444 * util/mkisofs/write.c: Likewise.
34445
34446 * po/POTFILES: Update with new files.
34447
34448 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34449
34450 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34451 * util/mkisofs/iso9660.h: Likewise.
34452 * util/mkisofs/joliet.c: Likewise.
34453 * util/mkisofs/mkisofs.c: Likewise.
34454 * util/mkisofs/mkisofs.h: Likewise.
34455 * util/mkisofs/rock.c: Likewise.
34456 * util/mkisofs/tree.c: Likewise.
34457 * util/mkisofs/write.c: Likewise.
34458
34459 * util/mkisofs/eltorito.c (rcsid): Remove.
34460 * util/mkisofs/hash.c: Likewise.
34461 * util/mkisofs/joliet.c: Likewise.
34462 * util/mkisofs/name.c: Likewise.
34463 * util/mkisofs/rock.c: Likewise.
34464 * util/mkisofs/tree.c: Likewise.
34465 * util/mkisofs/write.c: Likewise.
34466
34467 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34468
34469 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34470 instead of static allocation.
34471 * util/mkisofs/match.h: Likewise.
34472
34473 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34474
34475 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34476 and `util/grub.d/10_linux.in'.
34477 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34478 translatable Shell files.
34479
34480 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34481
34482 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34483
34484 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34485
34486 * INSTALL: Document Automake is needed for bootstrap.
34487 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34488 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34489 Add gettext initialization.
34490 (kfreebsd_entry): Make menuentry output translatable.
34491
34492 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34493
34494 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34495 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34496 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34497 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34498 (LINGUAS): Auto-generate using `po/LINGUAS'.
34499 * po/LINGUAS: New file.
34500
34501 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34502
34503 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34504 other things).
34505 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34506 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34507 bindtextdomain() calls for gettext initialization.
34508
34509 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34510
34511 * gnulib/progname.c: New file (imported from Gnulib).
34512 * gnulib/progname.h: Likewise.
34513 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34514 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34515 (usage): Replace `progname' with `program_name'.
34516 (main): Use set_program_name() for program name initialization.
34517
34518 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34519
34520 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34521 from here ...
34522 * Makefile.in (CPPFLAGS): ... to here.
34523
34524 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34525
34526 * aclocal.m4: Move from here ...
34527 * acinclude.m4: ... to here.
34528 * autogen.sh: Add call to `aclocal'.
34529 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34530
34531 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34532
34533 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34534 (LINGUAS): New variable.
34535 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34536 (install-local): Install MO files.
34537 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34538 * include/grub/i18n.h: New file.
34539 * po/POTFILES: New file.
34540 * po/ca.po: New file.
34541 * util/grub.d/10_linux.in (bindir): New variable.
34542 Add gettext initialization.
34543 (linux_entry): Make menuentry output translatable.
34544 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34545 (usage): Make --help output translatable.
34546 (main): Initialize gettext.
34547
34548 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34549
34550 * import_gcry.py: New file (written by Vladimir with minor
34551 adjustments).
34552 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34553 ciphers.
34554 * INSTALL: Document that Python is required for bootstrap.
34555
34556 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34557
34558 Import ciphers from libgcrypt 1.4.4.
34559
34560 * lib/libgcrypt/cipher/ChangeLog
34561 * lib/libgcrypt/cipher/ac.c
34562 * lib/libgcrypt/cipher/arcfour.c
34563 * lib/libgcrypt/cipher/bithelp.h
34564 * lib/libgcrypt/cipher/blowfish.c
34565 * lib/libgcrypt/cipher/camellia-glue.c
34566 * lib/libgcrypt/cipher/camellia.c
34567 * lib/libgcrypt/cipher/camellia.h
34568 * lib/libgcrypt/cipher/cast5.c
34569 * lib/libgcrypt/cipher/cipher.c
34570 * lib/libgcrypt/cipher/crc.c
34571 * lib/libgcrypt/cipher/des.c
34572 * lib/libgcrypt/cipher/dsa.c
34573 * lib/libgcrypt/cipher/ecc.c
34574 * lib/libgcrypt/cipher/elgamal.c
34575 * lib/libgcrypt/cipher/hash-common.c
34576 * lib/libgcrypt/cipher/hash-common.h
34577 * lib/libgcrypt/cipher/hmac-tests.c
34578 * lib/libgcrypt/cipher/md.c
34579 * lib/libgcrypt/cipher/md4.c
34580 * lib/libgcrypt/cipher/md5.c
34581 * lib/libgcrypt/cipher/primegen.c
34582 * lib/libgcrypt/cipher/pubkey.c
34583 * lib/libgcrypt/cipher/rfc2268.c
34584 * lib/libgcrypt/cipher/rijndael-tables.h
34585 * lib/libgcrypt/cipher/rijndael.c
34586 * lib/libgcrypt/cipher/rmd.h
34587 * lib/libgcrypt/cipher/rmd160.c
34588 * lib/libgcrypt/cipher/rsa.c
34589 * lib/libgcrypt/cipher/seed.c
34590 * lib/libgcrypt/cipher/serpent.c
34591 * lib/libgcrypt/cipher/sha1.c
34592 * lib/libgcrypt/cipher/sha256.c
34593 * lib/libgcrypt/cipher/sha512.c
34594 * lib/libgcrypt/cipher/tiger.c
34595 * lib/libgcrypt/cipher/twofish.c
34596 * lib/libgcrypt/cipher/whirlpool.c
34597
34598 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34599
34600 Fix build for systems without error().
34601
34602 * gnulib/error.c: New file (imported from Gnulib).
34603 * gnulib/error.h: Likewise.
34604 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34605 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34606 (this variable is now used by error()).
34607
34608 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34609
34610 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34611 instead of relying that char is signed.
34612
34613 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34614
34615 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34616 blocksize different from specified.
34617 (grub_pxefs_read): Likewise.
34618
34619 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34620
34621 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34622
34623 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34624 (grub_ata_readwrite): Likewise. Update 2 format strings.
34625 (grub_atapi_read): Likewise.
34626
34627 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34628 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34629 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34630 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34631 (ata_mod_LDFLAGS): Move from here ...
34632 * conf/i386.rmk: ... to here ...
34633 * conf/x86_64-efi.rmk: ... and here.
34634 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34635 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34636
34637 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34638
34639 Relicense multiboot.h, with RMS' blessing.
34640
34641 * include/multiboot.h: Change to X11 license.
34642
34643 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34644
34645 Support --version in grub-mkisofs.
34646
34647 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34648 (OPTION_VERSION): New macro.
34649 (ld_options): Recognize --version.
34650 (usage): Move `program_name' from here ...
34651 (program_name): ... to here. Add `static' qualifier.
34652 (main): Recognize `OPTION_VERSION'.
34653
34654 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34655
34656 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34657 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34658
34659 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34660
34661 Fix help2man generation for mkisofs.
34662
34663 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34664 (usage): Send output to stdout (rather than stderr).
34665
34666 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34667
34668 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34669 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34670 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34671 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34672 (bin_SCRIPTS): Add `grub-mkfloppy'.
34673 (grub_mkfloppy_SOURCES): New variable.
34674
34675 * util/grub-mkrescue.in: New file.
34676 * util/i386/pc/grub-mkfloppy.in: New file.
34677
34678 * util/i386/coreboot/grub-mkrescue.in: Remove.
34679 * util/i386/pc/grub-mkrescue.in: Remove.
34680
34681 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34682
34683 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34684 from here ...
34685 * include/multiboot.h (struct multiboot_header): ... to here. Update
34686 all users.
34687 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34688 from here ...
34689 * include/multiboot.h (struct multiboot_info): ... to here. Update
34690 all users.
34691 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34692 from here ...
34693 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34694 Update all users.
34695 * include/grub/multiboot.h (struct grub_mod_list): Move
34696 from here ...
34697 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34698 Update all users.
34699
34700 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34701
34702 * include/multiboot2.h (multiboot_word): Rename from this ...
34703 (multiboot2_word): ... to this. Update all users.
34704 (multiboot_header): Rename from this ...
34705 (multiboot2_header): ... to this. Update all users.
34706 (multiboot_tag_header): Rename from this ...
34707 (multiboot2_tag_header): ... to this. Update all users.
34708 (multiboot_tag_start): Rename from this ...
34709 (multiboot2_tag_start): ... to this. Update all users.
34710 (multiboot_tag_name): Rename from this ...
34711 (multiboot2_tag_name): ... to this. Update all users.
34712 (multiboot_tag_module): Rename from this ...
34713 (multiboot2_tag_module): ... to this. Update all users.
34714 (multiboot_tag_memory): Rename from this ...
34715 (multiboot2_tag_memory): ... to this. Update all users.
34716 (multiboot_tag_unused): Rename from this ...
34717 (multiboot2_tag_unused): ... to this. Update all users.
34718 (multiboot_tag_end): Rename from this ...
34719 (multiboot2_tag_end): ... to this. Update all users.
34720
34721 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34722
34723 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34724 this platform we should support Multiboot1 first.
34725
34726 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34727 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34728 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34729
34730 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34731
34732 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34733 of write calls (converting them to fwrite() if they aren't already).
34734 (get_torito_desc): Likewise.
34735 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34736
34737 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34738
34739 * util/i386/pc/grub-install.in: Move from here ...
34740 * util/grub-install.in: ... to here. Update all users.
34741
34742 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34743
34744 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34745
34746 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34747
34748 Support for El Torito without floppy emulation.
34749
34750 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34751 (init_boot_catalog): Improve error handling.
34752 (get_torito_desc): Don't use floppy emulation unless requested by
34753 user. Patch boot information table when requested via
34754 `-boot-info-table'.
34755 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34756 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34757 (use_boot_info_table): New variables.
34758 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34759 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34760 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34761 `--eltorito-emul-floppy'.
34762 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34763 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34764 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34765 (use_boot_info_table, get_731): New prototypes.
34766 * util/mkisofs/write.c (get_731): New function.
34767
34768 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34769
34770 Fix the generation of the man page.
34771
34772 * util/pc/i386/grub-install.in: Source
34773 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34774
34775 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34776
34777 Large file support for grub-mkisofs.
34778
34779 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34780 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34781 (session_start): Upgrade type to `uint64_t'. Update all users.
34782 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34783 (struct directory_entry): Upgrade type of `starting_block' and
34784 `size' to `uint64_t'. Update all users.
34785 (struct deferred): Remove unused structure.
34786 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34787 Update all users.
34788 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34789 file is larger than `UINT32_MAX'.
34790 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34791 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34792 return value.
34793 (struct deferred_write): Upgrade type of `extent' and `size' to
34794 `uint64_t'. Update all users.
34795 (last_extent_written): Upgrade type to `uint64_t'. Update all
34796 users.
34797 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34798 Update all users. Upgrade type of `remain' to `int64_t' and
34799 `use' to `size_t'. Use error() to handle fread() errors.
34800 (write_files): Rely on write_one_file() rather than calling
34801 xfwrite() directly.
34802
34803 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34804
34805 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34806
34807 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34808
34809 * util/mkisofs/fnmatch.c: Remove.
34810 * util/mkisofs/getopt1.c: Likewise.
34811 * util/mkisofs/getopt.c: Likewise.
34812 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34813 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34814 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34815 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34816 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34817
34818 * configure.ac: Detect `mingw32msvc' host_os.
34819 Check for lstat(), getuid() and getgid().
34820
34821 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34822 instances of `u_char' with `uint8_t'.
34823
34824 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34825 [!HAVE_GETUID] (getuid): New function (stub).
34826 [!HAVE_GETGID] (getgid): Likewise.
34827 [!HAVE_LSTAT] (lstat): Likewise.
34828 [!S_IROTH] (S_IROTH): New macro (dummy).
34829 [!S_IRGRP] (S_IRGRP): Likewise.
34830
34831 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34832
34833 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34834 conditional expression).
34835
34836 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34837
34838 Import from Gnulib.
34839
34840 * gnulib/fnmatch.c: New file.
34841 * gnulib/fnmatch.h: Likewise.
34842 * gnulib/fnmatch_loop.c: Likewise.
34843 * gnulib/getopt.c: Likewise.
34844 * gnulib/getopt.h: Likewise.
34845 * gnulib/getopt1.c: Likewise.
34846 * gnulib/getopt_int.h: Likewise.
34847 * gnulib/gettext.h: Likewise.
34848
34849 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34850
34851 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34852 * normal/handler.c (read_handler_list): Likewise.
34853
34854 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34855
34856 Misc cleanup.
34857
34858 * kern/command.c (grub_register_command_prio): Use
34859 grub_zalloc() instead of explicitly zeroing data.
34860 * kern/list.c: Include `<grub/mm.h>'.
34861 (grub_named_list_find): Replace `0' with `NULL'.
34862 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34863 (fs_module_list): Change type to `grub_named_list_t'. Update all
34864 users.
34865 * normal/dyncmd.c (read_command_list): Add space between function
34866 call and parenthesis.
34867 * normal/handler.c (read_handler_list): Likewise.
34868
34869 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34870
34871 * normal/auth.c (punishment_delay): Moved from here ...
34872 (grub_auth_strcmp): ... to here (inside function).
34873
34874 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34875
34876 * include/grub/list.h (struct grub_named_list): Remove `const'
34877 qualifier from `name'.
34878 (struct grub_prio_list): Likewise.
34879
34880 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34881
34882 * normal/auth.c: Include `<grub/time.h>'.
34883 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34884
34885 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34886
34887 * normal/auth.c (punishment_delay): New variable.
34888 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34889 (grub_auth_check_authentication): Punish failed login attempts with
34890 an incremental (2^N) delay.
34891
34892 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34893
34894 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34895 path with $(srcdir).
34896
34897 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34898
34899 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34900
34901 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34902
34903 * util/i386/coreboot/grub-mkrescue.in: New file.
34904 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34905 variables.
34906
34907 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34908 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34909 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34910 requirements.
34911 * util/mkisofs/defaults.h: New file.
34912 * util/mkisofs/eltorito.c: Likewise.
34913 * util/mkisofs/exclude.h: Likewise.
34914 * util/mkisofs/fnmatch.c: Likewise.
34915 * util/mkisofs/getopt.c: Likewise.
34916 * util/mkisofs/getopt1.c: Likewise.
34917 * util/mkisofs/hash.c: Likewise.
34918 * util/mkisofs/include/fctldefs.h: Likewise.
34919 * util/mkisofs/include/mconfig.h: Likewise.
34920 * util/mkisofs/include/prototyp.h: Likewise.
34921 * util/mkisofs/include/statdefs.h: Likewise.
34922 * util/mkisofs/iso9660.h: Likewise.
34923 * util/mkisofs/joliet.c: Likewise.
34924 * util/mkisofs/match.c: Likewise.
34925 * util/mkisofs/match.h: Likewise.
34926 * util/mkisofs/mkisofs.c: Likewise.
34927 * util/mkisofs/mkisofs.h: Likewise.
34928 * util/mkisofs/multi.c: Likewise.
34929 * util/mkisofs/name.c: Likewise.
34930 * util/mkisofs/rock.c: Likewise.
34931 * util/mkisofs/tree.c: Likewise.
34932 * util/mkisofs/write.c: Likewise.
34933
34934 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34935
34936 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34937 being insecure.
34938
34939 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34940
34941 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34942 `grub-mkimage' (and use $0 when possible).
34943
34944 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34945
34946 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34947 error message for excessively large memory map.
34948
34949 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34950
34951 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34952 executable bit.
34953
34954 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34955
34956 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34957 message for coreboot users.
34958
34959 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34960
34961 Fix build with GNU gold.
34962
34963 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34964 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34965 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34966 link addresses.
34967 * aclocal.m4: Likewise.
34968
34969 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34970
34971 * configure.ac (AC_PREREQ): Bump to 2.59d.
34972 * INSTALL: Make it more clear when Autoconf and Ruby are
34973 needed and when to run `./autogen.sh'.
34974
34975 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34976
34977 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34978 OSes.
34979
34980 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34981
34982 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34983
34984 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34985
34986 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34987 giving it to GNU Mach.
34988
34989 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34990
34991 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34992 GNU partition number to get internal GRUB partition number.
34993
34994 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34995
34996 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34997 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34998
34999 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35000
35001 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35002 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35003 case.
35004
35005 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
35006
35007 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35008
35009 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35010
35011 Fix build problem.
35012
35013 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35014 `-isystem=$(srcdir)/include'.
35015
35016 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35017
35018 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35019 checked (grub-install doesn't currently rely on it).
35020
35021 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35022
35023 Revert SVN r2660.
35024
35025 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35026 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35027 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35028 * conf/i386-ieee1275.rmk: Likewise.
35029 * conf/i386-pc.rmk: Likewise.
35030 * conf/powerpc-ieee1275.rmk: Likewise.
35031 * conf/sparc64-ieee1275.rmk: Likewise.
35032 * conf/x86_64-efi.rmk: Likewise.
35033
35034 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35035
35036 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35037
35038 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35039
35040 * include/grub/misc.h: Stop checking for APPLE_CC.
35041
35042 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35043
35044 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35045 doesn't cause an infinite call loop.
35046
35047 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35048
35049 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35050 strings.
35051
35052 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35053
35054 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35055 variable.
35056 * Makefile.in: Likewise.
35057
35058 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35059
35060 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35061
35062 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35063
35064 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35065
35066 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35067
35068 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35069
35070 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35071
35072 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35073 from here ...
35074 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35075
35076 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35077
35078 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35079 in $(MAKEINFO) invocation. This makes it clear in output that
35080 errors are being ignored.
35081
35082 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35083
35084 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35085 from here ...
35086 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35087 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35088 * conf/i386-ieee1275.rmk: Likewise.
35089 * conf/i386-pc.rmk: Likewise.
35090 * conf/powerpc-ieee1275.rmk: Likewise.
35091 * conf/sparc64-ieee1275.rmk: Likewise.
35092 * conf/x86_64-efi.rmk: Likewise.
35093
35094 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35095
35096 * util/grub-editenv.c (main): If only a command is given, use
35097 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35098 (usage): FILENAME is now optional and has a default.
35099
35100 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35101
35102 Improve grub-mkconfig performance when there are several menu
35103 entries on a single filesystem.
35104
35105 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35106 prepare_grub_to_access_device.
35107 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35108 * util/grub.d/30_os-prober.in: Likewise.
35109
35110 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35111
35112 * util/grub.d/10_freebsd.in: Remove.
35113 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35114 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35115
35116 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35117
35118 * docs/grub.cfg: Fix example usage of *BSD loaders.
35119
35120 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35121
35122 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35123 grub_util_error() call.
35124
35125 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35126
35127 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35128 `reserved_first_sector' member.
35129 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35130 `reserved_first_sector' to 1.
35131 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35132 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35133 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35134 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35135 filesystems which begin at first sector.
35136 (options): New option --skip-fs-probe.
35137 (main): Handle --skip-fs-probe and pass it to setup().
35138
35139 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35140
35141 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35142 (memset): Fix function prototype.
35143
35144 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35145 2009-10-25 Vasily Averin <vvs@parallels.com>
35146
35147 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35148 `dirent.direntlen == 0'.
35149
35150 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35151
35152 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35153 `cpio'.
35154 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35155
35156 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35157
35158 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35159 `__trampoline_setup' and `__ucmpdi2'.
35160 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35161 that libgcc provides.
35162
35163 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35164
35165 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35166 * include/grub/sparc64/libgcc.h (memset): Likewise.
35167 * include/grub/misc.h (memset, memcmp): New function prototypes.
35168
35169 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35170
35171 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35172 `cpio'.
35173 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35174
35175 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35176
35177 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35178 * docs/grub.cfg: Compensate for recent change in multiboot
35179 loader (since 2009-08-14 it won't pass filename to payload).
35180 * util/grub.d/10_hurd.in: Likewise.
35181
35182 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35183
35184 * config.guess: Update to latest version from config git
35185 repository.
35186 * config.sub: Likewise.
35187
35188 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35189
35190 Fix build on sparc64.
35191
35192 * configure.ac: Perform checks for libgcc symbols before
35193 adding `-nostdlib' to LDFLAGS.
35194
35195 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35196
35197 Let user specify OpenBSD root device.
35198
35199 * loader/i386/bsd.c (openbsd_root): New variable.
35200 (openbsd_opts): New option 'root'.
35201 (OPENBSD_ROOT_ARG): New macro.
35202 (grub_openbsd_boot): Use 'openbsd_root'.
35203 (grub_cmd_openbsd): Fill 'openbsd_root'.
35204
35205 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35206
35207 * NEWS: Misc adjustments.
35208
35209 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35210
35211 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35212
35213 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35214
35215 * configure.ac: Bump version to 1.97.
35216
35217 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35218
35219 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35220 -mno-3dnow on x86 architectures. Some toolchains enable these
35221 features by default, but they rely on registers that aren't enabled
35222 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35223
35224 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35225
35226 Make entry text a bit more readable.
35227
35228 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35229
35230 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35231
35232 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35233
35234 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35235
35236 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35237 operations.
35238
35239 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35240
35241 * configure.ac: Add missing dollar.
35242
35243 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35244
35245 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35246
35247 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35248 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35249 exports.
35250 * include/grub/sparc64/libgcc.h: Likewise. Use
35251 preprocessor conditionals.
35252
35253 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35254
35255 * conf/common.rmk (grub-dumpbios): Remove rule.
35256 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35257 * util/grub-dumpbios.in: Remove file.
35258
35259 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35260
35261 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35262 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35263
35264 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35265 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35266 users.
35267
35268 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35269 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35270 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35271 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35272 users.
35273
35274 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35275
35276 * term/tparm.c: Switch to GPLv3.
35277
35278 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35279
35280 * include/grub/i386/cpuid.h: Add header protection.
35281
35282 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35283
35284 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35285
35286 * include/grub/i386/cpuid.h: New file.
35287 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35288 (has_longmode): Rename to ...
35289 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35290 `static' attribute.
35291 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35292 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35293 on a CPU that doesn't implement AMD64 instruction set.
35294
35295 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35296
35297 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35298 that version.texi is rebuilt on version number changes.
35299
35300 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35301
35302 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35303 Fixes bug #27602.
35304
35305 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35306
35307 * util/i386/pc/grub-install.in: Source
35308 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35309 that the --grub-probe option will work.
35310 * util/sparc64/ieee1275/grub-install.in: Likewise.
35311
35312 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35313
35314 * configure.ac: Bump version to 1.97~beta4.
35315
35316 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35317
35318 Resync grub-mkdevicemap in x86_64-efi.
35319
35320 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35321 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35322 `util/devicemap.c'.
35323
35324 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35325
35326 * util/grub-editenv.c (create_envblk_file): Write new block with a
35327 .new suffix and then rename it into place, to ensure atomic
35328 creation.
35329
35330 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35331
35332 Do not automatically install headers.
35333
35334 * Makefile.in (include_DATA): Remove. Update all users.
35335
35336 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35337
35338 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35339 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35340
35341 * util/osdetect.lua: Remove.
35342 * script/lua/lauxlib.c: Likewise.
35343 * script/lua/ldebug.c: Likewise.
35344 * script/lua/grub_main.c: Likewise.
35345 * script/lua/lauxlib.h: Likewise.
35346 * script/lua/ldebug.h: Likewise.
35347 * script/lua/ltablib.c: Likewise.
35348 * script/lua/liolib.c: Likewise.
35349 * script/lua/lstrlib.c: Likewise.
35350 * script/lua/lualib.h: Likewise.
35351 * script/lua/ldo.c: Likewise.
35352 * script/lua/ldump.c: Likewise.
35353 * script/lua/ldo.h: Likewise.
35354 * script/lua/loslib.c: Likewise.
35355 * script/lua/lundump.c: Likewise.
35356 * script/lua/grub_lib.c: Likewise.
35357 * script/lua/ldblib.c: Likewise.
35358 * script/lua/lundump.h: Likewise.
35359 * script/lua/lmem.c: Likewise.
35360 * script/lua/grub_lib.h: Likewise.
35361 * script/lua/lmathlib.c: Likewise.
35362 * script/lua/lstate.c: Likewise.
35363 * script/lua/ltm.c: Likewise.
35364 * script/lua/lvm.c: Likewise.
35365 * script/lua/lmem.h: Likewise.
35366 * script/lua/lstate.h: Likewise.
35367 * script/lua/ltm.h: Likewise.
35368 * script/lua/ltable.c: Likewise.
35369 * script/lua/lvm.h: Likewise.
35370 * script/lua/llex.c: Likewise.
35371 * script/lua/lgc.c: Likewise.
35372 * script/lua/grub_lua.h: Likewise.
35373 * script/lua/loadlib.c: Likewise.
35374 * script/lua/lfunc.c: Likewise.
35375 * script/lua/lopcodes.c: Likewise.
35376 * script/lua/lparser.c: Likewise.
35377 * script/lua/ltable.h: Likewise.
35378 * script/lua/llex.h: Likewise.
35379 * script/lua/lgc.h: Likewise.
35380 * script/lua/lfunc.h: Likewise.
35381 * script/lua/lbaselib.c: Likewise.
35382 * script/lua/lopcodes.h: Likewise.
35383 * script/lua/lparser.h: Likewise.
35384 * script/lua/lzio.c: Likewise.
35385 * script/lua/linit.c: Likewise.
35386 * script/lua/lobject.c: Likewise.
35387 * script/lua/llimits.h: Likewise.
35388 * script/lua/lstring.c: Likewise.
35389 * script/lua/lzio.h: Likewise.
35390 * script/lua/lapi.c: Likewise.
35391 * script/lua/lcode.c: Likewise.
35392 * script/lua/lua.h: Likewise.
35393 * script/lua/lobject.h: Likewise.
35394 * script/lua/lstring.h: Likewise.
35395 * script/lua/lapi.h: Likewise.
35396 * script/lua/lcode.h: Likewise.
35397 * script/lua/luaconf.h: Likewise.
35398
35399 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35400
35401 * docs/grub.texi (Command-line and menu entry commands): Document
35402 date and echo commands.
35403
35404 2009-09-24 Pavel Roskin <proski@gnu.org>
35405
35406 * include/grub/kernel.h (struct grub_module_header): Remove
35407 `grub_module_header_types'. Make `type' unsigned. Make `size'
35408 32-bit on all platforms.
35409 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35410 8-bit field. Use grub_host_to_target32() for `size'.
35411 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35412 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35413 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35414
35415 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35416
35417 Fix "lost keypress" bug in at_keyboard.
35418
35419 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35420 Checks for readyness of input buffer (without flushing it).
35421 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35422 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35423
35424 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35425
35426 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35427 size check within GRUB_MACHINE_PCBIOS section.
35428
35429 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35430
35431 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35432 return value.
35433 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35434 KEYBOARD_ISREADY check.
35435 (grub_at_keyboard_checkkey): Rename to ...
35436 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35437 Remove gratuitous cast.
35438
35439 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35440
35441 * configure.ac: Call AC_PROG_MKDIR_P.
35442 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35443 version.texi in $(builddir) rather than $(srcdir).
35444 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35445 to makeinfo's @include search path.
35446
35447 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35448
35449 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35450
35451 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35452
35453 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35454 for `*.dpkg-new'.
35455
35456 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35457
35458 Build info documentation. Some code borrowed from Automake.
35459
35460 * configure.ac: Check for makeinfo.
35461 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35462 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35463 docs/version.texi.
35464 (MOSTLYCLEANFILES): Add vti.tmp.
35465 (docs/version.texi, docs/stamp-vti): Update automatically.
35466 (docs/grub.info): Build info documentation. Use --force and ignore
35467 errors for now.
35468 (all-local): Add $(INFOS).
35469 (install-local): Install info files.
35470 (uninstall): Uninstall info files.
35471 * docs/version.texi: Remove from revision control. This file is
35472 automatically generated on build now.
35473 * gendistlist.sh: Add `*.info'.
35474
35475 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35476
35477 * kern/term.c: Fix indentation.
35478
35479 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35480
35481 * util/hostdisk.c: Fix a comment.
35482
35483 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35484
35485 Fix regression introduced in r2539.
35486
35487 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35488 to 0xA1.
35489
35490 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35491
35492 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35493 os-prober. Under normal operation, it does not print anything to
35494 stderr; if it does, we need to debug it, and throwing away stderr
35495 makes that excessively difficult.
35496
35497 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35498
35499 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35500
35501 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35502
35503 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35504 AC_LANG_PROGRAM from autoconf.
35505 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35506 prototypes (fixes warning).
35507
35508 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35509 `--disable-werror' was used.
35510
35511 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35512
35513 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35514 uninitialized `lastaddr'.
35515
35516 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35517
35518 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35519
35520 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35521
35522 * commands/test.c (get_fileinfo): Return immediately if
35523 grub_fs_probe fails.
35524
35525 2009-09-14 José Martínez <xosemp@gmail.com>
35526
35527 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35528
35529 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35530
35531 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35532 output.
35533
35534 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35535
35536 * configure.ac: Remove --enable-grub-pe2elf. Only build
35537 grub-pe2elf when needed by the build system itself.
35538 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35539
35540 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35541
35542 * configure.ac: Bump version to 1.97~beta3.
35543 * docs/version.texi: Likewise.
35544
35545 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35546
35547 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35548 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35549 from here ...
35550 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35551 (grub_linux_setup_video): ... to here (with some adjustments).
35552
35553 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35554
35555 Fix memory corruption issue (spotted by Colin Watson).
35556
35557 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35558 causing returned size to be stored in an incorrect memory location.
35559 Fix use of uninitialized value when storing the returned size.
35560
35561 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35562
35563 Change clean rules to properly remove files
35564
35565 * genmk.rb: add new clean rules
35566 * Makefile.in (clean): add the new targets
35567 (mostlyclean): likewise
35568
35569 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35570
35571 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35572 to grub_uint64_t.
35573 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35574 non-resident files.
35575
35576 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35577
35578 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35579 part of bug #27349.
35580
35581 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35582
35583 * util/grub-mkconfig.in: Make the created config mode 400 and
35584 print a warning if it fails.
35585
35586 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35587
35588 * util/grub.d/40_custom.in: Ask user to type custom entries below
35589 comment, rather than below 'exec tail' line.
35590
35591 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35592
35593 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35594 visible in grub.cfg.
35595
35596 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35597
35598 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35599 file.
35600
35601 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35602
35603 * docs/grub.cfg: Add an example menu entry for memtest86+.
35604
35605 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35606
35607 * config.guess: Update to latest version from config git.
35608 * config.sub: Likewise.
35609
35610 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35611
35612 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35613 unknown-command case. Fixes bug #27320.
35614
35615 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35616
35617 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35618 `help' if the command exists.
35619
35620 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35621
35622 * INSTALL: Require GCC 4.1.3 or later.
35623
35624 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35625
35626 * Makefile.in (RMKFILES): add i386-qemu.rmk
35627 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35628 $(srcdir)/stamp-h.in
35629
35630 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35631
35632 * util/grub-probe.c (probe): Comment out buggy codepath, which
35633 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35634 should be re-enabled after 1.97.
35635
35636 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35637
35638 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35639 find searches for.
35640
35641 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35642
35643 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35644 unnecessary calls to grub_error.
35645
35646 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35647
35648 * NEWS: Mention `keystatus' and Unicode fonts.
35649
35650 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35651
35652 * configure.ac: Bump version to 1.97~beta2.
35653 * docs/version.texi: Likewise.
35654
35655 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35656
35657 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35658 containing unwind information in some cases where it previously did
35659 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35660 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35661 discussion.
35662
35663 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35664
35665 Embedding loadenv module into grub-emu
35666
35667 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35668 commands/loadenv.c
35669 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35670 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35671 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35673 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35674 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35675
35676 2009-09-03 Magnus Granberg <zorry@ume.nu>
35677
35678 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35679 include -fPIE in the default specs.
35680 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35681 to TARGET_CFLAGS.
35682
35683 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35684
35685 * INSTALL: Note that GNU Bison 2.3 or later is required.
35686
35687 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35688
35689 * kern/i386/pc/startup.S: Fix typo.
35690
35691 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35692
35693 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35694 according to GCS.
35695
35696 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35697
35698 * docs/grub.texi (Naming convention): Describe one-based partition
35699 numbering.
35700 (Device syntax): Likewise.
35701 (File name syntax): Likewise.
35702 (Block list syntax): Likewise.
35703 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35704 menu.lst.
35705 (File name syntax): Likewise.
35706 (Command-line and menu entry commands): Document acpi, blocklist,
35707 crc, export, insmod, keystatus, ls, set, and unset commands.
35708
35709 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35710
35711 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35712 to avoid implying that only one of --shift, --ctrl, or --alt may be
35713 used.
35714
35715 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35716
35717 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35718 rather than comparing against S_IFREG, which will almost never work.
35719
35720 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35721
35722 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35723 (write_blocklists): Likewise.
35724
35725 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35726
35727 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35728 argument to grub_printf.
35729
35730 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35731
35732 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35733 non GNU test.
35734
35735 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35736
35737 * kern/file.c (grub_file_read): Spelling fix
35738
35739 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35740
35741 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35742 loading of headers in some cases.
35743
35744 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35745
35746 * configure.ac: Bump version to 1.97~beta1.
35747 * docs/version.texi: Likewise.
35748
35749 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35750
35751 * include/grub/i386/xnu.h: Add license header.
35752 include grub/err.h explicitly.
35753
35754 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35755
35756 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35757 to `ufs' in the vfs.root.mountfrom kernel parameter.
35758
35759 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35760
35761 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35762
35763 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35764 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35765
35766 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35767 `ARRAY_SIZE' macro.
35768
35769 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35770
35771 * kern/file.c (grub_file_read): Check offset.
35772 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35773 * fs/jfs.c (grub_jfs_read_file): Likewise.
35774 * fs/ntfs.c (grub_ntfs_read): Likewise.
35775 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35776 * fs/minix.c (grub_minix_read_file): Correct offset check.
35777 * fs/ufs.c (grub_ufs_read_file): Likewise.
35778
35779 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35780
35781 * term/i386/pc/console.c (bios_data_area): Cast
35782 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35783
35784 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35785
35786 1-bit optimised blitters.
35787
35788 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35789 prototype.
35790 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35791 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35792 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35793 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35794 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35795 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35796 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35797 function.
35798 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35799 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35800 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35801 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35802 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35803 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35804 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35805 when possible.
35806 * video/video.c (grub_video_get_blit_format): Return
35807 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35808
35809 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35810
35811 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35812 the first argument to grub_printf.
35813
35814 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35815 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35816
35817 Add `getkeystatus' terminal method. Add a new `keystatus' command
35818 to query it.
35819
35820 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35821 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35822 modifier key bitmasks.
35823 (struct grub_term_input): Add `getkeystatus' member.
35824 (grub_getkeystatus): Add prototype.
35825 * kern/term.c (grub_getkeystatus): New function.
35826
35827 * include/grub/i386/pc/memory.h
35828 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35829 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35830 Data Area layout.
35831 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35832 (grub_console_term_input): Set `getkeystatus' member.
35833 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35834 constants.
35835 (grub_usb_keyboard_getreport): Likewise.
35836 (grub_usb_keyboard_checkkey): Likewise.
35837 (grub_usb_keyboard_getkeystatus): New function.
35838 (grub_usb_keyboard_term): Set `getkeystatus' member.
35839
35840 * commands/keystatus.c: New file.
35841 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35842 (keystatus_mod_SOURCES): New variable.
35843 (keystatus_mod_CFLAGS): Likewise.
35844 (keystatus_mod_LDFLAGS): Likewise.
35845 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35846 commands/keystatus.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_emu_SOURCES): Likewise.
35850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35851 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35852 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35853
35854 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35855
35856 Split befs.mod and afs.mod into *_be.mod and *.mod
35857
35858 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35859 (grub_fstest_SOURCES): Likewise.
35860 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35861 (afs_be_mod_SOURCES): New variable.
35862 (afs_be_mod_CFLAGS): Likewise.
35863 (afs_be_mod_LDFLAGS): Likewise.
35864 (befs_be_mod_SOURCES): Likewise.
35865 (befs_be_mod_CFLAGS): Likewise.
35866 (befs_be_mod_LDFLAGS): Likewise.
35867 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35868 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35869 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35870 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35871 (grub_emu_SOURCES): Likewise.
35872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35873 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35874 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35875 * fs/afs_be.c: New file.
35876 * fs/befs_be.c: New file.
35877 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35878 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35879 (U16): Replaced with ...
35880 (grub_afs_to_cpu16): ...this. All users updated.
35881 (U32): Replaced with ...
35882 (grub_afs_to_cpu32): ...this. All users updated.
35883 (U64): Replaced with ...
35884 (grub_afs_to_cpu64): ...this. All users updated.
35885 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35886 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35887 (grub_afs_validate_sblock): Check only one endianness.
35888 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35889 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35890 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35891 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35892 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35893 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35894 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35895 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35896
35897 2009-08-26 Bean <bean123ch@gmail.com>
35898
35899 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35900 64-bit number.
35901 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35902 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35903 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35904
35905 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35906
35907 NetBSD memory map support.
35908
35909 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35910 (grub_netbsd_btinfo_mmap_header): New structure.
35911 (grub_netbsd_btinfo_mmap_entry): Likewise.
35912 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35913
35914 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35915
35916 Enable bsd.mod on coreboot.
35917
35918 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35919 (bsd_mod_SOURCES): New variable.
35920 (bsd_mod_CFLAGS): Likewise.
35921 (bsd_mod_LDFLAGS): Likewise.
35922 (bsd_mod_ASFLAGS): Likewise.
35923 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35924 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35925
35926 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35927
35928 Cleanup NetBSD root support.
35929
35930 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35931 grub_bsd_get_device.
35932 Fix typo.
35933
35934 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35935
35936 * util/grub.d/00_header.in: Move check for the video backend of
35937 gfxterm from here ...
35938 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35939 a suitable video backend.
35940
35941 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35942
35943 Fix breakage in grub-setup.
35944
35945 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35946 "msdos_partition_map".
35947
35948 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35949
35950 Fix breakage in normal/auth.c.
35951
35952 * normal/auth.c (grub_iswordseparator): New function.
35953
35954 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35955
35956 Authentication support.
35957
35958 * commands/password.c: New file.
35959 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35960 (password_mod_SOURCES): New variable.
35961 (password_mod_CFLAGS): Likewise.
35962 (password_mod_LDFLAGS): Likewise.
35963 (normal_mod_SOURCES): Add normal/auth.c.
35964 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35965 normal/auth.c.
35966 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35967 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35968 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35969 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35970 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35971 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35972 * include/grub/auth.h: New file.
35973 * include/grub/err.h (grub_err_t): New enum value
35974 GRUB_ERR_ACCESS_DENIED.
35975 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35976 'users'.
35977 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35978 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35979 users updated.
35980 * normal/auth.c: New file.
35981 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35982 (grub_cmdline_run): Don't allow to go to command line without
35983 authentication.
35984 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35985 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35986 menuentry without superuser rights.
35987 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35988 user isn't a superuser.
35989
35990 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35991
35992 Save space by inlining misc.c functions.
35993
35994 * kern/misc.c (grub_iswordseparator): Made static.
35995 * kern/misc.c (grub_strcat): Moved from here ...
35996 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35997 * kern/misc.c (grub_strncat): Moved from here ...
35998 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35999 * kern/misc.c (grub_strcasecmp): Moved from here ...
36000 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36001 * kern/misc.c (grub_strncasecmp): Moved from here ...
36002 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36003 * kern/misc.c (grub_isalpha): Moved from here ...
36004 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36005 * kern/misc.c (grub_isdigit): Moved from here ...
36006 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36007 * kern/misc.c (grub_isgraph): Moved from here ...
36008 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36009 * kern/misc.c (grub_tolower): Moved from here ...
36010 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36011
36012 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36013
36014 * script/sh/function.c (grub_script_function_find): Cut error message
36015 not to flood terminal.
36016 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36017 limit.
36018 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36019
36020 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36021
36022 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36023 `report' grub_uint8_t *.
36024 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36025 Use a 50-millisecond timeout rather than just repeating
36026 grub_usb_keyboard_getreport 50 times.
36027 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36028
36029 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36030
36031 Rename *_partition_map to part_*
36032
36033 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36034 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36035 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36036 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36037 All users updated.
36038 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36039 All users updated.
36040 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36041 * util/grub-probe.c (probe_partmap): Don't transform partition name
36042 to get module name.
36043
36044 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36045
36046 Fix OpenBSD and NetBSD support.
36047
36048 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36049 memory address conflict.
36050 (OPENBSD_MMAP_ACPI): New definition.
36051 (OPENBSD_MMAP_NVS): Likewise.
36052 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36053 and OPENBSD_MMAP_NVS.
36054 Add memory map terminator
36055 Explicit cast when calling grub_unix_real_boot.
36056 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36057
36058 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36059
36060 Let user specify NetBSD root device.
36061
36062 * loader/i386/bsd.c (netbsd_root): New variable.
36063 (netbsd_opts): New option 'root'.
36064 (NETBSD_ROOT_ARG): New macro.
36065 (grub_netbsd_boot): Use 'netbsd_root'.
36066 (grub_bsd_unload): Free 'netbsd_root'.
36067 (grub_cmd_netbsd): Fill 'netbsd_root'.
36068
36069 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36070
36071 Support for 64-bit NetBSD.
36072
36073 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36074 point when booting non-FreeBSD.
36075
36076 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36077
36078 Support --no-smp and --no-acpi for NetBSD.
36079
36080 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36081 (NETBSD_AB_NOACPI): Likewise.
36082 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36083 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36084
36085 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36086
36087 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36088 errors.
36089 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36090 errors. Call grub_error when needed.
36091
36092 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36093
36094 * commands/search.c (search_fs): Try searching without autoload first.
36095 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36096 filesystem module explicitly for faster booting.
36097
36098 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36099
36100 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36101
36102 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36103
36104 * util/grub.d/30_os-prober.in: Disable os-prober if
36105 `GRUB_DISABLE_OS_PROBER' was set to true.
36106
36107 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36108
36109 * partmap/pc.c: Rename to ...
36110 * partmap/msdos.c: ... this. Update all users.
36111 (grub_pc_partition_map): Rename to ...
36112 (grub_msdos_partition_map): ... this. Update all users.
36113
36114 * parttool/pcpart.c: Rename to ...
36115 * parttool/msdospart.c: ... this. Update all users.
36116
36117 * include/grub/pc_partition.h: Rename to ...
36118 * include/grub/msdos_partition.h: ... this. Update all users.
36119 (grub_pc_partition_bsd_entry): Rename to ...
36120 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36121 (grub_pc_partition_disk_label): Rename to ...
36122 (grub_msdos_partition_disk_label): ... this. Update all users.
36123 (grub_pc_partition_entry): Rename to ...
36124 (grub_msdos_partition_entry): ... this. Update all users.
36125 (grub_pc_partition_mbr): Rename to ...
36126 (grub_msdos_partition_mbr): ... this. Update all users.
36127 (grub_pc_partition): Rename to ...
36128 (grub_msdos_partition): ... this. Update all users.
36129 (grub_pc_partition_is_empty): Rename to ...
36130 (grub_msdos_partition_is_empty): ... this. Update all users.
36131 (grub_pc_partition_is_extended): Rename to ...
36132 (grub_msdos_partition_is_extended): ... this. Update all users.
36133 (grub_pc_partition_is_bsd): Rename to ...
36134 (grub_msdos_partition_is_bsd): ... this. Update all users.
36135
36136 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36137 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36138 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36139 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36140 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36141 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36142 (gpt_mod_LDFLAGS): Rename to ...
36143 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36144 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36145 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36146 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36147 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36148 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36149 (part_gpt_mod_LDFLAGS): ... this.
36150 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36151 `pcpart.mod' to `msdospart.mod'.
36152 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36153 to ...
36154 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36155 (msdospart_mod_LDFLAGS): ... this.
36156
36157 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36158
36159 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36160 (openbsd_opts): Likewise.
36161 (netbsd_opts): Likewise.
36162 (freebsd_flags): Added 0 terminator.
36163 (openbsd_flags): Likewise.
36164 (netbsd_flags): Likewise.
36165 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36166 (grub_cmd_freebsd): Transformed into extended command.
36167 (grub_cmd_openbsd): Likewise.
36168 (grub_cmd_netbsd): Likewise.
36169 (cmd_freebsd): Changed type to grub_extcmd_t.
36170 (cmd_openbsd): Likewise.
36171 (cmd_netbsd): Likewise.
36172 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36173 grub_cmd_openbsd as extended commands.
36174 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36175 cmd_netbsd and cmd_openbsd
36176
36177 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36178
36179 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36180
36181 2009-08-21 Pavel Roskin <proski@gnu.org>
36182
36183 * Makefile.in (install-local): When checking if a file is in the
36184 build directory, use "test -e" to detect symlinks.
36185
36186 * Makefile.in (install-local): Remove all files in
36187 $(DESTDIR)$(pkglibdir) before installing new files there.
36188
36189 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36190
36191 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36192 grub-mkelfimage.
36193
36194 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36195
36196 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36197 explicitly specified by the user.
36198
36199 2009-08-18 Pavel Roskin <proski@gnu.org>
36200
36201 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36202 grub_uint8_t pointer for data.
36203 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36204 Likewise.
36205 * video/fb/fbutil.c: Remove unnecessary casts.
36206
36207 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36208
36209 VBE cleanup.
36210
36211 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36212 (grub_vbe_set_video_mode): Save active mode info
36213 only after setting the mode.
36214 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36215 second argument.
36216
36217 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36218
36219 Rename variables for clarity.
36220
36221 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36222 (active_vbe_mode_info): ... this. All users updated.
36223 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36224 All users updated.
36225 (initial_mode): Rename to ...
36226 (initial_vbe_mode): ... this. All users updated.
36227 (mode_in_use): Rename to ..
36228 (vbe_mode_in_use): ... this. All users updated.
36229 (mode_list): Rename to ..
36230 (vbe_mode_list): ... this. All users updated.
36231 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36232 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36233 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36234 'mode_list_size' to 'vbe_mode_list_size'.
36235 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36236 'best_mode_info' to 'best_vbe_mode_info' and
36237 'best_mode' to 'best_vbe_mode'
36238
36239 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36240
36241 Remove duplicate grub_video_fb_get_video_ptr.
36242
36243 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36244 (grub_video_fb_get_video_ptr): ... this.
36245 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36246 * video/fb/fbutil.c: Add comment about addressing.
36247 (get_data_ptr): Rename to ...
36248 (grub_video_fb_get_video_ptr): ... this. All users updated.
36249 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36250
36251 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36252
36253 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36254 grub_dprintf() that was just added.
36255
36256 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36257
36258 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36259 (DEFAULT_VIDEO_MODE): Remove macros.
36260 (grub_linux_boot): Remove assumption that Linux has FB support,
36261 and use "text" as default video mode.
36262
36263 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36264
36265 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36266 grub_dprintf.
36267 * fs/fat.c (grub_fat_read_data): Likewise.
36268
36269 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36270
36271 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36272 payload.
36273 (grub_module): Likewise.
36274
36275 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36276
36277 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36278 mbi->cmdline but free playground.
36279
36280 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36281
36282 Handle group offset on UFS1.
36283
36284 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36285 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36286
36287 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36288
36289 Split ufs.mod into ufs1.mod and ufs2.mod.
36290
36291 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36292 (grub_fstest_SOURCES): Likewise.
36293 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36294 (ufs_mod_SOURCES): Remove.
36295 (ufs_mod_CFLAGS): Likewise.
36296 (ufs_mod_LDFLAGS): Likewise.
36297 (ufs1_mod_SOURCES): New variable.
36298 (ufs1_mod_CFLAGS): Likewise.
36299 (ufs1_mod_LDFLAGS): Likewise.
36300 (ufs2_mod_SOURCES): New variable.
36301 (ufs2_mod_CFLAGS): Likewise.
36302 (ufs2_mod_LDFLAGS): Likewise.
36303 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36304 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36305 Likewise.
36306 (grub_emu_SOURCES): Likewise.
36307 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36308 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36309 (grub_setup_SOURCES): Likewise.
36310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36311 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36312 (grub_setup_SOURCES): Likewise.
36313 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36314 Likewise.
36315 * fs/ufs2.c: New file.
36316 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36317
36318 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36319
36320 Framebuffer split.
36321
36322 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36323 subsystem at the end.
36324 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36325 (video_fb_mod_SOURCES): New variable.
36326 (video_fb_mod_CFLAGS): Likewise.
36327 (video_fb_mod_LDFLAGS): Likewise.
36328 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36329 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36330 * video/i386/pc/vbeblit.c: Moved from here ...
36331 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36332 * video/i386/pc/vbefill.c: Moved from here ...
36333 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36334 * video/i386/pc/vbeutil.c: Moved from here ...
36335 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36336 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36337 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36338 * include/grub/i386/pc/vbefill.h: Moved from here ...
36339 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36340 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36341 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36342 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36343 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36344 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36345 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36346 (grub_video_adapter): Added 'get_info_and_fini'.
36347 (grub_video_get_info_and_fini): New prototype.
36348 (grub_video_set_mode): make modestring const char *.
36349 * loader/i386/linux.c (grub_linux_setup_video): Use
36350 grub_video_get_info_and_fini.
36351 (grub_linux_boot): Move modesetting just before booting.
36352 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36353 grub_video_get_info_and_fini.
36354 * video/i386/pc/vbe.c: Moved framebuffer part ...
36355 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36356 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36357 grub_video_fbstd_colors and grub_video_fb_set_palette.
36358 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36359 grub_video_fb_init.
36360 (grub_video_vbe_fini): Use grub_video_fb_fini.
36361 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36362 render_target and use grub_video_fb_set_active_render_target and
36363 grub_video_fb_set_palette.
36364 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36365 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36366 (grub_video_vbe_adapter): Use framebuffer.
36367 * video/video.c (grub_video_get_info_and_fini): New function.
36368 (grub_video_set_mode): Make modestring const char *.
36369 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36370 values are already initialised.
36371
36372 2009-08-14 Pavel Roskin <proski@gnu.org>
36373
36374 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36375 ABS and APPLE_CC.
36376 * boot/i386/pc/diskboot.S: Likewise.
36377 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36378 sectors allow compilation on MacOSX.
36379 * conf/i386-pc.rmk: Enable unconditional compilation of
36380 lnxboot.img.
36381
36382 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36383
36384 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36385 * util/grub.d/00_header.in: Enter interruptible sleep if
36386 GRUB_HIDDEN_TIMEOUT is set.
36387
36388 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36389
36390 * include/grub/symbol.h: Add the LOCAL macro.
36391 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36392 starting with "L_".
36393
36394 2009-08-13 Pavel Roskin <proski@gnu.org>
36395
36396 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36397 any modern compilers we support.
36398
36399 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36400 Use local labels starting with "L_" so that Apple assembler
36401 knows they are local.
36402
36403 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36404
36405 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36406 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36407 (bsd_kernel_types): ... this enum.
36408
36409 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36410 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36411 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36412
36413 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36414 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36415 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36416 messages.
36417
36418 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36419
36420 * util/grub-dumpdevtree: Moved from here ...
36421 * util/i386/efi/grub-dumpdevtree: ... to here.
36422 (hexify): New function. Converts a string to its hex version.
36423 Generate hex versions of "efi" and "device-properties" by calling
36424 hexify() on the ASCII strings rather than by hardcoding numbers.
36425
36426 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36427
36428 * fs/jfs.c: Update copyright year.
36429
36430 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36431
36432 * util/grub.d/00_header.in: Fix a comment.
36433 * util/grub.d/10_linux.in: Likewise.
36434 * util/grub.d/10_windows.in: Likewise.
36435 * util/grub.d/10_hurd.in: Likewise.
36436
36437 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36438
36439 * util/grub-mkconfig.in: Allow the user to specify the used font
36440 with GRUB_FONT.
36441
36442 2009-08-08 Pavel Roskin <proski@gnu.org>
36443
36444 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36445 available, xfs.mod needs it now.
36446
36447 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36448 the "g" modifier in sed when the intention is to strip something
36449 once. This fixes comparison of kernels with multiple dashes.
36450
36451 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36452 on it. Add missing space before closing bracket. Fix
36453 misleading formatting.
36454
36455 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36456
36457 * docs/grub.texi: Major overhaul. Remove all sections that are
36458 specific to GRUB Legacy, or mostly composed of Legacy-specific
36459 information.
36460
36461 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36462
36463 * docs/version.texi: New file. Provides version information for
36464 grub.texi.
36465
36466 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36467
36468 * docs/grub.texi: Update CVS information to SVN.
36469 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36470
36471 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36472
36473 * util/grub-mkconfig.in: Remove a wrong `fi'.
36474
36475 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36476
36477 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36478 (grub_jfs_uuid): New function.
36479 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36480
36481 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36482
36483 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36484 of it to ...
36485 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36486 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36487
36488 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36489
36490 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36491 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36492 Update all users.
36493
36494 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36495 not just "vmlinu[zx]".
36496 Moved from here ...
36497 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36498 all users.
36499
36500 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36501 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36502 all users.
36503
36504 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36505
36506 * util/grub.d/10_freebsd.in: Use an absolute device path for
36507 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36508
36509 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36510
36511 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36512 handling of multiple abstraction modules.
36513
36514 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36515
36516 Fix a bug resulting in black screen when loading Linux using a
36517 packed video mode.
36518
36519 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36520 function.
36521
36522 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36523 (grub_vbe_bios_getset_dac_palette_width): New function.
36524 (grub_vbe_bios_get_dac_palette_width)
36525 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36526 grub_vbe_bios_getset_dac_palette_width()).
36527
36528 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36529 check for return status.
36530 (grub_vbe_get_video_mode_info): When getting information for a packed
36531 mode (<= 8 bpp), obtain DAC palette width using
36532 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36533 {red,green,blue}_mark_size.
36534
36535 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36536
36537 * commands/search.c (options): Fix help output to match actual code.
36538
36539 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36540
36541 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36542 of homegrown code.
36543
36544 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36545
36546 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36547 on XFS or ReiserFS.
36548
36549 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36550
36551 Support Apple partition map with sector size different from 512 bytes.
36552
36553 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36554 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36555 and 'apart.partmap_size'.
36556
36557 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36558 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36559
36560 Fix cpuid command.
36561
36562 * commands/i386/cpuid.c (options): New variable.
36563 (grub_cmd_cpuid): Return real error.
36564 (GRUB_MOD_INIT(cpuid)): Declare options.
36565
36566 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36567
36568 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36569 valid.
36570
36571 2009-07-31 Bean <bean123ch@gmail.com>
36572
36573 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36574 log2_inode.
36575 (grub_fshelp_node): Move inode field to the end.
36576 (grub_xfs_data): Remove inode field.
36577 (grub_xfs_inode_block): Calculate inode size using sblock.
36578 (grub_xfs_inode_offset): Likewise.
36579 (grub_xfs_read_inode): Calculate inode size using sblock.
36580 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36581 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36582 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36583 to match inode size.
36584 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36585 not accessible when data is null.
36586 (grub_xfs_open): Likewise.
36587
36588 2009-07-31 Bean <bean123ch@gmail.com>
36589
36590 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36591 Don't change pv->disk if it's already set.
36592
36593 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36594 (grub_raid_register): ... here.
36595 (grub_raid_rescan): Removed.
36596
36597 * include/grub/raid.h (grub_raid_rescan): Removed.
36598
36599 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36600 (fstest): Replace grub_raid_rescan with module fini function followed
36601 by init function.
36602
36603 * util/grub-probe.c: Add include file <grub/raid.h>.
36604 (probe_raid_level): New function.
36605 (probe): Detect abstraction by walking the disk device, support two
36606 level of abstraction (LVM on RAID) when detecting partition map.
36607
36608 2009-07-31 Pavel Roskin <proski@gnu.org>
36609
36610 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36611 to grub_zalloc(), it was erroneous.
36612 Reported by Bean <bean123ch@gmail.com>
36613
36614 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36615
36616 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36617 embedding zone, not only the first one.
36618
36619 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36620
36621 * term/gfxterm.c (clear_char): New function.
36622 (grub_virtual_screen_setup): Use clear_char.
36623 (scroll_up): Likewise.
36624 (grub_virtual_screen_cls): Likewise.
36625
36626 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36627
36628 * util/deviceiter.c (get_acceleraid_disk_name): New static
36629 function.
36630 (grub_util_iterate_devices): Handle Accelraid devices.
36631 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36632
36633 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36634
36635 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36636 separator for the suggested gfxpayload string (';' collides with the
36637 parser and needs escaping).
36638
36639 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36640
36641 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36642 Clear direction flag before jumping to OS.
36643 (grub_multiboot2_real_boot): Likewise.
36644
36645 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36646
36647 * util/i386/pc/grub-install: Fix parsing of --disk-module
36648 option.
36649
36650 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36651
36652 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36653 when embedding.
36654
36655 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36656
36657 * util/grub-mkconfig.in (package_version): New variable.
36658 Use it do display the version.
36659
36660 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36661
36662 * kern/file.c (grub_file_open): Revert to previous check with
36663 grub_errno.
36664
36665 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36666
36667 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36668 from help line. It's out of sync with code.
36669
36670 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36671
36672 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36673 entries on failed boot.
36674
36675 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36676
36677 * kern/file.c (grub_file_open): Fix an error check.
36678
36679 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36680
36681 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36682 partition map couldn't be identified.
36683
36684 2009-07-23 Pavel Roskin <proski@gnu.org>
36685
36686 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36687 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36688 case of little endian words becomes just an optimization.
36689 Respect const modifier.
36690 (md5_final): Use code that doesn't depend on endianness.
36691
36692 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36693 to avoid loss of upper bits if align is unsigned and shorter
36694 than addr.
36695
36696 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36697
36698 UUID support for UFS
36699
36700 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36701 (grub_ufs_uuid): New function.
36702 (grub_ufs_fs): add .uuid
36703
36704 2009-07-21 Pavel Roskin <proski@gnu.org>
36705
36706 * kern/dl.c (grub_dl_check_header): Make static.
36707
36708 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36709
36710 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36711 add drivemap for Vista. It breaks Windows 7.
36712
36713 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36714
36715 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36716 128 bytes
36717
36718 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36719
36720 Add BFS support
36721
36722 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36723 (grub_fstest_SOURCES): Likewise.
36724 (pkglib_MODULES): Add befs.mod.
36725 (befs_mod_SOURCES): New variable.
36726 (befs_mod_CFLAGS): Likewise.
36727 (befs_mod_LDFLAGS): Likewise.
36728 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36729 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36730 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36731 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36732 (grub_setup_SOURCES): Likewise.
36733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36734 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36735 (grub_setup_SOURCES): Likewise.
36736 * fs/befs.c: New file.
36737 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36738 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36739 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36740 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36741 (B_KEY_INDEX_ALIGN): New declaration.
36742 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36743 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36744 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36745 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36746 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36747 (grub_afs_mount) [MODE_BFS]: Likewise.
36748 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36749 (grub_afs_fs): Use GRUB_AFS_FSNAME
36750 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36751 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36752 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36753 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36754
36755 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36756
36757 * util/getroot.c (find_root_device): Add support for MacOSX.
36758 * util/hostdisk.c: Likewise.
36759
36760 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36761
36762 * font/font.c (find_glyph): Check whether a font is present to avoid
36763 segmentation fault.
36764
36765 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36766
36767 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36768
36769 2009-07-20 Pavel Roskin <proski@gnu.org>
36770
36771 * configure.ac: Trim excessively wordy excuses.
36772
36773 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36774
36775 Add symlink, mtime and label support to AtheFS.
36776
36777 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36778 (grub_afs_iterate_dir): Handle symlinks.
36779 (grub_afs_open): Use grub_afs_read_symlink.
36780 (grub_afs_dir): Likewise.
36781 Pass mtime.
36782 (grub_afs_label): New function.
36783 (grub_afs_fs): Add grub_afs_label.
36784 (grub_afs_read_symlink): New function.
36785
36786 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36787
36788 Fix AtheFS support.
36789
36790 * fs/afs.c: Fix comments style.
36791 (grub_afs_blockrun): Declare as packed.
36792 (grub_afs_datastream): Likewise.
36793 (grub_afs_bnode): Likewise.
36794 (grub_afs_btree): Likewise.
36795 (grub_afs_sblock): Likewise.
36796 Declare `name' as char.
36797 (grub_afs_inode): Declare as packed.
36798 Change void *vnode to grub_uint32_t unused.
36799 (grub_afs_iterate_dir): Check that key_size is positive.
36800 (grub_afs_mount): Don't read superblock twice.
36801 (grub_afs_dir): Don't free node in case of error,
36802 grub_fshelp_find_file already handles this.
36803 (grub_afs_open): Likewise.
36804
36805 2009-07-19 Pavel Roskin <proski@gnu.org>
36806
36807 * Makefile.in: Remove LIBLZO and enable_lzo.
36808 * conf/i386-pc.rmk: Remove lzo support.
36809 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36810 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36811 support.
36812 * kern/i386/pc/lzo1x.S: Remove.
36813 * kern/i386/pc/startup.S: Remove lzo support.
36814 * util/i386/pc/grub-mkimage.c: Likewise.
36815
36816 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36817
36818 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36819 * fs/xfs.c (grub_xfs_dir): Likewise.
36820 * fs/afs.c (grub_afs_dir): Likewise.
36821 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36822 (grub_iso9660_open): Likewise.
36823 * fs/jfs.c (grub_jfs_open): Likewise.
36824 * fs/ext2.c (grub_ext2_dir): Likewise.
36825 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36826 * script/sh/lexer.c (grub_script_yylex): Likewise.
36827
36828 2009-07-16 Pavel Roskin <proski@gnu.org>
36829
36830 * configure.ac: Never add "-c" to CFLAGS.
36831
36832 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36833
36834 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36835 grub_cv_cc_efiemu should be used.
36836
36837 * configure.ac: Typo fixes.
36838
36839 * kern/mm.c (grub_zalloc): New function.
36840 (grub_debug_zalloc): Likewise.
36841 * include/grub/mm.h: Declare grub_zalloc() and
36842 grub_debug_zalloc().
36843 * util/misc.c (grub_zalloc): New function.
36844 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36845 instead of grub_malloc(), remove unneeded initializations.
36846 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36847 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36848 * commands/parttool.c (grub_cmd_parttool): Likewise.
36849 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36850 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36851 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36852 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36853 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36854 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36855 (grub_cmd_efiemu_pnvram): Likewise.
36856 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36857 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36858 (grub_iso9660_iterate_dir): Likewise.
36859 * fs/jfs.c (grub_jfs_opendir): Likewise.
36860 * fs/ntfs.c (list_file): Likewise.
36861 (grub_ntfs_mount): Likewise.
36862 * kern/disk.c (grub_disk_open): Likewise.
36863 * kern/dl.c (grub_dl_load_core): Likewise.
36864 * kern/elf.c (grub_elf_file): Likewise.
36865 * kern/env.c (grub_env_context_open): Likewise.
36866 (grub_env_set): Likewise.
36867 (grub_env_set_data_slot): Likewise.
36868 * kern/file.c (grub_file_open): Likewise.
36869 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36870 * loader/i386/multiboot.c (grub_module): Likewise.
36871 * loader/xnu.c (grub_xnu_create_key): Likewise.
36872 (grub_xnu_create_value): Likewise.
36873 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36874 (read_config_file): Likewise.
36875 * normal/menu_entry.c (make_screen): Likewise.
36876 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36877 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36878 * script/sh/script.c (grub_script_parse): Likewise.
36879 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36880 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36881 * video/readers/png.c (grub_png_output_byte): Likewise.
36882 (grub_video_reader_png): Likewise.
36883
36884 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36885
36886 Enable all targets that can be built by default
36887
36888 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36889 grub-mkfont and grub-fstest if they can be built
36890
36891 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36892
36893 Fix hang and segmentation fault in grub-emu-usb
36894
36895 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36896 * util/usb.c (grub_libusb_devices): likewise
36897 (grub_libusb_init): rename to ...
36898 (GRUB_MOD_INIT (libusb)):...this
36899 (grub_libusb_fini): rename to ..
36900 (GRUB_MOD_FINI (libusb)):...this
36901 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36902 * include/grub/disk.h (grub_raid_init): removed, it's useless
36903 (grub_raid_fini): likewise
36904 (grub_lvm_init): likewise
36905 (grub_lvm_fini): likewise
36906 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36907 by grub_init_all
36908
36909 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36910
36911 Fix libusb
36912
36913 * Makefile.in (LIBUSB): new macro
36914 * genmk.rb (Utility/print_tail): new method
36915 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36916 (top level): call util.print_tail at the end.
36917
36918 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36919
36920 Make FreeBSD accept zpool.cache
36921
36922 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36923 type is /boot/zfs/zpool.cache
36924
36925 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36926
36927 Fix 64-bit efiemu
36928
36929 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36930 correct wrong typedef
36931 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36932
36933 2009-07-15 Pavel Roskin <proski@gnu.org>
36934
36935 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36936 * kern/disk.c (struct grub_disk_cache): Likewise.
36937
36938 * commands/probe.c (options): Typo fix.
36939
36940 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36941 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36942 accordingly.
36943 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36944
36945 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36946 the end of "Error" to make the message more readable.
36947
36948 * boot/i386/pc/boot.S (kernel_segment): Remove.
36949 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36950 for destination.
36951
36952 * boot/i386/pc/boot.S (boot_version): Remove.
36953 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36954 Remove.
36955
36956 * include/grub/i386/pc/boot.h: Sort all offsets.
36957 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36958 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36959 * boot/i386/pc/boot.S: Assert location of every offset listed in
36960 include/grub/i386/pc/boot.h.
36961
36962 2009-07-13 Pavel Roskin <proski@gnu.org>
36963
36964 * include/grub/i386/coreboot/machine.h: Rename
36965 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36966 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36967 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36968
36969 * kern/dl.c: Force native word size to suppress warnings when
36970 compiling grub-emu.
36971
36972 * kern/device.c (grub_device_iterate): Change struct part_ent to
36973 hold the name, not a pointer to it. Use one grub_malloc() per
36974 partition, not two. Free partition_name if grub_malloc() fails.
36975 Set ents to NULL only before grub_partition_iterate() is called.
36976
36977 2009-07-11 Bean <bean123ch@gmail.com>
36978
36979 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36980 childname.
36981
36982 2009-07-10 Bean <bean123ch@gmail.com>
36983 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36984
36985 * kern/ieee1275/openfw.c (grub_children_iterate)
36986 (grub_devalias_iterate): Fix size evaluation for property or path
36987 strings, which was broken since r2132.
36988
36989 2009-07-07 Pavel Roskin <proski@gnu.org>
36990
36991 * commands/search.c (search_file): Merge into ...
36992 (search_fs): ... this. Accept search type as argument.
36993 (grub_cmd_search): Pass search type to search_fs().
36994
36995 * include/grub/util/console.h: New file.
36996 * util/console.c: Use it instead of grub/machine/console.h.
36997 * util/grub-emu.c: Likewise.
36998
36999 * lib/arg.c (find_long_option): Remove.
37000 (find_long): Add `len' argument, make `s' const char *.
37001 (grub_arg_parse): Parse long options in place, not in a
37002 temporary buffer.
37003
37004 2009-07-06 Pavel Roskin <proski@gnu.org>
37005
37006 * commands/search.c (search_fs): Fix potential NULL pointer
37007 dereference.
37008
37009 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37010 function pointer.
37011
37012 2009-07-06 Daniel Mierswa <impulze@impulze.org>
37013
37014 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37015 comparison.
37016
37017 2009-07-05 Pavel Roskin <proski@gnu.org>
37018
37019 * include/grub/i386/linux.h (struct linux_kernel_params):
37020 Restore padding3, it's still needed.
37021
37022 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37023 FreeBSD.
37024 * util/osdetect.lua: Likewise.
37025
37026 2009-07-05 Bean <bean123ch@gmail.com>
37027
37028 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37029
37030 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37031 (grub_lua_getenv): Likewise.
37032 (grub_lua_setenv): Likewise.
37033 (save_errno): New function.
37034 (push_result): Likewise.
37035 (grub_lua_enum_device): Likewise.
37036 (grub_lua_enum_file): Likewise.
37037 (grub_lua_file_open): Likewise.
37038 (grub_lua_file_close): Likewise.
37039 (grub_lua_file_seek): Likewise.
37040 (grub_lua_file_read): Likewise.
37041 (grub_lua_file_getline): Likewise.
37042 (grub_lua_file_getsize): Likewise.
37043 (grub_lua_file_getpos): Likewise.
37044 (grub_lua_file_eof): Likewise.
37045 (grub_lua_file_exist): Likewise.
37046 (grub_lua_add_menu): Likewise.
37047
37048 * script/lua/grub_lua.h (isupper): New inline function.
37049 (islower): Likewise.
37050 (ispunct): Likewise.
37051 (isxdigit): Likewise.
37052 (strcspn): Change to normal function.
37053 (strpbkr): New function declaration.
37054 (memchr): Likewise.
37055
37056 * script/lua/grub_main.c (scan_str): New function.
37057 (strcspn): Likewise.
37058 (strpbrk): Likewise.
37059 (memchr): Likewise.
37060
37061 * script/lua/linit.c (lualibs): Enable the string library.
37062
37063 * util/osdetect.lua: New file.
37064
37065 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37066
37067 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37068 `capabilities' member.
37069
37070 2009-07-02 Pavel Roskin <proski@gnu.org>
37071
37072 * genparttoollist.sh: Add missing newline at the end.
37073
37074 2009-07-01 Pavel Roskin <proski@gnu.org>
37075
37076 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37077
37078 * util/hostdisk.c (open_device): Remove `const' from
37079 `sysctl_size', as sysctlbyname() can change it (in this case it
37080 doesn't actually happen).
37081
37082 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37083 using signed long int constants.
37084
37085 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37086 constant to avoid a warning on FreeBSD.
37087
37088 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37089 where it's needed.
37090
37091 * Makefile.in: Install include/grub/machine symlink.
37092
37093 * Makefile.in: When installing symlinks, use "cp -fR", which
37094 works on FreeBSD and MacOSX.
37095 From Yves Blusseau <cl7m42e02@sneakemail.com>
37096
37097 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37098 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37099
37100 * util/misc.c: Move grub_reboot() and grub_halt() ...
37101 * util/grub-emu.c: ... here. Make main_env static.
37102 * include/grub/util/misc.h: Remove main_env.
37103
37104 * kern/mm.c: Use correct format to print size_t.
37105
37106 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37107 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37108 * kern/powerpc/dl.c: Likewise.
37109 * kern/sparc64/dl.c: Likewise.
37110 * kern/x86_64/dl.c: Likewise.
37111
37112 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37113
37114 Fix grub-emu build on sparc64-ieee1275.
37115
37116 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37117 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37118
37119 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37120
37121 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37122 (grub_reboot, grub_halt): New functions.
37123
37124 * util/i386/pc/misc.c: Delete. Update all users.
37125 * util/sparc64/ieee1275/misc.c: Likewise.
37126 * util/powerpc/ieee1275/misc.c: Likewise.
37127
37128 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37129
37130 * conf/i386.rmk (setjmp_mod_SOURCES)
37131 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37132 * conf/common.rmk (setjmp_mod_SOURCES)
37133 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37134 to use $(target_cpu).
37135 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37136 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37137 * conf/powerpc-ieee1275.rmk: Likewise.
37138 * conf/sparc64-ieee1275.rmk: Likewise.
37139
37140 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37141 $(target_cpu) for kern/$(target_cpu)/dl.c.
37142 * conf/i386-efi.rmk: Likewise.
37143 * conf/i386-ieee1275.rmk: Likewise.
37144 * conf/x86_64-efi.rmk: Likewise.
37145 * conf/i386-coreboot.rmk: Likewise.
37146 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37147 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37148 kern/$(target_cpu)/cache.S.
37149 * conf/sparc64-ieee1275.rmk: Likewise.
37150
37151 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37152
37153 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37154 type to `grub_uint8_t', and adjust `padding9' accordingly.
37155
37156 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37157
37158 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37159
37160 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37161 assembly in final jump, using register constraints.
37162
37163 (grub_linux_boot): For text mode, initialize `have_vga' using
37164 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37165
37166 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37167 right before the final jump.
37168
37169 Set `video_mode' to 0x3.
37170
37171 Document initialization of `video_page', `video_mode' and
37172 `video_ega_bx'.
37173
37174 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37175
37176 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37177 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37178 and set GRUB_LINUX_FLAG_QUIET appropriately.
37179
37180 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37181
37182 Fix build on Debian / sparc.
37183
37184 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37185
37186 2009-06-28 Pavel Roskin <proski@gnu.org>
37187
37188 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37189 fix a warning.
37190
37191 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37192
37193 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37194
37195 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37196 `err'.
37197
37198 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37199
37200 Revert r2338.
37201
37202 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37203 file can't be opened. grub_file_open() is already supposed to set
37204 grub_errno / grub_errmsg appropriately.
37205 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37206
37207 2009-06-27 Pavel Roskin <proski@gnu.org>
37208 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37209
37210 * include/grub/dl.h: Include grub/elf.h.
37211 (struct grub_dl): Add symtab field.
37212 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37213 GRUB_MODULES_MACHINE_READONLY.
37214 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37215 of the header for read-only modules.
37216 (grub_dl_unload): Free mod->symtab for read-only modules.
37217 * kern/i386/dl.c: Use mod->symtab.
37218 * kern/powerpc/dl.c: Likewise.
37219 * kern/sparc64/dl.c: Likewise.
37220 * kern/x86_64/dl.c: Likewise.
37221
37222 * conf/i386-qemu.rmk: New file.
37223 * kern/i386/qemu/startup.S: Likewise.
37224 * kern/i386/qemu/mmap.c: Likewise.
37225 * boot/i386/qemu/boot.S: Likewise.
37226 * include/grub/i386/qemu/time.h: Likewise.
37227 * include/grub/i386/qemu/serial.h: Likewise.
37228 * include/grub/i386/qemu/kernel.h: Likewise.
37229 * include/grub/i386/qemu/console.h: Likewise.
37230 * include/grub/i386/qemu/boot.h: Likewise.
37231 * include/grub/i386/qemu/init.h: Likewise.
37232 * include/grub/i386/qemu/machine.h: Likewise.
37233 * include/grub/i386/qemu/loader.h: Likewise.
37234 * include/grub/i386/qemu/memory.h: Likewise.
37235
37236 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37237 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37238 [qemu] (pkglib_IMAGES): Add `boot.img'.
37239 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37240 [qemu] (boot_img_FORMAT): New variables.
37241 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37242 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37243 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37244 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37245 [qemu] (kernel_img_FORMAT): New variables.
37246
37247 * configure.ac: Recognise `i386-qemu'.
37248
37249 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37250 (for no compression).
37251 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37252 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37253 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37254 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37255 ifdefs).
37256
37257 2009-06-27 Pavel Roskin <proski@gnu.org>
37258
37259 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37260 read.
37261 * efiemu/prepare32.c: Likewise.
37262 * efiemu/prepare64.c: Likewise.
37263
37264 2009-06-26 Pavel Roskin <proski@gnu.org>
37265
37266 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37267 * include/grub/elf.h: Define symbols without "32" or "64" based
37268 on GRUB_TARGET_WORDSIZE.
37269 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37270 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37271 ELF definitions.
37272 * efiemu/loadcore64.c: Likewise.
37273 * loader/i386/bsd32.c: Likewise.
37274 * loader/i386/bsd64.c: Likewise.
37275 * kern/dl.c: Remove own ELF definitions.
37276 * util/i386/efi/grub-mkimage.c: Likewise.
37277
37278 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37279
37280 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37281 segment 0x0 unconditionally, because the reference generated by
37282 GAS is an absolute address.
37283
37284 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37285
37286 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37287 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37288
37289 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37290
37291 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37292 indexes. Check for -f explicitly.
37293 (search_file): Improve error message.
37294 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37295
37296 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37297
37298 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37299 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37300
37301 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37302
37303 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37304 * conf/i386-ieee1275.rmk: Likewise.
37305 * conf/i386-coreboot.rmk: Likewise.
37306
37307 * kern/i386/pc/startup.S (grub_stop): Remove function.
37308 * kern/i386/ieee1275/startup.S: Likewise.
37309 * kern/i386/coreboot/startup.S: Likewise.
37310 * kern/i386/misc.S (grub_stop): New function.
37311
37312 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37313
37314 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37315 * kern/i386/realmode.S (real_to_prot): ... to here.
37316
37317 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37318
37319 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37320 with `kernel.img'.
37321 (kernel_elf_SOURCES): Rename to ...
37322 (kernel_img_SOURCES): ... this.
37323 (kernel_elf_HEADERS): Rename to ...
37324 (kernel_img_HEADERS): ... this. Update all users.
37325 (kernel_elf_ASFLAGS): Rename to ...
37326 (kernel_img_ASFLAGS): ... this.
37327 (kernel_elf_CFLAGS): Rename to ...
37328 (kernel_img_CFLAGS): ... this.
37329 (kernel_elf_LDFLAGS): Rename to ...
37330 (kernel_img_LDFLAGS): ... this.
37331 * conf/i386-coreboot.rmk: Likewise.
37332 * conf/powerpc-ieee1275.rmk: Likewise.
37333
37334 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37335 with "kernel.img".
37336
37337 2009-06-21 Pavel Roskin <proski@gnu.org>
37338
37339 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37340 to match nested functions.
37341 * loader/sparc64/ieee1275/linux.c: Likewise.
37342
37343 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37344
37345 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37346
37347 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37348 all i386 platforms.
37349
37350 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37351
37352 Fix asm file handling on ELF, and remove workarounds.
37353
37354 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37355 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37356 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37357 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37358
37359 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37360
37361 Load BSD ELF modules
37362
37363 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37364 and loader/i386/bsd64.c
37365 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37366 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37367 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37368 (grub_freebsd_load_elfmodule32): New declaration
37369 (grub_freebsd_load_elfmoduleobj64): Likewise
37370 (grub_freebsd_load_elf_meta32): Likewise
37371 (grub_freebsd_load_elf_meta64): Likewise
37372 (grub_freebsd_add_meta): Likewise
37373 (grub_freebsd_add_meta_module): Likewise
37374 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37375 (grub_freebsd_add_meta_module): Likewise and move module-specific
37376 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37377 (grub_cmd_freebsd): Add elf-kernel specific parts
37378 based on grub_freebsd_add_meta_module
37379 (grub_cmd_freebsd_module): Add type parsing moved from
37380 grub_freebsd_add_meta_module
37381 (grub_cmd_freebsd_module_elf): New function
37382 (cmd_freebsd_module_elf): New variable
37383 (GRUB_MOD_INIT): Register freebsd_module_elf
37384 * loader/i386/bsd32.c: New file
37385 * loader/i386/bsd64.c: Likewise
37386 * loader/i386/bsdXX.c: Likewise
37387 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37388 (grub_elf64_load): Likewise
37389 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37390 All users updated
37391 (grub_elf64_load_hook_t): Likewise
37392
37393 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37394
37395 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37396 variable.
37397 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37398 don't write a menu entry for recovery mode.
37399
37400 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37401
37402 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37403 after it's no longer needed.
37404
37405 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37406
37407 * include/grub/i386/loader.h (grub_linux_prot_size)
37408 (grub_linux_tmp_addr, grub_linux_real_addr)
37409 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37410 GRUB_MACHINE_PCBIOS.
37411 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37412 common grub_util_info() call to ...
37413 (generate_image): ... here.
37414 Fix use of uninitialized memory, comparison of signed with
37415 unsigned integers and memory leak.
37416 Remove bogus module address message.
37417
37418 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37419
37420 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37421 grub_raid_register
37422 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37423
37424 2009-06-19 Pavel Roskin <proski@gnu.org>
37425
37426 * configure.ac: Remove stray AC_MSG_CHECKING.
37427
37428 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37429
37430 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37431
37432 2009-06-18 Pavel Roskin <proski@gnu.org>
37433
37434 * conf/common.rmk: Add fs_file.mod.
37435 * disk/fs_file.c: New file.
37436 * include/grub/disk.h (enum grub_disk_dev_id): Add
37437 GRUB_DISK_DEVICE_FILE_ID.
37438
37439 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37440
37441 Fix build with Apple's toolchain. Part 2
37442
37443 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37444 a fake start
37445
37446 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37447
37448 Fix build with Apple's toolchain. Part 1
37449
37450 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37451 for long calls
37452 * configure.ac: remove a leftover AC_MSG_RESULT
37453 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37454 Apple's toolchain
37455
37456 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37457
37458 Fix warnings
37459
37460 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37461 (decomp_block): initialize ch
37462 use grub_memcpy instead of memcpy
37463
37464 2009-06-17 Pavel Roskin <proski@gnu.org>
37465
37466 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37467 version, use declarations needed to use vga_text as the startup
37468 console.
37469
37470 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37471 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37472 the kernel.
37473 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37474 and grub_at_keyboard_fini(), it's done on module load and
37475 unload.
37476
37477 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37478
37479 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37480 file can't be found.
37481 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37482
37483 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37484
37485 Fix newline handling
37486
37487 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37488 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37489 (grub_script_yylex): don't segfault on unterminated script
37490 newline terminates command and variable
37491
37492 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37493
37494 avoid double grub_adjust_range call. Bug reported by David Simner
37495
37496 * kern/disk.c (grub_disk_write): change to raw disk access before
37497 calling disk_read
37498
37499 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37500
37501 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37502 spaces, for the benefit of help2man.
37503 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37504
37505 2009-06-16 Pavel Roskin <proski@gnu.org>
37506
37507 * kern/i386/halt.c: Include grub/machine/init.h.
37508 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37509
37510 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37511
37512 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37513 drivemap menuentry.
37514
37515 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37516
37517 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37518 `echo' command.
37519
37520 2009-06-16 Pavel Roskin <proski@gnu.org>
37521
37522 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37523 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37524 save %dx, we only need %dl and we never change it.
37525 * boot/i386/pc/cdboot.S: Don't set the root drive.
37526 * boot/i386/pc/pxeboot.S: Likewise.
37527 * include/grub/i386/pc/boot.h: Remove
37528 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37529 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37530 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37531 * kern/i386/pc/init.c (make_install_device): Remove references
37532 to grub_root_drive.
37533 * kern/i386/pc/startup.S: Likewise.
37534 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37535
37536 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37537
37538 xnu_uuid command
37539
37540 * commands/xnu_uuid.c: new file
37541 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37542 (xnu_uuid_mod_SOURCES): new variable
37543 (xnu_uuid_mod_CFLAGS): likewise
37544 (xnu_uuid_mod_LDFLAGS): likewise
37545 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37546 * conf/i386-ieee1275.rmk: likewise
37547 * conf/i386-pc.rmk: likewise
37548 * conf/powerpc-ieee1275.rmk: likewise
37549 * conf/sparc64-ieee1275.rmk: likewise
37550 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37551
37552 2009-06-16 Pavel Roskin <proski@gnu.org>
37553
37554 * configure.ac: Avoid '==' in test command, it's not portable.
37555
37556 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37557
37558 Probe command
37559
37560 * commands/probe.c: new file
37561 * conf/common.rmk (pkglib_MODULES): add probe.mod
37562 (probe_mod_SOURCES): new variable
37563 (probe_mod_CFLAGS): likewise
37564 (probe_mod_LDFLAGS): likewise
37565 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37566 * conf/i386-ieee1275.rmk: likewise
37567 * conf/i386-pc.rmk: likewise
37568 * conf/powerpc-ieee1275.rmk: likewise
37569 * conf/sparc64-ieee1275.rmk: likewise
37570
37571 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37572
37573 Fix handling of string like \"hello\" and "a
37574 b"
37575
37576 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37577 (grub_script_yylex): fix parsing of quoting, escaping and newline
37578
37579 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37580
37581 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37582 handling
37583
37584 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37585
37586 * util/grub-mkconfig.in: Fix parsing of --output option.
37587
37588 2009-06-12 Pavel Roskin <proski@gnu.org>
37589
37590 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37591 genmk.rb don't need to be generated or installed.
37592
37593 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37594
37595 * commands/i386/pc/drivemap_int13h.S: add more comments
37596
37597 2009-06-11 Pavel Roskin <proski@gnu.org>
37598
37599 * Makefile.in (uninstall): Uninstall manuals.
37600
37601 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37602 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37603 and update-grub_lib in two places.
37604 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37605
37606 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37607 a compiler warning.
37608
37609 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37610 `entry_lo' to fix variable shadowing.
37611
37612 2009-06-11 Christian Franke <franke@computer.org>
37613
37614 * kern/misc.c (__enable_execute_stack): Add missing return type
37615 to prevent gcc warning.
37616
37617 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37618
37619 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37620
37621 2009-06-11 Pavel Roskin <proski@gnu.org>
37622
37623 * Makefile.in: Don't rely on any scripts being executable.
37624 Always use $(SHELL) to run shell scripts.
37625
37626 * configure.ac: Always define ___main if using -nostdlib. This
37627 fixes tests on Cygwin.
37628
37629 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37630
37631 UDF fix
37632
37633 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37634 is in bytes and not in blocks
37635
37636 2009-06-11 Pavel Roskin <proski@gnu.org>
37637
37638 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37639 warning.
37640
37641 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37642
37643 * util/grub.d/30_os-prober.in: Fix a comment. Source
37644 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37645 to set the root device. Place drivemap command in the generated
37646 chain entry.
37647
37648 2009-06-11 Pavel Roskin <proski@gnu.org>
37649
37650 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37651 have long been resolved.
37652
37653 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37654
37655 * util/grub.d/10_linux.in: Capitalise "Linux".
37656
37657 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37658
37659 2009-06-11 Pavel Roskin <proski@gnu.org>
37660
37661 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37662 fix a gcc warning and ensure that the function won't ever exit.
37663
37664 * kern/i386/ieee1275/init.c: Add missing prototype for
37665 grub_stop_floppy().
37666
37667 * loader/ieee1275/multiboot2.c [__i386__]: Include
37668 grub/cpu/multiboot.h.
37669
37670 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37671 casts to short - they are not portable and cause warnings. Fix
37672 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37673
37674 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37675
37676 Drivemap fixes
37677
37678 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37679 new function
37680 (grub_get_root_biosnumber_saved): new variable
37681 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37682 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37683 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37684 %dx after the call if necessary
37685 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37686 (boot_mod_SOURCES): remove
37687 (boot_mod_CFLAGS): remove
37688 (boot_mod_LDFLAGS): remove
37689 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37690 (boot_mod_SOURCES): new variable
37691 (boot_mod_CFLAGS): likewise
37692 (boot_mod_LDFLAGS): likewise
37693 * conf/i386-efi.rmk: likewise
37694 * conf/i386-ieee1275.rmk: likewise
37695 * conf/i386-pc.rmk: likewise
37696 * conf/powerpc-ieee1275.rmk: likewise
37697 * conf/sparc64-ieee1275.rmk: likewise
37698 * conf/x86_64-efi.rmk: likewise
37699 * include/grub/i386/pc/biosnum.h: new file
37700 * lib/i386/pc/biosnum.c: likewise
37701 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37702 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37703 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37704
37705 2009-06-10 Pavel Roskin <proski@gnu.org>
37706
37707 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37708 Use separate variables. Read only the file size at the end, but
37709 not the checksum that we don't use.
37710
37711 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37712 Adjust all callers.
37713
37714 * kern/ieee1275/openfw.c: Remove libc includes.
37715 * kern/ieee1275/cmain.c: Likewise.
37716 * include/grub/ieee1275/ieee1275.h: Likewise.
37717
37718 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37719 compiler warnings.
37720
37721 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37722
37723 * Makefile.in: Remove all trailing whitespace.
37724 * conf/i386-pc.rmk: Likewise.
37725 * conf/powerpc-ieee1275.rmk: Likewise.
37726 * conf/sparc64-ieee1275.rmk: Likewise.
37727 * docs/grub.texi: Likewise.
37728 * docs/texinfo.tex: Likewise.
37729 * disk/fs_uuid.c: Likewise.
37730 * disk/lvm.c: Likewise.
37731 * disk/scsi.c: Likewise.
37732 * disk/ata.c: Likewise.
37733 * disk/ieee1275/ofdisk.c: Likewise.
37734 * disk/i386/pc/biosdisk.c: Likewise.
37735 * disk/host.c: Likewise.
37736 * disk/raid.c: Likewise.
37737 * disk/efi/efidisk.c: Likewise.
37738 * disk/usbms.c: Likewise.
37739 * disk/memdisk.c: Likewise.
37740 * disk/loopback.c: Likewise.
37741 * kern/powerpc/dl.c: Likewise.
37742 * kern/device.c: Likewise.
37743 * kern/dl.c: Likewise.
37744 * kern/sparc64/dl.c: Likewise.
37745 * kern/ieee1275/ieee1275.c: Likewise.
37746 * kern/term.c: Likewise.
37747 * kern/fs.c: Likewise.
37748 * kern/i386/dl.c: Likewise.
37749 * kern/i386/pc/startup.S: Likewise.
37750 * kern/i386/pc/init.c: Likewise.
37751 * kern/i386/pc/mmap.c: Likewise.
37752 * kern/i386/pc/lzo1x.S: Likewise.
37753 * kern/i386/ieee1275/init.c: Likewise.
37754 * kern/i386/realmode.S: Likewise.
37755 * kern/i386/tsc.c: Likewise.
37756 * kern/partition.c: Likewise.
37757 * kern/corecmd.c: Likewise.
37758 * kern/file.c: Likewise.
37759 * kern/efi/efi.c: Likewise.
37760 * kern/efi/init.c: Likewise.
37761 * kern/efi/mm.c: Likewise.
37762 * kern/main.c: Likewise.
37763 * kern/err.c: Likewise.
37764 * kern/env.c: Likewise.
37765 * kern/disk.c: Likewise.
37766 * kern/generic/millisleep.c: Likewise.
37767 * kern/generic/rtc_get_time_ms.c: Likewise.
37768 * kern/misc.c: Likewise.
37769 * kern/parser.c: Likewise.
37770 * genmk.rb: Likewise.
37771 * configure.ac: Likewise.
37772 * boot/i386/pc/diskboot.S: Likewise.
37773 * boot/i386/pc/pxeboot.S: Likewise.
37774 * boot/i386/pc/boot.S: Likewise.
37775 * boot/i386/pc/lnxboot.S: Likewise.
37776 * boot/i386/pc/cdboot.S: Likewise.
37777 * parttool/pcpart.c: Likewise.
37778 * video/readers/tga.c: Likewise.
37779 * video/video.c: Likewise.
37780 * video/bitmap.c: Likewise.
37781 * lib/envblk.c: Likewise.
37782 * lib/i386/setjmp.S: Likewise.
37783 * fs/xfs.c: Likewise.
37784 * fs/afs.c: Likewise.
37785 * fs/fat.c: Likewise.
37786 * fs/ntfs.c: Likewise.
37787 * fs/udf.c: Likewise.
37788 * fs/affs.c: Likewise.
37789 * fs/iso9660.c: Likewise.
37790 * fs/hfs.c: Likewise.
37791 * fs/fshelp.c: Likewise.
37792 * fs/ext2.c: Likewise.
37793 * fs/jfs.c: Likewise.
37794 * fs/reiserfs.c: Likewise.
37795 * fs/hfsplus.c: Likewise.
37796 * fs/minix.c: Likewise.
37797 * fs/cpio.c: Likewise.
37798 * fs/sfs.c: Likewise.
37799 * fs/ufs.c: Likewise.
37800 * efiemu/prepare.c: Likewise.
37801 * efiemu/loadcore_common.c: Likewise.
37802 * efiemu/runtime/efiemu.sh: Likewise.
37803 * efiemu/runtime/efiemu.S: Likewise.
37804 * efiemu/runtime/efiemu.c: Likewise.
37805 * efiemu/pnvram.c: Likewise.
37806 * efiemu/main.c: Likewise.
37807 * efiemu/i386/pc/cfgtables.c: Likewise.
37808 * efiemu/i386/loadcore64.c: Likewise.
37809 * efiemu/i386/loadcore32.c: Likewise.
37810 * efiemu/loadcore.c: Likewise.
37811 * efiemu/symbols.c: Likewise.
37812 * efiemu/mm.c: Likewise.
37813 * include/grub/autoefi.h: Likewise.
37814 * include/grub/datetime.h: Likewise.
37815 * include/grub/term.h: Likewise.
37816 * include/grub/hfs.h: Likewise.
37817 * include/grub/lvm.h: Likewise.
37818 * include/grub/i386/tsc.h: Likewise.
37819 * include/grub/i386/linux.h: Likewise.
37820 * include/grub/i386/xnu.h: Likewise.
37821 * include/grub/i386/efiemu.h: Likewise.
37822 * include/grub/i386/pc/biosdisk.h: Likewise.
37823 * include/grub/i386/pc/memory.h: Likewise.
37824 * include/grub/i386/pc/vbe.h: Likewise.
37825 * include/grub/parttool.h: Likewise.
37826 * include/grub/video.h: Likewise.
37827 * include/grub/memory.h: Likewise.
37828 * include/grub/fs.h: Likewise.
37829 * include/grub/partition.h: Likewise.
37830 * include/grub/xnu.h: Likewise.
37831 * include/grub/efi/api.h: Likewise.
37832 * include/grub/efi/pe32.h: Likewise.
37833 * include/grub/efi/memory.h: Likewise.
37834 * include/grub/multiboot.h: Likewise.
37835 * include/grub/usbdesc.h: Likewise.
37836 * include/grub/multiboot2.h: Likewise.
37837 * include/grub/acpi.h: Likewise.
37838 * include/grub/efiemu/efiemu.h: Likewise.
37839 * include/grub/disk.h: Likewise.
37840 * include/grub/ieee1275/ieee1275.h: Likewise.
37841 * include/grub/net.h: Likewise.
37842 * include/grub/machoload.h: Likewise.
37843 * include/grub/macho.h: Likewise.
37844 * include/multiboot.h: Likewise.
37845 * genmoddep.awk: Likewise.
37846 * normal/main.c: Likewise.
37847 * normal/menu_entry.c: Likewise.
37848 * normal/menu_viewer.c: Likewise.
37849 * normal/completion.c: Likewise.
37850 * normal/cmdline.c: Likewise.
37851 * normal/misc.c: Likewise.
37852 * normal/datetime.c: Likewise.
37853 * bus/usb/usbtrans.c: Likewise.
37854 * bus/usb/ohci.c: Likewise.
37855 * bus/usb/uhci.c: Likewise.
37856 * bus/usb/usb.c: Likewise.
37857 * mmap/efi/mmap.c: Likewise.
37858 * mmap/i386/pc/mmap_helper.S: Likewise.
37859 * mmap/i386/pc/mmap.c: Likewise.
37860 * mmap/i386/mmap.c: Likewise.
37861 * mmap/i386/uppermem.c: Likewise.
37862 * mmap/mmap.c: Likewise.
37863 * commands/acpi.c: Likewise.
37864 * commands/echo.c: Likewise.
37865 * commands/blocklist.c: Likewise.
37866 * commands/loadenv.c: Likewise.
37867 * commands/usbtest.c: Likewise.
37868 * commands/boot.c: Likewise.
37869 * commands/parttool.c: Likewise.
37870 * commands/search.c: Likewise.
37871 * commands/cat.c: Likewise.
37872 * commands/i386/pc/play.c: Likewise.
37873 * commands/i386/pc/drivemap.c: Likewise.
37874 * commands/i386/pc/vbeinfo.c: Likewise.
37875 * commands/i386/pc/acpi.c: Likewise.
37876 * commands/i386/pc/vbetest.c: Likewise.
37877 * commands/ls.c: Likewise.
37878 * commands/cmp.c: Likewise.
37879 * commands/test.c: Likewise.
37880 * commands/efi/acpi.c: Likewise.
37881 * commands/gptsync.c: Likewise.
37882 * commands/help.c: Likewise.
37883 * partmap/amiga.c: Likewise.
37884 * partmap/apple.c: Likewise.
37885 * partmap/acorn.c: Likewise.
37886 * partmap/pc.c: Likewise.
37887 * partmap/sun.c: Likewise.
37888 * partmap/gpt.c: Likewise.
37889 * script/sh/lexer.c: Likewise.
37890 * script/sh/function.c: Likewise.
37891 * font/font.c: Likewise.
37892 * font/font_cmd.c: Likewise.
37893 * loader/powerpc/ieee1275/linux.c: Likewise.
37894 * loader/efi/chainloader.c: Likewise.
37895 * loader/multiboot_loader.c: Likewise.
37896 * loader/macho.c: Likewise.
37897 * loader/i386/multiboot.c: Likewise.
37898 * loader/i386/linux.c: Likewise.
37899 * loader/i386/pc/linux.c: Likewise.
37900 * loader/i386/pc/multiboot2.c: Likewise.
37901 * loader/i386/pc/chainloader.c: Likewise.
37902 * loader/i386/pc/xnu.c: Likewise.
37903 * loader/i386/bsd_trampoline.S: Likewise.
37904 * loader/i386/efi/linux.c: Likewise.
37905 * loader/i386/multiboot_elfxx.c: Likewise.
37906 * loader/i386/bsd_helper.S: Likewise.
37907 * loader/i386/bsd.c: Likewise.
37908 * loader/i386/linux_trampoline.S: Likewise.
37909 * loader/i386/xnu_helper.S: Likewise.
37910 * loader/i386/xnu.c: Likewise.
37911 * loader/i386/bsd_pagetable.c: Likewise.
37912 * loader/i386/multiboot_helper.S: Likewise.
37913 * loader/xnu.c: Likewise.
37914 * loader/xnu_resume.c: Likewise.
37915 * io/gzio.c: Likewise.
37916 * term/efi/console.c: Likewise.
37917 * term/terminfo.c: Likewise.
37918 * term/ieee1275/ofconsole.c: Likewise.
37919 * term/i386/pc/serial.c: Likewise.
37920 * term/i386/pc/vesafb.c: Likewise.
37921 * term/i386/pc/vga.c: Likewise.
37922 * term/usb_keyboard.c: Likewise.
37923 * term/gfxterm.c: Likewise.
37924 * aclocal.m4: Likewise.
37925 * util/lvm.c: Likewise.
37926 * util/grub.d/30_os-prober.in: Likewise.
37927 * util/grub.d/10_hurd.in: Likewise.
37928 * util/console.c: Likewise.
37929 * util/grub-macho2img.c: Likewise.
37930 * util/grub-probe.c: Likewise.
37931 * util/hostfs.c: Likewise.
37932 * util/i386/pc/grub-mkimage.c: Likewise.
37933 * util/i386/pc/grub-setup.c: Likewise.
37934 * util/i386/efi/grub-mkimage.c: Likewise.
37935 * util/grub-mkconfig.in: Likewise.
37936 * util/raid.c: Likewise.
37937 * util/resolve.c: Likewise.
37938 * util/grub-mkdevicemap.c: Likewise.
37939 * util/grub-emu.c: Likewise.
37940 * util/getroot.c: Likewise.
37941 * util/hostdisk.c: Likewise.
37942 * util/usb.c: Likewise.
37943 * util/grub-editenv.c: Likewise.
37944 * util/misc.c: Likewise.
37945
37946 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37947
37948 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37949 `genparttoollist.sh'.
37950 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37951 Add `*.sh' to the list find searches for and change `mdate.sh'
37952 to `mdate-sh'.
37953
37954 2009-06-10 Pavel Roskin <proski@gnu.org>
37955
37956 * include/grub/multiboot2.h: Provide compatibility defines for
37957 multiboot2.h.
37958 * include/multiboot2.h: Include stdint.h only if needed, using
37959 angle brackets.
37960 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37961 grub/multiboot2.h.
37962 * loader/ieee1275/multiboot2.c: Likewise.
37963 * loader/multiboot2.c: Likewise.
37964 * loader/multiboot_loader.c: Likewise.
37965
37966 * configure.ac: Use -nostdlib when probing for the target. It
37967 should not be required to have libc for the target.
37968
37969 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37970 they fail without libc headers for the target.
37971 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37972 exports.
37973 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37974 preprocessor conditionals.
37975
37976 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37977 build system doesn't need to be aware of the tar.c internals.
37978
37979 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37980
37981 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37982
37983 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37984
37985 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37986 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37987
37988 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37989
37990 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37991 aren't available if ata.mod gets used.
37992
37993 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37994
37995 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37996 initialising controller.
37997 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37998
37999 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38000
38001 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38002 to choose between ata and biosdisk module on i386-pc.
38003
38004 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
38005
38006 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38007 Subclass and Programming Interface fields in terms of the 3 byte
38008 Class Code register.
38009 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38010
38011 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38012 interface is OHCI. Add grub_dprintf for symmetry with
38013 bus/usb/uhci.c.
38014 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38015 interface is UHCI. Add interf variable for programming
38016 interface. Print interface with class/subclass.
38017
38018 * bus/usb/ohci.c: Set interf with correct field.
38019
38020 * bus/usb/uhci.c: Remove unneeded doubled lines.
38021 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38022 Remove whitespace inside comment.
38023
38024 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38025
38026 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38027 as fallback an equivalent option without depth.
38028
38029 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38030
38031 Not fail if unable to retrieve C/H/S on LBA disks
38032
38033 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38034 if unable to retrieve C/H/S on LBA disks
38035
38036 2009-06-08 Pavel Roskin <proski@gnu.org>
38037
38038 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38039 about aliasing.
38040
38041 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38042
38043 * Makefile.in (uninstall): Remove all $lib_DATA files.
38044
38045 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38046
38047 Bugfix: install on partitionless device
38048
38049 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38050 is a whole disk
38051
38052 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38053
38054 * Makefile.in (uninstall): Remove all $include_DATA files.
38055
38056 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38057
38058 * commands/true.c: New file. Implement the true and false commands.
38059 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38060 (true_mod_SOURCES): New variable.
38061 (true_mod_CFLAGS): Likewise.
38062 (true_mod_LDFLAGS): Likewise.
38063
38064 2009-06-05 Colin D Bennett <colin@gibibit.com>
38065
38066 Optimized font character lookup using binary search instead of linear
38067 search. Fonts now are required to have the character index ordered by
38068 code point.
38069
38070 * font/font.c (load_font_index): Verify that fonts have ordered
38071 character indices.
38072 (find_glyph): Use binary search instead of linear search to find a
38073 character in a font.
38074
38075 2009-06-05 Michael Scherer <misc@mandriva.org>
38076
38077 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38078 uses case sensitive btree.
38079 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38080 only for case insensitive filesystems.
38081
38082 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38083
38084 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38085 * conf/common.rmk (search_mod_CFLAGS): likewise
38086
38087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38088
38089 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38090 compensate a compiler bug
38091
38092 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38093
38094 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38095 instead of '\b'
38096
38097 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38098
38099 Definitions for creating asm symbols with Apple's CC
38100
38101 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38102 [APPLE_CC] (VARIABLE): likewise
38103
38104 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38105
38106 Disable lnxboot.img when compiled
38107 with Apple's CC
38108
38109 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38110 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38111 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38112 [! APPLE_CC] (CODE_LENG): skip
38113 [! APPLE_CC] (setup_sects): likewise
38114 [! APPLE_CC]: skip filling
38115
38116 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38117
38118 Address in trampolines based on 32-bit registers when compiled
38119 with Apple's CC
38120
38121 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38122 for addresses
38123 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38124
38125 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38126
38127 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38128
38129 * kern/misc.c [APPLE_CC] (memcpy): new function
38130 [APPLE_CC] (memmove): likewise
38131 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38132 (memcpy): define alias conditionally on !APPLE_CC
38133 (memset): likewise
38134 (abort): likewise
38135 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38136 APPLE_CC are defined
38137 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38138 (grub_assert_fail): make prototype conditional
38139
38140 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38141
38142 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38143
38144 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38145 grub-macho2img
38146 (CLEANFILES): add grub-macho2img
38147 (grub_macho2img_SOURCES): new variable
38148 * kern/i386/pc/startup.S (bss_start): new variable
38149 (bss_end): likewise
38150 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38151 * util/grub-macho2img.c: new file
38152
38153 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38154
38155 Use objconv when compiling with Apple's CC
38156
38157 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38158 (efiemu64.o): likewise
38159 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38160 when compiling with Apple's CC
38161 (efiemu64_s.o): likewise
38162 * configure.ac: check for objconv when compiling with Apple's CC
38163 * genmk.rb: use objconv for modules when compiled with Apple's CC
38164
38165 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38166
38167 Define segment as well as section when compiling with
38168 Apple's CC
38169
38170 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38171 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38172 (efiemu_convert_pointer): likewise
38173 (efiemu_set_virtual_address_map): likewise
38174 (efiemu_convert_pointer): likewise
38175 (efiemu_getcrc32): likewise
38176 (init_crc32_table): likewise
38177 (reflect): likewise
38178 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38179 (GRUB_MOD_DEP): likewise
38180
38181 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38182
38183 Allow a compilation without -mcmodel=large
38184
38185 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38186 when compiled without -mcmodel=large
38187 (filter_memory_map): remove memory post 4 GiB when compiled
38188 without -mcmodel=large
38189 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38190 TARGET_CFLAGS when -mcmodel=large isn't supported
38191
38192 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38193
38194 Remove nested functions in efiemu core
38195
38196 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38197
38198 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38199
38200 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38201
38202 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38203 temporary storage
38204 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38205 using Apple's CC
38206 (grub_cpu_is_tsc_supported): likewise
38207 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38208
38209 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38210
38211 Absolute addressing through constant with Apple's cc
38212
38213 * kern/i386/pc/startup.S: Define necessary constants
38214 and address through it when using ABS with Apple's CC
38215 * boot/i386/pc/diskboot.S: likewise
38216 * boot/i386/pc/boot.S: likewise
38217 * boot/i386/pc/lnxboot.S: likewise
38218 * boot/i386/pc/cdboot.S: likewise
38219 * mmap/i386/pc/mmap_helper.S: likewise
38220 * commands/i386/pc/drivemap_int13h.S: likewise
38221
38222 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38223
38224 Check if compiler is apple cc
38225
38226 * Makefile.in (ASFLAGS): new variable
38227 (TARGET_ASFLAGS): likewise
38228 (TARGET_MODULE_FORMAT): likewise
38229 (TARGET_APPLE_CC): likewise
38230 (OBJCONV): likewise
38231 (TARGET_IMG_CFLAGS): likewise
38232 (TARGET_CPPFLAGS): add includedir
38233 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38234 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38235 Check for linker script only if compiler isn't Apple's CC
38236 (TARGET_MODULE_FORMAT): set
38237 (TARGET_APPLE_CC): likewise
38238 (TARGET_ASFLAGS): likewise
38239 (ASFLAGS): likewise
38240 Check for objcopy only if compiler isn't Apple's CC
38241 Check for BSS symbol only if compiler isn't Apple's CC
38242 * genmk.rb: adapt nm options if we use Apple's utils
38243 * aclocal.m4 (grub_apple_cc): new test
38244 (grub_apple_target_cc): likewise
38245
38246 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38247
38248 Simplify sed expressions and improve awk
38249
38250 * Makefile.in (install-local): simplify sed expression
38251 * gencmdlist.sh: likewise
38252 * genmoddep.awk: avoid adding module as a dependency of itself
38253
38254 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38255
38256 Add missing start symbols
38257
38258 * boot/i386/pc/boot.S: add start
38259 * boot/i386/pc/pxeboot.S: likewise
38260
38261 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38262
38263 Fix wrong assumptions with grub-mkimage on EFI
38264
38265 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38266 (relocate_addresses): consider both r_addend and value at offset
38267 (make_mods_section): zerofill modinfo and header
38268 (convert_elf): write prefix here
38269
38270 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38271
38272 Use .asciz instead of .string
38273
38274 * i386/pc/diskboot.S: use .asciz instead of .string
38275 * i386/pc/boot.S: likewise
38276 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38277 (GRUB_MOD_NAME): likewise
38278
38279 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38280
38281 gfxpayload support
38282
38283 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38284 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38285 (grub_video_setup): remove
38286 (grub_video_set_mode): new prototype
38287 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38288 (vid_mode): remove
38289 (linux_vesafb_res): compile only on PCBIOS
38290 (grub_linux_boot): support gfxpayload
38291 * loader/i386/pc/xnu.c (video_hook): new function
38292 (grub_xnu_set_video): support gfxpayload
38293 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38294 (DEFAULT_VIDEO_HEIGHT): likewise
38295 (DEFAULT_VIDEO_FLAGS): likewise
38296 (DEFAULT_VIDEO_MODE): new definition
38297 (video_hook): new function
38298 (grub_gfxterm_init): use grub_video_set_mode
38299 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38300 loading xnu
38301 * video/video.c (grub_video_setup): removed
38302 (grub_video_set_mode): new function based on grub_gfxterm_init and
38303 grub_video_setup
38304
38305 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38306
38307 Avoid calling biosdisk in drivemap
38308
38309 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38310 (revparse_biosdisk): likewise
38311 (list_mappings): derive name from id directly
38312 (grub_cmd_drivemap): use tryparse_diskstring
38313
38314 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38315
38316 Script fixes
38317
38318 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38319 (grub_lexer_param): add tokenonhold
38320 (grub_script_create_cmdline): remove cmdline. All callers updated
38321 (grub_script_function_create): make functionname
38322 grub_script_arg. All callers updated
38323 (grub_script_execute_argument_to_string): new prototype
38324 * kern/parser.c (state_transitions): reorder
38325 (grub_parser_cmdline_state): fix a bug and make more compact
38326 * script/sh/execute.c (grub_script_execute_argument_to_string):
38327 make global
38328 (grub_script_execute_cmdline): use new format
38329 * script/sh/function.c (grub_script_function_create): make functionname
38330 grub_script_arg. All callers updated
38331 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38332 (grub_script_yylex): remove
38333 (grub_script_yylex2): renamed to ...
38334 (grub_script_yylex): ...renamed
38335 parse the expressions like a${b}c
38336 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38337 (GRUB_PARSER_TOKEN_VAR): remove
38338 (GRUB_PARSER_TOKEN_NAME): likewise
38339 ("if"): declare as typeless
38340 ("while"): likewise
38341 ("function"): likewise
38342 ("else"): likewise
38343 ("then"): likewise
38344 ("fi"): likewise
38345 (text): remove
38346 (argument): likewise
38347 (script): accept empty scripts and make exit on error
38348 (arguments): use GRUB_PARSER_TOKEN_ARG
38349 (function): likewise
38350 (command): move error handling to script
38351 (menuentry): move grub_script_lexer_ref before
38352 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38353 argument. All callers updated
38354
38355 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38356
38357 Prevent GRUB from probing floppies during boot.
38358
38359 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38360 * commands/search.c (options): Add --no-floppy.
38361 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38362 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38363 --no-floppy when searching for UUIDs.
38364
38365 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38366
38367 Simplify the code duplication in commands/search.c.
38368
38369 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38370 (search_fs): ... this. Update all users.
38371
38372 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38373
38374 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38375
38376 2009-05-28 Pavel Roskin <proski@gnu.org>
38377
38378 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38379 Remove the original symlink explicitly.
38380
38381 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38382 just one slash. That's how grub_fshelp_find_file() does it.
38383
38384 2009-05-26 Pavel Roskin <proski@gnu.org>
38385
38386 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38387 to `str'.
38388
38389 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38390 possibly unused.
38391
38392 2009-05-25 Christian Franke <franke@computer.org>
38393
38394 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38395 register.
38396 (grub_atapi_identify): Add wait after drive select.
38397 (grub_ata_identify): Do more strict status register check before
38398 calling grub_atapi_identify (). Suppress error message if status
38399 register is 0x00 after command failure. Add status register
38400 check after PIO read to avoid bogus identify due to stuck DRQ.
38401 Thanks to Pavel Roskin for testing.
38402 (grub_device_initialize): Remove unsafe status register check.
38403 Thanks to 'phcoder' for problem report and patch.
38404 Prevent sign extension in debug message.
38405
38406 2009-05-23 Colin D Bennett <colin@gibibit.com>
38407
38408 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38409 definition file, and functions defined in `normal/menu.c' have had
38410 their prototypes moved to `include/grub/menu.h' for consistency.
38411
38412 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38413 from normal.h.
38414 (grub_menu_get_entry): Likewise.
38415 (grub_menu_get_timeout): Likewise.
38416 (grub_menu_set_timeout): Likewise.
38417 (grub_menu_execute_entry): Likewise.
38418 (grub_menu_execute_with_fallback): Likewise.
38419 (grub_menu_entry_run): Likewise.
38420
38421 * include/grub/normal.h: Re-ordered and grouped function
38422 prototypes by file that the function is defined in.
38423 (grub_menu_execute_callback): Removed; moved to menu.h.
38424 (grub_menu_get_entry): Likewise.
38425 (grub_menu_get_timeout): Likewise.
38426 (grub_menu_set_timeout): Likewise.
38427 (grub_menu_execute_entry): Likewise.
38428 (grub_menu_execute_with_fallback): Likewise.
38429 (grub_menu_entry_run): Likewise.
38430 (grub_menu_addentry): Renamed from this ...
38431 (grub_normal_add_menu_entry): ... to this.
38432
38433 * normal/main.c (grub_menu_addentry): Renamed from this ...
38434 (grub_normal_add_menu_entry): ... to this.
38435
38436 * script/sh/execute.c (grub_script_execute_menuentry): Update
38437 reference to renamed grub_menu_addentry function.
38438
38439 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38440
38441 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38442
38443 2009-05-22 Pavel Roskin <proski@gnu.org>
38444
38445 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38446 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38447 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38448 compiling for the i386 targets, but not for the utilities.
38449
38450 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38451 to grub_uint8_t.
38452 (grub_root_drive): Likewise.
38453 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38454 remove alignment.
38455 (grub_root_drive): Change size to byte.
38456 (grub_start_addr): Remove.
38457 (grub_end_addr): Likewise.
38458 (grub_apm_bios_info): Likewise.
38459
38460 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38461
38462 * normal/i386: Remove.
38463 * normal/powerpc: Likewise.
38464 * normal/sparc64: Likewise.
38465 * normal/x86_64: Likewise.
38466
38467 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38468
38469 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38470 * loader/i386/linux_trampoline.S: Fix indentation
38471 * loader/i386/xnu_helper.S: Likewise
38472
38473 2009-05-18 Colin D Bennett <colin@gibibit.com>
38474
38475 Display error messages when parsing a Lua statement fails.
38476 Previously, executing a syntactically invalid statement like
38477 ")foo" or "bar;" would silently fail.
38478
38479 * script/lua/grub_main.c (handle_lua_error): New function.
38480 (grub_lua_parse_line): Improved reporting of Lua parser and
38481 execution errors.
38482
38483 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38484
38485 Remove -Werror which causes build to fail on some systems
38486
38487 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38488 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38489 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38490
38491 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38492
38493 trampoline for linux on 64-bit platform
38494
38495 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38496 loader/i386/efi/linux_trampoline.S
38497 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38498 declaration
38499 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38500 here
38501 * loader/i386/linux_trampoline.S: moved here
38502 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38503 trampoline
38504 (jumpvector): removed
38505 (grub_linux_trampoline_start): new declaration
38506 (grub_linux_trampoline_end): likewise
38507 (grub_linux_boot): use trampoline when on 64-bit platform
38508 * loader/i386/linux.c: likewise
38509
38510 2009-05-16 Pavel Roskin <proski@gnu.org>
38511
38512 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38513 const to avoid a warning.
38514 (grub_lua_setenv): Likewise.
38515 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38516 lmsg to fix a warning.
38517
38518 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38519
38520 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38521 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38522 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38523 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38524 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38525 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38526 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38527 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38528
38529 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38530
38531 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38532
38533 2009-05-16 Bean <bean123ch@gmail.com>
38534
38535 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38536 (lua_mod_SOURCES): New variable.
38537 (lua_mod_CFLAGS): Likewise.
38538 (lua_mod_LDFLAGS): Likewise.
38539
38540 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38541 (setjmp_mod_SOURCES): New variable.
38542 (setjmp_mod_CFLAGS): Likewise.
38543 (setjmp_LDFLAGS): Likewise.
38544
38545 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38546 (setjmp_mod_SOURCES): New variable.
38547 (setjmp_mod_CFLAGS): Likewise.
38548 (setjmp_LDFLAGS): Likewise.
38549
38550 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38551 (setjmp_mod_SOURCES): New variable.
38552 (setjmp_mod_CFLAGS): Likewise.
38553 (setjmp_LDFLAGS): Likewise.
38554
38555 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38556 (setjmp_mod_SOURCES): New variable.
38557 (setjmp_mod_CFLAGS): Likewise.
38558 (setjmp_LDFLAGS): Likewise.
38559
38560 * normal/i386/setjmp.S: Moved from here ...
38561 * lib/i386/setjmp.S: ... Moved here
38562 * normal/x86_64/setjmp.S: Moved from here ...
38563 * lib/x86_64/setjmp.S: ... Moved here
38564 * normal/powerpc/setjmp.S: Moved from here ...
38565 * lib/powerpc/setjmp.S: ... Moved here
38566 * normal/sparc64/setjmp.S: Moved from here ...
38567 * lib/sparc64/setjmp.S: ... Moved here
38568
38569 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38570 returns_twice in mingw.
38571
38572 * script/lua/grub_lib.c: New file.
38573 * script/lua/grub_lib.h: Likewise.
38574 * script/lua/grub_lua.h: Likewise.
38575 * script/lua/grub_main.c: Likewise.
38576 * script/lua/lapi.c: Likewise.
38577 * script/lua/lapi.h: Likewise.
38578 * script/lua/lauxlib.c: Likewise.
38579 * script/lua/lauxlib.h: Likewise.
38580 * script/lua/lbaselib.c: Likewise.
38581 * script/lua/lcode.c: Likewise.
38582 * script/lua/lcode.h: Likewise.
38583 * script/lua/ldblib.c: Likewise.
38584 * script/lua/ldebug.c: Likewise.
38585 * script/lua/ldebug.h: Likewise.
38586 * script/lua/ldo.c: Likewise.
38587 * script/lua/ldo.h: Likewise.
38588 * script/lua/ldump.c: Likewise.
38589 * script/lua/lfunc.c: Likewise.
38590 * script/lua/lfunc.h: Likewise.
38591 * script/lua/lgc.c: Likewise.
38592 * script/lua/lgc.h: Likewise.
38593 * script/lua/linit.c: Likewise.
38594 * script/lua/liolib.c: Likewise.
38595 * script/lua/llex.c: Likewise.
38596 * script/lua/llex.h: Likewise.
38597 * script/lua/llimits.h: Likewise.
38598 * script/lua/lmathlib.c: Likewise.
38599 * script/lua/lmem.c: Likewise.
38600 * script/lua/lmem.h: Likewise.
38601 * script/lua/loadlib.c: Likewise.
38602 * script/lua/lobject.c: Likewise.
38603 * script/lua/lobject.h: Likewise.
38604 * script/lua/lopcodes.c: Likewise.
38605 * script/lua/lopcodes.h: Likewise.
38606 * script/lua/loslib.c: Likewise.
38607 * script/lua/lparser.c: Likewise.
38608 * script/lua/lparser.h: Likewise.
38609 * script/lua/lstate.c: Likewise.
38610 * script/lua/lstate.h: Likewise.
38611 * script/lua/lstring.c: Likewise.
38612 * script/lua/lstring.h: Likewise.
38613 * script/lua/lstrlib.c: Likewise.
38614 * script/lua/ltable.c: Likewise.
38615 * script/lua/ltable.h: Likewise.
38616 * script/lua/ltablib.c: Likewise.
38617 * script/lua/ltm.c: Likewise.
38618 * script/lua/ltm.h: Likewise.
38619 * script/lua/lua.h: Likewise.
38620 * script/lua/luaconf.h: Likewise.
38621 * script/lua/lualib.h: Likewise.
38622 * script/lua/lundump.c: Likewise.
38623 * script/lua/lundump.h: Likewise.
38624 * script/lua/lvm.c: Likewise.
38625 * script/lua/lvm.h: Likewise.
38626 * script/lua/lzio.c: Likewise.
38627 * script/lua/lzio.h: Likewise.
38628
38629 2009-05-16 Bean <bean123ch@gmail.com>
38630
38631 * include/grub/kernel.h (grub_module_header_types): Add type
38632 OBJ_TYPE_CONFIG.
38633
38634 * kern/main.c (grub_load_config): New function.
38635 (grub_main): Call grub_load_config to read boot config.
38636
38637 * grub-mkimage (generate_image): New parameter config_path.
38638 (options): New option --config.
38639 (main): Parse --config option, and pass it to generate_image.
38640
38641 2009-05-14 Christian Franke <franke@computer.org>
38642
38643 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38644 This fixes build on Cygwin.
38645
38646 2009-05-14 Pavel Roskin <proski@gnu.org>
38647
38648 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38649 jump. This saves two bytes, so the typical case of 2 swapped
38650 drives would fit 32 bytes.
38651
38652 2009-05-13 Pavel Roskin <proski@gnu.org>
38653
38654 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38655 grub_uint32_t to avoid a warning.
38656
38657 * loader/i386/linux.c (allocate_pages): When assigning
38658 real_mode_mem, cast through grub_size_t to fix a warning. The
38659 code already makes sure that the value would fit a pointer.
38660 (grub_linux_setup_video): Cast render_target->data to
38661 grub_size_t to fix a warning.
38662
38663 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38664
38665 * commands/i386/pc/drivemap.c: New file - implement drivemap
38666 command.
38667 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38668 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38669
38670 2009-05-13 Pavel Roskin <proski@gnu.org>
38671
38672 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38673 embedding_area_exists.
38674
38675 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38676
38677 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38678 it easier to understand / work with.
38679 Improve warning messages for cases where there's no embedding area,
38680 or when it is too small (or core.img too large).
38681
38682 2009-05-13 Pavel Roskin <proski@gnu.org>
38683
38684 * loader/i386/pc/multiboot2.c: Add necessary includes for
38685 grub_multiboot2_real_boot().
38686
38687 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38688 PX record is always little-endian. We only need the lower 2
38689 bytes of the mode.
38690
38691 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38692 facilitate code reuse.
38693 (grub_cpio_mount): Use "struct head", not a char buffer. This
38694 fixes a warning reported by gcc 4.4.
38695
38696 * kernel/disk.c (grub_disk_read): Use void pointer for the
38697 buffer.
38698 (grub_disk_write): Use const void pointer for the buffer.
38699 Adjust all callers. Remove unnecessary casts.
38700
38701 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38702
38703 * util/i386/pc/grub-install.in: Update copyright year.
38704
38705 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38706
38707 gptsync
38708
38709 * commands/gptsync.c: new file
38710 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38711 (gptsync_mod_SOURCES): new variable
38712 (gptsync_mod_CFLAGS): likewise
38713 (gptsync_mod_LDFLAGS): likewise
38714 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38715 new definition
38716 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38717 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38718 * conf/i386-ieee1275.rmk: likewise
38719 * conf/i386-pc.rmk: likewise
38720 * conf/powerpc-ieee1275.rmk: likewise
38721
38722 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38723
38724 Fixed grub-emu
38725
38726 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38727 (grub_dl_ref): likewise
38728
38729 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38730
38731 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38732 split in two functions (one for msdos and one for gpt).
38733
38734 2009-05-08 Pavel Roskin <proski@gnu.org>
38735
38736 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38737 not modified.
38738
38739 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38740 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38741 Initialize them with -1. Add sanity check for bad1. Eliminate
38742 nerr variable.
38743
38744 2009-05-08 David S. Miller <davem@davemloft.net>
38745
38746 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38747
38748 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38749
38750 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38751 existence.
38752
38753 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38754
38755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38756 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38757
38758 2009-05-05 David S. Miller <davem@davemloft.net>
38759
38760 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38761
38762 2009-05-05 Pavel Roskin <proski@gnu.org>
38763
38764 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38765 of grub_dl_ref() and grub_dl_unref().
38766 * commands/parttool.c: Remove preprocessor conditionals around
38767 grub_dl_ref() and grub_dl_unref().
38768 * fs/affs.c: Likewise.
38769 * fs/afs.c: Likewise.
38770 * fs/cpio.c: Likewise.
38771 * fs/ext2.c: Likewise.
38772 * fs/fat.c: Likewise.
38773 * fs/hfs.c: Likewise.
38774 * fs/hfsplus.c: Likewise.
38775 * fs/iso9660.c: Likewise.
38776 * fs/jfs.c: Likewise.
38777 * fs/minix.c: Likewise.
38778 * fs/ntfs.c: Likewise.
38779 * fs/reiserfs.c: Likewise.
38780 * fs/sfs.c: Likewise.
38781 * fs/udf.c: Likewise.
38782 * fs/ufs.c: Likewise.
38783 * fs/xfs.c: Likewise.
38784 * include/grub/dl.h: Likewise.
38785 * loader/xnu.c: Likewise.
38786
38787 2009-05-04 Pavel Roskin <proski@gnu.org>
38788
38789 * commands/acpi.c: Remove unused variable my_mod.
38790 * partmap/amiga.c: Likewise.
38791 * partmap/apple.c: Likewise.
38792 * partmap/gpt.c: Likewise.
38793 * partmap/pc.c: Likewise.
38794 * partmap/sun.c: Likewise.
38795 * term/gfxterm.c: Likewise.
38796 * term/i386/pc/vesafb.c: Likewise.
38797 * term/i386/pc/vga.c: Likewise.
38798
38799 2009-05-04 David S. Miller <davem@davemloft.net>
38800
38801 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38802 pointer args to grub_ieee1275_get_property().
38803
38804 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38805
38806 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38807 devices, and do not traverse down under controller nodes.
38808
38809 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38810 (grub_ofdisk_open): Use it to un-escape "," characters.
38811 * kern/disk.c (find_part_sep): New.
38812 (grub_disk_open): Use it to find the first non-escaped ','
38813 character in the disk name.
38814 * util/ieee1275/devicemap.c (escape_of_path): New.
38815 (grub_util_emit_devicemap_entry): Use it.
38816 * util/sparc64/ieee1275/grub-install.in: Update script to
38817 strip partition specifiers properly by not triggering on
38818 '\' escaped ',' characters.
38819
38820 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38821
38822 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38823 to 0x300.
38824 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38825 resolutions.
38826 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38827 on documentation from Wikipedia).
38828
38829 2009-05-04 Pavel Roskin <proski@gnu.org>
38830
38831 * disk/ata.c: Spelling fixes.
38832 * disk/raid.c: Likewise.
38833 * disk/usbms.c: Likewise.
38834 * disk/dmraid_nvidia.c: Likewise.
38835 * kern/ieee1275/openfw.c: Likewise.
38836 * kern/ieee1275/init.c: Likewise.
38837 * kern/ieee1275/cmain.c: Likewise.
38838 * boot/i386/pc/cdboot.S: Likewise.
38839 * video/readers/png.c: Likewise.
38840 * video/i386/pc/vbe.c: Likewise.
38841 * fs/udf.c: Likewise.
38842 * fs/hfs.c: Likewise.
38843 * fs/reiserfs.c: Likewise.
38844 * efiemu/runtime/efiemu.c: Likewise.
38845 * efiemu/main.c: Likewise.
38846 * efiemu/mm.c: Likewise.
38847 * include/grub/elf.h: Likewise.
38848 * include/grub/xnu.h: Likewise.
38849 * include/grub/usbdesc.h: Likewise.
38850 * include/grub/usb.h: Likewise.
38851 * include/grub/script_sh.h: Likewise.
38852 * include/grub/lib/LzmaEnc.h: Likewise.
38853 * include/grub/efiemu/efiemu.h: Likewise.
38854 * include/grub/command.h: Likewise.
38855 * normal/menu.c: Likewise.
38856 * normal/main.c: Likewise.
38857 * normal/datetime.c: Likewise.
38858 * bus/usb/uhci.c: Likewise.
38859 * mmap/i386/uppermem.c: Likewise.
38860 * mmap/mmap.c: Likewise.
38861 * commands/acpi.c: Likewise.
38862 * commands/test.c: Likewise.
38863 * partmap/apple.c: Likewise.
38864 * font/font.c: Likewise.
38865 * loader/sparc64/ieee1275/linux.c: Likewise.
38866 * loader/macho.c: Likewise.
38867 * loader/i386/bsd_trampoline.S: Likewise.
38868 * loader/i386/bsd.c: Likewise.
38869 * loader/xnu.c: Likewise.
38870 * term/i386/pc/vesafb.c: Likewise.
38871 * term/usb_keyboard.c: Likewise.
38872 * util/resolve.c: Likewise.
38873 * util/getroot.c: Likewise.
38874
38875 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38876
38877 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38878
38879 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38880
38881 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38882 build error.
38883
38884 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38885
38886 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38887 parameter only available on BIOS.
38888
38889 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38890
38891 Removed wrong semicolon in declaration
38892
38893 * grub/misc.h (grub_dprintf): remove semicolon
38894
38895 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38896
38897 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38898 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38899 is done by grub_cmd_linux() now).
38900 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38901 restore video to text mode.
38902 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38903 indicates lack of "vga=" parameter. "vga=0" is mapped to
38904 `GRUB_LINUX_VID_MODE_NORMAL'.
38905
38906 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38907
38908 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38909 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38910 and `normal/script.c'. Add `kern/rescue_reader.c',
38911 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38912 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38913 `grub_script.tab.c'.
38914
38915 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38916 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38918 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38919 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38920
38921 * Makefile.in: Remove duplicated 2008 in Copyright line.
38922
38923 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38924
38925 * util/misc.c (grub_util_warn): New function. Emits a warning
38926 unconditionally.
38927 * include/grub/util/misc.h (grub_util_warn): New declaration.
38928
38929 * util/i386/pc/grub-install.in: Understand --force and pass it down
38930 to grub-setup.
38931
38932 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38933 down to setup().
38934 (setup): Improve error messages and add warnings when requested to
38935 install in odd layouts. Refuse to install using blocklists unless
38936 --force was set.
38937
38938 2009-05-04 martin f. krafft <madduck@madduck.net>
38939
38940 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38941
38942 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38943
38944 Updated copyright year
38945
38946 * fs/hfsplus.c: updated copyright year
38947
38948 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38949
38950 HFS+ UUID
38951
38952 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38953 in the space previously used by unused3
38954 (grub_hfsplus_uuid): new function
38955 (grub_hfsplus_fs): added uuid field
38956
38957 2009-05-03 Pavel Roskin <proski@gnu.org>
38958
38959 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38960 suppress warnings. It's no longer needed.
38961 * disk/host.c: Likewise.
38962 * disk/ata_pthru.c: Likewise.
38963 * disk/loopback.c: Likewise.
38964 * hook/datehook.c: Likewise.
38965 * parttool/pcpart.c: Likewise.
38966 * fs/i386/pc/pxe.c: Likewise.
38967 * fs/ntfscomp.c: Likewise.
38968 * efiemu/main.c: Likewise.
38969 * mmap/mmap.c: Likewise.
38970 * commands/crc.c: Likewise.
38971 * commands/hexdump.c: Likewise.
38972 * commands/hdparm.c: Likewise.
38973 * commands/acpi.c: Likewise.
38974 * commands/echo.c: Likewise.
38975 * commands/minicmd.c: Likewise.
38976 * commands/blocklist.c: Likewise.
38977 * commands/memrw.c: Likewise.
38978 * commands/loadenv.c: Likewise.
38979 * commands/usbtest.c: Likewise.
38980 * commands/lsmmap.c: Likewise.
38981 * commands/boot.c: Likewise.
38982 * commands/parttool.c: Likewise.
38983 * commands/configfile.c: Likewise.
38984 * commands/search.c: Likewise.
38985 * commands/ieee1275/suspend.c: Likewise.
38986 * commands/cat.c: Likewise.
38987 * commands/i386/pc/pxecmd.c: Likewise.
38988 * commands/i386/pc/play.c: Likewise.
38989 * commands/i386/pc/halt.c: Likewise.
38990 * commands/i386/pc/vbeinfo.c: Likewise.
38991 * commands/i386/pc/vbetest.c: Likewise.
38992 * commands/lspci.c: Likewise.
38993 * commands/date.c: Likewise.
38994 * commands/handler.c: Likewise.
38995 * commands/ls.c: Likewise.
38996 * commands/test.c: Likewise.
38997 * commands/cmp.c: Likewise.
38998 * commands/efi/loadbios.c: Likewise.
38999 * commands/efi/fixvideo.c: Likewise.
39000 * commands/halt.c: Likewise.
39001 * commands/help.c: Likewise.
39002 * commands/reboot.c: Likewise.
39003 * hello/hello.c: Likewise.
39004 * script/sh/main.c: Likewise.
39005 * loader/xnu.c: Likewise.
39006 * term/terminfo.c: Likewise.
39007 * term/i386/pc/serial.c: Likewise.
39008 * term/usb_keyboard.c: Likewise.
39009
39010 2009-05-03 David S. Miller <davem@davemloft.net>
39011
39012 * normal/menu.c: Include grub/parser.h
39013
39014 2009-05-03 Pavel Roskin <proski@gnu.org>
39015
39016 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39017 not char*.
39018 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39019 Suggested by Javier Martín <lordhabbit@gmail.com>
39020
39021 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39022 efiemu??.o doesn't exist.
39023 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39024 copying.
39025
39026 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39027
39028 FreeBSD 64-bit support
39029
39030 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39031 and loader/i386/bsd_trampoline.S
39032 (bsd_mod_ASFLAGS): new variable
39033 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39034 (FREEBSD_MODTYPE_KERNEL64): likewise
39035 (grub_bsd64_trampoline_start): likewise
39036 (grub_bsd64_trampoline_end): likewise
39037 (grub_bsd64_trampoline_selfjump): likewise
39038 (grub_bsd64_trampoline_gdt): likewise
39039 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39040 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39041 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39042 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39043 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39044 of "attrib" member
39045 * loader/i386/bsd_pagetable.c: new file
39046 * loader/i386/bsd_trampoline.S: likewise
39047 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39048 (ALIGN_VAR): likewise
39049 (entry_hi): new variable
39050 (kern_end_mdofs): likewise
39051 (is_64bit): likewise
39052 (grub_freebsd_add_meta): use ALIGN_VAR
39053 (grub_e820_mmap): new declaration
39054 (grub_freebsd_add_mmap): new function
39055 (grub_freebsd_add_meta_module): support 64 bit kernels
39056 (grub_freebsd_list_modules): use ALIGN_VAR
39057 (gdt_descriptor): new declaration
39058 (grub_freebsd_boot): support 64 bit kernels
39059 (grub_bsd_elf64_hook): new function
39060 (grub_bsd_load_elf): support elf64
39061
39062 2009-05-03 Bean <bean123ch@gmail.com>
39063
39064 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39065 after we get the result of if statement.
39066
39067 2009-05-03 Bean <bean123ch@gmail.com>
39068
39069 * Makefile.in (enable_efiemu): New variable.
39070
39071 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39072 set.
39073 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39074 path.
39075 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39076 path, add -mno-red-zone option.
39077 (efiemu64_s.o): Likewise.
39078 (efiemu64.o): Use macro $^ for source file.
39079
39080 * configure.ac (--enable-efiemu): New option.
39081
39082 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39083
39084 xnu support
39085
39086 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39087 (pkglib_MODULES): add xnu.mod
39088 (xnu_mod_SOURCES): new variable
39089 (xnu_mod_CFLAGS): likewise
39090 (xnu_mod_LDFLAGS): likewise
39091 (xnu_mod_ASFLAGS): likewise
39092 * conf/i386-pc.rmk: likewise
39093 * conf/x86_64-efi.rmk: likewise
39094 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39095 new declaration
39096 * include/grub/i386/macho.h: new file
39097 * include/grub/i386/xnu.h: likewise
39098 * include/grub/macho.h: likewise
39099 * include/grub/machoload.h: likewise
39100 * include/grub/x86_64/macho.h: likewise
39101 * include/grub/x86_64/xnu.h: likewise
39102 * include/grub/xnu.h: likewise
39103 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39104 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39105 * loader/i386/efi/xnu.c: new file
39106 * loader/i386/pc/xnu.c: likewise
39107 * loader/i386/xnu.c: likewise
39108 * loader/i386/xnu_helper.S: likewise
39109 * loader/macho.c: likewise
39110 * loader/xnu.c: likewise
39111 * loader/xnu_resume.c: likewise
39112 * util/grub-dumpdevtree: likewise
39113 * include/grub/i386/pit.h: include grub/err.h
39114 (grub_pit_wait): export
39115 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39116
39117 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39118
39119 Efiemu
39120
39121 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39122 _linux_efi, linux_efi.
39123 new files in grub-emu
39124 new targets efiemu32.o and efiemu64.o
39125 * loader/linux_normal_efiemu.c: likewise
39126 * loader/i386/efi/linux.c: added preliminary efiemu support
39127 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39128 files to copy
39129 * include/grub/autoefi.h: new file
39130 * include/grub/i386/efiemu.h: likewise
39131 * include/grub/i386/pc/efiemu.h: likewise
39132 * include/grub/efi/api.h: add LL suffix when necessary
39133 new definitions relating to tables
39134 * include/grub/efiemu/efiemu.h: new file
39135 * include/grub/efiemu/runtime.h: likewise
39136 * efiemu/prepare.c: likewise
39137 * efiemu/loadcore_common.c: likewise
39138 * efiemu/loadcore64.c: likewise
39139 * efiemu/runtime/efiemu.sh: likewise
39140 * efiemu/runtime/efiemu.S: likewise
39141 * efiemu/runtime/efiemu.c: likewise
39142 * efiemu/runtime/config.h: likewise
39143 * efiemu/prepare32.c: likewise
39144 * efiemu/main.c: likewise
39145 * efiemu/modules/pnvram.c: likewise
39146 * efiemu/modules/i386: likewise
39147 * efiemu/modules/i386/pc: likewise
39148 * efiemu/modules/acpi.c: likewise
39149 * efiemu/i386/pc/cfgtables.c: likewise
39150 * efiemu/i386/loadcore64.c: likewise
39151 * efiemu/i386/loadcore32.c: likewise
39152 * efiemu/prepare64.c: likewise
39153 * efiemu/loadcore.c: likewise
39154 * efiemu/symbols.c: likewise
39155 * efiemu/mm.c: likewise
39156 * efiemu/loadcore32.c: likewise
39157
39158 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39159
39160 ACPI spoofing
39161
39162 * commands/acpi.c: new file
39163 * commands/i386/pc/acpi.c: likewise
39164 * commands/efi/acpi.c: likewise
39165 * include/grub/acpi.h: likewise
39166 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39167 (acpi_mod_SOURCES): new variable
39168 (acpi_mod_CFLAGS): likewise
39169 (acpi_mod_LDFLAGS): likewise
39170 * conf/i386-efi.rmk: likewise
39171 * conf/x86_64-efi.rmk: likewise
39172
39173 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39174
39175 Missing part from mmap patch
39176
39177 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39178 (grub_mmap_unregister)
39179 (grub_mmap_free_and_unregister): use grub_mmap_register
39180
39181 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39182
39183 Mmap services
39184
39185 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39186 * loader/i386/linux.c (find_mmap_size): likewise
39187 (allocate_pages): likewise
39188 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39189 (grub_fill_multiboot_mmap): likewise
39190 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39191 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39192 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39193 (OPENBSD_MMAP_RESERVED): likewise
39194 * include/grub/i386/pc/memory.h: include grub/memory.h
39195 (grub_lower_mem): removed
39196 (grub_upper_mem): likewise
39197 (GRUB_MACHINE_MEMORY_ACPI): new definition
39198 (GRUB_MACHINE_MEMORY_NVS): likewise
39199 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39200 (GRUB_MACHINE_MEMORY_HOLE): likewise
39201 (grub_machine_mmap_register): likewise
39202 (grub_machine_mmap_unregister): likewise
39203 (grub_machine_get_upper): likewise
39204 (grub_machine_get_lower): likewise
39205 (grub_machine_get_post64): likewise
39206 * include/grub/i386/efi/memory.h: new file
39207 * include/grub/x86_64/efi/memory.h: likewise
39208 * include/grub/efi/memory.h: likewise
39209 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39210 (mmap_mod_SOURCES): new variable
39211 (mmap_mod_LDFLAGS): likewise
39212 (mmap_mod_ASFLAGS): likewise
39213 * conf/i386-coreboot.rmk: likewise
39214 * conf/i386-ieee1275.rmk: likewise
39215 * conf/i386-efi.rmk: likewise
39216 * conf/x86_64-efi.rmk: likewise
39217 * include/grub/types.h (UINT_TO_PTR): new macro
39218 (PTR_TO_UINT32): likewise
39219 (PTR_TO_UINT64): likewise
39220 * include/grub/memory.h: new file
39221 * mmap/i386/pc/mmap.c: likewise
39222 * mmap/i386/pc/mmap_helper.S: likewise
39223 * mmap/i386/uppermem.c: likewise
39224 * mmap/mmap.c: likewise
39225 * mmap/efi/mmap.c: likewise
39226 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39227 grub_upper_mem
39228 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39229 (grub_upper_mem): likewise
39230 (grub_machine_init): don't use grub_upper_mem,
39231 make grub_lower_mem local
39232 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39233 grub_mmap_iterate and grub_mmap_get_upper
39234 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39235
39236 2009-05-02 Bean <bean123ch@gmail.com>
39237
39238 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39239 script/sh/parser.y.
39240 (pkglib_MODULES): Add normal.mod and sh.mod.
39241 (normal_SOURCES): New variable.
39242 (normal_mod_CFLAGS): Likewise.
39243 (normal_mod_LDFLAGS): Likewise.
39244 (sh_mod_SOURCES): Likewise.
39245 (sh_mod_CFLAGS): Likewise.
39246 (sh_mod_LDFLAGS): Likewise.
39247
39248 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39249 script/sh/lexer.c_DEPENDENCIES.
39250 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39251 kern/rescue_reader.c and kern/rescue_parser.c.
39252 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39253 (grub_emu_SOURCES): Change source files.
39254 (pkglib_MODULES): Remove normal.mod.
39255 (normal_SOURCES): Removed.
39256 (normal_mod_CFLAGS): Likewise.
39257 (normal_mod_LDFLAGS): Likewise.
39258 * conf/i386-coreboot.rmk: Likewise.
39259 * conf/i386-efi.rmk: Likewise.
39260 * conf/i386-ieee1276.rmk: Likewise.
39261 * conf/powerpc-ieee1275.rmk: Likewise.
39262 * conf/sparc64-ieee1275.rmk: Likewise.
39263 * conf/x86_64-efi.rmk: Likewise.
39264
39265 * include/grub/command.h (grub_command_execute): New inline function.
39266
39267 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39268
39269 * include/grub/normal.h: Remove <grub/setjmp.h>.
39270 (grub_fs_module_list): Moved to normal/autofs.c.
39271 (grub_exit_env): Removed.
39272 (grub_command_execute): Likewise.
39273 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39274 parameter script.
39275 (read_command_list): New function declaration.
39276 (read_fs_list): Likewise.
39277
39278 * include/parser.h: Include <grub/reader.h>.
39279 (grub_parser_split_cmdline): Change type of getline parameter.
39280 (grub_parser): New structure.
39281 (grub_parser_class): New variable.
39282 (grub_parser_execute): New function declaration.
39283 (grub_register_rescue_parser): Likewise.
39284 (grub_parser_register): New inline function.
39285 (grub_parser_unregister): Likewise.
39286 (grub_parser_get_current): Likewise.
39287 (grub_parser_set_current): Likewise.
39288
39289 * include/grub/reader.h: New file.
39290 * kern/reader.c: Likewise.
39291 * kern/rescue_parser.c: Likewise.
39292 * kern/rescue_reader.c: Likewise.
39293 * normal/autofs.c: Likewise.
39294 * normal/dyncmd.c: Likewise.
39295
39296 * include/grub/rescue.h: Removed.
39297 * normal/command.h: Likewise.
39298
39299 * include/grub/script.h: Moved to ...
39300 * include/grub/script_sh.h: ... Moved here.
39301 * normal/execute.c: Moved to ...
39302 * script/sh/execute.c: ... Moved here.
39303 * normal/function.c: Moved to ...
39304 * script/sh/function.c: ... Moved here.
39305 * normal/lexer.c: Moved to ...
39306 * script/sh/lexer.c: ... Moved here.
39307 * normal/parser.y: Moved to ...
39308 * script/sh/parser.y: ... Moved here.
39309 * normal/script.c: Moved to ...
39310 * script/sh/script.c: ... Moved here.
39311
39312 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39313 <grub/reader.h>.
39314 (grub_exit_env): Removed.
39315 (fs_module_list): Moved to normal/autofs.c.
39316 (grub_file_getline): Don't handle comment here.
39317 (free_menu): Skip removed field entry->commands.
39318 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39319 script parameter.
39320 (read_config_file): Removed nested parameter, change getline function.
39321 (grub_enter_normal_mode): Removed.
39322 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39323 (read_command_list): Likewise.
39324 (autoload_fs_module): Moved to normal/autofs.c.
39325 (read_fs_list): Likewise.
39326 (reader_nested): New variable.
39327 (grub_normal_execute): Run parser.sh to switch to sh parser.
39328 (grub_cmd_rescue): Removed.
39329 (cmd_normal): Removed.
39330 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39331 rescue command.
39332 (grub_cmdline_run): New function.
39333 (grub_normal_reader_init): Likewise.
39334 (grub_normal_read_line): Likewise.
39335 (grub_env_write_pager): Likewise.
39336 (cmdline): New variable.
39337 (grub_normal_reader): Likewise.
39338 (GRUB_MOD_INIT): Register normal reader and set as current, register
39339 pager hook, register normal command with grub_register_command_prio,
39340 so that it won't show up in command.lst.
39341 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39342 grub_fs_autoload_hook.
39343
39344 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39345 (grub_menu_execute_entry): Replace grub_script_execute with
39346 grub_parser_execute, change parameter to grub_command_execute.
39347
39348 * normal/menu_text.c: Remove <grub/script.h>.
39349
39350 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39351 and <grub/parser.h>.
39352 (run): Change editor_getline to use new parser interface. Change
39353 parameter to grub_command_execute.
39354
39355 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39356 <grub/reader.h> and <grub/parser.h>.
39357 (grub_load_normal_mode): Execute normal command.
39358 (grub_main): Call grub_register_core_commands,
39359 grub_register_rescue_parser and grub_register_rescue_reader, use
39360 grub_reader_loop to enter input loop.
39361
39362 * kern/parser.c (grub_parser_split_cmdline): Change type of
39363 getline parameter.
39364 (grub_parser_class): New variable.
39365 (grub_parser_execute): New function.
39366
39367 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39368 * loader/multiboot2.c: Likewise.
39369 * loader/sparc64/ieee1275/linux.c: Likewise.
39370
39371 * util/grub-emu.c (read_command_list): New dummy function.
39372
39373 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39374
39375 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39376 count to 16 for CCISS and IDA.
39377
39378 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39379
39380 * normal/menu_text.c (grub_wait_after_message): Print a newline
39381 after waiting for user input.
39382
39383 * loader/i386/linux.c: Include `<grub/normal.h>'.
39384 (grub_cmd_linux): Improve the error message about `ask' mode, by
39385 waiting for user input so it's not missed (we can do this, since
39386 user requested interaction).
39387
39388 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39389
39390 Added missing lst to grub-mkrescue
39391
39392 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39393 and ${input_dir}/parttool.lst
39394
39395 2009-04-30 David S. Miller <davem@davemloft.net>
39396
39397 * util/hostdisk.c (device_is_wholedisk): New function.
39398 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39399 zero only if device_is_wholedisk() returns true.
39400
39401 * util/hostdisk.c (convert_system_partition_to_system_disk):
39402 Handle virtual disk devices named /dev/vdiskX as found on sparc
39403 and powerpc.
39404
39405 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39406 lettered partition specifier is found, convert to numbered.
39407
39408 2009-04-29 David S. Miller <davem@davemloft.net>
39409
39410 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39411 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39412
39413 * normal/command.c: Add missing newline at end of file.
39414
39415 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39416 warnings.
39417 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39418 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39419 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39420 ihandles have a 32-bit type but need to be stored in a "void *".
39421
39422 2009-04-28 Pavel Roskin <proski@gnu.org>
39423
39424 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39425 not disk. Adjust all dependencies.
39426 (grub_fs_uuid_close): Use grub_device_close(), not
39427 grub_disk_close().
39428
39429 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39430 parent's partition, don't copy it by reference, as it gets freed
39431 on close.
39432
39433 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39434
39435 Preboot hooks support
39436
39437 * commands/boot.c (struct grub_preboot_t): new declaration
39438 (preboots_head): new variable
39439 (preboots_tail): likewise
39440 (grub_loader_register_preboot_hook): new function
39441 (grub_loader_unregister_preboot_hook): likewise
39442 (grub_loader_set): launch preboot hooks
39443 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39444 (grub_loader_register_preboot_hook): new declaration
39445 (grub_loader_unregister_preboot_hook): likewise
39446
39447 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39448
39449 Warning fix
39450
39451 * disk/scsi.c (grub_scsi_open): added missing cast when
39452 calling grub_dprintf
39453
39454 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39455
39456 Bug and warning fixes
39457
39458 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39459 declaration
39460 * commands/test.c (test_parse): fixed bug with file tests and corrected
39461 declaration of find_file
39462
39463 2009-04-26 Pavel Roskin <proski@gnu.org>
39464
39465 * Makefile.in: Don't install empty manual pages if help2man is
39466 missing. Use help2man option for output, not shell redirection.
39467
39468 2009-04-26 David S. Miller <davem@davemloft.net>
39469
39470 * util/grub-mkdevicemap.c (make_device_map): Add missing
39471 NESTED_FUNC_ATTR to process_device().
39472
39473 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39474
39475 Test command
39476
39477 * commands/test.c: rewritten to use bash-like test
39478
39479 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39480
39481 Parttool autoloading and improvements
39482
39483 * Makefile.in (pkglib_DATA): add parttool.lst
39484 (parttool.lst): new target
39485 * genmk.rb: generate parttool-*
39486 (CLEANFILES): add #{parttool}
39487 (PARTTOOLFILES): new variable
39488 * genparttoollist.sh: new file
39489 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39490 (grub_pcpart_type): likewise
39491 * commands/parttool.c (helpmsg): new variable
39492 (grub_cmd_parttool): output help if not enough arguments are supplied
39493 autoload modules
39494 (GRUB_MOD_INIT(parttool)): use helpmsg
39495
39496 2009-04-24 David S. Miller <davem@davemloft.net>
39497
39498 Avoiding opening same device multiple times in device iterator.
39499
39500 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39501 and use it to build a list of partitions in iterate_disk() and
39502 iterate_partition().
39503
39504 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39505 on disk->data.
39506
39507 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39508 grub_devalias_iterate() result instead of unconditional 0.
39509 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39510 Also, capture hook return value, either directly or via
39511 grub_children_iterate(), and propagate to caller.
39512 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39513 grub_children_iterate): Return value is now 'int' instead of
39514 'grub_err_t'.
39515 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39516 like a proper iterator, stopping when hooks return non-zero.
39517 (grub_devalias_iterate): Likewise.
39518
39519 2009-04-23 David S. Miller <davem@davemloft.net>
39520
39521 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39522
39523 2009-04-22 David S. Miller <davem@davemloft.net>
39524
39525 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39526 is larger than address_cells, use that value for address_cells too.
39527
39528 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39529 IEEE1275_MAX_PATH_LEN): Define.
39530 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39531 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39532 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39533 'devtype'. Explicitly NULL terminate devalias expansion.
39534
39535 * util/sparc64/ieee1275/misc.c: New file.
39536 * util/sparc64/ieee1275/grub-setup.c: New file.
39537 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39538 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39539 * util/sparc64/ieee1275/grub-install.in: New file.
39540 * util/ieee1275/ofpath.c: New file.
39541 * util/ieee1275/devicemap.c: New file.
39542 * util/devicemap.c: New file.
39543 * util/deviceiter.c: New file.
39544 * kern/sparc64/ieee1275/init.c: New file.
39545 * include/grub/util/ofpath.h: New file.
39546 * include/grub/util/deviceiter.h: New file.
39547 * util/grub-mkdevicemap.c: Include deviceiter.h.
39548 Implement using grub_util_emit_devicemap_entry and
39549 grub_util_iterate_devices.
39550 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39551 util/devicemap.c into grub-mkdevicemap
39552 * conf/i386-efi.rmk: Likewise.
39553 * conf/i386-ieee1275.rmk: Likewise.
39554 * conf/i386-pc.rmk: Likewise.
39555 * conf/powerpc-ieee1275.rmk: Likewise.
39556 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39557 images and installation utilities. Build kernel as image
39558 instead of as elf binary. Use common rules as much as possible.
39559
39560 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39561
39562 Correct GPT definition
39563
39564 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39565 of "attrib" member
39566
39567 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39568
39569 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39570
39571 2009-04-19 David S. Miller <davem@davemloft.net>
39572
39573 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39574 (grub_rescue_cmd_linux): Rename to...
39575 (grub_cmd_linux): and fix prototype.
39576 (grub_rescue_cmd_initrd): Rename to...
39577 (grub_cmd_initrd): and fix prototype.
39578 (cmd_linux, cmd_initrd): New.
39579 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39580 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39581
39582 2009-04-17 Pavel Roskin <proski@gnu.org>
39583
39584 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39585 format.
39586 (grub_ohci_transfer): Likewise.
39587
39588 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39589
39590 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39591 return without a value. Fix inconsistent indentation.
39592
39593 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39594 match struct grub_fs.
39595
39596 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39597 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39598 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39599 * commands/lspci.c (grub_lspci_iter): Likewise.
39600
39601 2009-04-16 Bean <bean123ch@gmail.com>
39602
39603 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39604 value.
39605
39606 2009-04-15 Pavel Roskin <proski@gnu.org>
39607
39608 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39609 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39610 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39611 definitions.
39612
39613 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39614
39615 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39616 that no multiple data or metadata areas are supported and `Unknown
39617 metadata header'.
39618
39619 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39620
39621 Move loader out of the kernel
39622
39623 * kern/loader.c: moved to ...
39624 * commands/boot.c: ... moved here
39625 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39626 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39627 * include/grub/kernel.h (grub_machine_fini): export
39628 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39629 (grub_loader_set): likewise
39630 (grub_loader_unset): likewise
39631 (grub_loader_boot): likewise
39632 * conf/common.rmk: new module boot.mod
39633 (pkglib_MODULES): add boot.mod
39634 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39635 (grub_emu_SOURCES): likewise
39636 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39637 (grub_emu_SOURCES): likewise
39638 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39639 (grub_emu_SOURCES): likewise
39640 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39641 (grub_emu_SOURCES): likewise
39642 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39643 (grub_emu_SOURCES): likewise
39644 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39645 (grub_emu_SOURCES): likewise
39646 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39647 (grub_emu_SOURCES): likewise
39648
39649 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39650
39651 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39652
39653 * kern/misc.c (grub_itoa): Removed function
39654 (grub_ltoa): likewise
39655 (grub_vsprintf): use grub_lltoa
39656
39657 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39658
39659 Restore grub-emu
39660
39661 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39662 * conf/i386-coreboot.rmk: likewise
39663 * conf/i386-ieee1275.rmk: likewise
39664 * conf/powerpc-ieee1275.rmk: likewise
39665
39666 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39667
39668 * INSTALL: Add that `./autogen.sh' needs to be run before
39669 `./configure.'.
39670
39671 2009-04-14 Bean <bean123ch@gmail.com>
39672
39673 * Makefile.in (pkglib_DATA): Add handler.lst.
39674 (handler.lst): New rule.
39675
39676 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39677 * conf/i386-coreboot.rmk: Likewise.
39678 * conf/i386-ieee1275.rmk: Likewise.
39679 * conf/i386-efi.rmk: Likewise.
39680 * conf/x86_64-efi.rmk: Likewise.
39681 * conf/powerpc-ieee1275.rmk: Likewise.
39682 * conf/sparc64-ieee1275.rmk: Likewise.
39683
39684 * genhandlerlist.sh: New file.
39685
39686 * genmk.rb: Add rules to generate handler.lst.
39687
39688 * include/grub/normal.h (grub_file_getline): New function definition.
39689 (read_handler_list): Likewise.
39690 (free_handler_list): Likewise.
39691
39692 * include/grub/term.h (grub_term_register_input): Add name parameter
39693 for auto generation of handler.lst.
39694 (grub_term_register_output): Likewise.
39695
39696 * normal/handler.c: New file.
39697
39698 * normal/main.c (get_line): Renamed to grub_file_getline.
39699 (read_config_file): Use the newly renamed grub_file_getline.
39700 (read_command_list): Likewise.
39701 (read_fs_list): Likewise.
39702 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39703 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39704
39705 * term/efi/console.c (grub_console_init): Add name parameter for auto
39706 generation of handler.lst.
39707 * term/gfxterm.c: Likewise.
39708 * term/i386/pc/at_keyboard.c: Likewise.
39709 * term/i386/pc/console.c: Likewise.
39710 * term/i386/pc/serial.c: Likewise.
39711 * term/i386/pc/vesafb.c: Likewise.
39712 * term/i386/pc/vga.c: Likewise.
39713 * term/i386/pc/vga_text.c: Likewise.
39714 * term/ieee1275/ofconsole.c: Likewise.
39715 * term/usb_keyboard.c: Likewise.
39716
39717 2009-04-14 Bean <bean123ch@gmail.com>
39718
39719 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39720 properly with null character.
39721
39722 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39723
39724 * configure: Remove.
39725 * config.h.in: Likewise.
39726 * stamp-h.in: Likewise.
39727 * DISTLIST: Likewise.
39728 * conf/common.mk: Likewise.
39729 * conf/i386-coreboot.mk: Likewise.
39730 * conf/i386-efi.mk: Likewise.
39731 * conf/i386-ieee1275.mk: Likewise.
39732 * conf/i386.mk: Likewise.
39733 * conf/i386-pc.mk: Likewise.
39734 * conf/powerpc-ieee1275.mk: Likewise.
39735 * conf/sparc64-ieee1275.mk: Likewise.
39736 * conf/x86_64-efi.mk: Likewise.
39737
39738 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39739 develop on GRUB.
39740
39741 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39742 David S. Miller <davem@davemloft.net>
39743
39744 * util/hostdisk.c (make_device_name): Fix buffer length
39745 calculations.
39746
39747 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39748
39749 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39750 <sys/param.h> and <sys/sysctl.h>.
39751 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39752 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39753 opening the device and reset them afterwards.
39754
39755 2009-04-13 Pavel Roskin <proski@gnu.org>
39756
39757 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39758 Reported by John Stanley <jpsinthemix@verizon.net>
39759
39760 2009-04-13 Robert Millan <rmh@aybabtu.com>
39761
39762 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39763 that name for menuentries when appropriate.
39764
39765 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39766
39767 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39768
39769 2009-04-13 Robert Millan <rmh@aybabtu.com>
39770
39771 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39772 to Linux, simply abort telling the user it's no longer supported.
39773
39774 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39775
39776 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39777 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39778 `freebsd_loadenv' only when devices.hints exist.
39779
39780 2009-04-13 Pavel Roskin <proski@gnu.org>
39781
39782 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39783
39784 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39785
39786 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39787 partition number.
39788 (grub_drive): Likewise.
39789
39790 2009-04-13 David S. Miller <davem@davemloft.net>
39791
39792 * kern/sparc64/ieee1275/ieee1275.c: New file.
39793 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39794 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39795 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39796 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39797 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39798 grub_ieee1275_alloc_physmem): Declare new exported functions.
39799
39800 * include/grub/sparc64/ieee1275/loader.h: New file.
39801 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39802 * include/grub/sparc64/kernel.h: Likewise.
39803 * loader/sparc64/ieee1275/linux.c: Likewise.
39804
39805 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39806 (grub_fstest_SOURCES): Likewise.
39807
39808 * util/hostdisk.c (make_device_name): Do not make any assumptions
39809 about the length of drive names.
39810
39811 * kern/dl.c (grub_dl_load_file): Close file immediately when
39812 we are done using it.
39813
39814 2009-04-12 David S. Miller <davem@davemloft.net>
39815
39816 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39817 values. Noticed by Pavel Roskin.
39818
39819 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39820 target compiler.
39821
39822 * genmk.rb: Add more flexible image type specification, also
39823 pass --strip-unneeded to objcopy.
39824 * conf/i386-pc.rmk: Use *_FORMAT.
39825 * conf/i386-pc.mk: Rebuilt.
39826
39827 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39828 (OFDISK_HASH_SZ): Define.
39829 (ofdisk_hash): New hash table.
39830 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39831 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39832 instead of device phandle which is not unique.
39833
39834 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39835 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39836 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39837 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39838 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39839 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39840 GRUB_KERNEL_MACHINE_DATA_END): Define.
39841 (grub_kernel_image_size, grub_total_module_size): Declare.
39842
39843 2009-04-12 Pavel Roskin <proski@gnu.org>
39844
39845 * configure.ac: Change the logic when we check for target tools.
39846 Do it when the target is specified and it's different from the
39847 specified value of the host.
39848
39849 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39850
39851 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39852 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39853 GNU/kFreeBSD. Check if a device is a character device. Use
39854 DIOCGMEDIASIZE to get the size.
39855 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39856 support for GNU/kFreeBSD.
39857 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39858 is a character device instead of a block device. Add support for
39859 FreeBSD device names.
39860
39861 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39862 is a character device instead of a block device.
39863
39864 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39865 is a character device instead of a block device.
39866
39867 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39868
39869 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39870 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39871 FreeBSD. Check if a device is a character device. Use
39872 DIOCGMEDIASIZE to get the size.
39873 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39874 support for FreeBSD.
39875 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39876 is a character device instead of a block device. Add support for
39877 FreeBSD device names.
39878
39879 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39880 a character device instead of a block device.
39881 (grub_util_check_char_device): New function.
39882
39883 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39884 a character device instead of a block device.
39885
39886 * include/grub/util/getroot.h (grub_util_check_char_device): New
39887 prototype.
39888
39889 2009-04-11 David S. Miller <davem@davemloft.net>
39890
39891 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39892 static libgcc.
39893 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39894 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39895 function, if present.
39896 (__bswapdi2): Likewise.
39897
39898 * include/grub/sparc64/ieee1275/boot.h: New file.
39899 * boot/sparc64/ieee1275/boot.S: Likewise.
39900 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39901
39902 * kern/misc.c (grub_ltoa): New function.
39903 (grub_vsprintf): Use it to format 'long' integers.
39904
39905 2009-04-10 David S. Miller <davem@davemloft.net>
39906
39907 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39908 slots are of type grub_ieee1275_cell_t.
39909 (grub_nand_read): Likewise.
39910 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39911 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39912 macros are used to compare values in arg/ret block of the call.
39913 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39914 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39915 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39916 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39917 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39918 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39919 grub_ieee1275_close, grub_ieee1275_set_property,
39920 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39921 grub_ieee1275_cell_t.
39922 * kern/ieee1275/openfw.c (grub_map): Likewise.
39923 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39924 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39925
39926 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39927 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39928 (grub_devalias_iterate): Likewise.
39929
39930 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39931
39932 UFS improvements
39933
39934 * fs/ufs.c (INODE_NBLOCKS): new definition
39935 (struct grub_ufs_dirent): added fields for non-BSD dirents
39936 (grub_ufs_get_file_block): fixed double indirect handling
39937 (grub_ufs_lookup_symlink): use more robust way to determine whether
39938 symlink is inline
39939 (grub_ufs_find_file): support for non-BSD dirents
39940 (grub_ufs_dir): support for non-BSD dirents
39941
39942 2009-04-10 Bean <bean123ch@gnail.com>
39943
39944 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39945 attribute, otherwise the size would be wrong for i386 platform.
39946
39947 * include/grub/pci.h (grub_pci_read_word): New inline function.
39948 (grub_pci_read_byte): Likewise.
39949 (grub_pci_write): Likewise.
39950 (grub_pci_write_word): Likewise.
39951 (grub_pci_write_byte): Likewise.
39952
39953 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39954
39955 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39956 (find_framebuf): Scan pci to locate the frame buffer address.
39957
39958 * commands/efi/fixvideo.c: New file.
39959
39960 * commands/efi/loadbios.c: Likewise.
39961
39962 * commands/memrw.c: Likewise.
39963
39964 * util/grub-dumpbios.in: Likewise.
39965
39966 * conf/common.rmk (grub-dumpbios): New utility.
39967 (pkglib_MODULES): New module memrw.mod.
39968 (memrw_mod_SOURCE): New macro.
39969 (memrw_mod_CFLAGS): Likewise.
39970 (memrw_mod_LDFLAGS): Likewise.
39971
39972 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39973 fixvideo.mod.
39974 (loadbios_mod_SOURCE): New macro.
39975 (loadbios_mod_CFLAGS): Likewise.
39976 (loadbios_mod_LDFLAGS): Likewise.
39977 (fixvideo_mod_SOURCE): Likewise.
39978 (fixvideo_mod_CFLAGS): Likewise.
39979 (fixvideo_mod_LDFLAGS): Likewise.
39980
39981 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39982 fixvideo.mod.
39983 (loadbios_mod_SOURCE): New macro.
39984 (loadbios_mod_CFLAGS): Likewise.
39985 (loadbios_mod_LDFLAGS): Likewise.
39986 (fixvideo_mod_SOURCE): Likewise.
39987 (fixvideo_mod_CFLAGS): Likewise.
39988 (fixvideo_mod_LDFLAGS): Likewise.
39989
39990 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39991
39992 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39993
39994 2009-04-07 David S. Miller <davem@davemloft.net>
39995
39996 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39997 support for R_SPARC_OLO10 relocations. Fix compile warning for
39998 R_SPARC_WDISP30 case.
39999 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40000
40001 2009-04-06 Pavel Roskin <proski@gnu.org>
40002
40003 * include/grub/misc.h (ARRAY_SIZE): New macro.
40004 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40005 New macro.
40006 * loader/i386/linux.c (allocate_pages): Use free_pages().
40007 (grub_linux_unload): Don't use free_pages().
40008 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40009 wrong index. Treat all other modes as text modes.
40010 (grub_cmd_linux): Initialize vid_mode unconditionally to
40011 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40012
40013 * commands/help.c (print_command_help): Use cmd->prio, not
40014 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40015
40016 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40017
40018 Parttool
40019
40020 * parttool/pcpart.c: new file
40021 * commands/parttool.c: likewise
40022 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40023 (parttool_mod_SOURCES): new variable
40024 (parttool_mod_CFLAGS): likewise
40025 (parttool_mod_LDFLAGS): likewise
40026 (pcpart_mod_SOURCES): likewise
40027 (pcpart_mod_CFLAGS): likewise
40028 (pcpart_mod_LDFLAGS): likewise
40029 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40030 and parttool/pcpart.c
40031 * conf/i386-efi.rmk: likewise
40032 * conf/i386-ieee1275.rmk: likewise
40033 * conf/i386-pc.rmk: likewise
40034 * conf/powerpc-ieee1275.rmk: likewise
40035 * conf/sparc64-ieee1275.rmk: likewise
40036 * conf/x86_64-ieee1275.rmk: likewise
40037
40038 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40039
40040 Support for mtime and further expandability of dir command
40041
40042 * include/grub/lib/datetime.h: moved to ...
40043 * include/grub/datetime.h: ... moved here and added
40044 declaration of grub_unixtime2datetime. All users updated
40045 * include/grub/fs.h: new syntax for dir and mtime functions in
40046 struct grub_fs
40047 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40048 and GRUB_FSHELP_FLAGS_MASK
40049 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40050 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40051 (grub_ext2_mtime): new function
40052 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40053 (grub_hfsplus_mtime): new function
40054 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40055 (GRUB_UFS_ATTR_FILE): likewise
40056 (GRUB_UFS_ATTR_LNK): likewise
40057 (struct grub_ufs_sblock): new fields mtime
40058 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40059 all users updated
40060 (grub_ufs_dir): mtime support
40061 (grub_ufs_mtime): new function
40062 * fs/affs.c (grub_affs_dir): use new dir syntax
40063 * fs/afs.c (grub_afs_dir): likewise
40064 * fs/cpio.c (grub_cpio_dir): likewise
40065 * fs/fat.c (grub_fat_find_dir): likewise
40066 * fs/hfs.c (grub_hfs_dir): likewise
40067 * fs/iso9660.c (grub_iso9660_dir): likewise
40068 * fs/jfs.c (grub_jfs_dir): likewise
40069 * fs/minix.c (grub_minix_dir): likewise
40070 * fs/ntfs.c (grub_ntfs_dir): likewise
40071 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40072 * fs/sfs.c (grub_sfs_dir): likewise
40073 * fs/xfs.c (grub_xfs_dir): likewise
40074 * util/hostfs.c (grub_hostfs_dir): likewise
40075 * lib/datetime.c: moved to ...
40076 * normal/datetime.c: ... moved here
40077 (grub_unixtime2datetime): new function
40078 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40079 * normal/completion.c (iterate_dir): use new dir syntax
40080 * normal/misc.c (grub_normal_print_device_info): tell the
40081 last modification time of a volume
40082 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40083 * conf/common.rmk: added lib/datetime.c to ls.mod
40084 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40085 (normal_mod_SOURCES): likewise
40086 (datetime_mod_SOURCES): Removed lib/datetime.c
40087 * conf/i386-efi.rmk: likewise
40088 * conf/i386-ieee1275.rmk: likewise
40089 * conf/i386-pc.rmk: likewise
40090 * conf/powerpc-ieee1275.rmk: likewise
40091 * conf/sparc64-ieee1275.rmk: likewise
40092 * conf/x86_64-efi.rmk: likewise
40093
40094 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40095
40096 Trim trailing spaces in FAT label and support mtools-like labels
40097
40098 * fs/fat.c (grub_fat_iterate_dir): New function based
40099 on grub_fat_find_dir
40100 (grub_fat_find_dir): use grub_fat_iterate_dir
40101 (grub_fat_label): likewise
40102
40103 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40104
40105 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40106 and command.h
40107 remove extraneous kernel_elf_HEADERS
40108
40109 2009-04-04 Bean <bean123ch@gnail.com>
40110
40111 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40112
40113 * util/misc.c: Likewise.
40114
40115 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40116
40117 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40118 instead of grub_printf.
40119
40120 2009-04-03 Robert Millan <rmh@aybabtu.com>
40121
40122 * loader/i386/linux.c (grub_linux_setup_video): Fill
40123 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40124 values from `mode info' structure instead of hardcoded
40125 values.
40126
40127 2009-04-01 Pavel Roskin <proski@gnu.org>
40128
40129 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40130 unused now.
40131 * genmk.rb: Likewise.
40132 * configure.ac: Likewise.
40133
40134 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40135
40136 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40137 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40138
40139 2009-04-01 David S. Miller <davem@davemloft.net>
40140
40141 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40142 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40143 (grub_setjmp): Mark with 'returns_twice' attribute.
40144 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40145 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40146 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40147
40148 2009-04-01 Robert Millan <rmh@aybabtu.com>
40149
40150 Reapply fix from 2008-07-28 which was accidentally reverted; also
40151 perform the same fix to a similar check in same function.
40152
40153 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40154 with the same number are found, just use issue a warning with
40155 grub_dprintf(), as this error has been reported to be non-fatal.
40156
40157 2009-03-31 Pavel Roskin <proski@gnu.org>
40158
40159 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40160 for cross-compilation.
40161
40162 2009-03-30 Robert Millan <rmh@aybabtu.com>
40163
40164 Fix i386-ieee1275 build.
40165
40166 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40167 Remove declaration.
40168
40169 2009-03-30 Pavel Roskin <proski@gnu.org>
40170
40171 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40172 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40173 zero-terminated, rely only on the strlen value. Fix comparison
40174 of strings differing in length.
40175
40176 2009-03-30 Robert Millan <rmh@aybabtu.com>
40177
40178 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40179 checking for abi version. Improve error messages on BIOS to notify
40180 user about `linux16' command.
40181
40182 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40183
40184 Leak fixes
40185
40186 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40187 in case of collision
40188 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40189
40190 2009-03-29 Robert Millan <rmh@aybabtu.com>
40191
40192 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40193 set `vid_mode' accordingly.
40194 (grub_linux_boot): Process `vid_mode' and set video mode.
40195
40196 2009-03-29 Robert Millan <rmh@aybabtu.com>
40197
40198 * util/grub.d/10_linux.in (linux_entry): New function.
40199 Factorize generation of Linux boot entries.
40200
40201 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40202
40203 Make the format of Environment Block plain text. The boot loader
40204 part is not tested well yet.
40205
40206 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40207 (buffer): Removed.
40208 (envblk): Likewise.
40209 (usage): Remove "info" and "clear". Add "unset". Update the
40210 description of "set", as this does not delete variables any
40211 longer.
40212 (create_envblk_file): Complete rewrite.
40213 (open_envblk_file): Likewise.
40214 (cmd_info): Removed.
40215 (cmd_list): Likewise.
40216 (cmd_set): Likewise.
40217 (cmd_clear): Likewise.
40218 (list_variables): New function.
40219 (write_envblk): Likewise.
40220 (set_variables): Likewise.
40221 (unset_variables): Likewise.
40222 (main): Complete rewrite.
40223
40224 * commands/loadenv.c (buffer): Removed.
40225 (envblk): Likewise.
40226 (open_envblk_file): New function.
40227 (read_envblk_file): Complete rewrite.
40228 (grub_cmd_load_env): Likewise.
40229 (grub_cmd_list_env): Likewise.
40230 (struct blocklist): New struct.
40231 (free_blocklists): New function.
40232 (check_blocklists): Likewise.
40233 (write_blocklists): Likewise.
40234 (grub_cmd_save_env): Complete rewrite.
40235
40236 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40237 a plain text signature.
40238 (GRUB_ENVBLK_MAXLEN): Removed.
40239 (struct grub_envblk): Complete rewrite.
40240 (grub_envblk_find): Removed.
40241 (grub_envblk_insert): Likewise.
40242 (grub_envblk_open): New prototype.
40243 (grub_envblk_set): Likewise.
40244 (grub_envblk_delete): Put const to VALUE.
40245 (grub_envblk_iterate): Put const to NAME and VALUE.
40246 (grub_envblk_close): New prototype.
40247 (grub_envblk_buffer): New inline function.
40248 (grub_envblk_size): Likewise.
40249
40250 * lib/envblk.c: Include grub/mm.h.
40251 (grub_env_find): Removed.
40252 (grub_envblk_open): New function.
40253 (grub_envblk_close): Likewise.
40254 (escaped_value_len): Likewise.
40255 (find_next_line): Likewise.
40256 (grub_envblk_insert): Removed.
40257 (grub_envblk_set): New function.
40258 (grub_envblk_delete): Complete rewrite.
40259 (grub_envblk_iterate): Likewise.
40260
40261 2009-03-28 Robert Millan <rmh@aybabtu.com>
40262
40263 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40264 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40265 variables. Use 16-bit loader.
40266 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40267 loader.
40268 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40269 (grub_linux16_boot): ... this. Update all users.
40270 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40271 (grub_linux_boot): ... this. Update all users.
40272
40273 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40274 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40275 commands to `linux16' and `initrd16'.
40276 (GRUB_MOD_FINI(linux)): Rename to ...
40277 (GRUB_MOD_FINI(linux16)): ... this.
40278
40279 2009-03-24 Pavel Roskin <proski@gnu.org>
40280
40281 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40282 not just for compilation.
40283
40284 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40285
40286 Move multiboot helper out of kernel
40287
40288 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40289 `loader/i386/multiboot_helper.S'.
40290 * conf/i386-coreboot.rmk: Likewise
40291 * conf/i386-ieee1275.rmk: Likewise
40292
40293 * kern/i386/loader.S: Move multiboot helpers from here...
40294 * loader/i386/multiboot_helper.S: ...moved here
40295 * include/grub/i386/loader.h: Move declarations of multiboot
40296 helpers from here...
40297 * include/grub/i386/multiboot.h: ...moved here
40298 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40299
40300 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40301
40302 * kern/env.c (grub_env_context_open): Added an argument to specify
40303 whether a new context inherits exported variables from current
40304 one. This is useful when making a sandbox to interpret a config
40305 file.
40306 All callers updated.
40307
40308 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40309
40310 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40311
40312 * kern/env.c (grub_env_context_close): Fix memory leaks.
40313
40314 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40315
40316 * normal/main.c (grub_normal_execute): Added an argument
40317 BATCH to specify if an interactive interface should be provided
40318 after reading a config file.
40319 All callers updated.
40320 (read_command_list): Prevent being executed twice.
40321 (read_fs_list): Likewise.
40322
40323 * include/grub/normal.h (grub_normal_execute): Updated the
40324 prototype.
40325
40326 2009-03-22 Pavel Roskin <proski@gno.org>
40327
40328 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40329 _start.
40330 * kern/i386/pc/startup.S: Likewise.
40331 * kern/i386/efi/startup.S: Likewise.
40332 * kern/i386/ieee1275/startup.S: Likewise.
40333 * kern/i386/coreboot/startup.S: Likewise.
40334 * kern/x86_64/efi/startup.S: Likewise.
40335
40336 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40337 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40338 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40339
40340 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40341
40342 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40343
40344 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40345 limit detection.
40346 Use vaddr of correct segment for entry_point.
40347
40348 2009-03-21 Bean <bean123ch@gmail.com>
40349
40350 * commands/blocklist.c: Add include file <grub/command.h>, remove
40351 <grub/normal.h> and <grub/arg.h>.
40352 (grub_cmd_blocklist): Use the new command interface.
40353 (GRUB_MOD_INIT): Likewise.
40354 (GRUB_MOD_FINI): Likewise.
40355 * commands/boot.c: Likewise.
40356 * commands/cat.c: Likewise.
40357 * commands/cmp.c: Likewise.
40358 * commands/configfile.c: Likewise.
40359 * commands/crc.c: Likewise.
40360 * commands/echo.c: Likewise.
40361 * commands/halt.c: Likewise.
40362 * commands/handler.c: Likewise.
40363 * commands/hdparm.c: Likewise.
40364 * commands/help.c: Likewise.
40365 * commands/hexdump.c: Likewise.
40366 * commands/loadenv.c: Likewise.
40367 * commands/ls.c: Likewise.
40368 * commands/lsmmap.c: Likewise.
40369 * commands/lspci.c: Likewise.
40370 * commands/loadenv.c: Likewise.
40371 * commands/read.c: Likewise.
40372 * commands/reboot.c: Likewise.
40373 * commands/search.c: Likewise.
40374 * commands/sleep.c: Likewise.
40375 * commands/test.c: Likewise.
40376 * commands/usbtest.c: Likewise.
40377 * commands/videotest.c: Likewise.
40378 * commands/i386/cpuid.c: Likewise.
40379 * commands/i386/pc/halt.c: Likewise.
40380 * commands/i386/pc/play.c: Likewise.
40381 * commands/i386/pc/pxecmd.c: Likewise.
40382 * commands/i386/pc/vbeinfo.c: Likewise.
40383 * commands/i386/pc/vbetest.c: Likewise.
40384 * commands/ieee1275/suspend.c: Likewise.
40385 * disk/loopback.c: Likewise.
40386 * font/font_cmd.c: Likewise.
40387 * hello/hello.c: Likewise.
40388 * loader/efi/appleloader.c: Likewise.
40389 * loader/efi/chainloader.c: Likewise.
40390 * loader/i386/bsd.c: Likewise.
40391 * loader/i386/efi/linux.c: Likewise.
40392 * loader/i386/ieee1275/linux.c: Likewise.
40393 * loader/i386/linux.c: Likewise.
40394 * loader/i386/pc/chainloader.c: Likewise.
40395 * loader/i386/pc/linux.c: Likewise.
40396 * loader/powerpc/ieee1275/linux.c: Likewise.
40397 * loader/multiboot_loader.c: Likewise.
40398 * term/gfxterm.c: Likewise.
40399 * term/i386/pc/serial.c: Likewise.
40400 * term/terminfo.c: Likewise.
40401
40402 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40403 * term/i386/pc/vga.c: Likewise.
40404 * video/readers/jpeg.c: Likewise.
40405 * video/readers/png.c: Likewise.
40406 * video/readers/tga.c: Likewise.
40407
40408 * util/grub-fstest (cmd_loopback): Removed.
40409 (cmd_blocklist): Likewise.
40410 (cmd_ls): Likewise.
40411 (grub_register_command): Likewise.
40412 (grub_unregister_command): Likewise.
40413 (execute_command): Use grub_command_find to locate command and execute
40414 it.
40415
40416 * include/grub/efi/chainloader.h: Removed.
40417 * loader/efi/chainloader_normal.c: Likewise.
40418 * loader/i386/bsd_normal.c: Likewise.
40419 * loader/i386/pc/chainloader_normal.c: Likewise.
40420 * loader/i386/pc/multiboot_normal.c: Likewise.
40421 * loader/linux_normal.c: Likewise.
40422 * loader/multiboot_loader_normal.c: Likewise.
40423 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40424
40425 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40426 and grub_register_command_p1.
40427
40428 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40429 kern/command.c, lib/arg.c and commands/extcmd.c.
40430 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40431 (minicmd_mod_SOURCES): New variable.
40432 (minicmd_mod_CFLAGS): Likewise.
40433 (minicmd_mod_LDFLAGS): Likewise.
40434 (extcmd_mod_SOURCES): Likewise.
40435 (extcmd_mod_CFLAGS): Likewise.
40436 (extcmd_mod_LDFLAGS): Likewise.
40437 (boot_mod_SOURCES): Removed.
40438 (boot_mod_CFLAGS): Likewise.
40439 (boot_mod_LDFLAGS): Likewise.
40440
40441 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40442 kern/corecmd.c.
40443 (kernel_img_HEADERS): Add command.h.
40444 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40445 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40446 and lib/arg.c.
40447 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40448 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40449 remove the corresponding normal mode command.
40450 (normal_mod_SOURCES): Remove normal/arg.c.
40451 * conf/i386-coreboot.rmk: Likewise.
40452 * conf/i386-efi.rmk: Likewise.
40453 * conf/i386-ieee1275.rmk: Likewise.
40454 * conf/powerpc-ieee1275.rmk: Likewise.
40455 * conf/x86_64-efi.rmk: Likewise.
40456
40457 * include/grub/arg.h: Move from here ...
40458 * include/grub/lib/arg.h: ... to here.
40459
40460 * normal/arg.c: Move from here ...
40461 * lib/arg.c: ... to here.
40462
40463 * commands/extcmd.c: New file.
40464 * commands/minicmd.c: Likewise.
40465 * include/grub/command.h: Likewise.
40466 * include/grub/extcmd.h: Likewise.
40467 * kern/command.c: Likewise.
40468 * kern/corecmd.c: Likewise.
40469
40470 * kern/list.c (grub_list_iterate): Return int instead of void.
40471 (grub_list_insert): New function.
40472 (grub_prio_list_insert): Likewise.
40473
40474 * kern/rescue.c (grub_rescue_command): Removed.
40475 (grub_rescue_command_list): Likewise.
40476 (grub_rescue_register_command): Likewise.
40477 (grub_rescue_unregister_command): Likewise.
40478 (grub_rescue_cmd_boot): Move to minicmd.c
40479 (grub_rescue_cmd_help): Likewise.
40480 (grub_rescue_cmd_info): Likewise.
40481 (grub_rescue_cmd_boot): Likewise.
40482 (grub_rescue_cmd_testload): Likewise.
40483 (grub_rescue_cmd_dump): Likewise.
40484 (grub_rescue_cmd_rmmod): Likewise.
40485 (grub_rescue_cmd_lsmod): Likewise.
40486 (grub_rescue_cmd_exit): Likewise.
40487 (grub_rescue_print_devices): Moved to corecmd.c.
40488 (grub_rescue_print_files): Likewise.
40489 (grub_rescue_cmd_ls): Likewise.
40490 (grub_rescue_cmd_insmod): Likewise.
40491 (grub_rescue_cmd_set): Likewise.
40492 (grub_rescue_cmd_unset): Likewise.
40493 (attempt_normal_mode): Use grub_command_find to get normal module.
40494 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40495 commands, remove grub_rescue_register_command calls.
40496
40497 * normal/command.c (grub_register_command): Removed.
40498 (grub_unregister_command): Likewise.
40499 (grub_command_find): Likewise.
40500 (grub_iterate_commands): Likewise.
40501 (rescue_command): Likewise.
40502 (export_command): Moved to corecmd.c.
40503 (set_command): Removed.
40504 (unset_command): Likewise.
40505 (insmod_command): Likewise.
40506 (rmmod_command): Likewise.
40507 (lsmod_command): Likewise.
40508 (grub_command_init): Likewise.
40509
40510 * normal/completion.c (iterate_command): Use cmd->prio to check for
40511 active command.
40512 (complete_arguments): Use grub_extcmd_t structure to find options.
40513 (grub_normal_do_completion): Change function grub_iterate_commands to
40514 grub_command_iterate.
40515
40516 * normal/execute.c (grub_script_execute_cmd): No need to parse
40517 argument here.
40518
40519 * normal/main.c (grub_dyncmd_dispatcher): New function.
40520 (read_command_list): Register unload commands as dyncmd.
40521 (grub_cmd_normal): Use new command interface, register rescue,
40522 unregister normal at entry, register normal, unregister rescue at exit.
40523
40524 * include/grub/list.h (grub_list_test_t): New type.
40525 (grub_list_iterate): Return int instead of void.
40526 (grub_list_insert): New function.
40527 (GRUB_AS_NAMED_LIST_P): New macro.
40528 (GRUB_AS_PRIO_LIST): Likewise.
40529 (GRUB_AS_PRIO_LIST_P): Likewise.
40530 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40531 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40532 (grub_prio_list): New structure.
40533 (grub_prio_list_insert): New function.
40534 (grub_prio_list_remove): New inline function.
40535
40536 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40537 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40538 (GRUB_COMMAND_FLAG_MENU): Likewise.
40539 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40540 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40541 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40542 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40543 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40544 (grub_command): Likewise.
40545 (grub_register_command): Likewise.
40546 (grub_command_find): Likewise.
40547 (grub_iterate_commands): Likewise.
40548 (grub_command_init): Likewise.
40549 (grub_arg_parse): Likewise.
40550 (grub_arg_show_help): Likewise.
40551
40552 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40553 (grub_rescue_unregister_command): Likewise.
40554
40555 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40556 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40557 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40558
40559 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40560 grub_rescue_cmd_initrd.
40561 * include/grub/i386/loader.h: Likewise.
40562 * include/grub/x86_64/loader.h: Likewise.
40563
40564 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40565
40566 2009-03-21 Bean <bean123ch@gmail.com>
40567
40568 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40569 instead of stat in mingw environment.
40570
40571 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40572
40573 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40574
40575 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40576 AC_CONFIG_LINKS.
40577
40578 2009-03-21 Bean <bean123ch@gmail.com>
40579
40580 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40581 out of range error.
40582
40583 2009-03-18 Michel Dänzer <michel@daenzer.net>
40584
40585 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40586 checking inode flags for EXT4_EXTENTS_FLAG.
40587
40588 2009-03-18 Robert Millan <rmh@aybabtu.com>
40589
40590 * loader/i386/linux.c: Include `<grub/video.h>' and
40591 `<grub/i386/pc/vbe.h>'..
40592 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40593 (grub_linux32_boot): Attempt to configure video settings with
40594 grub_linux_setup_video().
40595 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40596 to avoid grub_console_fini() which would step out of graphical mode
40597 unconditionally.
40598
40599 2009-03-14 Robert Millan <rmh@aybabtu.com>
40600
40601 Fix build on powerpc.
40602 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40603
40604 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40605
40606 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40607 background image command.
40608
40609 2009-03-12 Colin D Bennett <colin@gibibit.com>
40610
40611 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40612 (grub_gfxterm_putchar): Extract pairs of identical calls to
40613 draw_cursor out of conditional blocks.
40614
40615 2009-03-11 Pavel Roskin <proski@gnu.org>
40616
40617 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40618 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40619
40620 2009-03-11 Robert Millan <rmh@aybabtu.com>
40621
40622 * loader/i386/multiboot_elfxx.c
40623 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40624
40625 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40626
40627 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40628 `kern/handler.c'.
40629
40630 2009-03-11 Robert Millan <rmh@aybabtu.com>
40631
40632 * loader/i386/multiboot.c (code_size): New variable.
40633 (grub_multiboot): Define offsets by adding to `code_size' rather
40634 than subtracting from `grub_multiboot_payload_size'. Provide
40635 4-byte alignment to MBI and others by increasing
40636 `boot_loader_name_length' appropriately.
40637
40638 * loader/i386/multiboot_elfxx.c
40639 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40640
40641 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40642
40643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40644 `fs/ext2.c'.
40645
40646 2009-03-08 Robert Millan <rmh@aybabtu.com>
40647
40648 Make loader/i386/linux.c usable on i386-pc again.
40649
40650 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40651 memory to heap.
40652 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40653 `#error' stanza.
40654
40655 2009-03-07 Bean <bean123ch@gmail.com>
40656
40657 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40658 allocation.
40659
40660 2009-03-06 Robert Millan <rmh@aybabtu.com>
40661
40662 Fix display issue on terminals with screen size other than 80x25
40663 (e.g. gfxterm with resolution higher than 640x480).
40664
40665 * normal/main.c (grub_normal_init_page): Display title text in a
40666 position relative to the center of the terminal instead of relying
40667 on a hardcoded offset.
40668
40669 2009-03-04 Robert Millan <rmh@aybabtu.com>
40670
40671 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40672 installed.
40673
40674 * Makefile.in (host_kernel): New variable.
40675 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40676 scripts instead of just the windows one.
40677 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40678
40679 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40680
40681 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40682 `kern/handler.c'.
40683 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40684 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40685 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40687 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40688 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40689
40690 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40691
40692 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40693 or if there's no space for the disk label and print the partition number on a
40694 invalid magic.
40695
40696 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40697
40698 * util/misc.c: Include <time.h>.
40699 (grub_millisleep): New function.
40700
40701 2009-03-04 Bean <bean123ch@gmail.com>
40702
40703 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40704 another option -mno-red-zone.
40705
40706 * commands/handler.c: Change module description.
40707
40708 * kern/handler.c: Add missing space at the end of description line.
40709
40710 * kern/list.c: Likewise.
40711
40712 2009-03-03 Robert Millan <rmh@aybabtu.com>
40713
40714 Move more components to the relocation area, and fix mbi pointer
40715 handling to use the destination rather than the origin (thanks to
40716 Vladimir Serbinenko for spotting).
40717
40718 * loader/i386/multiboot.c (mbi_dest): New variable.
40719 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40720 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40721 relocation area.
40722
40723 2009-03-01 Bean <bean123ch@gmail.com>
40724
40725 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40726 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40727 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40728 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40729
40730 * loader/i386/efi/linux.c (acpi_guid): New variable.
40731 (acpi_guid): Likewise.
40732 (EBDA_SEG_ADDR): New constant.
40733 (LOW_MEM_ADDR): Likewise.
40734 (FAKE_EBDA_SEG): Likewise.
40735 (fake_bios_data): New function.
40736 (grub_linux_boot): Call fake_bios_data.
40737
40738 2009-03-01 Bean <bean123ch@gmail.com>
40739
40740 * commands/terminal.c: Removed.
40741
40742 * commands/handler.c: New file.
40743
40744 * include/grub/list.h: Likewise.
40745
40746 * include/grub/handler.h: Likewise.
40747
40748 * kern/list.c: Likewise.
40749
40750 * kern/handler.c: Likewise.
40751
40752 * kern/term.h: Include header file <grub/handler.h>.
40753 (grub_term_input): Move next field to the beginning.
40754 (grub_term_output): Likewise.
40755 (grub_term_input_class): New variable.
40756 (grub_term_output_class): Likewise.
40757 (grub_term_register_input): Changed to inline function.
40758 (grub_term_register_output): Likewise.
40759 (grub_term_unregister_input): Likewise.
40760 (grub_term_unregister_output): Likewise.
40761 (grub_term_set_current_input): Likewise.
40762 (grub_term_set_current_output): Likewise.
40763 (grub_term_get_current_input): Likewise.
40764 (grub_term_get_current_output): Likewise.
40765 (grub_term_iterate_input): Removed.
40766 (grub_term_iterate_output): Likewise.
40767
40768 * kern/term.c (grub_term_list_input): Removed.
40769 (grub_term_list_output): Likewise.
40770 (grub_term_input_class): New variable.
40771 (grub_term_output_class): Likewise.
40772 (grub_cur_term_input): Change variable as macro.
40773 (grub_cur_term_output): Likewise.
40774 (grub_term_register_input): Removed.
40775 (grub_term_register_output): Likewise.
40776 (grub_term_unregister_input): Likewise.
40777 (grub_term_unregister_output): Likewise.
40778 (grub_term_set_current_input): Likewise.
40779 (grub_term_set_current_output): Likewise.
40780 (grub_term_iterate_input): Likewise.
40781 (grub_term_iterate_output): Likewise.
40782 (grub_term_get_current_input): Likewise.
40783 (grub_term_get_current_output): Likewise.
40784
40785 * util/grub-editenv.c: Include header file <grub/handler.h>.
40786 (grub_term_get_current_input): Removed.
40787 (grub_term_get_current_output): Likewise.
40788 (grub_term_input_class): New variable.
40789 (grub_term_output_class): Likewise.
40790
40791 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40792 (grub_term_get_current_output): Likewise.
40793 (grub_term_input_class): New variable.
40794 (grub_term_output_class): Likewise.
40795
40796 * util/grub-probe.c (grub_term_get_current_input): Removed.
40797 (grub_term_get_current_output): Likewise.
40798 (grub_term_input_class): New variable.
40799 (grub_term_output_class): Likewise.
40800
40801 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40802 (grub_term_get_current_output): Likewise.
40803 (grub_term_input_class): New variable.
40804 (grub_term_output_class): Likewise.
40805
40806 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40807 (terminal_mod_SOURCES): Likewise.
40808 (terminal_mod_CFLAGS): Likewise.
40809 (terminal_mod_LDFLAGS): Likewise.
40810
40811 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40812 handler.c.
40813 (kernel_img_SOURCES): Add list.c and handler.c.
40814 (kernel_img_HEADERS): Add list.h and handler.h.
40815
40816 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40817 handler.c.
40818 (kernel_mod_SOURCES): Add list.c and handler.c.
40819 (kernel_mod_HEADERS): Add list.h and handler.h.
40820
40821 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40822 handler.c.
40823 (kernel_elf_SOURCES): Add list.c and handler.c.
40824 (kernel_elf_HEADERS): Add list.h and handler.h.
40825
40826 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40827 handler.c.
40828 (kernel_elf_SOURCES): Add list.c and handler.c.
40829 (kernel_elf_HEADERS): Add list.h and handler.h.
40830
40831 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40832 handler.c.
40833 (kernel_mod_SOURCES): Add list.c and handler.c.
40834 (kernel_mod_HEADERS): Add list.h and handler.h.
40835
40836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40837 handler.c.
40838 (kernel_elf_SOURCES): Add list.c and handler.c.
40839 (kernel_elf_HEADERS): Add list.h and handler.h.
40840
40841 2009-02-27 Robert Millan <rmh@aybabtu.com>
40842
40843 Factorize elf32 / elf64 code in Multiboot loader. This will
40844 prevent it from getting out of sync again.
40845
40846 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40847 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40848 grub_multiboot_load_elf64): Move from here ...
40849 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40850 grub_multiboot_load_elf): ... to here (new file).
40851
40852 2009-02-27 Robert Millan <rmh@aybabtu.com>
40853
40854 * util/grub.d/10_linux.in: Rename "single-user mode" to
40855 "recovery mode".
40856
40857 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40858
40859 Don't leak in SCSI code.
40860 * disk/scsi.c (grub_scsi_close): free `scsi'.
40861
40862 2009-02-27 Robert Millan <rmh@aybabtu.com>
40863
40864 * loader/i386/pc/multiboot.c: Move from here ...
40865 * loader/i386/multiboot.c: ... to here. Update all users.
40866
40867 2009-02-27 Robert Millan <rmh@aybabtu.com>
40868
40869 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40870 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40871
40872 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40873
40874 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40875 b-tree.
40876
40877 2009-02-27 Robert Millan <rmh@aybabtu.com>
40878
40879 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40880 `0x' qualifier as 0 when base is specified as parameter).
40881
40882 2009-02-24 Bean <bean123ch@gmail.com>
40883
40884 * configure.ac: Check for -mcmodel=large in x86_64 target.
40885
40886 * include/grub/efi/api.h (efi_call_10): New macro.
40887 (efi_wrap_10): New function.
40888
40889 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40890 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40891 (GRUB_PE32_REL_BASED_LOW): Likewise.
40892 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40893 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40894 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40895 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40896 (GRUB_PE32_REL_BASED_REL): Likewise.
40897 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40898 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40899 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40900
40901 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40902 issue.
40903
40904 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40905 (efi_wrap_10): New function.
40906
40907 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40908
40909 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40910 MB/MBP model (NV chipset).
40911 (devdata_devs): Add devpath_5 to the list.
40912
40913 * load/i386/efi/linux.c (video_base): Remove variable.
40914 (RGB_MASK): New macro.
40915 (RGB_MAGIC): Likewise.
40916 (LINE_MIN): Likewise.
40917 (LINE_MAX): Likewise.
40918 (FBTEST_STEP): Likewise.
40919 (FBTEST_COUNT): Likewise.
40920 (fb_list): New variable.
40921 (grub_find_video_card): Remove function.
40922 (find_framebuf): New function.
40923 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40924 line length.
40925
40926 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40927 problem for x86_64.
40928
40929 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40930
40931 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40932
40933 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40934 coding tool name.
40935
40936 2009-02-22 Robert Millan <rmh@aybabtu.com>
40937
40938 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40939 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40940 in our relocation, instead of using it directly from heap. Also
40941 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40942
40943 2009-02-21 Robert Millan <rmh@aybabtu.com>
40944
40945 Implement USB keyboard support (based on patch by Marco Gerards)
40946
40947 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40948 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40949 (usb_keyboard_mod_LDFLAGS): New variables.
40950
40951 * term/usb_keyboard.c: New file.
40952
40953 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40954
40955 Corrected wrong declaration
40956
40957 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40958
40959 2009-02-14 Christian Franke <franke@computer.org>
40960
40961 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40962 (grub_lspci_iter): Print class code and programming interface byte.
40963
40964 2009-02-14 Christian Franke <franke@computer.org>
40965
40966 * gendistlist.sh: Ignore `.svn' directories.
40967
40968 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40969
40970 * fs/fat.c: Add 2009 to Copyright line.
40971
40972 2009-02-14 Christian Franke <franke@computer.org>
40973
40974 * commands/hdparm.c: New file. Provides `hdparm' command
40975 which sends ATA commands via grub_disk_ata_pass_through ().
40976
40977 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40978
40979 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40980 and <grub/cpu/io.h> to include/grub/ata.h.
40981 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40982 (GRUB_CDROM_SECTOR_SIZE): Remove.
40983 (GRUB_ATA_*): Move to include/grub/ata.h.
40984 (GRUB_ATAPI_*): Likewise.
40985 (enum grub_ata_commands): Likewise.
40986 (enum grub_ata_timeout_milliseconds): Likewise.
40987 (struct grub_ata_device): Likewise.
40988 (grub_ata_regset): Likewise.
40989 (grub_ata_regget): Likewise.
40990 (grub_ata_regset2): Likewise.
40991 (grub_ata_regget2): Likewise.
40992 (grub_ata_check_ready): Likewise.
40993 (grub_ata_wait_not_busy): Remove static, exported in
40994 include/grub/ata.h.
40995 (grub_ata_wait_drq): Likewise.
40996 (grub_ata_pio_read): Likewise.
40997
40998 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40999 function for hdparm.mod.
41000
41001 * include/grub/ata.h: New file, contains declarations from
41002 disk/ata.c.
41003 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41004
41005 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41006 (grub_disk_ata_pass_through): New exported variable.
41007
41008 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41009
41010 2009-02-13 Colin D Bennett <colin@gibibit.com>
41011
41012 Support multiple fallback entries, and provide an API to support
41013 executing default+fallback menu entries. Renamed the `terminal' menu
41014 viewer to `text'.
41015
41016 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41017 variable declaration.
41018 (grub_menu_execute_callback): New structure declaration.
41019 (grub_menu_execute_callback_t): New typedef.
41020 (grub_menu_execute_with_fallback): New function declaration.
41021 (grub_menu_get_entry): Likewise.
41022 (grub_menu_get_timeout): Likewise.
41023 (grub_menu_set_timeout): Likewise.
41024
41025 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41026
41027 * normal/menu.c (grub_wait_after_message): Moved to
41028 `normal/menu_text.c'.
41029 (draw_border): Likewise.
41030 (print_message): Likewise.
41031 (print_entry): Likewise.
41032 (print_entries): Likewise.
41033 (grub_menu_init_page): Likewise.
41034 (get_entry_number): Likewise.
41035 (print_timeout): Likewise.
41036 (run_menu): Likewise.
41037 (grub_menu_execute_entry): Likewise.
41038 (show_text_menu): Likewise.
41039 (get_and_remove_first_entry_number): New function.
41040 (grub_menu_execute_with_fallback): Likewise.
41041 (get_entry): Renamed to ...
41042 (grub_menu_get_entry): .. this and made it global.
41043 (get_timeout): Renamed to ...
41044 (grub_menu_get_timeout): ... this and made it global.
41045 (set_timeout): Renamed to ...
41046 (grub_menu_set_timeout): ... this and made it global.
41047 (grub_normal_terminal_menu_viewer): Renamed to ...
41048 (grub_normal_text_menu_viewer): ... this.
41049
41050 * normal/menu_text.c: New file. Extracted text-menu-specific code
41051 from normal/menu.c.
41052
41053 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41054 (normal_mod_SOURCES): Likewise.
41055
41056 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41057 (normal_mod_SOURCES): Likewise.
41058
41059 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41060 (normal_mod_SOURCES): Likewise.
41061
41062 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41063 (normal_mod_SOURCES): Likewise.
41064
41065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41066 (normal_mod_SOURCES): Likewise.
41067
41068 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41069 (normal_mod_SOURCES): Likewise.
41070
41071 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41072 (normal_mod_SOURCES): Likewise.
41073
41074 2009-02-11 Robert Millan <rmh@aybabtu.com>
41075
41076 * util/grub.d/00_header.in: Update old reference to `font' command.
41077
41078 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41079
41080 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41081
41082 Based on patch from Javier Martín.
41083
41084 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41085
41086 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41087 to avoid false positives with FAT.
41088 (grub_fstest_SOURCES): Likewise.
41089 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41090 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41092 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41093 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41094 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41095
41096 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41097
41098 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41099 bpb.version_specific.fat12_or_fat16.fstype and
41100 bpb.version_specific.fat32.fstype.
41101
41102 2009-02-08 Robert Millan <rmh@aybabtu.com>
41103
41104 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41105
41106 2009-02-08 Robert Millan <rmh@aybabtu.com>
41107
41108 * Makefile.in (host_os, host_cpu): New variables.
41109 (target_os): Remove. Update all users.
41110
41111 2009-02-08 Marco Gerards <marco@gnu.org>
41112
41113 * Makefile.in (enable_grub_emu_usb): New variable.
41114 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41115 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41116 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41117 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41118 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41119 `usbtest.mod' and `usbms.mod'.
41120 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41121 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41122 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41123 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41124 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41125 variables.
41126
41127 * disk/usbms.c: New file.
41128
41129 * include/grub/usb.h: Likewise.
41130
41131 * include/grub/usbtrans.h: Likewise.
41132
41133 * include/grub/usbdesc.h: Likewise.
41134
41135 * bus/usb/usbtrans.c: Likewise.
41136
41137 * bus/usb/ohci.c: Likewise.
41138
41139 * bus/usb/uhci.c: Likewise.
41140
41141 * bus/usb/usbhub.c: Likewise.
41142
41143 * bus/usb/usb.c: Likewise.
41144
41145 * commands/usbtest.c: Likewise.
41146
41147 * util/usb.c: Likewise.
41148
41149 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41150
41151 * configure.ac: Test for libusb presence.
41152
41153 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41154
41155 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41156
41157 * kern/mm.c: Add more comments.
41158
41159 2009-02-08 Robert Millan <rmh@aybabtu.com>
41160
41161 Patch from Javier Martín.
41162 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41163 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41164
41165 2009-02-08 Robert Millan <rmh@aybabtu.com>
41166
41167 * fs/cpio.c: Split tar functionality to ...
41168 * fs/tar.c: ... here (new file). Update all users.
41169
41170 2009-02-07 Robert Millan <rmh@aybabtu.com>
41171
41172 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41173 backward-incompatible features.
41174
41175 Based on patch from Javier Martín, with some adjustments.
41176
41177 2009-02-07 Michael Scherer <misc@mandriva.org>
41178
41179 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41180
41181 2009-02-07 Robert Millan <rmh@aybabtu.com>
41182
41183 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41184 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41185 after the RAID stuff.
41186
41187 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41188
41189 Fixes problem when running vbetest command as reported by
41190 Vladimir Serbinenko <phcoder@gmail.com>.
41191
41192 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41193
41194 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41195
41196 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41197 /dev/md/NpN style mdraid devices.
41198
41199 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41200
41201 * util/unifont2pff.rb: Remove.
41202
41203 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41204
41205 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41206 `#'.
41207
41208 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41209
41210 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41211 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41212 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41213 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41215 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41216 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41217
41218 2009-02-02 Christian Franke <franke@computer.org>
41219
41220 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41221
41222 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41223
41224 * INSTALL: Note that we now require at least autoconf 2.59 and
41225 that LZO is optional.
41226
41227 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41228
41229 Base on patch on bug #24154 created by Tomas Tintera
41230 <trosos@seznam.cz>.
41231
41232 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41233
41234 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41235
41236 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41237 <bero@arklinux.org>.
41238
41239 * normal/parser.y (script_init): Add missing semicolon.
41240
41241 2009-01-31 Colin D Bennett <colin@gibibit.com>
41242
41243 * normal/main.c: Add include to grub/menu_viewer.h.
41244 (free_menu_entry_classes): Added.
41245 (grub_normal_menu_addentry): Added class property handling.
41246 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41247 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41248
41249 * normal/menu_viewer.c: New file.
41250
41251 * normal/menu.c (run_menu_entry): Renamed to ...
41252 (grub_menu_execute_entry): ... this and made it as global.
41253 (grub_menu_run): Renamed to ...
41254 (show_text_menu): ... this and made it local.
41255 (show_text_menu): Adapt to new function names.
41256 (grub_normal_terminal_menu_viewer): New global variable.
41257
41258 * include/grub/menu.h: New file.
41259
41260 * include/grub/menu_viewer.h: New file.
41261
41262 * include/grub/normal.h: Added include to grub/menu.h.
41263 (grub_menu_entry): Moved to include/grub/menu.h.
41264 (grub_menu_entry_t): Likewise.
41265 (grub_menu): Likewise.
41266 (grub_menu_t): Likewise.
41267 (grub_normal_terminal_menu_viewer): Added.
41268 (grub_menu_execute_entry): Likewise.
41269 (grub_menu_run): Removed.
41270
41271 * DISTLIST: Added include/grub/menu.h.
41272 Added include/grub/menu_viewer.h.
41273 Added normal/menu_viewer.c.
41274
41275 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41276
41277 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41278 arglist for menutitle arguments.
41279
41280 * normal/main.c (grub_normal_menu_addentry): Likewise.
41281
41282 * normal/parser.y (menuentry): Likewise.
41283
41284 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41285
41286 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41287 (grub_script_create_cmdmenu): Likewise.
41288
41289 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41290
41291 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41292 changes.
41293
41294 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41295
41296 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41297
41298 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41299
41300 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41301
41302 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41303
41304 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41305
41306 2009-01-30 Christian Franke <franke@computer.org>
41307
41308 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41309 in option help text.
41310
41311 2009-01-27 Pavel Roskin <proski@gnu.org>
41312
41313 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41314
41315 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41316
41317 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41318
41319 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41320
41321 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41322 unregister function.
41323
41324 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41325
41326 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41327
41328 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41329
41330 * util/grub-mkfont.c (usage): Fix typo.
41331
41332 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41333
41334 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41335
41336 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41337
41338 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41339
41340 * kern/misc.c (grub_strcasecmp): New function.
41341 (grub_strcasecmp): Use grub_size_t instead of int for length.
41342 Fix return value.
41343 * include/grub/misc.h: Update function prototypes.
41344
41345 2009-01-26 Robert Millan <rmh@aybabtu.com>
41346
41347 * configure.ac: Fix cross-compilation check.
41348
41349 2009-01-22 Christian Franke <franke@computer.org>
41350
41351 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41352 (precision) digit string. Allow `.format2' without `format1' (width).
41353 Limit input chars for `%s' output to `format2' if specified. This is
41354 compatible with standard printf ().
41355
41356 2009-01-22 Christian Franke <franke@computer.org>
41357
41358 * disk/ata.c (grub_ata_wait_status): Replace by ...
41359 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41360 other status bits may be invalid while BSY is asserted.
41361 (grub_ata_check_ready): New function.
41362 (grub_ata_cmd): Removed.
41363 (grub_ata_wait_drq): New function.
41364 (grub_ata_strncpy): Remove inline.
41365 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41366 and error check now done by grub_ata_wait_drq ().
41367 (grub_ata_pio_write): Likewise.
41368 (grub_atapi_identify): Set DEV before check for !BSY. Use
41369 grub_ata_wait_drq () to wait for data.
41370 (grub_ata_device_initialize): Add status register check to
41371 detect missing SATA slave devices. Add debug messages.
41372 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41373 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41374 transfer loop by grub_ata_pio_write ().
41375 (grub_ata_identify): Set DEV before check for !BSY. Use
41376 grub_ata_wait_drq () to wait for data.
41377 (grub_ata_setaddress): Set DEV before check for !BSY.
41378 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41379 read/write in one loop. Fix invalid command on write. Fix incomplete
41380 command on (size % batch) == 0. Add missing error check after write of
41381 last block. Add debug messages.
41382 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41383
41384 2009-01-19 Christian Franke <franke@computer.org>
41385
41386 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41387 (GRUB_ATAPI_IREASON_*): Likewise.
41388 (grub_ata_pio_write): Fix timeout error return.
41389 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41390 (grub_atapi_wait_drq): New function.
41391 (grub_atapi_packet): New parameter `size'.
41392 Use grub_atapi_wait_drq () and direct write instead of
41393 grub_ata_pio_write ().
41394 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41395 reads the number of bytes requested by the device for each DRQ
41396 assertion.
41397 (grub_atapi_write): Remove old implementation, return not
41398 implemented instead.
41399
41400 2009-01-19 Christian Franke <franke@computer.org>
41401
41402 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41403 of 512 to calculate data size.
41404 (grub_scsi_read12): Likewise.
41405 (grub_scsi_write10): Likewise.
41406 (grub_scsi_write12): Likewise.
41407 (grub_scsi_read): Adjust size according to blocksize.
41408 Add checks for invalid blocksize and unaligned transfer.
41409
41410 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41411
41412 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41413
41414 * term/gfxterm.c (write_char): Fix background rendering for wide
41415 width glyphs.
41416
41417 2009-01-19 Robert Millan <rmh@aybabtu.com>
41418
41419 * config.guess: Update to latest version from config git.
41420 * config.sub: Likewise.
41421
41422 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41423
41424 * Makefile.in: Change font compilation to use new grub-mkfont instead
41425 of java version.
41426
41427 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41428 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41429 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41430 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41431 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41432 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41433 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41434 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41435 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41436
41437 2009-01-16 Christian Franke <franke@computer.org>
41438
41439 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41440 (enum grub_ata_timeout_milliseconds): New enum.
41441 (grub_ata_wait_status): Add parameter milliseconds.
41442 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41443 recovery from timed-out commands.
41444 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41445 return grub_errno instead of REG_ERROR.
41446 (grub_ata_pio_write): Add parameter milliseconds.
41447 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41448 Pass milliseconds to grub_ata_wait_status () and
41449 grub_ata_pio_read ().
41450 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41451 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41452 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41453 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41454 It is not suitable for device detection, because DEV bit is ignored,
41455 the command may run too long, and not all devices set the signature
41456 properly.
41457 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41458 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41459 Fix device selection, DEV bit must be set first to address the registers
41460 of the correct device.
41461 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41462 grub_ata_pio_read/write ().
41463 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41464 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41465
41466 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41467
41468 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41469
41470 2009-01-13 Bean <bean123ch@gmail.com>
41471
41472 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41473
41474 2009-01-13 Bean <bean123ch@gmail.com>
41475
41476 * Makefile.in: (enable_grub_mkfont): New variable.
41477 (freetype_cflags): Likewise.
41478 (freetype_libs): Likewise.
41479
41480 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41481 (grub_mkfont_SOURCES): New variable.
41482 (grub_mkfont_CFLAGS): Likewise.
41483 (grub_mkfont_LDFLAGS): Likewise.
41484
41485 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41486 library if `--enable-grub-mkfont' is requested.
41487 (enable_grub_mkfont): New variable.
41488 (freetype_cflags): Likewise.
41489 (freetype_libs): Likewise.
41490
41491 * util/grub-mkfont.c: New file.
41492
41493 2009-01-12 Christian Franke <franke@computer.org>
41494
41495 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41496 mode check. Fix setting of compat_use[].
41497
41498 2009-01-10 Robert Millan <rmh@aybabtu.com>
41499
41500 Update a few copyright years which we forgot to do in 2008 (only for
41501 files whose changes made in 2008 were copyright-significant)
41502
41503 * Makefile.in: Add 2008 to Copyright line.
41504 * disk/ieee1275/ofdisk.c: Likewise.
41505 * disk/efi/efidisk.c: Likewise.
41506 * kern/dl.c: Likewise.
41507 * kern/sparc64/ieee1275/init.c: Likewise.
41508 * kern/mm.c: Likewise.
41509 * kern/efi/mm.c: Likewise.
41510 * boot/i386/pc/boot.S: Likewise.
41511 * genfslist.sh: Likewise.
41512 * fs/iso9660.c: Likewise.
41513 * fs/hfs.c: Likewise.
41514 * fs/jfs.c: Likewise.
41515 * fs/minix.c: Likewise.
41516 * fs/ufs.c: Likewise.
41517 * gensymlist.sh.in: Likewise.
41518 * genkernsyms.sh.in: Likewise.
41519 * include/grub/misc.h: Likewise.
41520 * include/grub/types.h: Likewise.
41521 * include/grub/symbol.h: Likewise.
41522 * include/grub/elf.h: Likewise.
41523 * include/grub/kernel.h: Likewise.
41524 * include/grub/disk.h: Likewise.
41525 * include/grub/dl.h: Likewise.
41526 * include/grub/i386/linux.h: Likewise.
41527 * include/grub/i386/pc/biosdisk.h: Likewise.
41528 * include/grub/efi/api.h: Likewise.
41529 * include/grub/efi/pe32.h: Likewise.
41530 * include/grub/util/misc.h: Likewise.
41531 * normal/execute.c: Likewise.
41532 * normal/arg.c: Likewise.
41533 * normal/completion.c: Likewise.
41534 * normal/lexer.c: Likewise.
41535 * normal/parser.y: Likewise.
41536 * normal/misc.c: Likewise.
41537 * commands/i386/pc/vbeinfo.c: Likewise.
41538 * commands/hexdump.c: Likewise.
41539 * commands/terminal.c: Likewise.
41540 * commands/ls.c: Likewise.
41541 * commands/help.c: Likewise.
41542 * partmap/pc.c: Likewise.
41543 * loader/efi/chainloader.c: Likewise.
41544 * loader/multiboot_loader.c: Likewise.
41545 * loader/i386/pc/multiboot2.c: Likewise.
41546 * term/efi/console.c: Likewise.
41547 * term/i386/pc/serial.c: Likewise.
41548 * util/lvm.c: Likewise.
41549 * util/console.c: Likewise.
41550 * util/i386/efi/grub-mkimage.c: Likewise.
41551 * util/raid.c: Likewise.
41552
41553 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41554
41555 * commands/videotest.c: Removed include to grub/machine/memory.h.
41556
41557 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41558 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41559 (video_mod_SOURCES): Removed.
41560 (video_mod_CFLAGS): Likewise.
41561 (video_mod_LDFLAGS): Likewise.
41562 (gfxterm_mod_SOURCES): Likewise.
41563 (gfxterm_mod_CFLAGS): Likewise.
41564 (gfxterm_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
41581 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41582 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41583 (video_mod_SOURCES): Added.
41584 (video_mod_CFLAGS): Likewise.
41585 (video_mod_LDFLAGS): Likewise.
41586 (videotest_mod_SOURCES): Likewise.
41587 (videotest_mod_CFLAGS): Likewise.
41588 (videotest_mod_LDFLAGS): Likewise.
41589 (bitmap_mod_SOURCES): Likewise.
41590 (bitmap_mod_CFLAGS): Likewise.
41591 (bitmap_mod_LDFLAGS): Likewise.
41592 (tga_mod_SOURCES): Likewise.
41593 (tga_mod_CFLAGS): Likewise.
41594 (tga_mod_LDFLAGS): Likewise.
41595 (jpeg_mod_SOURCES): Likewise.
41596 (jpeg_mod_CFLAGS): Likewise.
41597 (jpeg_mod_LDFLAGS): Likewise.
41598 (png_mod_SOURCES): Likewise.
41599 (png_mod_CFLAGS): Likewise.
41600 (png_mod_LDFLAGS): Likewise.
41601 (gfxterm_mod_SOURCES): Likewise.
41602 (gfxterm_mod_CFLAGS): Likewise.
41603 (gfxterm_mod_LDFLAGS): Likewise.
41604
41605 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41606 grub/machine/console.h.
41607
41608 2009-01-04 Jerone Young <jerone@gmail.com>
41609
41610 Make on screen instructions clearer
41611
41612 Based on patch created by Jidanni <jidanni@jidanni.org>
41613
41614 * normal/menu.c: print clearer instructions on the screen
41615
41616 2009-01-02 Colin D Bennett <colin@gibibit.com>
41617
41618 New font engine.
41619
41620 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41621 build system and fixed gfxterm.c to work with different sized fonts.
41622
41623 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41624
41625 * configure: Re-generated.
41626
41627 * DISTLIST: Removed font/manager.c.
41628 Added font/font.c.
41629 Added font/font_cmd.c.
41630
41631 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41632 compilation.
41633
41634 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41635
41636 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41637
41638 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41639
41640 * normal/menu.c: Likewise.
41641
41642 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41643 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41644
41645 * include/grub/font.h: Replaced with new file.
41646
41647 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41648 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41649 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41650 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41651 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41652 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41653 fg_red, fg_green, fg_blue, fg_alpha.
41654 (grub_video_adapter): Removed blit_glyph.
41655 (grub_video_blit_glyph): Removed.
41656
41657 * font/manager.c: Removed file.
41658
41659 * font/font.c: New file.
41660
41661 * font/font_cmd.c: Likewise.
41662
41663 * video/video.c (grub_video_blit_glyph): Removed.
41664
41665 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41666 (grub_video_vbe_map_rgba): Likewise.
41667 (grub_video_vbe_unmap_color_int): Likewise.
41668 (grub_video_vbe_blit_glyph): Removed.
41669 (grub_video_vbe_adapter): Removed blit_glyph.
41670
41671 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41672 (get_pixel): Likewise.
41673 (set_pixel): Likewise.
41674
41675 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41676
41677 * term/gfxterm.c: Adapted to new font engine.
41678
41679 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41680
41681 * term/i386/pc/vga.c: Likewise.
41682
41683 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41684
41685 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41686
41687 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41688
41689 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41690
41691 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41692
41693 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41694
41695 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41696
41697 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41698
41699 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41700
41701 * util/grub.d/00_header.in: Changed to use new loadfont command.
41702
41703 * util/grub-mkconfig_lib.in: Changed font extension.
41704
41705 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41706
41707 * util/getroot.c (grub_util_get_grub_dev): Add support for
41708 /dev/md/dNNpNN style partitionable mdraid devices.
41709
41710 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41711
41712 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41713 at a time limit of the PXE TFTP API correctly.
41714 (grub_pxefs_close): Likewise.
41715
41716 2008-11-29 Robert Millan <rmh@aybabtu.com>
41717
41718 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41719 grub_ata_device_initialize() calls.
41720
41721 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41722
41723 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41724 iteration failed.
41725 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41726
41727 2008-11-28 Robert Millan <rmh@aybabtu.com>
41728
41729 Fix build on powerpc-ieee1275. Based on patch created by
41730 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41731 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41732 `kern/ieee1275/mmap.c'.
41733 * include/grub/powerpc/ieee1275/memory.h: New file.
41734
41735 Provide grub-install on coreboot.
41736 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41737 (grub_install_SOURCES): New variable.
41738 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41739 usable on coreboot.
41740
41741 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41742
41743 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41744 to `grub_term_input_t'.
41745 (grub_term_get_current_output): Change return type to
41746 `grub_term_output_t'.
41747
41748 2008-11-22 Robert Millan <rmh@aybabtu.com>
41749
41750 Fix breakage on coreboot due to declaration mismatch.
41751 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41752 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41753 grub_vga_text_cls().
41754
41755 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41756 comments. Avoid copying one more byte than necessary (just in case).
41757
41758 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41759 to 0x200000 (avoids trouble with some OFW implementations, and matches
41760 with the one in Yaboot).
41761 Reported by Manoel Abranches
41762
41763 2008-11-20 Robert Millan <rmh@aybabtu.com>
41764
41765 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41766 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41767
41768 * util/grub-mkconfig_lib.in (grub_warn): New function.
41769 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41770 warnings, to obtain consistent formatting.
41771 * util/grub.d/00_header.in: Likewise.
41772 * util/update-grub_lib.in: Likewise.
41773
41774 * loader/i386/linux.c (allocate_pages): Fix a warning.
41775 Move comment text to `#error' stanza.
41776
41777 Harmonize ieee1275's grub_available_iterate() with the generic
41778 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41779 build problem on i386-ieee1275):
41780 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41781 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41782 parameter `type'. Update all users of this function.
41783 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41784 `kern/ieee1275/mmap.c'.
41785 * kern/ieee1275/init.c
41786 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41787 with ...
41788 (grub_machine_mmap_iterate): ... this.
41789 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41790 return type to `grub_err_t'. Update all implementations of this
41791 function prototype.
41792 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41793 Likewise.
41794
41795 Add `lsmmap' command (lists firmware-provided memory map):
41796 * commands/lsmmap.c: New file.
41797 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41798 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41799 variables.
41800 * conf/powerpc-ieee1275.rmk: Likewise.
41801 * conf/i386-coreboot.rmk: Likewise.
41802 * conf/i386-ieee1275.rmk: Likewise.
41803
41804 2008-11-19 Robert Millan <rmh@aybabtu.com>
41805
41806 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41807 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41808 constraints to initrd allocation (based on code from
41809 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41810 for Linux to find it.
41811
41812 2008-11-14 Robert Millan <rmh@aybabtu.com>
41813
41814 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41815 order to cope with duplicate slashes.
41816
41817 2008-11-14 Robert Millan <rmh@aybabtu.com>
41818
41819 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41820 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41821 don't want to mess with lower memory, because it is used in the Linux
41822 loader.
41823
41824 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41825 an appropriate place in lower memory, between 0x10000 and 0x90000,
41826 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41827 is in our heap (probably as a result of it being corrupted during
41828 decompression). Add #error instance with comment to explain why this
41829 loader isn't currently usable on PC/BIOS.
41830
41831 2008-11-14 Robert Millan <rmh@aybabtu.com>
41832
41833 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41834 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41835
41836 2008-11-12 Robert Millan <rmh@aybabtu.com>
41837
41838 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41839
41840 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41841 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41842 from here ...
41843 * include/grub/i386/pc/memory.h: ... to here.
41844
41845 2008-11-12 Robert Millan <rmh@aybabtu.com>
41846
41847 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41848 split).
41849
41850 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41851 (grub_console_cur_color, grub_console_real_putchar)
41852 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41853 (grub_console_setcolorstate, grub_console_setcolor)
41854 (grub_console_getcolor): Move from here ...
41855 * include/grub/i386/vga_common.h: ... to here (new file).
41856
41857 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41858 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41859 `<grub/i386/io.h>'.
41860 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41861 `<grub/i386/vga_common.h>'.
41862
41863 2008-11-12 Robert Millan <rmh@aybabtu.com>
41864
41865 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41866 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41867 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41868 variables.
41869 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41870 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41871
41872 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41873 grub_console_init() with call to grub_vga_text_init().
41874 (grub_machine_fini): Replace call to
41875 grub_console_fini() with call to grub_vga_text_fini() and
41876 grub_at_keyboard_fini().
41877
41878 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41879 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41880 (grub_console_setcolorstate, grub_console_setcolor)
41881 (grub_console_getcolor): New function prototypes.
41882
41883 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41884 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41885 (grub_vga_text_setcursor): Static-ize.
41886 (grub_vga_text_term): New structure.
41887 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41888
41889 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41890 (grub_console_cur_color, grub_console_standard_color)
41891 (grub_console_normal_color, grub_console_highlight_color)
41892 (map_char, grub_console_putchar, grub_console_getcharwidth)
41893 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41894 (grub_console_getcolor): Move from here ...
41895 * term/i386/vga_common.c: ... to here (same function names).
41896
41897 2008-11-12 Robert Millan <rmh@aybabtu.com>
41898
41899 Use newly-added Multiboot support in coreboot.
41900
41901 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41902 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41903
41904 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41905 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41906 (codestart): Store the MBI in `startup_multiboot_info' when we're
41907 being loaded using Multiboot.
41908
41909 * kern/i386/coreboot/init.c (grub_machine_init): Move
41910 grub_at_keyboard_init() call to beginning of function (useful for
41911 debugging). Call grub_machine_mmap_init() before attempting to use
41912 grub_machine_mmap_iterate().
41913 (grub_lower_mem, grub_upper_mem): Move from here ...
41914 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41915 here (new file).
41916
41917 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41918 function prototype.
41919
41920 2008-11-12 Robert Millan <rmh@aybabtu.com>
41921
41922 Fix a regression introduced by the at_keyboard.mod split. Because
41923 some terminals are default on some platforms and non-default on
41924 others, the first terminal being registered determines which is
41925 going to be default.
41926
41927 * kern/term.c (grub_term_register_input): If this is the first
41928 terminal being registered, set it as the current one.
41929 (grub_term_register_output): Likewise.
41930
41931 * term/efi/console.c (grub_console_init): Do not call
41932 grub_term_set_current_output() or grub_term_set_current_input().
41933 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41934 * term/i386/pc/console.c (grub_console_init): Likewise.
41935 (grub_console_fini): Do not call grub_term_set_current_input()
41936 (but leave grub_term_set_current_output() to restore text mode).
41937
41938 2008-11-10 Robert Millan <rmh@aybabtu.com>
41939
41940 * util/grub.d/00_header.in: Add backward compatibility check for
41941 versions of terminal.mod that don't understand `terminal_input' or
41942 `terminal_output'.
41943
41944 2008-11-09 Robert Millan <rmh@aybabtu.com>
41945
41946 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41947 `terminal_input' / `terminal_output', not `terminal'.
41948
41949 2008-11-08 Robert Millan <rmh@aybabtu.com>
41950
41951 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41952 (DISTCLEANFILES): Add `build_env.mk'.
41953
41954 2008-11-08 Robert Millan <rmh@aybabtu.com>
41955
41956 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41957 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41958 members. Update all users.
41959 * util/console.c (grub_ncurses_term): Split in ...
41960 (grub_ncurses_term_input): ... this, and ...
41961 (grub_ncurses_term_output): ... this. Update all users.
41962 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41963
41964 2008-11-08 Robert Millan <rmh@aybabtu.com>
41965
41966 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41967 (PKGDATA): Add $(pkgdata_SRCDIR).
41968 (pkglib_BUILDDIR): New variable.
41969 (pkgdata_SRCDIR): New variable.
41970 (build_env.mk): New target.
41971 (include_DATA): New variable.
41972 (install-local): Install $(include_DATA) files in $(includedir).
41973
41974 2008-11-07 Pavel Roskin <proski@gnu.org>
41975
41976 * gendistlist.sh: Use C locale for sorting to ensure consistent
41977 output on all systems.
41978
41979 * util/grub.d/00_header.in: Remove incorrect space before
41980 "serial".
41981
41982 2008-11-07 Robert Millan <rmh@aybabtu.com>
41983
41984 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41985 per specification.
41986 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41987 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41988 (based on find_multi_boot1_header).
41989 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41990 using find_multi_boot2_header(), and abort if neither Multiboot or
41991 Multiboot headers were found.
41992
41993 2008-11-07 Robert Millan <rmh@aybabtu.com>
41994
41995 Modularize at_keyboard.mod:
41996
41997 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41998 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41999 (at_keyboard_mod_LDFLAGS): New variables.
42000
42001 Actual terminal split:
42002
42003 * include/grub/term.h (struct grub_term): Split in ...
42004 (struct grub_term_input): ... this, and ...
42005 (struct grub_term_output): ... this. Update all users.
42006 (grub_term_set_current): Split in ...
42007 (grub_term_set_current_input): ... this, and ...
42008 (grub_term_set_current_output): ... this.
42009 (grub_term_get_current): Split in ...
42010 (grub_term_get_current_input): ... this, and ...
42011 (grub_term_get_current_output): ... this.
42012 (grub_term_register): Split in ...
42013 (grub_term_register_input): ... this, and ...
42014 (grub_term_register_output): ... this.
42015 (grub_term_unregister): Split in ...
42016 (grub_term_unregister_input): ... this, and ...
42017 (grub_term_unregister_output): ... this.
42018 (grub_term_iterate): Split in ...
42019 (grub_term_iterate_input): ... this, and ...
42020 (grub_term_iterate_output): ... this.
42021
42022 * kern/term.c (grub_term_list): Split in ...
42023 (grub_term_list_input): ... this, and ...
42024 (grub_term_list_output): ... this. Update all users.
42025 (grub_cur_term): Split in ...
42026 (grub_cur_term_input): ... this, and ...
42027 (grub_cur_term_output): ... this. Update all users.
42028 (grub_term_set_current): Split in ...
42029 (grub_term_set_current_input): ... this, and ...
42030 (grub_term_set_current_output): ... this.
42031 (grub_term_get_current): Split in ...
42032 (grub_term_get_current_input): ... this, and ...
42033 (grub_term_get_current_output): ... this.
42034 (grub_term_register): Split in ...
42035 (grub_term_register_input): ... this, and ...
42036 (grub_term_register_output): ... this.
42037 (grub_term_unregister): Split in ...
42038 (grub_term_unregister_input): ... this, and ...
42039 (grub_term_unregister_output): ... this.
42040 (grub_term_iterate): Split in ...
42041 (grub_term_iterate_input): ... this, and ...
42042 (grub_term_iterate_output): ... this.
42043
42044 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42045 a check for input and one for output (and only attempt to get keys
42046 from user when input works).
42047
42048 * util/grub-probe.c (grub_term_get_current): Split in ...
42049 (grub_term_get_current_input): ... this, and ...
42050 (grub_term_get_current_output): ... this.
42051 * util/grub-fstest.c: Likewise.
42052 * util/i386/pc/grub-setup.c: Likewise.
42053 * util/grub-editenv.c: Likewise.
42054
42055 Portability adjustments:
42056
42057 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42058 `term/i386/pc/at_keyboard.c'.
42059 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42060 grub_keyboard_controller_init() (now handled by terminal .init).
42061 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42062 grub_at_keyboard_init().
42063 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42064 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42065 at_keyboard.mod via input terminal interface).
42066 * include/grub/i386/coreboot/console.h: Convert into a stub for
42067 `<grub/i386/pc/console.h>'.
42068
42069 Migrate full terminals to new API:
42070
42071 * term/efi/console.c (grub_console_term): Split into ...
42072 (grub_console_term_input): ... this, and ...
42073 (grub_console_term_output): ... this. Update all users.
42074 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42075 (grub_ofconsole_init): Split into ...
42076 (grub_ofconsole_init_input): ... this, and ...
42077 (grub_ofconsole_init_output): ... this.
42078 (grub_ofconsole_term): Split into ...
42079 (grub_ofconsole_term_input): ... this, and ...
42080 (grub_ofconsole_term_output): ... this. Update all users.
42081 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42082 (grub_serial_term_input): ... this, and ...
42083 (grub_serial_term_output): ... this. Update all users.
42084 * term/i386/pc/console.c (grub_console_term): Split into ...
42085 (grub_console_term_input): ... this, and ...
42086 (grub_console_term_output): ... this. Update all users.
42087 (grub_console_term_input): Only enable it on PC/BIOS platform.
42088 (grub_console_init): Remove grub_keyboard_controller_init() call.
42089
42090 Migrate input terminals to new API:
42091
42092 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42093 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42094 i386-specific anyway).
42095 (grub_console_checkkey): Rename to ...
42096 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42097 users.
42098 (grub_keyboard_controller_orig): New variable.
42099 (grub_console_getkey): Rename to ...
42100 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42101 users.
42102 (grub_keyboard_controller_init): Static-ize. Save original
42103 controller value so that it can be restored ...
42104 (grub_keyboard_controller_fini): ... here (new function).
42105 (grub_at_keyboard_term): New structure.
42106 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42107 functions.
42108
42109 Migrate output terminals to new API:
42110
42111 * term/i386/pc/vga.c (grub_vga_term): Change type to
42112 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42113 members. Update all users.
42114 * term/gfxterm.c (grub_video_term): Change type to
42115 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42116 members. Update all users.
42117 * include/grub/i386/pc/console.h (grub_console_checkkey)
42118 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42119 etc).
42120
42121 Migrate `terminal' command and userland tools to new API:
42122
42123 * commands/terminal.c (grub_cmd_terminal): Split into ...
42124 (grub_cmd_terminal_input): ... this, and ...
42125 (grub_cmd_terminal_output): ... this.
42126 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42127 `terminal_input' and `terminal_output'.
42128 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42129 `terminal_input' / `terminal_output' API.
42130 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42131 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42132 provided ${GRUB_TERMINAL}, convert it).
42133
42134 2008-11-04 Robert Millan <rmh@aybabtu.com>
42135
42136 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42137 for FreeBSD.
42138 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42139
42140 2008-11-03 Bean <bean123ch@gmail.com>
42141
42142 * kern/elf.c (grub_elf32_load): Revert to previous code.
42143 (grub_elf64_load): Likewise.
42144
42145 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42146
42147 2008-11-01 Robert Millan <rmh@aybabtu.com>
42148
42149 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42150 (TARGET_CPPFLAGS): Likewise.
42151 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42152
42153 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42154
42155 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42156
42157 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42158
42159 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42160 addition of objects until the code is not going to be able to fail.
42161
42162 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42163
42164 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42165 (add a missing NULL check, and correct them by moving the pointer
42166 operations after the actual check).
42167
42168 2008-10-29 Robert Millan <rmh@aybabtu.com>
42169
42170 * util/i386/pc/grub-install.in: Handle empty string as output from
42171 make_system_path_relative_to_its_root().
42172
42173 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42174
42175 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42176 circular metadata worst case scenario. If the metadata is circular
42177 then copy the wrap in place.
42178 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42179 project lib/format_text/layout.h
42180 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42181
42182 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42183
42184 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42185
42186 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42187
42188 * util/update-grub_lib.in: Mention filename in warning message.
42189
42190 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42191
42192 * NEWS: Update for rename of update-grub to grub-mkconfig.
42193
42194 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42195
42196 * util/update-grub_lib.in: Copy to ...
42197 * util/grub-mkconfig_lib.in: ... this. Update all users.
42198 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42199 * util/update-grub.in: Rename to ...
42200 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42201 option. Add `--output' option to allow users to specify the generated
42202 configuration file. Default to stdout.
42203 (update_grub_dir): Rename to ...
42204 (grub_mkconfig_dir): ... this.
42205 (grub_cfg): Default to an empty string.
42206 * conf/common.rmk (update-grub): Rename to ...
42207 (grub-mkconfig): ... this.
42208 (update-grub_lib): Copy to ...
42209 (grub-mkconfig_lib): ... this.
42210 (update-grub_SCRIPTS): Copy to ...
42211 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42212 (update-grub_DATA): Rename to ...
42213 (grub-mkconfig_DATA): ... this.
42214
42215 2008-09-28 Robert Millan <rmh@aybabtu.com>
42216
42217 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42218 to `modified'. Add the real `created' field.
42219 (grub_iso9660_uuid): Use `modified' rather than `created' for
42220 constructing the UUID.
42221
42222 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42223
42224 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42225 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42226
42227 2008-09-28 Bean <bean123ch@gmail.com>
42228
42229 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42230 Thanks to Christian Franke for finding this bug.
42231
42232 2008-09-25 Robert Millan <rmh@aybabtu.com>
42233
42234 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42235 instances of grub_util_get_disk_name() (see previous commit).
42236
42237 2008-09-25 Robert Millan <rmh@aybabtu.com>
42238
42239 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42240 `util/i386/get_disk_name.c'.
42241 * conf/i386-efi.rmk: Likewise.
42242 * conf/x86_64-efi.rmk: Likewise.
42243 * conf/i386-coreboot.rmk: Likewise.
42244 * conf/i386-ieee1275.rmk: Likewise.
42245 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42246 `util/ieee1275/get_disk_name.c'.
42247 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42248 * util/ieee1275/get_disk_name.c: Remove file.
42249 * util/i386/get_disk_name.c: Remove file.
42250 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42251 "hd%d" for device.map entries, rather than using
42252 grub_util_get_disk_name().
42253
42254 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42255
42256 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42257 warning.
42258 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42259
42260 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42261
42262 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42263 Changed to 0x5100.
42264 (GRUB_TERM_PPAGE): Changed to 0x4900.
42265
42266 2008-09-24 Robert Millan <rmh@aybabtu.com>
42267
42268 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42269 macros (they were i386-pc specific).
42270 * include/grub/sparc64/ieee1275/console.h: Likewise.
42271 * include/grub/efi/console.h: Likewise.
42272
42273 2008-09-22 Bean <bean123ch@gmail.com>
42274
42275 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42276 resident and in attribute list.
42277
42278 * include/grub/ntfs.h (BMP_LEN): Removed.
42279
42280 2008-09-22 Bean <bean123ch@gmail.com>
42281
42282 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42283 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42284
42285 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42286 error occurs, as grub_disk_open will call grub_disk_close, which will
42287 call p->close (scsi).
42288
42289 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42290
42291 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42292 (AC_PREREQ): Bumped to 2.59.
42293 (AC_TRY_COMPILE): Replace obsolete macro with ...
42294 (AC_COMPILE_IFELSE): ... this.
42295 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42296 (AC_LINK_IFELSE): ... this.
42297
42298 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42299
42300 * autogen.sh: Add a call to `gendistlist.sh'.
42301
42302 2008-09-19 Christian Franke <franke@computer.org>
42303
42304 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42305 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42306 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42307 Export __enable_execute_stack() to modules.
42308 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42309 New function.
42310
42311 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42312
42313 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42314 Sort the list.
42315
42316 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42317
42318 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42319 #include <grub/util/hostdisk.h>.
42320
42321 2008-09-08 Robert Millan <rmh@aybabtu.com>
42322
42323 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42324 segments when their filesz is zero (grub_file_read() interprets
42325 zero-size as "read until EOF", which results in memory corruption).
42326 Use `lowest_segment' rather than 0 for calculating the current
42327 segment load address.
42328
42329 2008-09-08 Robert Millan <rmh@aybabtu.com>
42330
42331 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42332 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42333 clobbered useful information.
42334
42335 2008-09-08 Robert Millan <rmh@aybabtu.com>
42336
42337 * include/grub/util/biosdisk.h: Move to ...
42338 * include/grub/util/hostdisk.h: ... here. Update all users.
42339 * util/biosdisk.c: Move to ...
42340 * util/hostdisk.c: ... here. Update all users.
42341
42342 2008-09-07 Robert Millan <rmh@aybabtu.com>
42343
42344 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42345 variables.
42346 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42347 and length can be stored directly in the `mbi->mmap_addr' and
42348 `mbi->mmap_length' struct fields.
42349
42350 2008-09-07 Robert Millan <rmh@aybabtu.com>
42351
42352 * conf/i386.rmk: New file. Provides declaration for building
42353 `cpuid.mod'.
42354 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42355 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42356 variables.
42357 Include `conf/i386.mk'.
42358 * conf/i386-efi.rmk: Likewise.
42359 * conf/x86_64-efi.rmk: Likewise.
42360 * conf/i386-coreboot.rmk: Likewise.
42361 * conf/i386-ieee1275.rmk: Likewise.
42362
42363 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42364
42365 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42366 Adds optimization support for BGR based modes.
42367
42368 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42369 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42370 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42371 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42372 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42373 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42374 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42375 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42376 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42377 (grub_video_i386_vbeblit_index_index): Likewise.
42378 (grub_video_i386_vbeblit_replace_directN): Added.
42379 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42380 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42381 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42382 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42383 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42384 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42385 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42386 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42387 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42388 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42389 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42390 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42391 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42392
42393 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42394 (grub_video_i386_vbefill_R8G8B8): Likewise.
42395 (grub_video_i386_vbefill_index): Likewise.
42396 (grub_video_i386_vbefill_direct32): Added.
42397 (grub_video_i386_vbefill_direct24): Likewise.
42398 (grub_video_i386_vbefill_direct16): Likewise.
42399 (grub_video_i386_vbefill_direct8): Likewise.
42400
42401 * include/grub/video.h (grub_video_blit_format): Removed
42402 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42403 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42404 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42405 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42406 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42407
42408 * video/video.c (grub_video_get_blit_format): Updated to use new
42409 blit formats. Added handling for 16 bit color modes.
42410
42411 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42412 fillers.
42413 (common_blitter): Updated to use new blitters.
42414
42415 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42416 Removed.
42417 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42418 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42419 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42420 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42421 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42422 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42423 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42424 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42425 (grub_video_i386_vbeblit_index_index): Likewise.
42426 (grub_video_i386_vbeblit_replace_directN): Added.
42427 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42428 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42429 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42430 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42431 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42432 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42433 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42434 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42435 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42436 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42437 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42438 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42439 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42440
42441 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42442 (grub_video_i386_vbefill_R8G8B8): Likewise.
42443 (grub_video_i386_vbefill_index): Likewise.
42444 (grub_video_i386_vbefill_direct32): Added.
42445 (grub_video_i386_vbefill_direct24): Likewise.
42446 (grub_video_i386_vbefill_direct16): Likewise.
42447 (grub_video_i386_vbefill_direct8): Likewise.
42448
42449 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42450 types.
42451
42452 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42453 types.
42454
42455 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42456 blitter types.
42457
42458 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42459 types.
42460
42461 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42462
42463 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42464 RAID level 1.
42465
42466 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42467
42468 * fs/iso9660.c (grub_iso9660_date): New structure.
42469 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42470 (grub_iso9660_uuid): New function.
42471
42472 2008-09-05 Bean <bean123ch@gmail.com>
42473
42474 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42475
42476 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42477 insensitive bit for names in Win32 and Win32 & DOS namespace.
42478
42479 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42480
42481 * include/grub/types.h (LONG_MAX): Likewise.
42482
42483 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42484
42485 * util/getroot.c: Include <config.h>.
42486 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42487 add support for /dev/md/N devices and handle LVM double dash escaping.
42488
42489 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42490
42491 * config.guess: Update to latest version from config git.
42492 * config.sub: Likewise.
42493
42494 2008-09-03 Robert Millan <rmh@aybabtu.com>
42495
42496 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42497 `disk->total_sectors'.
42498
42499 2008-09-01 Colin D Bennett <colin@gibibit.com>
42500
42501 * include/grub/normal.h: Fixed incorrect comment for
42502 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42503
42504 2008-09-01 Colin D Bennett <colin@gibibit.com>
42505
42506 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42507 values with defines.
42508
42509 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42510 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42511 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42512 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42513 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42514 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42515 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42516 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42517 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42518 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42519 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42520 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42521 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42522 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42523 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42524 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42525 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42526 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42527 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42528
42529 2008-08-31 Robert Millan <rmh@aybabtu.com>
42530
42531 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42532 declaration.
42533 (grub_multiboot): Fix a few warnings.
42534
42535 2008-08-31 Robert Millan <rmh@aybabtu.com>
42536
42537 * loader/i386/pc/multiboot.c: Update comment not to say that
42538 boot_device support is unimplemented.
42539
42540 2008-08-31 Robert Millan <rmh@aybabtu.com>
42541
42542 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42543 or memory map support are unimplemented.
42544
42545 2008-08-31 Colin D Bennett <colin@gibibit.com>
42546
42547 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42548
42549 2008-08-31 Colin D Bennett <colin@gibibit.com>
42550
42551 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42552 total video memory in 'vbeinfo' output; show color format details for
42553 each video mode.
42554
42555 2008-08-30 Pavel Roskin <proski@gnu.org>
42556
42557 * util/genmoddep.c: Remove for real this time.
42558 * DISTLIST: Remove util/genmoddep.c.
42559
42560 2008-08-30 Robert Millan <rmh@aybabtu.com>
42561
42562 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42563 as required by Multiboot spec (it was already 4-byte aligned, but
42564 only by chance).
42565
42566 2008-08-29 Pavel Roskin <proski@gnu.org>
42567
42568 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42569 * kern/powerpc/ieee1275/startup.S: ... this.
42570 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42571 * DISTLIST: Likewise.
42572
42573 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42574 grub/cpu/kernel.h. Add start label for consistency with other
42575 platforms. Add grub_prefix immediately after start. Add jump
42576 to the code after grub_prefix.
42577 * include/grub/powerpc/kernel.h: Provide valid values for
42578 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42579
42580 2008-08-29 Bean <bean123ch@gmail.com>
42581
42582 * configure.ac: Change host_os to cygwin for mingw.
42583 (asprintf): New check for function.
42584
42585 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42586 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42587
42588 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42589 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42590 sync, sleep and grub_util_get_disk_size for mingw.
42591
42592 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42593 to get size in mingw.
42594 (open_device): Use flag O_BINARY if it's defined.
42595 (find_root_device): Add dummy code for mingw.
42596
42597 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42598 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42599 (get_scsi_disk_name): Return 0 for mingw.
42600
42601 * util/hostfs.c: #include <grub/util/misc.h>.
42602 (grub_hostfs_open): Use "rb" flag to open file, use
42603 grub_util_get_disk_size to get disk size for mingw.
42604
42605 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42606 (asprintf): New function if HAVE_ASPRINTF is not set.
42607 (sync): New function for mingw.
42608 (sleep): Likewise.
42609 (grub_util_get_disk_size): Likewise.
42610
42611 2008-08-28 Pavel Roskin <proski@gnu.org>
42612
42613 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42614 kern/time.c.
42615
42616 2008-08-28 Robert Millan <rmh@aybabtu.com>
42617
42618 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42619
42620 2008-08-28 Robert Millan <rmh@aybabtu.com>
42621
42622 Change find_grub_drive() syntax so it doesn't prevent it from
42623 detecting NULL names as errors.
42624
42625 * util/biosdisk.c (find_grub_drive): Move free slot search code
42626 from here ...
42627 (find_free_slot): ... to here.
42628 (read_device_map): Use find_free_slot() to search for free slots.
42629
42630 2008-08-27 Marco Gerards <marco@gnu.org>
42631
42632 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42633 (scsi_mod_SOURCES): New variable.
42634 (scsi_mod_CFLAGS): Likewise
42635 (scsi_mod_LDFLAGS): Likewise.
42636
42637 * disk/scsi.c: New file.
42638
42639 * include/grub/scsi.h: Likewise.
42640
42641 * include/grub/scsicmd.h: Likewise.
42642
42643 * disk/ata.c: Include <grub/scsi.h>.
42644 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42645 instead.
42646 (grub_ata_iterate): Skip ATAPI devices.
42647 (grub_ata_open): Only handle ATAPI devices.
42648 (struct grub_atapi_read): Removed.
42649 (grub_atapi_readsector): Likewise.
42650 (grub_ata_read): No longer handle ATAPI devices.
42651 (grub_ata_write): Likewise.
42652 (grub_atapi_iterate): New function.
42653 (grub_atapi_read): Likewise.
42654 (grub_atapi_write): Likewise.
42655 (grub_atapi_open): Likewise.
42656 (grub_atapi_close): Likewise.
42657 (grub_atapi_dev): New variable.
42658 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42659 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42660
42661 * include/grub/disk.h (enum grub_disk_dev_id): Add
42662 `GRUB_DISK_DEVICE_SCSI_ID'.
42663
42664 2008-08-26 Robert Millan <rmh@aybabtu.com>
42665
42666 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42667 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42668 descriptive.
42669
42670 2008-08-23 Bean <bean123ch@gmail.com>
42671
42672 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42673 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42674 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42675 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42676 dm_nv.mod.
42677 (raid5rec_mod_SOURCES): New macro.
42678 (raid5rec_mod_CFLAGS): Likewise.
42679 (raid5rec_mod_LDFLAGS): Likewise.
42680 (raid6rec_mod_SOURCES): Likewise.
42681 (raid6rec_mod_CFLAGS): Likewise.
42682 (raid6rec_mod_LDFLAGS): Likewise.
42683 (mdraid_mod_SOURCES): Likewise.
42684 (mdraid_mod_CFLAGS): Likewise.
42685 (mdraid_mod_LDFLAGS): Likewise.
42686 (dm_nv_mod_SOURCES): Likewise.
42687 (dm_nv_mod_CFLAGS): Likewise.
42688 (dm_nv_mod_LDFLAGS): Likewise.
42689
42690 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42691 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42692 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42693
42694 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42695 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42696
42697 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42698
42699 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42700
42701 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42702
42703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42704
42705 * disk/raid5_recover.c: New file.
42706
42707 * disk/raid6_recover.c: Likewise.
42708
42709 * disk/mdraid_linux.c: Likewise.
42710
42711 * disk/dmraid_nvidia.c: Likewise.
42712
42713 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42714 ULONG_MAX.
42715
42716 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42717 calculate the size of raid device.
42718 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42719 different layout of raid5.
42720 (grub_raid_scan_device): Remove code specific to mdraid.
42721 (grub_raid_list): New variable.
42722 (free_array): New function.
42723 (grub_raid_register): Likewise.
42724 (grub_raid_unregister): Likewise.
42725 (grub_raid_rescan): Likewise.
42726 (GRUB_MOD_INIT): Don't iterate device here.
42727 (GRUB_MOD_FINI): Use free_array to release resource.
42728
42729 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42730 (grub_raid5_recover_func_t): New function variable type.
42731 (grub_raid6_recover_func_t): Likewise.
42732 (grub_raid5_recover_func): New variable.
42733 (grub_raid6_recover_func): Likewise.
42734 (grub_raid_register): New function.
42735 (grub_raid_unregister): Likewise.
42736 (grub_raid_rescan): Likewise.
42737 (grub_raid_block_xor): Likewise.
42738
42739 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42740 (CMD_CRC): New macro.
42741 (part): Removed.
42742 (read_file): Handle device as well as file.
42743 (cmd_crc): New function.
42744 (fstest): Handle multiple disks.
42745 (options): Remove part, raw and long, add root and diskcount.
42746 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42747 (main): Find the first non option entry and ignore subsequent options,
42748 add handling for the new options, support multiple disks.
42749
42750 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42751
42752 2008-08-23 Bean <bean123ch@gmail.com>
42753
42754 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42755
42756 * genfslist.sh: Ignore kernel.mod.
42757
42758 * genpartmaplist.sh: Likewise.
42759
42760 2008-08-23 Robert Millan <rmh@aybabtu.com>
42761
42762 * util/getroot.c (find_root_device): Skip anything that starts with
42763 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42764
42765 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42766
42767 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42768 * util/grub.d/00_header.in: Allow the administrator to change default
42769 gfxmode via ${GRUB_GFXMODE}.
42770
42771 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42772
42773 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42774
42775 2008-08-21 Robert Millan <rmh@aybabtu.com>
42776
42777 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42778 loader.
42779 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42780 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42781
42782 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42783
42784 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42785 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42786
42787 2008-08-19 Robert Millan <rmh@aybabtu.com>
42788
42789 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42790 (struct grub_virtual_screen): Remove `cursor_color'.
42791 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42792 initialization.
42793 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42794
42795 2008-08-18 Robert Millan <rmh@aybabtu.com>
42796
42797 Unify (identical) linux_normal.c files.
42798 * loader/i386/efi/linux_normal.c: Move from here ...
42799 * loader/linux_normal.c: ... to here. Update all users.
42800 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42801 * loader/i386/ieee1275/linux_normal.c: Likewise.
42802
42803 2008-08-18 Robert Millan <rmh@aybabtu.com>
42804
42805 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42806 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42807 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42808 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42809 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42810 New macros.
42811 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42812 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42813 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42814 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42815 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42816 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42817 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42818 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42819 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42820 portably using grub_getxy().
42821 Replace `-EFI' with `-bzImage' in boot message.
42822
42823 2008-08-17 Robert Millan <rmh@aybabtu.com>
42824
42825 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42826
42827 2008-08-17 Robert Millan <rmh@aybabtu.com>
42828
42829 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42830
42831 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42832 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42833 (grub_machine_mmap_iterate): New function declaration.
42834 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42835 structure.
42836 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42837 macros.
42838
42839 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42840 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42841 Move e820 parsing from here ...
42842 * kern/i386/pc/mmap.c: New file.
42843 (grub_machine_mmap_iterate): ... to here.
42844
42845 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42846 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42847 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42848 (grub_available_iterate): Redeclare to return `void', and redeclare
42849 its hook to use grub_uint64_t as addr and size parameters, and rename
42850 to ...
42851 (grub_machine_mmap_iterate): ... this. Update all users.
42852
42853 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42854 to make it more readable. Rename to ...
42855 (grub_machine_mmap_iterate): ... this.
42856
42857 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42858 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42859 (grub_multiboot): Allocate an extra region after the payload, and fill
42860 it with a Multiboot memory map. Adjust a.out loader to calculate size
42861 with the extra space.
42862 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42863 with the extra space.
42864
42865 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42866
42867 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42868
42869 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42870
42871 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42872 mdate-sh to the list `find' searches for.
42873 * DISTLIST: Regenerated.
42874
42875 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42876
42877 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42878 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42879 genmoddep.awk, gensymlist.sh.in.
42880 (DISTDIRS): Add bus, docs, hook, lib.
42881 * DISTLIST: Regenerated.
42882 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42883
42884 2008-08-16 Robert Millan <rmh@aybabtu.com>
42885
42886 * disk/raid.c (grub_raid_init): Handle/report errors set by
42887 grub_device_iterate().
42888 * disk/lvm.c (grub_lvm_init): Likewise.
42889
42890 2008-08-15 Bean <bean123ch@gmail.com>
42891
42892 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42893 and datehook.mod.
42894 (datetime_mod_SOURCES): New macro.
42895 (datetime_mod_CFLAGS): Likewise.
42896 (datetime_mod_LDFLAGS): Likewise.
42897 (date_mod_SOURCES): Likewise.
42898 (date_mod_CFLAGS): Likewise.
42899 (date_mod_LDFLAGS): Likewise.
42900 (datehook_mod_SOURCES): Likewise.
42901 (datehook_mod_CFLAGS): Likewise.
42902 (datehook_mod_LDFLAGS): Likewise.
42903
42904 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42905 and datehook.mod.
42906 (datetime_mod_SOURCES): New macro.
42907 (datetime_mod_CFLAGS): Likewise.
42908 (datetime_mod_LDFLAGS): Likewise.
42909 (date_mod_SOURCES): Likewise.
42910 (date_mod_CFLAGS): Likewise.
42911 (date_mod_LDFLAGS): Likewise.
42912 (datehook_mod_SOURCES): Likewise.
42913 (datehook_mod_CFLAGS): Likewise.
42914 (datehook_mod_LDFLAGS): Likewise.
42915
42916 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42917 and datehook.mod.
42918 (datetime_mod_SOURCES): New macro.
42919 (datetime_mod_CFLAGS): Likewise.
42920 (datetime_mod_LDFLAGS): Likewise.
42921 (date_mod_SOURCES): Likewise.
42922 (date_mod_CFLAGS): Likewise.
42923 (date_mod_LDFLAGS): Likewise.
42924 (datehook_mod_SOURCES): Likewise.
42925 (datehook_mod_CFLAGS): Likewise.
42926 (datehook_mod_LDFLAGS): Likewise.
42927
42928 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42929 and datehook.mod.
42930 (datetime_mod_SOURCES): New macro.
42931 (datetime_mod_CFLAGS): Likewise.
42932 (datetime_mod_LDFLAGS): Likewise.
42933 (date_mod_SOURCES): Likewise.
42934 (date_mod_CFLAGS): Likewise.
42935 (date_mod_LDFLAGS): Likewise.
42936 (datehook_mod_SOURCES): Likewise.
42937 (datehook_mod_CFLAGS): Likewise.
42938 (datehook_mod_LDFLAGS): Likewise.
42939
42940 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42941 and datehook.mod.
42942 (datetime_mod_SOURCES): New macro.
42943 (datetime_mod_CFLAGS): Likewise.
42944 (datetime_mod_LDFLAGS): Likewise.
42945 (date_mod_SOURCES): Likewise.
42946 (date_mod_CFLAGS): Likewise.
42947 (date_mod_LDFLAGS): Likewise.
42948 (datehook_mod_SOURCES): Likewise.
42949 (datehook_mod_CFLAGS): Likewise.
42950 (datehook_mod_LDFLAGS): Likewise.
42951
42952 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42953
42954 * commands/date.c: New file.
42955
42956 * hook/datehook.c: Likewise.
42957
42958 * include/grub/lib/datetime.h: Likewise.
42959
42960 * include/grub/i386/cmos.h: Likewise.
42961
42962 * lib/datetime.c: Likewise.
42963
42964 * lib/i386/datetime.c: Likewise.
42965
42966 * lib/efi/datetime.c: Likewise.
42967
42968 2008-08-14 Robert Millan <rmh@aybabtu.com>
42969
42970 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42971 (grub_mkelfimage_SOURCES): New variable.
42972 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42973
42974 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42975 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42976 * conf/powerpc-ieee1275.rmk: Likewise.
42977 * conf/i386-ieee1275.rmk: Likewise.
42978
42979 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42980 * kern/i386/coreboot/init.c: Likewise.
42981
42982 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42983 with `<grub/cpu/kernel.h>'.
42984 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42985 to ...
42986 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42987 * kern/i386/coreboot/startup.S: Likewise.
42988
42989 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42990 (GRUB_MOD_GAP): Remove.
42991 * include/grub/powerpc/kernel.h: New file.
42992 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42993 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42994 * include/grub/i386/kernel.h: New file.
42995 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42996 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42997 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42998
42999 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43000 `grub-mkelfimage'.
43001 Use --directory when invoking grub_mkimage.
43002
43003 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43004 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43005 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43006 and GRUB_KERNEL_CPU_PREFIX.
43007
43008 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
43009
43010 * include/grub/err.h (grub_err_printf): New function prototype.
43011 * util/misc.c (grub_err_printf): New function.
43012 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43013 grub_printf.
43014 * kern/err.c (grub_print_error): Use grub_err_printf.
43015
43016 2008-08-13 Robert Millan <rmh@aybabtu.com>
43017
43018 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43019
43020 2008-08-13 Robert Millan <rmh@aybabtu.com>
43021
43022 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43023 boot entry.
43024
43025 2008-08-12 Robert Millan <rmh@aybabtu.com>
43026
43027 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43028 of the relocation code from here ...
43029 (grub_multiboot): ... to here.
43030 (forward_relocator, backward_relocator): Move from here ...
43031 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43032 (grub_multiboot_backward_relocator): ... to here.
43033 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43034 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43035 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43036 (grub_multiboot_forward_relocator_end)
43037 (grub_multiboot_backward_relocator)
43038 (grub_multiboot_backward_relocator_end): New variables.
43039
43040 2008-08-12 Bean <bean123ch@gmail.com>
43041
43042 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43043
43044 2008-08-11 Robert Millan <rmh@aybabtu.com>
43045
43046 * kern/i386/linuxbios/startup.S: Move from here ...
43047 * kern/i386/coreboot/startup.S: ... to here.
43048
43049 * kern/i386/linuxbios/init.c: Move from here ...
43050 * kern/i386/coreboot/init.c: ... to here.
43051
43052 * kern/i386/linuxbios/table.c: Move from here ...
43053 * kern/i386/coreboot/mmap.c: ... to here.
43054
43055 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43056
43057 2008-08-11 Robert Millan <rmh@aybabtu.com>
43058
43059 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43060 errors. Leave it to the upper layer to handle them.
43061
43062 2008-08-09 Christian Franke <franke@computer.org>
43063
43064 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43065 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43066 Install `grub.d/10_windows' only on Cygwin.
43067 * configure.ac: Add subst of `target_os'.
43068 Check `target_os' also before setting TARGET_OBJ2ELF.
43069 Add `--enable-grub-pe2elf'.
43070
43071 2008-08-08 Robert Millan <rmh@aybabtu.com>
43072
43073 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43074 (grub_last_time): Change type to grub_uint64_t.
43075 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43076 (grub_disk_close): Likewise.
43077
43078 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43079 (run_menu): Migrate code from to using grub_get_time_ms().
43080
43081 * util/misc.c (grub_get_time_ms): New function.
43082
43083 2008-08-08 Marco Gerards <marco@gnu.org>
43084
43085 * disk/ata.c (grub_ata_regget): Change return type to
43086 `grub_uint8_t'.
43087 (grub_ata_regget2): Likewise.
43088 (grub_ata_wait_status): New function.
43089 (grub_ata_wait_busy): Removed function, updated all users to use
43090 `grub_ata_wait_status'.
43091 (grub_ata_wait_drq): Likewise.
43092 (grub_ata_cmd): New function.
43093 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43094 error handling.
43095 (grub_ata_pio_write): Add error handling.
43096 (grub_atapi_identify): Likewise.
43097 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43098 handling.
43099 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43100 handling. Actually use the detected registers. Reorder the
43101 detection logic such that it is easier to read.
43102 (grub_ata_pciinit): Do not assign the same ID to each controller.
43103 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43104 handling.
43105 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43106
43107 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43108
43109 2008-08-08 Marco Gerards <marco@gnu.org>
43110
43111 * NEWS: Update.
43112
43113 2008-08-07 Bean <bean123ch@gmail.com>
43114
43115 * include/grub/x86_64/pci.h: New file.
43116
43117 2008-08-07 Christian Franke <franke@computer.org>
43118
43119 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43120 (TIMER2_GATE): Likewise.
43121 (grub_pit_wait): Add enable/disable of the timer2 gate
43122 bit of port 0x61. This fixes a possible infinite loop.
43123
43124 2008-08-07 Bean <bean123ch@gmail.com>
43125
43126 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43127 kern/i386/tsc.c and kern/i386/pit.c.
43128
43129 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43130 x86_64 platform.
43131
43132 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43133 <grub/i386/tsc.h>.
43134
43135 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43136
43137 2008-08-07 Bean <bean123ch@gmail.com>
43138
43139 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43140
43141 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43142
43143 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43144 multiple inclusion. Add #include <grub/types.h>.
43145
43146 2008-08-06 Christian Franke <franke@computer.org>
43147
43148 * conf/common.rmk: Build and install `10_windows'.
43149 * util/grub.d/10_windows.in: New script.
43150
43151 2008-08-06 Pavel Roskin <proski@gnu.org>
43152
43153 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43154
43155 2008-08-06 Robert Millan <rmh@aybabtu.com>
43156
43157 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43158 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43159
43160 2008-08-06 Bean <bean123ch@gmail.com>
43161
43162 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43163 (grub_pxefs_fs_int): Remove dummy definition.
43164 (grub_pxefs_open): Use data->block_size to store the current block
43165 size setting.
43166 (grub_pxefs_read): Use block size stored in data->block_size. As the
43167 value of grub_pxe_blksize can be changed after the file is opened.
43168
43169 2008-08-06 Bean <bean123ch@gmail.com>
43170
43171 * fs/i386/pc/pxe.c (curr_file): new variable.
43172 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43173 require the dummy internal file system anymore.
43174 (grub_pxefs_read): Removed.
43175 (grub_pxefs_close): Likewise.
43176 (grub_pxefs_fs_int): Likewise.
43177 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43178 connection when we switch file.
43179 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43180
43181 2008-08-06 Robert Millan <rmh@aybabtu.com>
43182
43183 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43184 `halt.mod'.
43185 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43186 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43187
43188 * kern/i386/halt.c: New file.
43189 * kern/i386/reboot.c: Likewise.
43190 * include/grub/i386/reboot.h: Likewise.
43191 * include/grub/i386/halt.h: Likewise.
43192
43193 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43194 Include `<grub/cpu/halt.h>'.
43195 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43196 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43197
43198 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43199 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43200 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43201 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43202 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43203 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43204 from here ...
43205 * include/grub/i386/at_keyboard.h: ... to here.
43206
43207 2008-08-05 Robert Millan <rmh@aybabtu.com>
43208
43209 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43210 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43211 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43212 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43213 `kern/generic/millisleep.c'.
43214
43215 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43216 instead of grub_get_rtc().
43217 (grub_tsc_init): Initialize `tsc_boot_time'.
43218
43219 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43220 (grub_machine_init): Use grub_tsc_init() rather than
43221 installing an RTC-based handler via grub_install_get_time_ms().
43222
43223 * kern/i386/pit.c: New file.
43224 * include/grub/i386/pit.h: Likewise.
43225
43226 2008-08-05 Bean <bean123ch@gmail.com>
43227
43228 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43229
43230 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43231 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43232 (pxe_mod_SOURCES): New macro.
43233 (pxe_mod_CFLAGS): Likewise.
43234 (pxe_mod_LDFLAGS): Likewise.
43235 (pxecmd_mod_SOURCES): Likewise.
43236 (pxecmd_mod_CFLAGS): Likewise.
43237 (pxecmd_mod_LDFLAGS): Likewise.
43238
43239 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43240 (grub_pxe_call): Likewise.
43241
43242 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43243
43244 * commands/i386/pc/pxecmd.c: New file.
43245
43246 * fs/i386/pc/pxe.c: Likewise.
43247
43248 * include/grub/i386/pc/pxe.h: Likewise.
43249
43250 2008-08-05 Bean <bean123ch@gmail.com>
43251
43252 * util/console.c (grub_console_cur_color): New variable.
43253 (grub_console_standard_color): Likewise.
43254 (grub_console_normal_color): Likewise.
43255 (grub_console_highlight_color): Likewise.
43256 (color_map): Likewise.
43257 (use_color): Likewise.
43258 (NUM_COLORS): New macro.
43259 (grub_ncurses_setcolorstate): Handle color properly.
43260 (grub_ncurses_setcolor): Don't change color here, just remember the
43261 settings, color will be set in grub_ncurses_setcolorstate.
43262 (grub_ncurses_getcolor): New function.
43263 (grub_ncurses_init): Initialize color pairs.
43264 (grub_ncurses_term): New member grub_ncurses_getcolor.
43265
43266 2008-08-05 Colin D Bennett <colin@gibibit.com>
43267
43268 High resolution timer support. Implemented for x86 CPUs using TSC.
43269 Extracted generic grub_millisleep() so it's linked in only as needed.
43270 This requires a Pentium compatible CPU; if the RDTSC instruction is
43271 not supported, then it falls back on the generic grub_get_time_ms()
43272 implementation that uses the machine's RTC.
43273
43274 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43275 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43276 `kern/generic/millisleep.c'.
43277
43278 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43279 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43280
43281 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43282 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43283
43284 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43285
43286 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43287 `kern/generic/millisleep.c'.
43288
43289 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43290
43291 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43292
43293 * kern/generic/rtc_get_time_ms.c: New file.
43294
43295 * kern/generic/millisleep.c: New file.
43296
43297 * kern/misc.c: Don't include
43298 <kern/time.h> anymore.
43299 (grub_millisleep_generic): Removed.
43300
43301 * commands/sleep.c (grub_interruptible_millisleep): Uses
43302 grub_get_time_ms() instead of grub_get_rtc().
43303
43304 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43305 function.
43306 (grub_cpu_is_cpuid_supported): New inline function.
43307 (grub_cpu_is_tsc_supported): New inline function.
43308 (grub_tsc_init): New function prototype.
43309 (grub_tsc_get_time_ms): New function prototype.
43310
43311 * kern/i386/tsc.c (grub_get_time_ms): New file.
43312
43313 * include/grub/time.h: Include <grub/types.h.
43314 (grub_millisleep_generic): Removed.
43315 (grub_get_time_ms): New prototype.
43316 (grub_install_get_time_ms): New prototype.
43317 (grub_rtc_get_time_ms): New prototype.
43318
43319 * kern/time.c (grub_get_time_ms): New function.
43320 (grub_install_get_time_ms): New function.
43321
43322 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43323 <grub/time.h> anymore.
43324 (grub_millisleep): Removed.
43325 (grub_machine_init): Call grub_tsc_init.
43326
43327 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43328 get_time_ms() implementation.
43329
43330 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43331 (ieee1275_get_time_ms): New function.
43332 (grub_machine_init): Install get_time_ms() implementation.
43333
43334 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43335 (grub_machine_init): Call grub_tsc_init().
43336 (grub_millisleep): Removed.
43337
43338 * kern/ieee1275/init.c (grub_millisleep): Removed.
43339 (grub_machine_init): Install ieee1275_get_time_ms()
43340 implementation.
43341 (ieee1275_get_time_ms): New function.
43342 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43343 real work.
43344
43345 2008-08-05 Marco Gerards <marco@gnu.org>
43346
43347 * disk/ata.c: Include <grub/pci.h>.
43348 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43349 (grub_ata_initialize): Rewritten.
43350 (grub_ata_device_initialize): New function.
43351
43352 2008-08-04 Pavel Roskin <proski@gnu.org>
43353
43354 * kern/main.c: Include grub/mm.h.
43355
43356 2008-08-04 Robert Millan <rmh@aybabtu.com>
43357
43358 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43359 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43360 corruption problem).
43361
43362 2008-08-04 Robert Millan <rmh@aybabtu.com>
43363
43364 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43365 warnings introduced in my last commit.
43366
43367 2008-08-03 Robert Millan <rmh@aybabtu.com>
43368
43369 Make PCI available on all i386 architectures.
43370
43371 * include/grub/i386/pc/pci.h: Move from here ...
43372 * include/grub/i386/pci.h: ... to here.
43373
43374 * include/grub/i386/pc/pci.h: Remove.
43375 * include/grub/i386/efi/pci.h: Remove.
43376 * include/grub/x86_64/efi/pci.h: Remove.
43377
43378 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43379 `<grub/cpu/pci.h>'.
43380
43381 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43382 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43383 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43384
43385 * conf/i386-ieee1275.rmk: Likewise.
43386
43387 2008-08-03 Robert Millan <rmh@aybabtu.com>
43388
43389 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43390 (grub_console_setcursor): Make it possible to set cursor off.
43391
43392 2008-08-03 Robert Millan <rmh@aybabtu.com>
43393
43394 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43395 of modules instead of assuming which platform provides what.
43396 * util/update-grub.in: Likewise.
43397
43398 2008-08-03 Robert Millan <rmh@aybabtu.com>
43399
43400 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43401 instead of `grub_install_dos_part' to determine whether a drive needs
43402 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43403 because it can be overridden when loading GRUB via Multiboot).
43404
43405 2008-08-02 Robert Millan <rmh@aybabtu.com>
43406
43407 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43408
43409 2008-08-02 Robert Millan <rmh@aybabtu.com>
43410
43411 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43412 of informational grub_dprintf() calls.
43413
43414 2008-08-02 Robert Millan <rmh@aybabtu.com>
43415
43416 * disk/memdisk.c (memdisk_size): Don't initialize.
43417 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43418
43419 * include/grub/i386/pc/kernel.h
43420 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43421 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43422 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43423 (grub_arch_memdisk_size): Remove.
43424
43425 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43426 field (was only used to transfer a constant). Add `type' field to
43427 support multiple module types.
43428 (grub_module_iterate): New function.
43429
43430 * kern/device.c (grub_device_open): Do not hide error messages
43431 when grub_disk_open() fails. Use grub_print_error() instead.
43432
43433 * kern/i386/pc/init.c (grub_arch_modules_addr)
43434 (grub_arch_memdisk_size): Remove functions.
43435 (grub_arch_modules_addr): Return the module address in high memory
43436 (now that it isn't copied anymore).
43437
43438 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43439 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43440 decompression routine (grub_total_module_size already includes that
43441 now). Don't copy modules back to low memory.
43442
43443 * kern/main.c: Include `<grub/mm.h>'.
43444 (grub_load_modules): Split out (and use) ...
43445 (grub_module_iterate): ... this function, which iterates through
43446 module objects and runs a hook.
43447 Comment out grub_mm_init_region() call, as it would cause non-ELF
43448 modules to be overwritten.
43449
43450 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43451 the memdisk image in its own region, make it part of the module list.
43452 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43453 (main): Parse --memdisk|-m option, and pass user-provided path as
43454 parameter to generate_image().
43455 (add_segments): Pass `memdisk_path' down to load_modules().
43456 (load_modules): Embed memdisk image in module section when requested.
43457 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43458 `header.type' instead of `header.offset'.
43459
43460 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43461 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43462 (memdisk_mod_LDFLAGS): New variables.
43463 * conf/i386-coreboot.rmk: Likewise.
43464 * conf/i386-ieee1275.rmk: Likewise.
43465
43466 2008-08-02 Robert Millan <rmh@aybabtu.com>
43467
43468 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43469 (backward_relocator): New variables. Used to allocate and relocate
43470 the payload, respectively.
43471 (grub_multiboot_load_elf32): Load into heap instead of requested
43472 address, install the appropriate relocator code in each bound of
43473 the payload, and set the entry point such that
43474 grub_multiboot_real_boot() will jump to one of them.
43475
43476 * kern/i386/loader.S (grub_multiboot_payload_size)
43477 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43478 (grub_multiboot_payload_entry_offset): New variables.
43479 (grub_multiboot_real_boot): Set cpu context to what the relocator
43480 expects, and jump to the relocator instead of the payload.
43481
43482 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43483 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43484 (grub_multiboot_payload_entry_offset): Export.
43485
43486 2008-08-01 Bean <bean123ch@gmail.com>
43487
43488 * normal/menu_entry.c (editor_getline): Don't return the original
43489 string as result, as it will be released by lexer once it has done
43490 using it.
43491
43492 2008-08-01 Robert Millan <rmh@aybabtu.com>
43493
43494 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43495 within menuentries, not before them.
43496 util/grub.d/10_hurd.in: Likewise.
43497
43498 2008-08-01 Bean <bean123ch@gmail.com>
43499
43500 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43501 (bufio_mod_SOURCES): New macro.
43502 (bufio_mod_CFLAGS): Likewise.
43503 (bufio_mod_LDFLAGS): Likewise.
43504
43505 * include/grub/bufio.h: New file.
43506
43507 * io/bufio.c: Likewise.
43508
43509 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43510 (grub_video_reader_png): Use grub_buffile_open to open file.
43511
43512 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43513 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43514
43515 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43516 (grub_video_reader_tga): Use grub_buffile_open to open file.
43517
43518 * font/manager.c: Include <grub/bufio.h>.
43519 (add_font): Use grub_buffile_open to open file.
43520
43521 2008-07-31 Robert Millan <rmh@aybabtu.com>
43522
43523 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43524 ELF segments, use a macro for arbitrarily accessing any of them instead
43525 of preparing a pointer that allows access to one at a time.
43526 (grub_multiboot_load_elf64): Likewise.
43527
43528 2008-07-31 Bean <bean123ch@gmail.com>
43529
43530 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43531 GRUB_KERNEL_MACHINE_DATA_END.
43532
43533 2008-07-30 Robert Millan <rmh@aybabtu.com>
43534
43535 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43536 Increase from 0x50 to 0x60.
43537 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43538 use UUIDs to identify the root drive for them. If that's not
43539 possible, abort.
43540 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43541 check, for cross-disk installs.
43542
43543 2008-07-30 Robert Millan <rmh@aybabtu.com>
43544
43545 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43546 is non-empty, use it to set the `prefix' environment variable instead
43547 of the usual approach.
43548 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43549 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43550 environment variable instead of dummy make_install_device().
43551
43552 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43553 (start): Insert a data section, with `grub_prefix' variable.
43554 * kern/i386/linuxbios/startup.S: Likewise.
43555
43556 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43557 New variable reference.
43558 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43559 New macro. Defines offset of `grub_prefix' within startup.S (relative
43560 to `start').
43561 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43562 section within startup.S (relative to `start').
43563 * include/grub/i386/coreboot/kernel.h: Likewise.
43564
43565 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43566 Overwrite grub_prefix with its contents, at the beginning of the
43567 first segment.
43568 (main): Understand -p|--prefix.
43569
43570 2008-07-30 Robert Millan <rmh@aybabtu.com>
43571
43572 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43573
43574 2008-07-30 Robert Millan <rmh@aybabtu.com>
43575
43576 * term/i386/pc/vga_text.c (grub_console_cls): Use
43577 grub_console_gotoxy() to go back to beginning of the screen.
43578 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43579
43580 2008-07-29 Christian Franke <franke@computer.org>
43581
43582 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43583 Add conversion of emulated mount points on Cygwin.
43584
43585 2008-07-29 Christian Franke <franke@computer.org>
43586
43587 * util/update-grub.in: Add a check for admin
43588 group on Cygwin.
43589 Remove old `grub.cfg.new' before creation.
43590 Add `-f' to `mv' to handle the different filesystem
43591 semantics of Windows.
43592
43593 2008-07-29 Bean <bean123ch@gmail.com>
43594
43595 * normal/main.c (get_line): Fix buffer overflow bug.
43596
43597 2008-07-28 Robert Millan <rmh@aybabtu.com>
43598
43599 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43600 (struct grub_apple_header): New struct. Describes the layout of
43601 the partmap header.
43602 (apple_partition_map_iterate): Check the header magic as well as the
43603 partition magic (which was already being checked).
43604
43605 2008-07-28 Pavel Roskin <proski@gnu.org>
43606
43607 * genmk.rb: Add a warning to the beginning of the output that
43608 it's a generated file and should not be edited.
43609
43610 2008-07-28 Robert Millan <rmh@aybabtu.com>
43611
43612 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43613 with the same number are found, just use issue a warning with
43614 grub_dprintf(), as this error has been reported to be non-fatal.
43615
43616 2008-07-27 Robert Millan <rmh@aybabtu.com>
43617
43618 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43619 information.
43620
43621 2008-07-27 Bean <bean123ch@gmail.com>
43622
43623 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43624 (grub_fat_find_dir): Ignore case when comparing filename.
43625
43626 2008-07-27 Bean <bean123ch@gmail.com>
43627
43628 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43629 smallino, as it's more descriptive, and i8count can be confused with
43630 the other field count.
43631 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43632 inode type.
43633
43634 2008-07-27 Bean <bean123ch@gmail.com>
43635
43636 * commands/crc.c: New file.
43637
43638 * lib/crc.c: Likewise.
43639
43640 * include/grub/lib/crc.h: Likewise.
43641
43642 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43643
43644 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43645 (hexdump): Move this function to ...
43646
43647 * lib/hexdump.c: ... here.
43648
43649 * include/grub/hexdump.h: Renamed to ...
43650
43651 * include/grub/lib/hexdump.h: ... this.
43652
43653 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43654
43655 * util/grub-editenv.c: Likewise.
43656
43657 * include/envblk.h: Renamed to ...
43658
43659 * include/lib/envblk.h: ... this.
43660
43661 * util/envblk.c: Renamed to ...
43662
43663 * lib/envblk.c: ... this.
43664
43665 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43666 lib/hexdump.c.
43667 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43668 (pkglib_MODULES): Add crc.mod.
43669 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43670 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43671 (crc_mod_SOURCES): New macro.
43672 (crc_mod_CFLAGS): Likewise.
43673 (crc_mod_LDFLAGS): Likewise.
43674
43675 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43676
43677 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43678
43679 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43680
43681 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43682
43683 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43684
43685 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43686
43687 * commands/help.c: Include <grub/term.h>.
43688 (TERM_WIDTH): Removed. Updated all users.
43689
43690 2008-07-27 Pavel Roskin <proski@gnu.org>
43691
43692 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43693 spurious warnings about a comment within a comment.
43694
43695 2008-07-25 Robert Millan <rmh@aybabtu.com>
43696
43697 * util/getroot.c (find_root_device): Skip devices that match
43698 /dev/dm-[0-9]. This lets the real device be found for any type of
43699 abstraction (LVM, EVMS, RAID..).
43700 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43701 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43702 device is found first, find_root_device() will now skip it.
43703
43704 2008-07-24 Pavel Roskin <proski@gnu.org>
43705
43706 * include/grub/types.h: Use __builtin_bswap32() and
43707 __builtin_bswap64() with gcc 4.3 and newer.
43708
43709 2008-07-24 Christian Franke <franke@computer.org>
43710
43711 * util/i386/pc/grub-install.in: If `--debug' is specified,
43712 pass `--verbose' to grub-setup.
43713 Abort script if make_system_path_relative_to_its_root() fails.
43714
43715 2008-07-24 Bean <bean123ch@gmail.com>
43716
43717 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43718 variable `target_platform' should be `platform'.
43719
43720 2008-07-24 Bean <bean123ch@gmail.com>
43721
43722 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43723 (grub_png_init_fixed_block): New function.
43724 (grub_png_decode_image_data): Handle fixed huffman code compression.
43725
43726 2008-07-24 Bean <bean123ch@gmail.com>
43727
43728 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43729 (grub_pe2elf_SOURCES): New macro.
43730 (CLEANFILES): Add grub-pe2elf.
43731
43732 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43733 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43734 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43735 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43736 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43737 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43738 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43739 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43740 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43741 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43742 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43743 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43744 (GRUB_PE32_DT_FUNCTION): Likewise.
43745 (GRUB_PE32_REL_I386_DIR32): Likewise.
43746 (GRUB_PE32_REL_I386_REL32): Likewise.
43747 (grub_pe32_symbol): New structure.
43748 (grub_pe32_reloc): Likewise.
43749
43750 * util/grub-pe2elf.c: New file.
43751
43752 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43753 start symbol in non pc platform.
43754
43755 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43756
43757 The following patches are from Christian Franke.
43758
43759 * include/grub/dl.h: Remove .previous, gas supports this only
43760 for ELF format.
43761
43762 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43763 Remove .type, gas supports this only for ELF format.
43764
43765 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43766 nullbytes in symbol table. This fixes an infinite loop if table is
43767 zero filled.
43768
43769 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43770 TARGET_IMG_LDFLAGS and EXEEXT.
43771
43772 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43773 TARGET_IMG_LDFLAGS_AC.
43774 (grub_CHECK_STACK_ARG_PROBE): New function.
43775
43776 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43777
43778 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43779
43780 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43781 to set TARGET_IMG_LD* accordingly.
43782 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43783 Add call to grub_CHECK_STACK_ARG_PROBE.
43784 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43785
43786 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43787
43788 * genmk.rb: Add EXEEXT to CLEANFILES.
43789
43790 2008-07-23 Robert Millan <rmh@aybabtu.com>
43791
43792 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43793 define the codes for arrows and lines used for the menu).
43794 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43795 as well.
43796
43797 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43798 fonts, because the latter are too slow.
43799
43800 2008-07-21 Bean <bean123ch@gmail.com>
43801
43802 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43803 a20. Run keyboard test last, as it will cause macbook to halt.
43804
43805 2008-07-18 Pavel Roskin <proski@gnu.org>
43806
43807 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43808 load foreign architecture modules correctly anyway. Keep
43809 support for loading host architecture modules, whether we
43810 compile them or not.
43811
43812 2008-07-17 Pavel Roskin <proski@gnu.org>
43813
43814 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43815 change target_cpu. The compiler default can mismatch target_cpu
43816 in any case.
43817
43818 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43819 * kern/efi/efi.c: Likewise.
43820
43821 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43822 target compiler is functional.
43823 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43824 are set up.
43825
43826 * configure.ac: Default to efi platform for x86_64-apple. Allow
43827 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43828 adjustments from the rest, only do them if target is not
43829 explicitly given. Merge other adjustments with the final sanity
43830 check. Remove an extraneous check for supported CPU. Be
43831 specific which CPU and which platform is not supported.
43832
43833 * configure.ac: Default to pc platform for x86_64.
43834
43835 2008-07-17 Robert Millan <rmh@aybabtu.com>
43836
43837 Partial LinuxBIOS -> Coreboot rename.
43838
43839 * conf/i386-linuxbios.rmk: Renamed to ...
43840 * conf/i386-coreboot.rmk: ... this.
43841 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43842 * configure.ac: Accept "coreboot" as input platform (but maintain
43843 compatibility with "linuxbios").
43844 * include/grub/i386/linuxbios: Renamed to ...
43845 * include/grub/i386/coreboot: ... this.
43846
43847 2008-07-17 Bean <bean123ch@gmail.com>
43848
43849 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43850 (appleldr_mod_SOURCE): New variable.
43851 (appleldr_mod_CFLAGS): Likewise.
43852 (appleldr_mod_LDFLAGS): Likewise.
43853 (pci_mod_SOURCES): Likewise.
43854 (pci_mod_CFLAGS): Likewise.
43855 (pci_mod_LDFLAGS): Likewise.
43856 (lspci_mod_SOURCES): Likewise.
43857 (lspci_mod_CFLAGS): Likewise.
43858 (lspci_mod_LDFLAGS): Likewise.
43859
43860 * conf/x86_64-efi.rmk: New file.
43861
43862 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43863 macro.
43864 (grub_efidisk_write): Likewise.
43865
43866 * include/efi/api.h (efi_call_0): New macro.
43867 (efi_call_1): Likewise.
43868 (efi_call_2): Likewise.
43869 (efi_call_3): Likewise.
43870 (efi_call_4): Likewise.
43871 (efi_call_5): Likewise.
43872 (efi_call_6): Likewise.
43873
43874 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43875 grub_rescue_cmd_chainloader.
43876
43877 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43878 (grub_pe32_optional_header): Change some fields based on i386 or
43879 x86_64 platform.
43880 (GRUB_PE32_PE32_MAGIC): Likewise.
43881
43882 * include/grub/efi/uga_draw.h: New file.
43883
43884 * include/grub/elf.h (STN_ABS): New constant.
43885 (R_X86_64_NONE): Relocation constant for x86_64.
43886 (R_X86_64_64): Likewise.
43887 (R_X86_64_PC32): Likewise.
43888 (R_X86_64_GOT32): Likewise.
43889 (R_X86_64_PLT32): Likewise.
43890 (R_X86_64_COPY): Likewise.
43891 (R_X86_64_GLOB_DAT): Likewise.
43892 (R_X86_64_JUMP_SLOT): Likewise.
43893 (R_X86_64_RELATIVE): Likewise.
43894 (R_X86_64_GOTPCREL): Likewise.
43895 (R_X86_64_32): Likewise.
43896 (R_X86_64_32S): Likewise.
43897 (R_X86_64_16): Likewise.
43898 (R_X86_64_PC16): Likewise.
43899 (R_X86_64_8): Likewise.
43900 (R_X86_64_PC8): Likewise.
43901
43902 * include/grub/i386/efi/pci.h: New file.
43903
43904 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43905 Change it value based on platform.
43906 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43907 (GRUB_E820_RAM): Likewise.
43908 (GRUB_E820_RESERVED): Likewise.
43909 (GRUB_E820_ACPI): Likewise.
43910 (GRUB_E820_NVS): Likewise.
43911 (GRUB_E820_EXEC_CODE): Likewise.
43912 (GRUB_E820_MAX_ENTRY): Likewise.
43913 (grub_e820_mmap): New structure.
43914 (linux_kernel_header): Change the efi field according to different
43915 kernel version, also field from linux_kernel_header.
43916
43917 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43918
43919 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43920 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43921 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43922 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43923 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43924 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43925 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43926 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43927 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43928 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43929
43930 * include/grub/x86_64/efi/kernel.h: New file.
43931
43932 * include/grub/x86_64/efi/loader.h: Likewise.
43933
43934 * include/grub/x86_64/efi/machine.h: Likewise.
43935
43936 * include/grub/x86_64/efi/pci.h: Likewise.
43937
43938 * include/grub/x86_64/efi/time.h: Likewise.
43939
43940 * include/grub/x86_64/linux.h: Likewise.
43941
43942 * include/grub/x86_64/setjmp.h: Likewise.
43943
43944 * include/grub/x86_64/time.h: Likewise.
43945
43946 * include/grub/x86_64/types.h: Likewise.
43947
43948 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43949 GRUB_TARGET_SIZEOF_VOID_P.
43950
43951 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43952 (grub_efi_locate_handle): Likewise.
43953 (grub_efi_open_protocol): Likewise.
43954 (grub_efi_set_text_mode): Likewise.
43955 (grub_efi_stall): Likewise.
43956 (grub_exit): Likewise.
43957 (grub_reboot): Likewise.
43958 (grub_halt): Likewise.
43959 (grub_efi_exit_boot_services): Likewise.
43960 (grub_get_rtc): Likewise.
43961
43962 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43963 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43964 (grub_efi_allocate_pages): Wrap efi calls.
43965 (grub_efi_free_pages): Wrap efi calls.
43966 (grub_efi_get_memory_map): Wrap efi calls.
43967
43968 * kern/x86_64/dl.c: New file.
43969
43970 * kern/x86_64/efi/callwrap.S: Likewise.
43971
43972 * kern/x86_64/efi/startup.S: Likewise.
43973
43974 * loader/efi/appleloader.c: Likewise.
43975
43976 * loader/efi/chainloader.c (cmdline): New variable.
43977 (grub_chainloader_unload): Wrap efi calls.
43978 (grub_chainloader_boot): Likewise.
43979 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43980 command line.
43981
43982 * loader/efi/chainloader_normal.c (chainloader_command):
43983 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43984 command line.
43985
43986 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43987 method.
43988 (grub_e820_add_region): New function.
43989 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43990 booting.
43991 (grub_find_video_card): New function.
43992 (grub_linux_setup_video): New function.
43993 (grub_rescue_cmd_linux): Probe for video information.
43994
43995 * normal/x86_64/setjmp.S: New file.
43996
43997 * term/efi/console.c (map_char): New function.
43998 (grub_console_putchar): Map unicode char.
43999 (grub_console_checkkey): Wrap efi calls.
44000 (grub_console_getkey): Likewise.
44001 (grub_console_getwh): Likewise.
44002 (grub_console_gotoxy): Likewise.
44003 (grub_console_cls): Likewise.
44004 (grub_console_setcolorstate): Likewise.
44005 (grub_console_setcursor): Likewise.
44006
44007 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44008
44009 2008-07-16 Pavel Roskin <proski@gnu.org>
44010
44011 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44012 format strings.
44013
44014 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44015 pointer, not an integer. This fixes a warning and prevents
44016 precision loss on 64-bit systems.
44017 (relocate_addresses): Remove unneeded cast.
44018
44019 2008-07-15 Pavel Roskin <proski@gnu.org>
44020
44021 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44022
44023 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44024
44025 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44026 Fix comparison between signed and unsigned.
44027
44028 * include/grub/i386/ieee1275/console.h: Declare
44029 grub_console_init() and grub_console_fini().
44030
44031 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44032 It's empty and unused.
44033
44034 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44035 beginning to avoid warnings with some compilers.
44036
44037 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44038 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44039
44040 2008-07-14 Pavel Roskin <proski@gnu.org>
44041
44042 * kern/env.c (grub_register_variable_hook): Don't copy empty
44043 string, it leaks memory. Pass "" to grub_env_set(), it should
44044 handle constant strings.
44045
44046 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44047 * commands/cmp.c (grub_cmd_cmp): Likewise.
44048 * kern/dl.c (grub_dl_flush_cache): Likewise.
44049 (grub_dl_load_core): Likewise.
44050 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44051 (grub_elf64_load_phdrs): Likewise.
44052
44053 2008-07-13 Pavel Roskin <proski@gnu.org>
44054
44055 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44056 between signed and unsigned.
44057 (LzmaEnc_Finish): Fix warning about an unused parameter.
44058
44059 2008-07-13 Bean <bean123ch@gmail.com>
44060
44061 * Makefile.in (enable_lzo): New rule.
44062
44063 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44064
44065 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44066
44067 * boot/i386/pc/lnxboot.S: #include <config.h>.
44068
44069 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44070 its value according to the compression algorithm used, lzo or lzma.
44071
44072 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44073 compression algorithm according to configure macro.
44074
44075 * kern/i386/pc/startup.S (codestart): Likewise.
44076
44077 * kern/i386/pc/lzma_decode.S: New file.
44078
44079 * include/grub/lib/LzFind.h: Likewise.
44080
44081 * include/grub/lib/LzHash.h: Likewise.
44082
44083 * include/grub/lib/LzmaDec.h: Likewise.
44084
44085 * include/grub/lib/LzmaEnc.h: Likewise.
44086
44087 * include/grub/lib/LzmaTypes.h: Likewise.
44088
44089 * lib/LzFind.c: Likewise.
44090
44091 * lib/LzmaDec.c: Likewise.
44092
44093 * lib/LzmaEnc.c: Likewise.
44094
44095 2008-07-13 Bean <bean123ch@gmail.com>
44096
44097 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44098 (grub_ext4_extent_header): New structure.
44099 (grub_ext4_extent): Likewise.
44100 (grub_ext4_extent_idx): Likewise.
44101 (grub_ext4_find_leaf): New function.
44102 (grub_ext2_read_block): Handle extents.
44103
44104 2008-07-12 Robert Millan <rmh@aybabtu.com>
44105
44106 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44107
44108 2008-07-11 Robert Millan <rmh@aybabtu.com>
44109
44110 * util/grub.d/40_custom.in: New file. Example on how to add custom
44111 entries to /etc/grub.d.
44112 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44113 40_custom (implicitly, by merging all the grub.d rules).
44114
44115 2008-07-11 Pavel Roskin <proski@gnu.org>
44116
44117 * commands/read.c (grub_getline): Fix invalid memory access.
44118 Don't add newline to the variable value.
44119
44120 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44121 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44122 (serial_hw_get_port): Check validity of the port number.
44123 (grub_cmd_serial): Check return value of serial_hw_get_port().
44124
44125 2008-07-07 Pavel Roskin <proski@gnu.org>
44126
44127 * boot/i386/pc/diskboot.S (notification_string): Replace
44128 "Loading kernel" with just "loading". This is shorter, less
44129 confusing and saves a few bytes for possible future changes.
44130
44131 2008-07-05 Pavel Roskin <proski@gnu.org>
44132
44133 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44134 size for ATAPI devices, they are undefined. Output sector
44135 number in decimal form.
44136
44137 * disk/ata.c: Use named constants for status bits.
44138
44139 2008-07-04 Pavel Roskin <proski@gnu.org>
44140
44141 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44142 grub_addr_t before casting it to the void pointer to fix a
44143 warning. Non-addressable regions are discarded earlier.
44144 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44145 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44146 (check_signature): Don't shadow table_header.
44147 (grub_linuxbios_table_iterate): Cast numeric constants to
44148 grub_linuxbios_table_header_t.
44149 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44150 grub_stop().
44151
44152 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44153 prevent warnings.
44154
44155 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44156 pointer, which can cause warnings. Support 64-bit addresses.
44157
44158 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44159 of sizeof(long). This fixes PowerPC image generation on x86_64.
44160
44161 2008-07-04 Robert Millan <rmh@aybabtu.com>
44162
44163 This fixes a performance issue when pc & gpt partmap iterators
44164 didn't abort iteration even after our hook found what it was
44165 looking for (often causing expensive probes of non-existent drives).
44166
44167 Some callers relied on previous buggy behaviour, since they would
44168 raise an error when their own hooks caused early abortion of its
44169 iteration.
44170
44171 * kern/device.c (grub_device_open): Improve error message.
44172 * disk/lvm.c (grub_lvm_open): Likewise.
44173 * disk/raid.c (grub_raid_open): Likewise.
44174
44175 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44176 when hook requests it, independently of grub_errno.
44177 (pc_partition_map_probe): Do not fail when find_func() caused
44178 early abortion of pc_partition_map_iterate().
44179
44180 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44181 when hook requests it, independently of grub_errno.
44182 (gpt_partition_map_probe): Do not fail when find_func() caused
44183 early abortion of gpt_partition_map_iterate().
44184
44185 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44186 when hook requests it, independently of grub_errno. Do not fail when
44187 part_map_iterate_hook() caused early abortion of p->iterate().
44188
44189 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44190 when grub_partition_iterate() returned with non-zero.
44191
44192 2008-07-03 Pavel Roskin <proski@gnu.org>
44193
44194 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44195 like we do in grub_ata_pio_read().
44196 (grub_ata_readwrite): Always write individual sectors. Fix the
44197 sector count for the remainder.
44198 (grub_ata_write): Enable writing to ATA devices. Correctly
44199 report error for ATAPI devices.
44200
44201 2008-07-02 Pavel Roskin <proski@gnu.org>
44202
44203 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44204 warning.
44205
44206 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44207 for every read sector, we already increment it for the whole
44208 batch. This fixes reading more than 256 sectors at once.
44209
44210 * util/grub-editenv.c (cmd_info): Cast argument to long
44211 explicitly. ptrdiff_t reduces to int on i386.
44212
44213 * util/grub-editenv.c (main): Be specific which parameter is
44214 missing.
44215
44216 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44217 (memdisk): Make memdisk_orig_addr a pointer.
44218
44219 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44220 for file offsets, use grub_off_t instead. Fix printf format
44221 warnings.
44222
44223 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44224 there. Real unexpected warnings should not drown in the noise
44225 about known problems.
44226
44227 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44228 grub_disk_addr_t for memory addresses.
44229
44230 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44231 explicitly to fix a warning.
44232
44233 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44234
44235 * Makefile.in (MODULE_LDFLAGS): New variable.
44236 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44237 the linker accepts --build-id=none.
44238 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44239 MODULE_LDFLAGS.
44240 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44241
44242 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44243 those in Linux XFS code. Provide a way to access 64-bit parent
44244 inode.
44245 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44246 the end of struct grub_xfs_dir_header.
44247
44248 2008-07-02 Bean <bean123ch@gmail.com>
44249
44250 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44251 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44252 and GRUB_IEEE1275_FLAG_NO_ANSI.
44253
44254 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44255 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44256 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44257
44258 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44259 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44260
44261 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44262 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44263
44264 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44265 esc sequence on non ANSI terminal.
44266 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44267
44268 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44269 beginning of file.
44270
44271 2008-07-02 Bean <bean123ch@gmail.com>
44272
44273 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44274 (grub_editenv_SOURCES): New variable.
44275 (pkglib_MODULES): Add loadenv.mod.
44276 (loadenv_mod_SOURCES): New variable.
44277 (loadenv_mod_CFLAGS): Likewise.
44278 (loadenv_mod_LDFLAGS): Likewise.
44279
44280 * include/grub/envblk.h: New file.
44281
44282 * util/envblk.c: New file.
44283
44284 * util/grub-editenv.c: New file.
44285
44286 * commands/loadenv.c: New file.
44287
44288 2008-07-01 Pavel Roskin <proski@gnu.org>
44289
44290 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44291 not unsigned char. This fixes warnings and is consistent with
44292 other tags.
44293
44294 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44295
44296 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44297
44298 * term/tparm.c (analyze): Always set *popcount.
44299
44300 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44301 cast to fix a warning.
44302
44303 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44304 cast to suppress a warning.
44305
44306 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44307 grub_fshelp_read_file() expects.
44308
44309 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44310 write uuid as a 32-bit value in CPU byte order, so declare and
44311 use it as such.
44312
44313 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44314 long if the format specifier expects it.
44315 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44316 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44317 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44318 long to fix a warning.
44319 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44320 grub_dprintf() arguments to fix warnings.
44321
44322 2008-06-30 Pavel Roskin <proski@gnu.org>
44323
44324 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44325 install_bsd_part immediately before core.img is embedded or
44326 modified on disk. This fixes core.img verification if core.img
44327 cannot be embedded.
44328
44329 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44330 core_path to calculate the blocklist.
44331 Patch from Javier Martín <lordhabbit@gmail.com>
44332
44333 2008-06-29 Robert Millan <rmh@aybabtu.com>
44334
44335 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44336 block to disk block.
44337 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44338 Patch from Niels Böhm <bitbucket@arcor.de>
44339
44340 2008-06-29 Robert Millan <rmh@aybabtu.com>
44341
44342 * util/update-grub_lib.in (font_path): Search for fonts in
44343 /boot/grub first, which is more likely to be readable (we aren't
44344 deciding where fonts live, just looking for them).
44345
44346 2008-06-26 Pavel Roskin <proski@gnu.org>
44347
44348 * util/biosdisk.c (read_device_map): Don't leave dead map
44349 entries for devices failing stat() check.
44350
44351 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44352 core_path_dev for the core.img path on the target device.
44353
44354 2008-06-26 Robert Millan <rmh@aybabtu.com>
44355
44356 * disk/fs_uuid.c: New file.
44357 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44358 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44359 (fs_uuid_mod_LDFLAGS): New variables.
44360 * include/grub/disk.h (grub_disk_dev_id): Add
44361 `GRUB_DISK_DEVICE_UUID_ID'.
44362 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44363 implement iterate().
44364
44365 2008-06-26 Robert Millan <rmh@aybabtu.com>
44366
44367 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44368 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44369 Linux image includes no initrd.
44370
44371 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44372
44373 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44374 call to resolve the core image location that effectively appended the
44375 name twice.
44376
44377 2008-06-21 Robert Millan <rmh@aybabtu.com>
44378
44379 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44380 call from here ...
44381
44382 * util/grub.d/10_hurd.in: ... to here ...
44383 * util/grub.d/10_linux.in: ... and here.
44384
44385 2008-06-19 Robert Millan <rmh@aybabtu.com>
44386
44387 * kern/main.c (grub_main): Export `prefix' variable immediately
44388 after it has been set by grub_machine_set_prefix().
44389
44390 2008-06-19 Robert Millan <rmh@aybabtu.com>
44391
44392 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44393 search result when not saving to variable, not the other way around.
44394 When saving to variable, abort iteration as soon as a match is found.
44395
44396 2008-06-19 Robert Millan <rmh@aybabtu.com>
44397
44398 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44399 check for partition that provides /boot/grub. Its logic is flawed,
44400 as it prevents prepare_grub_to_access_device() from being called
44401 multiple times.
44402
44403 2008-06-19 Robert Millan <rmh@aybabtu.com>
44404
44405 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44406 "insmod" command directly when abstraction modules are needed,
44407 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44408 since it had already been processed).
44409
44410 2008-06-19 Pavel Roskin <proski@gnu.org>
44411
44412 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44413 changed. This is needed in case GRUB_LIBDIR changes.
44414 * conf/i386-ieee1275.rmk: Likewise.
44415 * conf/i386-linuxbios.rmk: Likewise.
44416 * conf/i386-pc.rmk: Likewise.
44417 * conf/powerpc-ieee1275.rmk: Likewise.
44418
44419 2008-06-18 Pavel Roskin <proski@gnu.org>
44420
44421 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44422 kernel_elf_symlist.c to symlist.c for consistency with other
44423 architectures. Update all users.
44424 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44425
44426 2008-06-18 Robert Millan <rmh@aybabtu.com>
44427
44428 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44429 it in prefix.
44430
44431 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44432 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44433 a RAID device, run setup() for all members independently on whether
44434 LVM abstraction is being used.
44435 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44436 If grub-mkimage has set `*install_dos_part == -2', don't override this
44437 value.
44438 Perform *install_dos_part adjustments independently on whether
44439 we're embedding or not.
44440 Clarify error message when image is too big for embedding.
44441 Remove duplicate *install_dos_part stanza.
44442
44443 2008-06-17 Robert Millan <rmh@aybabtu.com>
44444
44445 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44446 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44447 variables.
44448 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44449 values in grub_ofconsole_normal_color and
44450 grub_ofconsole_highlight_color (they're not directly related to
44451 background and foreground).
44452 (grub_ofconsole_setcolorstate): Extract background and foreground
44453 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44454
44455 2008-06-17 Robert Millan <rmh@aybabtu.com>
44456
44457 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44458 /boot/grub for the check in last commit, not /boot (they could be
44459 different partitions).
44460
44461 2008-06-16 Robert Millan <rmh@aybabtu.com>
44462
44463 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44464 asked to setup access for the same partition that provides /boot,
44465 don't bother using UUIDs since our root already has the value we
44466 want.
44467
44468 2008-06-16 Robert Millan <rmh@aybabtu.com>
44469
44470 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44471 I2O devices.
44472 Patch from Sven Mueller <sven@debian.org>.
44473
44474 2008-06-16 Robert Millan <rmh@aybabtu.com>
44475
44476 * util/update-grub.in: Check for $EUID instead of $UID.
44477 Reported by Vincent Zweije.
44478
44479 2008-06-16 Bean <bean123ch@gmail.com>
44480
44481 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44482 (grub_ext2_read_block): Likewise.
44483 (grub_ext2_read_inode): Likewise.
44484 (grub_ext2_mount): Likewise.
44485 (grub_ext2_close): Likewise.
44486 (grub_ext3_get_journal): Removed.
44487
44488 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44489 (grub_reiserfs_read_symlink): Likewise.
44490 (grub_reiserfs_mount): Likewise.
44491 (grub_reiserfs_open): Likewise.
44492 (grub_reiserfs_read): Likewise.
44493 (grub_reiserfs_close): Likewise.
44494 (grub_reiserfs_get_journal): Removed.
44495
44496 * fs/fshelp.c (grub_fshelp_read): Removed.
44497 (grub_fshelp_map_block): Likewise.
44498
44499 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44500 (grub_fshelp_journal): Likewise.
44501 (grub_fshelp_read): Likewise.
44502 (grub_fshelp_map_block): Likewise.
44503
44504 2008-06-16 Pavel Roskin <proski@gnu.org>
44505
44506 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44507 floating point anymore.
44508 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44509
44510 2008-06-15 Pavel Roskin <proski@gnu.org>
44511
44512 * commands/ls.c (grub_ls_list_files): Use integer calculations
44513 for human readable format, avoid floating point use.
44514 * kern/misc.c (grub_ftoa): Remove.
44515 (grub_vsprintf): Remove floating point support.
44516
44517 2008-06-15 Robert Millan <rmh@aybabtu.com>
44518
44519 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44520 devices.
44521 Reported by Max Vozeler.
44522
44523 2008-06-15 Robert Millan <rmh@aybabtu.com>
44524
44525 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44526 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44527 skipped later.
44528 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44529 the beginning of the prefix.
44530
44531 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44532 It is assumed that if we have a memdisk, grub-mkimage has set
44533 grub_prefix to include the "(memdisk)" drive in it.
44534
44535 2008-06-15 Robert Millan <rmh@aybabtu.com>
44536
44537 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44538 Initialize keyboard controller after registering the terminal, so that
44539 grub_printf() can be called from grub_keyboard_controller_init().
44540
44541 2008-06-15 Robert Millan <rmh@aybabtu.com>
44542
44543 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44544 extent-btree which is written as big endian on disk.
44545 Reported by Alain Greppin <al@chilibi.org>.
44546
44547 2008-06-14 Robert Millan <rmh@aybabtu.com>
44548
44549 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44550 * util/i386/pc/grub-install.in (modules): Likewise.
44551
44552 2008-06-13 Pavel Roskin <proski@gnu.org>
44553
44554 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44555
44556 2008-06-13 Bean <bean123ch@gmail.com>
44557
44558 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44559
44560 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44561
44562 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44563 to indicate sparse block.
44564
44565 2008-06-12 Pavel Roskin <proski@gnu.org>
44566
44567 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44568 number, grub_fshelp_read() does it for us.
44569
44570 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44571 linear disk read with journal translation.
44572 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44573 * include/grub/fshelp.h: Declare grub_fshelp_read().
44574
44575 2008-06-09 Pavel Roskin <proski@gnu.org>
44576
44577 * fs/minix.c (grub_minix_mount): Handle error reading
44578 superblock.
44579
44580 2008-06-08 Robert Millan <rmh@aybabtu.com>
44581
44582 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44583 don't append the RAID prefix afterwards.
44584 Reported by Clint Adams.
44585
44586 2008-06-08 Robert Millan <rmh@aybabtu.com>
44587
44588 Based on description from Pavel:
44589 * kern/disk.c (grub_disk_check_range): Rename to ...
44590 (grub_disk_adjust_range): ... this. Add a comment explaining the
44591 tasks performed by this function.
44592
44593 2008-06-08 Robert Millan <rmh@aybabtu.com>
44594
44595 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44596 `num_serial' (for consistency with other variables).
44597 (struct grub_ntfs_data): Add `uuid' member.
44598 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44599 (grub_ntfs_uuid): New function.
44600 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44601
44602 2008-06-07 Pavel Roskin <proski@gnu.org>
44603
44604 * util/biosdisk.c (open_device): Revert last change to the
44605 function, it broke installation. The sector needs to be
44606 different dependent on which device is opened.
44607
44608 2008-06-06 Robert Millan <rmh@aybabtu.com>
44609
44610 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44611 rest of GRUB, and breakage doesn't happen if its value were modified.
44612
44613 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44614 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44615 a constant (same value).
44616 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44617 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44618
44619 2008-06-06 Robert Millan <rmh@aybabtu.com>
44620
44621 * util/biosdisk.c (open_device): Do not modify sector offset when
44622 accessing a partition. kern/disk.c already handles this for us.
44623
44624 2008-06-06 Robert Millan <rmh@aybabtu.com>
44625
44626 * util/grub-emu.c (grub_machine_init): Move code in this function from
44627 here ...
44628 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44629 segfault in case grub_printf() is called).
44630
44631 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44632 grub_probe. Update all users not to explicitly add it again.
44633 (grub_device): New variable; contains corresponding device for grubdir.
44634 (fs_module, partmap_module, devabstraction_module): Pass
44635 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44636 every time.
44637
44638 2008-06-05 Robert Millan <rmh@aybabtu.com>
44639
44640 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44641 is found, print it (same layout as with labels).
44642
44643 2008-06-04 Robert Millan <rmh@aybabtu.com>
44644
44645 * util/biosdisk.c (get_drive): Rename to ...
44646 (find_grub_drive): ... this. Update all users.
44647
44648 (get_os_disk): Rename to ...
44649 (convert_system_partition_to_system_disk): ... this. Update all users.
44650
44651 (find_drive): Rename to ...
44652 (find_system_device): ... this. Update all users.
44653
44654 2008-06-04 Robert Millan <rmh@aybabtu.com>
44655
44656 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44657 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44658 (make_device_map): Likewise.
44659
44660 2008-06-01 Robert Millan <rmh@aybabtu.com>
44661
44662 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44663 before dereferencing it.
44664
44665 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44666 union with fat12/fat16-specific ones. Add some new fields, including
44667 `num_serial' for both versions.
44668 (struct grub_fat_data): Add `uuid' member.
44669 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44670 names. Initialize `data->uuid' using `num_serial'.
44671 (grub_fat_uuid): New function.
44672 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44673
44674 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44675 (grub_reiserfs_uuid): New function.
44676 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44677 member.
44678
44679 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44680 (grub_xfs_uuid): New function.
44681 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44682
44683 2008-06-01 Robert Millan <rmh@aybabtu.com>
44684
44685 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44686 code that is backward compatible with pre-uuid search command.
44687
44688 2008-05-31 Robert Millan <rmh@aybabtu.com>
44689
44690 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44691 floppies after everything else, to ensure floppy drive isn't accessed
44692 unnecessarily (patch from Bean).
44693
44694 2008-05-31 Robert Millan <rmh@aybabtu.com>
44695
44696 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44697 not print device names when we were asked to set a variable.
44698
44699 2008-05-31 Robert Millan <rmh@aybabtu.com>
44700
44701 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44702 using "cursor-on" and "cursor-off" commands (understood at least by
44703 the Open Firmware flavour on OLPC).
44704
44705 2008-05-31 Michael Gorven <michael@gorven.za.net>
44706
44707 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44708 on and off sequences.
44709
44710 2008-05-31 Robert Millan <rmh@aybabtu.com>
44711
44712 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44713 * util/update-grub.in: Likewise.
44714
44715 2008-05-30 Pavel Roskin <proski@gnu.org>
44716
44717 * util/biosdisk.c (linux_find_partition): Simplify logic and
44718 make the code more universal. Keep special processing for
44719 devfs, but use a simple rule for all other devices. If the
44720 device ends with a number, append 'p' and the partition number.
44721 Otherwise, append only the partition number.
44722
44723 2008-05-30 Robert Millan <rmh@aybabtu.com>
44724
44725 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44726 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44727 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44728 the `root' parameter to Linux.
44729
44730 2008-05-30 Robert Millan <rmh@aybabtu.com>
44731
44732 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44733 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44734 --fs_uuid with --fs-uuid.
44735 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44736 all filesystems support them).
44737
44738 2008-05-30 Robert Millan <rmh@aybabtu.com>
44739
44740 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44741 grub_printf() flags, since we're printing in units of 2 bytes.
44742
44743 2008-05-30 Robert Millan <rmh@aybabtu.com>
44744
44745 * util/grub.d/00_header.in: Remove obsolete comment referencing
44746 convert_system_path_to_grub_path().
44747 * util/update-grub.in: Likewise.
44748 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44749 (convert_system_path_to_grub_path): Add a warning message explaining
44750 that this function is deprecated. Rely on is_path_readable_by_grub()
44751 for the readability checks.
44752 (font_path): Use is_path_readable_by_grub() for the readability
44753 check rather than convert_system_path_to_grub_path().
44754
44755 2008-05-30 Robert Millan <rmh@aybabtu.com>
44756
44757 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44758 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44759 converting it first.
44760 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44761 grub.cfg for access to font file, and afterwards call it again to set
44762 the root device.
44763
44764 2008-05-30 Robert Millan <rmh@aybabtu.com>
44765
44766 * commands/search.c (options): Add --fs_uuid option.
44767 (search_fs_uuid): New function.
44768 (grub_cmd_search): Fix --set argument passing.
44769 Use search_fs_uuid() when requested via --fs_uuid.
44770 (grub_search_init): Update help message.
44771 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44772 and redeclare it as an array of 16-bit words.
44773 (grub_ext2_uuid): New function.
44774 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44775 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44776 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44777 (GRUB_DEVICE_BOOT_UUID): New variables.
44778 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44779 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44780 whenever possible.
44781 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44782 just assume `root' variable has the right value.
44783 * util/grub.d/10_linux.in: Likewise.
44784 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44785 via PRINT_FS_UUID.
44786 (main): Recognise `-t fs_uuid' argument.
44787
44788 2008-05-30 Robert Millan <rmh@aybabtu.com>
44789
44790 * util/biosdisk.c (map): Redefine structure to hold information
44791 about GRUB drive name.
44792 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44793 drive names.
44794 (call_hook): Remove.
44795 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44796 member. Assume drive has partitions.
44797 (grub_util_biosdisk_open): Access device names via `.device' struct
44798 member.
44799 (open_device): Likewise.
44800 (find_drive): Likewise.
44801 (read_device_map): Adjust map[] usage to match the new struct
44802 definition. Don't check for duplicates (still possible, but not cheap
44803 anymore).
44804 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44805 (make_device_name): Remove assumption of BIOS-like drive names.
44806
44807 2008-05-30 Pavel Roskin <proski@gnu.org>
44808
44809 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44810 compiling execute.c doesn't need grub_script.tab.h anymore.
44811 (normal/command.c_DEPENDENCIES): Likewise.
44812 (normal/function.c_DEPENDENCIES): Likewise.
44813 * conf/i386-ieee1275.rmk: Likewise.
44814 * conf/i386-linuxbios.rmk: Likewise.
44815 * conf/i386-pc.rmk: Likewise.
44816 * conf/powerpc-ieee1275.rmk: Likewise.
44817 * conf/sparc64-ieee1275.rmk: Likewise.
44818
44819 2008-05-29 Pavel Roskin <proski@gnu.org>
44820
44821 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44822 when scanning metadata for volume group name.
44823
44824 * include/grub/script.h: Don't include grub_script.tab.h. It's
44825 a generated file, which may only be included from the files with
44826 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44827 use union YYSTYPE, as the later allows forward declaration.
44828 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44829
44830 2008-05-29 Robert Millan <rmh@aybabtu.com>
44831
44832 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44833 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44834 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44835 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44836 scan codes.
44837
44838 2008-05-29 Robert Millan <rmh@aybabtu.com>
44839
44840 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44841 control key combinations.
44842
44843 2008-05-29 Robert Millan <rmh@aybabtu.com>
44844
44845 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44846 * util/ieee1275/grub-install.in: ... to here.
44847 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44848 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44849 (grub_install_SOURCES): Likewise.
44850
44851 2008-05-29 Robert Millan <rmh@aybabtu.com>
44852
44853 * fs/affs.c: Update copyright year.
44854 * fs/ext2.c: Likewise.
44855 * fs/fshelp.c: Likewise.
44856 * fs/hfsplus.c: Likewise.
44857 * fs/ntfs.c: Likewise.
44858 * fs/xfs.c: Likewise.
44859 * include/grub/fshelp.h: Likewise.
44860 * util/grub-mkdevicemap.c: Likewise.
44861
44862 2008-05-28 Robert Millan <rmh@aybabtu.com>
44863
44864 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44865 might need to be fatfs to support some firmware implementations
44866 (e.g. OFW or EFI).
44867
44868 2008-05-28 Robert Millan <rmh@aybabtu.com>
44869
44870 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44871 devices.
44872 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44873 (make_device_map): Likewise.
44874
44875 2008-05-20 Bean <bean123ch@gmail.com>
44876
44877 * fs/fshelp.c (grub_fshelp_map_block): New function.
44878 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44879 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44880
44881 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44882 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44883 (grub_fshelp_journal): New structure.
44884 (grub_fshelp_map_block): New function prototype.
44885 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44886 (grub_fshelp_map_block): Likewise.
44887
44888 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44889 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44890 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44891 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44892 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44893 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44894 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44895 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44896 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44897 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44898 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44899 (grub_ext2_sblock): New members for journal support.
44900 (grub_ext3_journal_header): New structure.
44901 (grub_ext3_journal_revoke_header): Likewise.
44902 (grub_ext3_journal_block_tag): Likewise.
44903 (grub_ext3_journal_sblock): Likewise.
44904 (grub_fshelp_node): New members logfile and journal.
44905 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44906 grub_fshelp_map_block to get real block number.
44907 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44908 number.
44909 (grub_ext2_read_inode): Likewise.
44910 (grub_ext3_get_journal): New function.
44911 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44912 (grub_ext2_close): Release memory used by journal.
44913
44914 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44915 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44916 (grub_reiserfs_transaction_header): Renamed to
44917 grub_reiserfs_description_block, replace field data with real_blocks.
44918 (grub_reiserfs_commit_block): New structure.
44919 (grub_reiserfs_data): New member journal.
44920 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44921 number.
44922 (grub_reiserfs_read_symlink): Likewise.
44923 (grub_reiserfs_iterate_dir): Likewise.
44924 (grub_reiserfs_open): Likewise.
44925 (grub_reiserfs_read): Likewise.
44926 (grub_reiserfs_get_journal): New function.
44927 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44928 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44929 using grub_reiserfs_get_journal.
44930 (grub_reiserfs_close): Release memory used by journal.
44931
44932 * fs/affs.c (grub_affs_read_block): Change block type to
44933 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44934
44935 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44936
44937 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44938
44939 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44940
44941 * fs/udf.c (grub_udf_read_block): Change block type to
44942 grub_disk_addr_t. Use type cast to avoid warning.
44943
44944 * fs/xfs.c (grub_xfs_read_block): Likewise.
44945
44946 2008-05-16 Christian Franke <franke@computer.org>
44947
44948 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44949 to ensure that break with ESC will always work.
44950 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44951 Remove ESC from keyboard queue.
44952
44953 2008-05-16 Christian Franke <franke@computer.org>
44954
44955 * util/biosdisk.c: [__CYGWIN__] Add includes.
44956 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44957 (get_os_disk): Move variable declarations to OS specific
44958 parts to avoid warning.
44959 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44960 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44961 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44962 Cygwin.
44963 * util/getroot.c: [__CYGWIN__] Add includes.
44964 (strip_extra_slashes): Fix "/" case.
44965 [__CYGWIN__] (get_win32_path): New function.
44966 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44967 [__CYGWIN__] (find_root_device): Disable.
44968 [__CYGWIN__] (get_bootsec_serial): New function.
44969 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44970 [__linux__] (grub_guess_root_device): Add early returns to simplify
44971 structure.
44972 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44973 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44974 check for Linux only.
44975
44976 2008-05-15 Bean <bean123ch@gmail.com>
44977
44978 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44979 keyboard hang problem in apple's intel mac.
44980
44981 2008-05-09 Robert Millan <rmh@aybabtu.com>
44982
44983 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44984 devices.
44985 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44986 (make_device_map): Likewise.
44987 Reported by Aurelien Jarno <aurel32@debian.org>
44988
44989 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44990
44991 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44992 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44993 (make_device_map): Output entries for xvd type disks.
44994
44995 2008-05-07 Robert Millan <rmh@aybabtu.com>
44996
44997 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44998 devices.
44999 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45000 (make_device_map): Likewise.
45001 Reported by Roland Dreier <rdreier@cisco.com>
45002
45003 2008-05-07 Robert Millan <rmh@aybabtu.com>
45004
45005 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45006 grub_strstr() call. Correct a few mistakes in failure path handling.
45007
45008 2008-05-06 Robert Millan <rmh@aybabtu.com>
45009
45010 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45011 Do not print a trailing slash (therefore, the root directory is an
45012 empty string).
45013 (convert_system_path_to_grub_path): Do not remove trailing slash
45014 from make_system_path_relative_to_its_root() output.
45015
45016 * util/i386/pc/grub-install.in: Add trailing slash to output from
45017 make_system_path_relative_to_its_root().
45018
45019 2008-05-06 Robert Millan <rmh@aybabtu.com>
45020
45021 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45022 ensures that output lines aren't intermangled with those sent to
45023 stderr (via grub_util_info()).
45024 * util/grub-probe.c (grub_refresh): Likewise.
45025 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45026
45027 2008-05-05 Christian Franke <franke@computer.org>
45028
45029 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45030 Add Cygwin device names.
45031 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45032 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45033 (check_device): Return error instead of success on empty name.
45034 (make_device_map): Move label inside linux specific code to
45035 prevent compiler warning.
45036
45037 2008-04-30 Robert Millan <rmh@aybabtu.com>
45038
45039 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45040 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45041 first boot option.
45042 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45043
45044 2008-04-29 Robert Millan <rmh@aybabtu.com>
45045
45046 * docs/grub.cfg: New file (example GRUB configuration).
45047
45048 2008-04-26 Robert Millan <rmh@aybabtu.com>
45049
45050 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45051 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45052 and `disk/ieee1275/nand.c'.
45053
45054 2008-04-25 Bean <bean123ch@gmail.com>
45055
45056 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45057 i386-linuxbios.
45058
45059 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45060 change the buffer size to 4096 for cdrom device.
45061
45062 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45063 and nand.mod.
45064 (_linux_mod_SOURCES): New variable.
45065 (_linux_mod_CFLAGS): Likewise.
45066 (_linux_mod_LDFLAGS): Likewise.
45067 (linux_mod_SOURCES): Likewise.
45068 (linux_mod_CFLAGS): Likewise.
45069 (linux_mod_LDFLAGS): Likewise.
45070 (nand_mod_SOURCES): Likewise.
45071 (nand_mod_CFLAGS): Likewise.
45072 (nand_mod_LDFLAGS): Likewise.
45073
45074 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45075 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45076 type property. (nand device in olpc don't have this property)
45077
45078 * include/grub/disk.h (grub_disk_dev_id): New macro
45079 GRUB_DISK_DEVICE_NAND_ID.
45080
45081 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45082 function prototype.
45083 (grub_rescue_cmd_initrd): Likewise.
45084
45085 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45086 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45087 ofw_cif_handler and ofw_idt, adjust padding number.
45088
45089 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45090 GRUB_MACHINE_IEEE1275 is defined.
45091
45092 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45093 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45094
45095 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45096 on nested function heap_init.
45097 (grub_upper_mem): New variable for i386-ieee1275.
45098 (grub_get_extended_memory): New function for i386-ieee1275.
45099 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45100
45101 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45102 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45103 property.
45104
45105 * loader/i386/ieee1275/linux.c: New file.
45106
45107 * loader/i386/ieee1275/linux_normal.c: New file.
45108
45109 * disk/ieee1275/nand.c: New file.
45110
45111 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45112
45113 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45114 value.
45115 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45116
45117 2008-04-18 Robert Millan <rmh@aybabtu.com>
45118
45119 Restructures early code path on ieee1275 to unify grub_main() as
45120 the first C function that is executed in every platform.
45121
45122 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45123 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45124 cmain().
45125 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45126 * kern/ieee1275/cmain.c (cmain): Rename to ...
45127 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45128 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45129 at the beginning.
45130
45131 2008-04-18 Robert Millan <rmh@aybabtu.com>
45132
45133 * util/update-grub.in: Fix syntax error when setting
45134 `GRUB_PRELOAD_MODULES'.
45135 Reported by Stephane Chazelas <stephane@artesyncp.com>
45136
45137 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45138
45139 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45140 section into account, newer toolchains generate unique build ids
45141 * configure.ac: remove the test for --build-id=none acceptance,
45142 we want build ids to be preserved
45143 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45144 far from other sections don't cause the raw binary images grow
45145 size
45146
45147 2008-04-15 Robert Millan <rmh@aybabtu.com>
45148
45149 * disk/lvm.c: Update copyright year.
45150 * kern/misc.c: Likewise.
45151
45152 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45153
45154 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45155 there is no memory left for physical volume name.
45156
45157 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45158
45159 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45160 volume name mapping to support bigger than 9 character names properly.
45161
45162 2008-04-13 Robert Millan <rmh@aybabtu.com>
45163
45164 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45165 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45166
45167 2008-04-13 Christian Franke <franke@computer.org>
45168
45169 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45170 to create a floppy emulation boot CD when non emulation mode
45171 does not work.
45172 Enable Joliet CD filesystem extension.
45173
45174 2008-04-13 Robert Millan <rmh@aybabtu.com>
45175
45176 * kern/misc.c (grub_strncat): Fix off-by-one error.
45177 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45178
45179 * kern/env.c (grub_env_context_close): Clear current context, not
45180 previous one.
45181 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45182
45183 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45184
45185 2008-04-13 Robert Millan <rmh@aybabtu.com>
45186
45187 Improve robustness when handling LVM.
45188
45189 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45190 (and leave `*p' unmodified).
45191 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45192 through it.
45193 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45194 iterating through it.
45195 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45196 through it.
45197 (grub_lvm_scan_device): Check the return value (and fail gracefully
45198 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45199 Don't assume `vg->pvs != NULL' when iterating through it.
45200
45201 2008-04-13 Robert Millan <rmh@aybabtu.com>
45202
45203 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45204 * genmk.rb (partmap): New variable.
45205 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45206 (#{partmap}): New target rule.
45207 * genpartmaplist.sh: New file.
45208 * Makefile.in (pkglib_DATA): Add partmap.lst.
45209 (partmap.lst): New target rule.
45210 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45211 modules (including all partition maps), instead of preloading them.
45212
45213 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45214
45215 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45216 `linux-boot-prober' (if installed) to detect other operating
45217 systems which are installed on the computer and add them to
45218 the boot menu.
45219 * conf/common.rmk: Build and install 30_os-prober.
45220
45221 2008-04-12 Robert Millan <rmh@aybabtu.com>
45222
45223 * kern/powerpc/ieee1275/init.c: Move from here ...
45224 * kern/ieee1275/init.c: ... to here. Update all users.
45225
45226 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45227 * kern/ieee1275/cmain.c: ... to here. Update all users.
45228
45229 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45230 * kern/ieee1275/openfw.c: ... to here. Update all users.
45231
45232 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45233 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45234
45235 2008-04-10 Pavel Roskin <proski@gnu.org>
45236
45237 * configure.ac: Always use "_cv_" in cache variables for
45238 compatibility with Autoconf 2.62.
45239
45240 2008-04-07 Robert Millan <rmh@aybabtu.com>
45241
45242 Revert grub/machine/init.h addition by Pavel (since it breaks on
45243 i386-ieee1275 and others):
45244 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45245 * util/powerpc/ieee1275/misc.c: Likewise.
45246
45247 2008-04-07 Robert Millan <rmh@aybabtu.com>
45248
45249 * util/grub-probe.c (probe): Improve error message.
45250
45251 2008-04-07 Robert Millan <rmh@aybabtu.com>
45252
45253 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45254 (this prevents the presence of a bogus entry from ruining the whole
45255 thing).
45256
45257 2008-04-06 Pavel Roskin <proski@gnu.org>
45258
45259 * util/biosdisk.c: Include grub/util/biosdisk.h.
45260 * util/grub-fstest.c (execute_command): Make static.
45261 * util/grub-mkdevicemap.c (check_device): Likewise.
45262 * util/i386/pc/misc.c: Include grub/machine/init.h.
45263 * util/powerpc/ieee1275/misc.c: Likewise.
45264 * util/lvm.c: Include grub/util/lvm.h.
45265 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45266 grub/cache.h.
45267 * util/raid.c: Include grub/util/raid.h.
45268 (grub_util_getdiskname): Make static.
45269
45270 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45271 grub_hostfs_fini(), as they are called from grub_init_all() and
45272 grub_fini_all() respectively. This fixes an infinite loop in
45273 grub-fstest due to double registration of hostfs.
45274 Reported by Christian Franke <Christian.Franke@t-online.de>
45275
45276 2008-04-05 Pavel Roskin <proski@gnu.org>
45277
45278 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45279 all 8 functions. Otherwise, probe function 0 only.
45280
45281 2008-04-04 Pavel Roskin <proski@gnu.org>
45282
45283 * commands/lspci.c (grub_lspci_iter): Print the bus number
45284 correctly.
45285
45286 * commands/lspci.c (grub_pci_classes): Fix typos.
45287 (grub_lspci_iter): Don't print func twice. Print vendor ID
45288 before device ID, as it's normally done.
45289
45290 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45291 Fix signedness warnings.
45292 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45293 Likewise.
45294 * util/ieee1275/get_disk_name.c: Include config.h so that
45295 _GNU_SOURCE is defined and getline() is declared. Mark an
45296 unused argument as such. Fix a signedness warning.
45297
45298 2008-04-02 Pavel Roskin <proski@gnu.org>
45299
45300 * genkernsyms.sh.in: Use more robust assignments for CC and
45301 srcdir. Quote srcdir.
45302 * gensymlist.sh.in: Likewise. Assert at the compile time that
45303 the symbol table is not empty.
45304
45305 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45306 * fs/cpio.c (grub_cpio_read): Likewise.
45307
45308 2008-04-01 Pavel Roskin <proski@gnu.org>
45309
45310 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45311 * disk/host.c (grub_host_open): Likewise.
45312 * disk/loopback.c (grub_loopback_open): Likewise.
45313 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45314 disk->id as in disk/host.c, not a multi-character constant.
45315
45316 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45317 later is obsolete, potentially dangerous and sets a bad example.
45318 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45319 * util/misc.c (grub_util_get_image_size): Likewise.
45320
45321 * disk/loopback.c (options): Improve help for "--partitions".
45322
45323 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45324 options to align them with the short options, e.g. "echo -e".
45325
45326 2008-03-31 Bean <bean123ch@gmail.com>
45327
45328 * video/reader/png.c (grub_png_data): New member is_16bit and
45329 image_data.
45330 (grub_png_decode_image_header): Detect 16 bit png image.
45331 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45332 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45333 (grub_video_reader_png): Release memory occupied by image_data.
45334
45335 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45336 4096 bytes.
45337 (grub_nfs_mount): Skip the test for sector per cluster.
45338
45339 * include/grub/ntfs.h (MAX_SPC): Removed.
45340
45341 2008-03-31 Bean <bean123ch@gmail.com>
45342
45343 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45344 (grub_probe_SOURCES): Add fs/afs.c.
45345 (grub_fstest_SOURCES): Likewise.
45346 (afs_mod_SOURCES): New variable.
45347 (afs_mod_CFLAGS): Likewise.
45348 (afs_mod_LDFLAGS): Likewise.
45349
45350 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45351 (grub_emu_SOURCES): Likewise.
45352
45353 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45354
45355 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45356
45357 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45358
45359 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45360
45361 * fs/afs.c: New file.
45362
45363 2008-03-30 Pavel Roskin <proski@gnu.org>
45364
45365 * disk/host.c: Include grub/misc.h to fix a warning.
45366 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45367 warnings about implicit declarations.
45368
45369 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45370 variable.
45371 * include/grub/i386/loader.h: Change declaration of
45372 grub_linux_boot() to match what grub_loader_set() expects.
45373 * util/getroot.c (grub_guess_root_device): Return const char* to
45374 fix a warning.
45375 * util/grub-probe.c (probe): Fix a warning about uninitialized
45376 abstraction_name variable.
45377 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45378 second argument as unused to fix a warning.
45379
45380 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45381 missing grub_error() call.
45382
45383 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45384 2.60 and newer uses it to define datadir.
45385
45386 * commands/sleep.c: Fix warning about implicit declaration.
45387 * disk/memdisk.c: Likewise.
45388 * loader/aout.c: Likewise.
45389 * loader/i386/bsd_normal.c: Likewise.
45390 * util/grub-probe.c: Likewise.
45391
45392 * commands/i386/cpuid.c (has_longmode): Make static.
45393 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45394 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45395
45396 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45397 GDT. This is more robust, as %ds can change.
45398 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45399 calling real_to_prot().
45400 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45401
45402 2008-03-28 Pavel Roskin <proski@gnu.org>
45403
45404 * kern/i386/pc/startup.S: Assert that uncompressed functions
45405 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45406 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45407 code, as they push parts of the code (error handlers) beyond
45408 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45409 code as correctness and size.
45410
45411 2008-03-28 Pavel Roskin <proski@gnu.org>
45412
45413 * kern/i386/pc/startup.S
45414 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45415 data block address to the real mode, keep offset minimal. This
45416 works around a bug in AWARD BIOS on old Athlon systems, which
45417 makes CD detection hang.
45418
45419 2008-03-26 Pavel Roskin <proski@gnu.org>
45420
45421 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45422 const.
45423 * include/grub/normal.h: Add grub_parse_color_name_pair()
45424 declaration.
45425
45426 2008-03-24 Bean <bean123ch@gmail.com>
45427
45428 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45429 (cd_count): Removed.
45430 (cd_drive): New variable.
45431 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45432 (grub_biosdisk_call_hook): Likewise.
45433 (grub_biosdisk_iterate): Change cdrom detection method.
45434 (grub_biosdisk_open): Replace cd_start with cd_drive.
45435 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45436 detect cdrom device.
45437
45438 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45439 Removed.
45440 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45441 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45442 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45443 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45444 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45445 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45446 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45447 (grub_biosdisk_cdrp): New structure.
45448 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45449
45450 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45451
45452 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45453 device.
45454
45455 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45456 New function.
45457
45458 2008-03-20 Robert Millan <rmh@aybabtu.com>
45459
45460 Remove 2 TiB limit in ata.mod.
45461 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45462 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45463 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45464 grub_uint64_t instead of grub_uint32_t.
45465
45466 2008-03-05 Bean <bean123ch@gmail.com>
45467
45468 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45469 (grub_multiboot): Set boot device.
45470
45471 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45472
45473 2008-03-02 Bean <bean123ch@gmail.com>
45474
45475 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45476 symlink_buffer.
45477
45478 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45479
45480 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45481 texinfo.tex.
45482
45483 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45484 modified.
45485
45486 * docs/fdl.texi: New file.
45487
45488 * docs/mdate-sh: New file. Copied from gnulib.
45489 * docs/texinfo.tex: Likewise.
45490
45491 * config.guess: Updated from gnulib.
45492 * install-sh: Likewise.
45493
45494 2008-02-28 Robert Millan <rmh@aybabtu.com>
45495
45496 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45497 (aout_mod_SOURCES): New variable.
45498 (aout_mod_CFLAGS): Likewise.
45499 (aout_mod_LDFLAGS): Likewise.
45500
45501 * conf/i386-ieee1275.rmk: Likewise.
45502
45503 2008-02-28 Robert Millan <rmh@aybabtu.com>
45504
45505 * util/update-grub.in: Reorganise terminal validity check. Accept
45506 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45507 Based on suggestion by Franklin PIAT.
45508
45509 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45510
45511 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45512 function.
45513 * util/getroot.c (grub_util_check_block_device): New function that
45514 returns the given argument if it is a block device and returns NULL else.
45515 * util/grub-probe.c (argument_is_device): New variable.
45516 (probe): Promote device_name from a variable to an argument. Receive
45517 device_name from grub_util_check_block_device() if path is NULL and from
45518 grub_guess_root_device() else. Do not free() device_name anymore.
45519 (options): Introduce new parameter '-d, --device'.
45520 (main): Add description of the new parameter to the help screen.
45521 Rename path variable to argument. Set argument_is_device if the '-d'
45522 option is given. Pass argument to probe() depending on
45523 argument_is_device.
45524
45525 2008-02-24 Bean <bean123ch@gmail.com>
45526
45527 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45528 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45529 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45530 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45531 (GRUB_ISO9660_VOLDESC_END): Likewise.
45532 (grub_iso9660_primary_voldesc): New member escape.
45533 (grub_iso9660_data): New member joliet.
45534 (grub_iso9660_convert_string): New function.
45535 (grub_iso9660_mount): Detect joliet extension.
45536 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45537 (grub_iso9660_iso9660_label): Likewise.
45538
45539 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45540 (grub_setup_SOURCES): Add fs/udf.c.
45541 (grub_fstest_SOURCES): Likewise.
45542 (udf_mod_SOURCES): New variable.
45543 (udf_mod_CFLAGS): Likewise.
45544 (udf_mod_LDFLAGS): Likewise.
45545
45546 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45547 (grub_emu_SOURCES): Likewise.
45548
45549 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45550
45551 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45552
45553 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45554
45555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45556
45557 * fs/udf.c: New file.
45558
45559 2008-02-24 Robert Millan <rmh@aybabtu.com>
45560
45561 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45562 (normal/lexer.c_DEPENDENCIES): New variables.
45563 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45564 (normal/lexer.c_DEPENDENCIES): Likewise.
45565 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45566 (normal/lexer.c_DEPENDENCIES): Likewise.
45567 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45568 (normal/lexer.c_DEPENDENCIES): Likewise.
45569 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45570 (normal/lexer.c_DEPENDENCIES): Likewise.
45571 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45572 (normal/lexer.c_DEPENDENCIES): Likewise.
45573
45574 2008-02-23 Robert Millan <rmh@aybabtu.com>
45575
45576 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45577 since they were intended to be in hex. This didn't break previously
45578 because of a bug in gpt_partition_map_iterate() (see below).
45579
45580 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45581 when checking the validity of GPT header.
45582 Remove `partno', since it always provides the same information as `i'.
45583
45584 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45585
45586 * include/grub/efi/time.h: Fix a wrong comment.
45587
45588 2008-02-19 Pavel Roskin <proski@gnu.org>
45589
45590 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45591 message.
45592
45593 2008-02-19 Bean <bean123ch@gmail.com>
45594
45595 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45596 (aout_mod_SOURCES): New variable.
45597 (aout_mod_CFLAGS): Likewise.
45598 (aout_mod_LDFLAGS): Likewise.
45599 (_bsd_mod_SOURCES): New variable.
45600 (_bsd_mod_CFLAGS): Likewise.
45601 (_bsd_mod_LDFLAGS): Likewise.
45602 (bsd_mod_SOURCES): New variable.
45603 (bsd_mod_CFLAGS): Likewise.
45604 (bsd_mod_LDFLAGS): Likewise.
45605
45606 * include/grub/aout.h: New file.
45607
45608 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45609
45610 * include/grub/i386/bsd.h: New file.
45611
45612 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45613 to make it public.
45614
45615 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45616 function is called, so that it's possible to change it inside the hook.
45617 (grub_elf64_load): Likewise.
45618 (grub_elf_file): Don't close the file if elf header is not found.
45619 (grub_elf_close): Close the file if grub_elf_file fails (The new
45620 grub_elf_file won't close it).
45621 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45622 (grub_elf64_size): Likewise.
45623
45624 * kern/i386/loader.S (grub_unix_real_boot): New function.
45625
45626 * loader/aout.c: New file.
45627
45628 * loader/i386/bsd.c: New file.
45629
45630 * loader/i386/bsd_normal.c: New file.
45631
45632 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45633
45634 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45635 can test other formats.
45636
45637 2008-02-19 Robert Millan <rmh@aybabtu.com>
45638
45639 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45640 (grub_gpt_partition_type_empty): Redefine with macro from
45641 `<grub/gpt_partition.h>'.
45642 (gpt_partition_map_iterate): Adjust partition type comparison.
45643
45644 Export `entry' as partmap-specific `part.data' struct.
45645 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45646
45647 * include/grub/gpt_partition.h (grub_gpt_header)
45648 (grub_gpt_partentry): ... to here (new file).
45649
45650 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45651
45652 (grub_gpt_partition_type_bios_boot): New const variable, defined
45653 with macro from `<grub/gpt_partition.h>'.
45654
45655 (setup): Replace `first_start' with `embed_region', which keeps
45656 track of the embed region (and is partmap-agnostic).
45657
45658 Replace find_first_partition_start() with find_usable_region(),
45659 which finds a usable region for embedding using partmap-specific
45660 knowledge (supports PC/MSDOS and GPT).
45661
45662 Fix all assumptions that the embed region start at sector 1, using
45663 `embed_region.start' from now on. Similarly, use `embed_region.end'
45664 rather than `first_start' to calculate available size.
45665
45666 In grub_util_info() message, replace "into after the MBR" with an
45667 indication of the specific sector our embed region starts at.
45668
45669 2008-02-19 Robert Millan <rmh@aybabtu.com>
45670
45671 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45672 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45673 `commands/reboot.c'.
45674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45675 (halt_mod_SOURCES): Likewise.
45676 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45677 (halt_mod_SOURCES): Likewise.
45678
45679 2008-02-17 Christian Franke <franke@computer.org>
45680
45681 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45682
45683 2008-02-17 Robert Millan <rmh@aybabtu.com>
45684
45685 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45686 set `first_start' to 0 for non-PC/MSDOS partition maps.
45687
45688 2008-02-16 Robert Millan <rmh@aybabtu.com>
45689
45690 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45691 do not assume partition map is PC/MSDOS before performing checks that
45692 are specific to that layout.
45693
45694 2008-02-13 Robert Millan <rmh@aybabtu.com>
45695
45696 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45697 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45698 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45699
45700 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45701
45702 * configure.ac: Only a cosmetic change on the handling of
45703 -fno-stack-protector.
45704
45705 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45706
45707 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45708 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45709 reboot.c.
45710 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45711 (halt_mod_SOURCES): New variable.
45712 (halt_mod_CFLAGS): Likewise.
45713 (halt_mod_LDFLAGS): Likewise.
45714 (reboot_mod_SOURCES): Likewise.
45715 (reboot_mod_CFLAGS): Likewise.
45716 (reboot_mod_LDFLAGS): Likewise.
45717
45718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45719 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45720 reboot.c.
45721 (halt_mod_SOURCES): Likewise.
45722 (reboot_mod_SOURCES): Likewise.
45723
45724 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45725 commands/i386/pc/reboot.c by commands/reboot.c.
45726 (reboot_mod_SOURCES): Likewise.
45727
45728 * commands/i386/pc/reboot.c: merge this file ...
45729
45730 * commands/ieee1275/reboot.c: ... and this file ...
45731
45732 * commands/reboot.c: ... to this file.
45733 Add some precompiler directive to include the correct header for
45734 each machine.
45735
45736 * commands/ieee1275/halt.c: move this file ...
45737
45738 * commands/halt.c: ... to here.
45739 Add some precompiler directive to include the correct header for
45740 each machine.
45741
45742 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45743 (grub_halt): Likewise.
45744
45745 * kern/efi/efi.c (grub_reboot): New function.
45746 (grub_halt): Likewise.
45747
45748 2008-02-12 Robert Millan <rmh@aybabtu.com>
45749
45750 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45751 /dev (like it is done for /dev/mapper). This doesn't provide support
45752 for EVMS, but at least it is now easy to identify the problem when it
45753 arises.
45754
45755 2008-02-11 Robert Millan <rmh@aybabtu.com>
45756
45757 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45758 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45759 comparing it with -1, not 0.
45760
45761 2008-02-10 Robert Millan <rmh@aybabtu.com>
45762
45763 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45764 `disk/lvm.c'.
45765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45766 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45767
45768 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45769 `disk/lvm.c' to the end of the list.
45770 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45771 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45772
45773 2008-02-10 Robert Millan <rmh@aybabtu.com>
45774
45775 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45776 grub_print_error() instead. This will let user know why we're entering
45777 rescue mode.
45778 Based on suggestions from Sam Morris.
45779
45780 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45781
45782 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45783 on remaining N args, instead of "--" arg N times.
45784
45785 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45786
45787 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45788 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45789 pattern for unknown glyphs.
45790
45791 2008-02-09 Robert Millan <rmh@aybabtu.com>
45792
45793 * configure.ac: Probe for `help2man'.
45794 * Makefile.in (builddir): New variable.
45795 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45796 or otherwise add a few flags/options to it.
45797 (install-local): For every executable utility or script that is
45798 installed, invoke $(HELP2MAN) to install a manpage based on --help
45799 output.
45800
45801 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45802 that it doesn't prevent --help from working in build tree.
45803
45804 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45805 with `bug-grub@gnu.org'.
45806 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45807 * util/update-grub.in (usage): New function.
45808 Implement proper argument check, with support for --help and --version
45809 (as well as existing -y).
45810
45811 2008-02-09 Christian Franke <franke@computer.org>
45812
45813 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45814 avoid overwriting previous output.
45815 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45816
45817 2008-02-09 Robert Millan <rmh@aybabtu.com>
45818
45819 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45820 drawing the menu.
45821
45822 2008-02-09 Robert Millan <rmh@aybabtu.com>
45823
45824 * commands/sleep.c: New file.
45825 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45826 (sleep_mod_SOURCES): New variable.
45827 (sleep_mod_CFLAGS): Likewise.
45828 (sleep_mod_LDFLAGS): Likewise.
45829
45830 2008-02-09 Robert Millan <rmh@aybabtu.com>
45831
45832 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45833 situations in which we can deduce the RAID size and the superblock
45834 doesn't match it.
45835
45836 2008-02-09 Robert Millan <rmh@aybabtu.com>
45837
45838 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45839 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45840 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45841
45842 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45843 and return a grub_diskmemberlist_t composed of physical array members.
45844 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45845
45846 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45847 prototype.
45848 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45849 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45850 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45851
45852 * util/grub-probe.c (probe): Move partmap probing code from here ...
45853 (probe_partmap): ... to here.
45854 (probe): Use probe_partmap() once for the disk we're probing, and
45855 additionally, when such disk contains a memberlist() struct member,
45856 once for each disk that is contained in the structure returned by
45857 memberlist().
45858
45859 2008-02-09 Robert Millan <rmh@aybabtu.com>
45860
45861 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45862 environment variable to 'all' in order to obtain debug output from
45863 non-util/ code.
45864 * util/i386/pc/grub-setup.c (main): Likewise.
45865
45866 2008-02-08 Robert Millan <rmh@aybabtu.com>
45867
45868 * disk/raid.c (grub_raid_scan_device): Check for
45869 `array->device[sb.this_disk.number]' rather than for
45870 `array->device[sb.this_disk.number]->name', since the latter is not
45871 guaranteed to be accessible.
45872
45873 2008-02-08 Robert Millan <rmh@aybabtu.com>
45874
45875 * disk/raid.c: Update copyright.
45876 * fs/cpio.c: Likewise.
45877 * include/grub/raid.h: Likewise.
45878 * loader/i386/pc/multiboot.c: Likewise.
45879 * util/hostfs.c: Likewise.
45880
45881 2008-02-08 Robert Millan <rmh@aybabtu.com>
45882
45883 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45884 to a grub_disk_t array.
45885 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45886 `device[x]'.
45887 (grub_raid_scan_device): Replace `device[x].name' accesses with
45888 `device[x]->name'. Simplify initialization of `array->device[x]'.
45889
45890 2008-02-08 Robert Millan <rmh@aybabtu.com>
45891
45892 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45893 grub_dprintf() calls.
45894 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45895 error message.
45896
45897 2008-02-07 Christian Franke <franke@computer.org>
45898
45899 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45900 instead of fseek and ftell to support large files.
45901 (grub_hostfs_read): Likewise.
45902
45903 2008-02-07 Robert Millan <rmh@aybabtu.com>
45904
45905 Patch from Jeroen Dekkers.
45906 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45907 failure, since successfully reading all array members might not be
45908 required.
45909
45910 2008-02-06 Robert Millan <rmh@aybabtu.com>
45911
45912 * util/grub-probe.c (probe): Simplify partmap probing (with the
45913 assumption that the first word up to the underscore equals to
45914 the module name).
45915
45916 2008-02-06 Christian Franke <franke@computer.org>
45917
45918 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45919 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45920 last block of a cpio or tar stream.
45921 Check for "TRAILER!!!" instead of any empty data
45922 block to detect last block of a cpio stream.
45923 (grub_cpio_dir): Fix constness of variable np.
45924 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45925 cpio or tar trailer is detected. This fixes a crash
45926 on open of a non existing file.
45927
45928 2008-02-05 Bean <bean123ch@gmail.com>
45929
45930 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45931 address of entry.
45932 (grub_multiboot_load_elf64): Likewise.
45933 (grub_multiboot): Initialize mbi structure.
45934
45935 * util/grub-fstest.c: Don't include unused header file script.h.
45936
45937 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45938 of file.
45939 (grub_fstest_SOURCES): Likewise.
45940
45941 2008-02-05 Robert Millan <rmh@aybabtu.com>
45942
45943 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45944 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45945 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45946 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45947
45948 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45949 (translation_table): Replace hardcoded values with macros
45950 provided by `<grub/term.h>'.
45951
45952 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45953 (keyboard_map): Correct/add a few values, with macros provided
45954 by `<grub/term.h>'.
45955 (keyboard_map_shift): Zero values that don't differ from their
45956 `keyboard_map' equivalents.
45957 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45958 Discard the second scan code that is always sent by Caps lock.
45959 Only use `keyboard_map_shift' when it provides a non-zero value,
45960 otherwise fallback to `keyboard_map'.
45961
45962 2008-02-04 Bean <bean123ch@gmail.com>
45963
45964 * Makefile.in (enable_grub_fstest): New variable.
45965
45966 * conf/common.rmk (grub_fstest_init.lst): New rule.
45967 (grub_fstest_init.h): Likewise.
45968 (grub_fstest_init.c): Likewise.
45969 (util/grub-fstest.c_DEPENDENCIES): New variable.
45970 (grub_fstest_SOURCES): Likewise.
45971
45972 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45973
45974 * util/grub-fstest.c: New file.
45975
45976 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45977
45978 Make grub-setup handle a separate root device.
45979
45980 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45981 so that the root device can be compared with the destination
45982 device.
45983 When embedding the core image, if the root and destination devices
45984 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45985 0xFF.
45986 When not embedding, set ROOT_DRIVE to 0xFF.
45987
45988 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45989
45990 Add support for having a grub directory in a different drive. This
45991 is still only the data handling part.
45992
45993 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45994 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45995 (grub_root_drive): New variable.
45996
45997 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45998 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45999 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46000 as it was.
46001
46002 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46003
46004 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46005 macro.
46006 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46007
46008 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46009 is bogus, because PXE booting does not specify any drive
46010 correctly.
46011
46012 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46013 am not sure if this is really correct.
46014
46015 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46016 is always identical to the boot drive when booting from a CD.
46017
46018 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46019 longer.
46020 (root_drive): New variable.
46021 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46022 (setup_sectors): Push %dx right after popping it, because %dh will
46023 be modified later.
46024 (copy_buffer): Restore %dx.
46025
46026 2008-02-03 Robert Millan <rmh@aybabtu.com>
46027
46028 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46029 use `cdboot.img' for cdrom images.
46030
46031 2008-02-03 Robert Millan <rmh@aybabtu.com>
46032
46033 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46034 only setup gfxterm when `font' command has succeeded.
46035
46036 2008-02-03 Robert Millan <rmh@aybabtu.com>
46037
46038 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46039 (grub_rescue_cmd_multiboot_loader)
46040 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46041
46042 2008-02-03 Pavel Roskin <proski@gnu.org>
46043
46044 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46045 %edx and %esi from stack only after grub_gate_a20() is called.
46046 grub_gate_a20() clobbers %edx.
46047
46048 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46049
46050 * configure.ac (AC_INIT): Bumped to 1.96.
46051
46052 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46053 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46054 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46055 video/readers/png.c.
46056
46057 2008-02-03 Bean <bean123ch@gmail.com>
46058
46059 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46060 (cdboot_img_SOURCES): New variable.
46061 (cdboot_img_ASFLAGS): New variable.
46062 (cdboot_img_LDFLAGS): New variable.
46063
46064 * boot/i386/pc/cdboot.S: New file.
46065
46066 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46067 (cd_count): Likewise.
46068 (grub_biosdisk_get_drive): Add support for cd device.
46069 (grub_biosdisk_call_hook): Likewise.
46070 (grub_biosdisk_iterate): Likewise.
46071 (grub_biosdisk_open): Likewise.
46072 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46073 (grub_biosdisk_rw): Support reading from cd device.
46074 (GRUB_MOD_INIT): Iterate cd devices.
46075
46076 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46077 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46078 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46079
46080 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46081
46082 2008-02-02 Robert Millan <rmh@aybabtu.com>
46083
46084 * commands/read.c: New file.
46085 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46086 (read_mod_SOURCES): New variable.
46087 (read_mod_CFLAGS): Likewise.
46088 (read_mod_LDFLAGS): Likewise.
46089
46090 2008-02-02 Robert Millan <rmh@aybabtu.com>
46091
46092 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46093 determining whether menu has to be displayed.
46094
46095 2008-02-02 Marco Gerards <marco@gnu.org>
46096
46097 * bus/pci.c: New file.
46098
46099 * include/grub/pci.h: Likewise.
46100
46101 * include/grub/i386/pc/pci.h: Likewise.
46102
46103 * commands/lspci.c: Likewise.
46104
46105 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46106 `lspci.mod'.
46107 (pci_mod_SOURCES): New variable.
46108 (pci_mod_CFLAGS): Likewise.
46109 (pci_mod_LDFLAGS): Likewise.
46110 (lspci_mod_SOURCES): Likewise.
46111 (lspci_mod_CFLAGS): Likewise.
46112 (lspci_mod_LDFLAGS): Likewise.
46113
46114 2008-02-02 Bean <bean123ch@gmail.com>
46115
46116 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46117 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46118
46119 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46120 (grub_xfs_btree_node): New structure.
46121 (grub_xfs_btree_root): New structure.
46122 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46123 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46124 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46125 (GRUB_XFS_EXTENT_SIZE): Likewise.
46126 (grub_xfs_read_block): Support btree format type.
46127 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46128 Use directory block as basic unit.
46129
46130 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46131
46132 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46133 __attribute__ ((__regparm__ (1))).
46134
46135 2008-02-01 Robert Millan <rmh@aybabtu.com>
46136
46137 Correct a mistake in previous commit.
46138
46139 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46140 top.
46141 (normal/command.c_DEPENDENCIES): New variable.
46142
46143 2008-02-01 Robert Millan <rmh@aybabtu.com>
46144
46145 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46146 top.
46147 (normal/command.c_DEPENDENCIES): New variable.
46148 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46149 * conf/i386-ieee1275.rmk: Likewise.
46150 * conf/i386-linuxbios.rmk: Likewise.
46151 * conf/i386-pc.rmk: Likewise.
46152 * conf/sparc64-ieee1275.rmk: Likewise.
46153 * conf/powerpc-ieee1275.rmk: Likewise.
46154 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46155
46156 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46157
46158 2008-02-01 Robert Millan <rmh@aybabtu.com>
46159
46160 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46161 call at beginning of function.
46162
46163 2008-01-31 Pavel Roskin <proski@gnu.org>
46164
46165 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46166 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46167 (grub_mkrescue_SOURCES): Likewise.
46168 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46169
46170 2008-01-30 Robert Millan <rmh@aybabtu.com>
46171
46172 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46173 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46174 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46175 (grub_probe_SOURCES): ... to here.
46176
46177 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46178 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46179 * conf/i386-ieee1275.rmk: Likewise.
46180 * conf/i386-linuxbios.rmk: Likewise.
46181 * conf/powerpc-ieee1275.rmk: Likewise.
46182
46183 2008-01-30 Tristan Gingold <gingold@free.fr>
46184
46185 * kern/rescue.c: Silently accept empty lines.
46186
46187 2008-01-29 Bean <bean123ch@gmail.com>
46188
46189 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46190 (real_code_2): Code cleanup and change comment style.
46191 (move_memory): Avoid using 32-bit address mode.
46192
46193 2008-01-29 Bean <bean123ch@gmail.com>
46194
46195 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46196 (png_mod_SOURCES): New variable.
46197 (png_mod_CFLAGS): Likewise.
46198 (png_mod_LDFLAGS): Likewise.
46199
46200 * video/readers/png.c: New file.
46201
46202 2008-01-28 Robert Millan <rmh@aybabtu.com>
46203
46204 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46205 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46206 `ifndef GRUB_MOD_GAP' hack.
46207 * util/elf/grub-mkimage.c (add_segments): Likewise.
46208
46209 2008-01-27 Robert Millan <rmh@aybabtu.com>
46210
46211 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46212 `GRUB_MOD_GAP' for platforms in which it's not defined.
46213 * util/elf/grub-mkimage.c (add_segments): Likewise.
46214
46215 2008-01-27 Robert Millan <rmh@aybabtu.com>
46216
46217 Get grub-emu to build again (including parallel builds).
46218
46219 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46220 Split into ...
46221 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46222 (normal/execute.c_DEPENDENCIES): ... this, ...
46223 (grub-emu_DEPENDENCIES): ... and this.
46224
46225 * conf/i386-efi.rmk: Likewise.
46226 * conf/i386-linuxbios.rmk: Likewise.
46227 * conf/i386-ieee1275.rmk: Likewise.
46228 * conf/powerpc-ieee1275.rmk: Likewise.
46229 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46230
46231 2008-01-27 Robert Millan <rmh@aybabtu.com>
46232
46233 * NEWS: Add a few items.
46234
46235 2008-01-27 Robert Millan <rmh@aybabtu.com>
46236
46237 Fix parallel builds with grub-emu. Based on earlier commit for
46238 grub-probe and grub-setup.
46239
46240 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46241 (util/grub-emu.c_DEPENDENCIES): ... this.
46242 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46243 (util/grub-emu.c_DEPENDENCIES): ... this.
46244 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46245 (util/grub-emu.c_DEPENDENCIES): ... this.
46246 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46247 (util/grub-emu.c_DEPENDENCIES): ... this.
46248 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46249 (util/grub-emu.c_DEPENDENCIES): ... this.
46250
46251 2008-01-27 Pavel Roskin <proski@gnu.org>
46252
46253 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46254 to create a gap between _end and the modules added to the image
46255 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46256 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46257 * util/elf/grub-mkimage.c (add_segments): Likewise.
46258
46259 2008-01-26 Pavel Roskin <proski@gnu.org>
46260
46261 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46262 just return an error.
46263
46264 2008-01-26 Bean <bean123ch@gmail.com>
46265
46266 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46267 (grub_reiserfs_get_item): Save offset of the next item.
46268 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46269
46270 2008-01-25 Robert Millan <rmh@aybabtu.com>
46271
46272 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46273 make all filesystem sources appear together (possibly fixing omissions
46274 while at it).
46275 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46276 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46277 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46279
46280 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46281 add `kern/file.c'.
46282 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46283 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46284 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46285 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46286
46287 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46288 (probe): Add a sanity check to make sure of our ability to read
46289 requested files when probing for filesystem type.
46290
46291 * genmk.rb: Update copyright year (2007).
46292
46293 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46294 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46295 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46296 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46297 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46298 : Remove function prototypes.
46299
46300 2008-01-25 Robert Millan <rmh@aybabtu.com>
46301
46302 Revert my previous commits (based on wrong assumption of how grub_errno
46303 works).
46304
46305 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46306 * kern/file.c (grub_file_open): Likewise.
46307
46308 2008-01-24 Pavel Roskin <proski@gnu.org>
46309
46310 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46311 that hang if GRUB tries to setup colors.
46312 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46313 colors for firmwares that don't support it.
46314 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46315 Recognize Open Hack'Ware, set flags to work around its
46316 limitations.
46317
46318 2008-01-24 Robert Millan <rmh@aybabtu.com>
46319
46320 * kern/file.c (grub_file_open): Do not account previous failures of
46321 unrelated functions when grub_errno is checked for.
46322 Reported by Oleg Strikov.
46323
46324 2008-01-24 Bean <bean123ch@gmail.com>
46325
46326 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46327 (grub_ufs_sblock): New member volume name.
46328 (grub_ufs_find_file): Fix string copy bug.
46329 (grub_ufs_label): Implement this function properly.
46330
46331 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46332 (grub_hfs_iterate_records): Use the correct file number for extents
46333 and catalog file. Fix problem in next index calculation.
46334 (grub_hfs_find_node): Replace recursive function call with loop.
46335 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46336
46337 2008-01-23 Robert Millan <rmh@aybabtu.com>
46338
46339 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46340 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46341 (grub_multiboot2_real_boot): New function prototype.
46342
46343 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46344 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46345
46346 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46347 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46348
46349 2008-01-23 Robert Millan <rmh@aybabtu.com>
46350
46351 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46352 #ifdef'ed out grub_printf().
46353
46354 2008-01-23 Robert Millan <rmh@aybabtu.com>
46355
46356 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46357 grub_dprintf calls, since they make "debug=all" mode unusable.
46358 (grub_console_checkkey): Likewise.
46359
46360 2008-01-23 Robert Millan <rmh@aybabtu.com>
46361
46362 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46363 `term/i386/pc/at_keyboard.c'.
46364 (pkglib_MODULES): Add `serial.mod'.
46365 (serial_mod_SOURCES): New variable.
46366 (serial_mod_CFLAGS): Likewise.
46367 (serial_mod_LDFLAGS): Likewise.
46368
46369 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46370 `<grub/powerpc/ieee1275/console.h>'.
46371 (grub_keyboard_controller_init): New function prototype.
46372 (grub_console_checkkey): Likewise.
46373 (grub_console_getkey): Likewise.
46374
46375 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46376 keyboard on i386.
46377
46378 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46379 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46380
46381 2008-01-23 Robert Millan <rmh@aybabtu.com>
46382
46383 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46384 present, "(memdisk)/boot/grub" becomes the default prefix.
46385
46386 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46387 a memdisk tarball with all the modules. Add --overlay=DIR option that
46388 allows users to overlay additional files into the image.
46389
46390 2008-01-23 Robert Millan <rmh@aybabtu.com>
46391
46392 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46393 and `machine/memory.h'.
46394 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46395 (_multiboot_mod_SOURCES): New variable.
46396 (_multiboot_mod_CFLAGS): Likewise.
46397 (_multiboot_mod_LDFLAGS): Likewise.
46398 (multiboot_mod_SOURCES): Likewise.
46399 (multiboot_mod_CFLAGS): Likewise.
46400 (multiboot_mod_LDFLAGS): Likewise.
46401
46402 * include/grub/i386/ieee1275/loader.h: New file.
46403
46404 * include/grub/i386/ieee1275/machine.h: Likewise.
46405
46406 * include/grub/i386/ieee1275/memory.h: Likewise.
46407
46408 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46409 variable declaration.
46410 (grub_os_area_size): Likewise.
46411
46412 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46413 (grub_lower_mem, grub_upper_mem): New variables.
46414 (grub_stop_floppy): New function (just to make
46415 grub_multiboot2_real_boot() happy).
46416
46417 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46418 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46419 (grub_stop): New function.
46420 Include `"../realmode.S"' and `"../loader.S"'.
46421
46422 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46423 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46424
46425 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46426 rely on grub_multiboot2_real_boot() for final boot.
46427
46428 2008-01-22 Robert Millan <rmh@aybabtu.com>
46429
46430 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46431 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46432 device that doesn't look like an SD card.
46433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46434 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46435 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46436 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46437 found.
46438
46439 2008-01-22 Robert Millan <rmh@aybabtu.com>
46440
46441 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46442 avoid claiming over our own code.
46443
46444 2008-01-22 Bean <bean123ch@gmail.com>
46445
46446 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46447 (jpeg_mod_SOURCES): New variable.
46448 (jpeg_mod_CFLAGS): Likewise.
46449 (jpeg_mod_LDFLAGS): Likewise.
46450
46451 * video/readers/jpeg.c : New file.
46452
46453 2008-01-22 Bean <bean123ch@gmail.com>
46454
46455 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46456 there are no more items.
46457
46458 2008-01-21 Robert Millan <rmh@aybabtu.com>
46459
46460 * kern/mm.c (grub_mm_init_region): Improve debug message.
46461
46462 2008-01-21 Robert Millan <rmh@aybabtu.com>
46463
46464 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46465 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46466 address.
46467 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46468 a C macro.
46469 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46470 Indicates start of upper memory.
46471 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46472 (generate_image): Abort when image size is big enough to corrupt
46473 upper memory.
46474
46475 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46476 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46477 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46478 instead of hardcoding 0xA0000.
46479 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46480 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46481 instead of hardcoding 0xA0000.
46482
46483 2008-01-21 Robert Millan <rmh@aybabtu.com>
46484
46485 * disk/memdisk.c (memdisk_size): New variable.
46486 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46487 `memdisk_size'.
46488 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46489 image to dynamic memory.
46490 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46491 `memdisk_size'. Free memdisk block.
46492
46493 2008-01-21 Robert Millan <rmh@aybabtu.com>
46494
46495 Fix detection of very small filesystems (like tar).
46496
46497 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46498 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46499 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46500 a problem with this disk).
46501
46502 2008-01-21 Robert Millan <rmh@aybabtu.com>
46503
46504 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46505 on grub_biosdisk_rw_standard() error.
46506
46507 2008-01-21 Robert Millan <rmh@aybabtu.com>
46508
46509 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46510 recent changes.
46511 * kern/elf.c: Likewise.
46512 * kern/ieee1275/ieee1275.c: Likewise.
46513 * kern/powerpc/ieee1275/openfw.c: Likewise.
46514 * term/ieee1275/ofconsole.c: Likewise.
46515
46516 2008-01-21 Robert Millan <rmh@aybabtu.com>
46517
46518 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46519
46520 * include/grub/kernel.h (grub_arch_memdisk_addr)
46521 (grub_arch_memdisk_size): Moved from here ...
46522
46523 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46524 (grub_arch_memdisk_size): ... to here.
46525
46526 2008-01-21 Robert Millan <rmh@aybabtu.com>
46527
46528 Mostly based on bugfix from Bean.
46529
46530 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46531 attribute with hook() parameter.
46532 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46533 declaration.
46534 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46535 attribute with hook() parameter.
46536 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46537 declaration.
46538
46539 2008-01-21 Robert Millan <rmh@aybabtu.com>
46540
46541 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46542 (pkglib_MODULES): Add `memdisk.mod'.
46543 (memdisk_mod_SOURCES): New variable.
46544 (memdisk_mod_CFLAGS): Likewise.
46545 (memdisk_mod_LDFLAGS): Likewise.
46546
46547 * disk/memdisk.c: New file.
46548
46549 * include/grub/disk.h (grub_disk_dev_id): Add
46550 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46551
46552 * include/grub/i386/pc/kernel.h
46553 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46554 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46555 (grub_kernel_image_size): New variable declaration.
46556 (grub_total_module_size): Likewise.
46557 (grub_memdisk_image_size): Likewise.
46558
46559 * include/grub/i386/pc/memory.h
46560 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46561
46562 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46563 (grub_arch_memdisk_addr): New variable declaration.
46564 (grub_arch_memdisk_size): Likewise.
46565
46566 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46567 (grub_arch_memdisk_size): Likewise.
46568
46569 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46570 (codestart): Replace hardcoded `0x100000' with
46571 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46572
46573 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46574 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46575 not NULL, append the contents of the file it refers to, at the end of
46576 the compressed kernel image. Initialize `grub_memdisk_image_size'
46577 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46578 (options): Add "memdisk"|'m' option.
46579 (main): Parse --memdisk|-m option, and pass user-provided path as
46580 parameter to generate_image().
46581
46582 2008-01-20 Robert Millan <rmh@aybabtu.com>
46583
46584 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46585 grub_dprintf() calls from here ...
46586 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46587
46588 2008-01-20 Robert Millan <rmh@aybabtu.com>
46589
46590 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46591
46592 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46593 declaration.
46594 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46595 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46596 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46597 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46598 property).
46599 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46600 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46601
46602 2008-01-19 Robert Millan <rmh@aybabtu.com>
46603
46604 Get rid of confusing function (superseded by
46605 `grub_ieee1275_get_integer_property')
46606 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46607 prototype.
46608 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46609 function.
46610 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46611 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46612 in native endianness from grub_ieee1275_get_integer_property().
46613
46614 2008-01-19 Robert Millan <rmh@aybabtu.com>
46615
46616 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46617 command after "shut-down", since implementations differ on which
46618 the command for halt is.
46619
46620 2008-01-19 Robert Millan <rmh@aybabtu.com>
46621
46622 * include/grub/i386/linuxbios/console.h: Add header protection.
46623 (grub_keyboard_controller_init): New function prototype.
46624 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46625 (KEYBOARD_COMMAND_READ): Likewise.
46626 (KEYBOARD_COMMAND_WRITE): Likewise.
46627 (KEYBOARD_SCANCODE_SET1): Likewise.
46628 (grub_keyboard_controller_write): New function.
46629 (grub_keyboard_controller_read): Likewise.
46630 (grub_keyboard_controller_init): Likewise.
46631
46632 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46633 (grub_console_init): On coreboot/LinuxBIOS, call
46634 grub_keyboard_controller_init().
46635
46636 2008-01-19 Robert Millan <rmh@aybabtu.com>
46637
46638 PowerPC changes provided by Pavel Roskin.
46639
46640 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46641 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46642 don't rely on cmain() doing it.
46643 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46644 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46645
46646 2008-01-16 Robert Millan <rmh@aybabtu.com>
46647
46648 * include/grub/i386/linuxbios/memory.h
46649 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46650 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46651 receive `table_header' as argument. Instead, probe for it in the
46652 known memory ranges where it can be present.
46653 (grub_available_iterate): Do not pass a fixed `table_header' address
46654 to grub_linuxbios_table_iterate().
46655
46656 2008-01-15 Robert Millan <rmh@aybabtu.com>
46657
46658 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46659 * conf/i386-ieee1275.rmk: New file.
46660 * include/grub/i386/ieee1275/console.h: Likewise.
46661 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46662 * include/grub/i386/ieee1275/kernel.h: Likewise.
46663 * include/grub/i386/ieee1275/time.h: Likewise.
46664 * kern/i386/ieee1275/init.c: Likewise.
46665 * kern/i386/ieee1275/startup.S: Likewise.
46666
46667 2008-01-15 Robert Millan <rmh@aybabtu.com>
46668
46669 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46670 when pointers are 32-bit (but still do set it to one when they are
46671 64-bit).
46672
46673 2008-01-15 Robert Millan <rmh@aybabtu.com>
46674
46675 * include/grub/ieee1275/ieee1275.h
46676 (grub_ieee1275_get_integer_property): New function prototype.
46677
46678 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46679 (grub_ieee1275_get_integer_property): New function. Wraps around
46680 grub_ieee1275_get_property() to handle endianness.
46681
46682 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46683 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46684 where appropriate.
46685 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46686 (grub_map): Likewise.
46687 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46688
46689 2008-01-15 Bean <bean123ch@gmail.com>
46690
46691 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46692 (grub_script_execute_cmdline): Reset grub_errno.
46693
46694 * normal/main.c (read_config_file): Reset grub_errno.
46695
46696 * normal/parse.y (script_init): New.
46697 (script): Move function and menuentry here.
46698 (delimiter): New.
46699 (command): Add delimiter at the end of command.
46700 (commands): Adjust to match the new command.
46701 (commandblock): Remove grub_script_lexer_record_start.
46702 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46703 (if): Use the new commands.
46704
46705 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46706
46707 2008-01-15 Robert Millan <rmh@aybabtu.com>
46708
46709 * normal/menu.c (run_menu): Move timeout message from here ...
46710 (print_timeout): ... to here.
46711 (run_menu): Use print_timeout() once during initial draw to print
46712 the whole message, and again in every clock tick to update only
46713 the number of seconds.
46714
46715 2008-01-15 Robert Millan <rmh@aybabtu.com>
46716
46717 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46718 actual size of `available' from grub_ieee1275_get_property(), and
46719 restrict parsing to that bound.
46720
46721 2008-01-15 Christian Franke <franke@computer.org>
46722
46723 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46724 (argp_program_version): Remove variable.
46725 (argp_program_bug_address): Likewise.
46726 (options): Convert from struct argp_option to struct option.
46727 (struct arguments): Remove.
46728 (parse_opt): Remove.
46729 (usage): New function.
46730 (main): Replace struct args members by simple variables.
46731 Replace argp_parse() by getopt_long().
46732 Add switch to evaluate options.
46733 Add missing "(...)" around root_dev in prefix string.
46734
46735 2008-01-14 Robert Millan <rmh@aybabtu.com>
46736
46737 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46738 for grub_ieee1275_exit(), in order to improve portability.
46739
46740 2008-01-14 Robert Millan <rmh@aybabtu.com>
46741
46742 * util/grub.d/10_linux.in (prefix): Define.
46743 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46744
46745 2008-01-13 Pavel Roskin <proski@gnu.org>
46746
46747 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46748 grub_errno if no errors have been detected.
46749
46750 2008-01-12 Robert Millan <rmh@aybabtu.com>
46751
46752 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46753 (grub_util_get_dev_abstraction): New function prototype.
46754
46755 * util/getroot.c: Include `<grub/util/getroot.h>'
46756 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46757 (grub_util_get_dev_abstraction): ... here (new function).
46758
46759 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46760 `PRINT_ABSTRACTION'.
46761 (probe): Probe for abstraction type when requested.
46762 (main): Understand `--target=abstraction'.
46763
46764 * util/i386/efi/grub-install.in: Add abstraction module to core
46765 image when it is found to be necessary.
46766 * util/i386/pc/grub-install.in: Likewise.
46767 * util/powerpc/ieee1275/grub-install.in: Likewise.
46768
46769 * util/update-grub_lib.in (font_path): Return system path without
46770 converting to GRUB path.
46771 * util/update-grub.in: Convert system path returned by font_path()
46772 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46773 abstraction module is needed for loading fonts (if any). Export
46774 that as `GRUB_PRELOAD_MODULES'.
46775 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46776 insmod commands).
46777
46778 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46779
46780 Remove some unused code from reiserfs.
46781
46782 * fs/reiserfs.c (struct grub_reiserfs_key)
46783 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46784 (struct grub_reiserfs_node_body): Removed.
46785 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46786 Likewise.
46787 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46788 Likewise.
46789 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46790 Likewise.
46791 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46792 Likewise.
46793 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46794 Likewise.
46795 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46796 Likewise.
46797 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46798 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46799 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46800
46801 2008-01-10 Robert Millan <rmh@aybabtu.com>
46802
46803 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46804 Determines if a file is garbage left by packaging systems, etc.
46805 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46806 for processing /etc/grub.d scripts.
46807 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46808 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46809 as a condition for processing Linux images.
46810
46811 2008-01-10 Pavel Roskin <proski@gnu.org>
46812
46813 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46814 to compile reiserfs.c on PowerPC.
46815
46816 2008-01-10 Robert Millan <rmh@aybabtu.com>
46817
46818 * kern/device.c (grub_device_iterate): Do not abort device iteration
46819 when one of the devices cannot be opened.
46820 * kern/disk.c (grub_disk_open): Do not account previous failures of
46821 unrelated functions when grub_errno is checked for.
46822
46823 2008-01-08 Robert Millan <rmh@aybabtu.com>
46824
46825 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46826 `! grub_linux_is_bzimage', change order of address comparison to make
46827 it more intuitive, and improve "too big zImage" error message.
46828
46829 2008-01-08 Robert Millan <rmh@aybabtu.com>
46830
46831 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46832 `$(update-grub_DATA)'.
46833 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46834 targets.
46835
46836 2008-01-07 Robert Millan <rmh@aybabtu.com>
46837
46838 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46839 which instruction is modified by grub-setup during installation
46840 (since it wasn't obvious by only looking at this file).
46841
46842 2008-01-07 Robert Millan <rmh@aybabtu.com>
46843
46844 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46845 listing actual TODO items.
46846
46847 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46848
46849 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46850 correctly.
46851 (grub_reiserfs_get_key_offset): Likewise.
46852 (grub_reiserfs_set_key_offset): Likewise.
46853 (grub_reiserfs_set_key_type): Likewise.
46854 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46855
46856 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46857 better to remove the bitfield version completely.
46858
46859 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46860
46861 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46862 allocated from the heap, due to the fshelp implementation.
46863 (grub_reiserfs_dir): Free NODE, due to the same reason.
46864
46865 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46866
46867 Mostly from Vincent Pelletier:
46868
46869 * fs/reiserfs.c: New file.
46870
46871 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46872 (reiserfs_mod_SOURCES): New variable.
46873 (reiserfs_mod_CFLAGS): Likewise.
46874 (reiserfs_mod_LDFLAGS): Likewise.
46875
46876 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46877 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46878 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46879 normal/color.c.
46880
46881 2008-01-06 Robert Millan <rmh@aybabtu.com>
46882
46883 * normal/color.c: Remove `<grub/env.h>'.
46884
46885 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46886
46887 * include/grub/normal.h: Include <grub/env.h>.
46888
46889 2008-01-05 Robert Millan <rmh@aybabtu.com>
46890
46891 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46892 usage example with `(hd0,1)'.
46893 Reported by Samuel Thibault.
46894
46895 2008-01-05 Robert Millan <rmh@aybabtu.com>
46896
46897 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46898 (grub_linux_boot_zimage): Rename to ...
46899 (grub_linux_boot): ... this.
46900 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46901 (grub_linux_boot_zimage): Conditionalize zImage copy.
46902
46903 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46904 (grub_linux_boot_bzimage): Remove prototype.
46905 (grub_linux_boot_zimage): Rename to ...
46906 (grub_linux_boot): ... this.
46907
46908 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46909 (grub_linux_boot): Remove function.
46910
46911 2008-01-05 Robert Millan <rmh@aybabtu.com>
46912
46913 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46914 (grub_env_write_color_highlight): Likewise.
46915 (grub_wait_after_message): Likewise.
46916
46917 * normal/color.c: New file.
46918
46919 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46920 (normal_mod_DEPENDENCIES): Likewise.
46921
46922 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46923 (normal_mod_DEPENDENCIES): Likewise.
46924
46925 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46926 (normal_mod_DEPENDENCIES): Likewise.
46927
46928 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46929 (normal_mod_DEPENDENCIES): Likewise.
46930
46931 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46932 for waiting after a message is printed.
46933 * normal/main.c (read_config_file): Likewise.
46934 (grub_normal_init): Register grub_env_write_color_normal() and
46935 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46936 `color_highlight' variables as global.
46937
46938 * normal/menu.c (grub_wait_after_message): New function.
46939 (grub_color_menu_normal): New variable. Replaces ...
46940 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46941 (grub_color_menu_highlight): New variable. Replaces ...
46942 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46943 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46944 `GRUB_TERM_COLOR_STANDARD'.
46945 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46946 `normal_code' and `highlight_code' to `old_color_normal' and
46947 `old_color_highlight', respectively.
46948 (grub_menu_init_page): Update colors when drawing the menu, based on
46949 `menu_color_normal' and `menu_color_highlight' variables.
46950 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46951 a message is printed.
46952
46953 2008-01-05 Robert Millan <rmh@aybabtu.com>
46954
46955 * kern/env.c (grub_env_context_open): Propagate hooks for global
46956 variables to new context.
46957
46958 * kern/main.c (grub_set_root_dev): Export `root' variable.
46959
46960 2008-01-05 Robert Millan <rmh@aybabtu.com>
46961
46962 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46963 discs unconditionally, since udev and others have options to provide
46964 them.
46965
46966 2008-01-05 Robert Millan <rmh@aybabtu.com>
46967
46968 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46969
46970 2008-01-04 Christian Franke <franke@computer.org>
46971
46972 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46973 of eisa_mmap.
46974
46975 2008-01-03 Pavel Roskin <proski@gnu.org>
46976
46977 * kern/i386/linuxbios/init.c: Put "void" to all function
46978 declarations with no arguments.
46979 * kern/powerpc/ieee1275/init.c: Likewise.
46980 * term/i386/pc/at_keyboard.c: Likewise.
46981 * term/i386/pc/vga_text.c: Likewise.
46982 * util/grub-mkdevicemap.c: Likewise.
46983
46984 2008-01-02 Robert Millan <rmh@aybabtu.com>
46985
46986 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46987 message when loaded image is out of bounds.
46988 (grub_multiboot_load_elf64): Likewise.
46989
46990 2008-01-02 Pavel Roskin <proski@gnu.org>
46991
46992 * util/grub.d/10_linux.in: Try version without ".old" when
46993 looking for initrd. It's better to use initrd from the newer
46994 kernel of the same version than no initrd at all.
46995
46996 2008-01-01 Robert Millan <rmh@aybabtu.com>
46997
46998 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46999
47000 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47001
47002 * include/grub/video.h: Added grub_video_unmap_color and
47003 grub_video_get_active_render_target.
47004 (grub_video_adapter): Added unmap_color and get_active_render_target.
47005
47006 * video/video.c: Added grub_video_unmap_color and
47007 grub_video_get_active_render_target.
47008 (grub_video_get_info): Changed method to accept NULL pointer as an
47009 argument to allow detection of active video adapter.
47010
47011 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47012 grub_video_vbe_unmap_color_int.
47013 Added grub_video_vbe_unmap_color and
47014 grub_video_vbe_get_active_render_target.
47015 (grub_video_vbe_adapter): Added unmap_color and
47016 get_active_render_target.
47017
47018 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47019 with grub_video_vbe_unmap_color_int.
47020
47021 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47022 (DEFAULT_NORMAL_COLOR): Likewise.
47023 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47024 (DEFAULT_FG_COLOR): Removed.
47025 (DEFAULT_BG_COLOR): Likewise.
47026 (DEFAULT_CURSOR_COLOR): Changed value.
47027 (grub_virtual_screen): Added standard_color_setting,
47028 normal_color_setting, highlight_color_setting and term_color.
47029 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47030 (bitmap_width): Added.
47031 (bitmap_height): Likewise.
47032 (bitmap): Likewise.
47033 (set_term_color): Likewise.
47034 (grub_virtual_screen_setup): Changed to use new terminal coloring
47035 settings.
47036 (grub_gfxterm_init): Added init for bitmap.
47037 (grub_gfxterm_fini): Added destroy for bitmap.
47038 (redraw_screen_rect): Updated to use background bitmap and new
47039 terminal coloring.
47040 (scroll_up): Added optimization for case when there is no bitmap.
47041 (grub_gfxterm_cls): Fixed to use correct background color.
47042 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47043 coloring.
47044 (grub_virtual_screen_setcolor): Likewise.
47045 (grub_virtual_screen_getcolor): Added.
47046 (grub_gfxterm_background_image_cmd): Likewise.
47047 (grub_video_term): Added setcolor and getcolor.
47048 (MOD_INIT): Added registration of background_image command.
47049 (MOD_TERM): Added unregistration for background_image command.
47050
47051 2007-12-30 Pavel Roskin <proski@gnu.org>
47052
47053 * loader/multiboot_loader.c: Fix multiboot command
47054 unregistration. Fix all typos in the word "multiboot".
47055
47056 2007-12-29 Pavel Roskin <proski@gnu.org>
47057
47058 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47059 support for initrd names used in Fedora.
47060
47061 2007-12-26 Bean <bean123ch@gmail.com>
47062
47063 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47064 (cpio_mod_SOURCES): New variable.
47065 (cpio_mod_CFLAGS): Likewise.
47066 (cpio_mod_LDFLAGS): Likewise.
47067
47068 * fs/cpio.c: New file.
47069
47070 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47071
47072 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47073
47074 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47075
47076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47077
47078 2007-12-25 Robert Millan <rmh@aybabtu.com>
47079
47080 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47081 (grub_getcolor): New function.
47082
47083 * kern/term.c (grub_getcolor): New function.
47084 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47085 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47086 (print_entry): Set normal and highlight colors to
47087 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47088 respectively, before printing and restore them to old
47089 values afterwards.
47090 (grub_menu_init_page): Likewise. Fill an additional colored space
47091 that would otherwise be left blank.
47092
47093 * term/efi/console.c (grub_console_getcolor): New function.
47094 (struct grub_console_term.getcolor): New variable.
47095 * term/i386/pc/console.c (grub_console_getcolor): New function.
47096 (struct grub_console_term.getcolor): New variable.
47097 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47098 (struct grub_console_term.getcolor): New variable.
47099
47100 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47101 (struct grub_console_term.setcolor): Remove variable.
47102 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47103 (struct grub_console_term.setcolor): Remove variable.
47104 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47105 (struct grub_console_term.setcolor): Remove variable.
47106 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47107 (struct grub_console_term.setcolor): Remove variable.
47108
47109 2007-12-25 Robert Millan <rmh@aybabtu.com>
47110
47111 * configure.ac: Search for possible unifont.hex locations, and
47112 define UNIFONT_HEX if found.
47113
47114 * Makefile.in (UNIFONT_HEX): Define variable.
47115 (DATA): Rename to ...
47116 (PKGLIB): ... this. Update all users.
47117 (PKGDATA): New variable.
47118 (pkgdata_IMAGES): Rename to ...
47119 (pkglib_IMAGES): ... this. Update all users.
47120 (pkgdata_MODULES): Rename to ...
47121 (pkglib_MODULES): ... this. Update all users.
47122 (pkgdata_PROGRAMS): Rename to ...
47123 (pkglib_PROGRAMS): ... this. Update all users.
47124 (pkgdata_DATA): Rename to ...
47125 (pkglib_DATA): ... this. Update all users.
47126 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47127 (unicode.pff, ascii.pff): New rules.
47128 (all-local): Add `$(PKGDATA)' dependency.
47129 (install-local): Process `$(PKGDATA)'.
47130
47131 * util/update-grub_lib.in (font_path): Search for *.pff files in
47132 a few more locations, including `${pkgdata}'.
47133
47134 2007-12-23 Robert Millan <rmh@aybabtu.com>
47135
47136 Patch from Bean <bean123ch@gmail.com>:
47137 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47138 `size'.
47139
47140 2007-12-21 Bean <bean123ch@gmail.com>
47141
47142 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47143 (ntfscomp_mod_SOURCES): New variable.
47144 (ntfscomp_mod_CFLAGS): Likewise.
47145 (ntfscomp_mod_LDFLAGS): Likewise.
47146
47147 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47148 (grub_probe_SOURCES): Likewise.
47149 (grub_emu_SOURCES): Likewise.
47150
47151 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47152 (grub_emu_SOURCES): Likewise.
47153
47154 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47155 (grub_emu_SOURCES): Likewise.
47156
47157 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47158 (grub_emu_SOURCES): Likewise.
47159
47160 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47161 (read_run_list): Renamed to grub_ntfs_read_run_list.
47162 (decomp_nextvcn): Moved to ntfscomp.c.
47163 (decomp_getch): Likewise.
47164 (decomp_get16): Likewise.
47165 (decomp_block): Likewise.
47166 (read_block): Likewise.
47167 (read_data): Partially moved to ntfscomp.c.
47168 (fixup): Change unsigned to grub_uint16_t.
47169 (read_mft): Change unsigned long to grub_uint32_t.
47170 (read_attr): Likewise.
47171 (read_data): Likewise.
47172 (read_run_data): Likewise.
47173 (read_run_list): Likewise.
47174 (read_mft): Likewise.
47175
47176 * fs/ntfscomp.c: New file.
47177
47178 * include/grub/ntfs.h: New file.
47179
47180 2007-12-16 Robert Millan <rmh@aybabtu.com>
47181
47182 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47183 IDE disk check, since Linux is known to support 20 IDE disks.
47184 Reported by Colin Watson.
47185
47186 2007-12-15 Bean <bean123ch@gmail.com>
47187
47188 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47189 (lnxboot_img_SOURCES): New variable.
47190 (lnxboot_img_ASFLAGS): Likewise.
47191 (lnxboot_img_LDFLAGS): Likewise.
47192
47193 * boot/i386/pc/lnxboot.S: New file.
47194
47195 2007-11-24 Pavel Roskin <proski@gnu.org>
47196
47197 * configure.ac: Test if '--build-id=none' is supported by the
47198 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47199 objcopy to generate incorrect binary files (binutils
47200 2.17.50.0.18-1 as shipped by Fedora 8).
47201 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47202 linking, so that build ID doesn't break the test.
47203
47204 2007-11-24 Pavel Roskin <proski@gnu.org>
47205
47206 * include/grub/i386/time.h: use "void" in the argument list
47207 of grub_cpu_idle().
47208 * include/grub/powerpc/time.h: Likewise.
47209 * include/grub/sparc64/time.h: Likewise.
47210
47211 2007-11-18 Christian Franke <franke@computer.org>
47212
47213 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47214 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47215 This fixes the problem that function keys did not work in grub-emu.
47216
47217 2007-11-18 Christian Franke <franke@computer.org>
47218
47219 * disk/host.c (grub_host_open): Remove attribute unused from
47220 name parameter. Add check for "host". This fixes the problem
47221 that grub-emu does not find partitions.
47222
47223 2007-11-18 Christian Franke <franke@computer.org>
47224
47225 * util/hostfs.c (is_dir): New function.
47226 (grub_hostfs_dir): Handle missing dirent.d_type case.
47227 (grub_hostfs_read): Add missing fseek().
47228 (grub_hostfs_label): Clear label pointer. This fixes a crash
47229 of grub-emu on "ls (host)".
47230
47231 2007-11-18 Christian Franke <franke@computer.org>
47232
47233 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47234 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47235 to 64 bit boundary by default.
47236
47237 2007-11-18 Bean <bean123ch@gmail.com>
47238
47239 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47240 (hexdump_mod_SOURCES): New variable.
47241 (hexdump_mod_CFLAGS): Likewise.
47242 (hexdump_mod_LDFLAGS): Likewise.
47243
47244 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47245
47246 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47247
47248 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47249
47250 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47251
47252 * include/grub/hexdump.h: New file.
47253
47254 * commands/hexdump.c: New file.
47255
47256 2007-11-10 Robert Millan <rmh@aybabtu.com>
47257
47258 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47259 in grub_outb() calls.
47260 (beep_on): Likewise.
47261
47262 2007-11-10 Christian Franke <franke@computer.org>
47263
47264 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47265 (grub_menu_run): Likewise.
47266
47267 2007-11-10 Robert Millan <rmh@aybabtu.com>
47268
47269 * include/grub/i386/efi/machine.h: New file.
47270 * include/grub/i386/linuxbios/machine.h: Likewise.
47271 * include/grub/i386/pc/machine.h: Likewise.
47272 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47273 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47274
47275 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47276 (serial_hw_io_addr): New variable.
47277 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47278 instead of `(unsigned short *) 0x400'.
47279
47280 2007-11-10 Bean <bean123ch@gmail.com>
47281
47282 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47283
47284 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47285
47286 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47287 (vga_mod_SOURCES): Added.
47288 (vga_mod_CFLAGS): Likewise.
47289 (vga_mod_LDFLAGS): Likewise.
47290
47291 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47292 grub_outb() calls.
47293 (set_map_mask): Likewise.
47294 (set_read_map): Likewise.
47295 (set_read_address): Likewise.
47296 (vga_font): Removed variable.
47297 (get_vga_glyph): Removed function.
47298 (invalidate_char): Likewise.
47299 (write_char): Changed to use grub_font_get_glyph() for font
47300 information.
47301 (grub_vga_putchar): Likewise.
47302 (grub_vga_getcharwidth): Likewise.
47303
47304 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47305
47306 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47307 flags.
47308 (pxeboot_img_LDFLAGS): Likewise.
47309 (diskboot_img_LDFLAGS): Likewise.
47310 (kernel_img_LDFLAGS): Likewise.
47311
47312 2007-11-06 Robert Millan <rmh@aybabtu.com>
47313
47314 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47315 in grub_outb() calls.
47316 (serial_hw_init): Likewise.
47317
47318 2007-11-05 Robert Millan <rmh@aybabtu.com>
47319
47320 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47321 spaces. Skip non-regular files.
47322
47323 2007-11-05 Robert Millan <rmh@aybabtu.com>
47324
47325 * kern/disk.c (grub_disk_firmware_fini)
47326 (grub_disk_firmware_is_tainted): New variables.
47327
47328 * include/grub/disk.h (grub_disk_firmware_fini)
47329 (grub_disk_firmware_is_tainted): Likewise.
47330
47331 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47332 (grub_disk_biosdisk_fini): ... to here.
47333 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47334 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47335 is set. Register grub_disk_biosdisk_fini() in
47336 `grub_disk_firmware_fini'.
47337
47338 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47339 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47340 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47341 to finish existing firmware disk interface.
47342
47343 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47344 (ata_mod_SOURCES): New variable.
47345 (ata_mod_CFLAGS): Likewise.
47346 (ata_mod_LDFLAGS): Likewise.
47347
47348 2007-11-05 Robert Millan <rmh@aybabtu.com>
47349
47350 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47351 (grub_ata_wait): Reimplement using grub_millisleep().
47352
47353 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47354 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47355
47356 2007-11-03 Marco Gerards <marco@gnu.org>
47357
47358 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47359 (CRTC_ADDR_PORT): New macro.
47360 (CRTC_DATA_PORT): Likewise.
47361 (CRTC_CURSOR): Likewise.
47362 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47363 (CRTC_CURSOR_ADDR_LOW): Likewise.
47364 (update_cursor): New function.
47365 (grub_console_real_putchar): Call `update_cursor'.
47366 (grub_console_gotoxy): Likewise.
47367 (grub_console_cls): Set the default color when clearing the
47368 screen.
47369 (grub_console_setcursor): Implemented.
47370
47371 2007-11-03 Marco Gerards <marco@gnu.org>
47372
47373 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47374 become activate.
47375 (grub_ata_pio_write): Likewise.
47376
47377 (grub_atapi_identify): Wait after issuing an ATA command.
47378 (grub_atapi_packet): Likewise.
47379 (grub_ata_identify): Likewise.
47380 (grub_ata_readwrite): Likewise.
47381
47382 2007-11-03 Marco Gerards <marco@gnu.org>
47383
47384 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47385 (grub_ata_pio_write): Likewise.
47386 (grub_ata_readwrite): Use `grub_error', instead of
47387 returning `grub_errno'.
47388
47389 2007-11-03 Marco Gerards <marco@gnu.org>
47390
47391 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47392 grub_ata_pio_write once for every single sector, instead of for
47393 multiple sectors.
47394
47395 2007-10-31 Robert Millan <rmh@aybabtu.com>
47396
47397 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47398
47399 * conf/i386-linuxbios.rmk: New file.
47400
47401 * kern/i386/pc/hardware.c: Likewise.
47402 * term/i386/pc/at_keyboard.c: Likewise.
47403 * term/i386/pc/vga_text.c: Likewise.
47404
47405 * include/grub/i386/linuxbios/boot.h: Likewise.
47406 * include/grub/i386/linuxbios/console.h: Likewise.
47407 * include/grub/i386/linuxbios/init.h: Likewise.
47408 * include/grub/i386/linuxbios/kernel.h: Likewise.
47409 * include/grub/i386/linuxbios/loader.h: Likewise.
47410 * include/grub/i386/linuxbios/memory.h: Likewise.
47411 * include/grub/i386/linuxbios/serial.h: Likewise.
47412 * include/grub/i386/linuxbios/time.h: Likewise.
47413
47414 * kern/i386/linuxbios/init.c: Likewise.
47415 * kern/i386/linuxbios/startup.S: Likewise.
47416 * kern/i386/linuxbios/table.c: Likewise.
47417
47418 2007-10-31 Marco Gerards <marco@gnu.org>
47419
47420 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47421 (ata_mod_SOURCES): New variable.
47422 (ata_mod_CFLAGS): Likewise.
47423 (ata_mod_LDFLAGS): Likewise.
47424
47425 * disk/ata.c: New file.
47426
47427 * include/grub/disk.h (grub_disk_dev_id): Add
47428 `GRUB_DISK_DEV_ATA_ID'.
47429
47430 2007-10-31 Robert Millan <rmh@aybabtu.com>
47431
47432 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47433 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47434
47435 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47436 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47437
47438 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47439 `<grub/types.h>'.
47440
47441 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47442
47443 2007-10-27 Robert Millan <rmh@aybabtu.com>
47444
47445 * include/grub/types.h (ULONG_MAX): Define macro.
47446
47447 2007-10-22 Robert Millan <rmh@aybabtu.com>
47448
47449 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47450 `"../realmode.S"'.
47451 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47452
47453 2007-10-22 Robert Millan <rmh@aybabtu.com>
47454
47455 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47456 (pkgdata_MODULES): Add `biosdisk.mod'.
47457 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47458 variables.
47459
47460 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47461 (grub_biosdisk_init): Replace with ...
47462 (GRUB_MOD_INIT(biosdisk)): ... this.
47463 (grub_biosdisk_fini): Replace with ...
47464 (GRUB_MOD_FINI(biosdisk)): ... this.
47465
47466 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47467 (grub_machine_init): Remove call to grub_biosdisk_init().
47468 (grub_machine_fini): Remove call to grub_machine_fini().
47469
47470 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47471
47472 2007-10-22 Robert Millan <rmh@aybabtu.com>
47473
47474 * include/grub/time.h: New file.
47475 * include/grub/i386/time.h: Likewise.
47476 * include/grub/powerpc/time.h: Likewise.
47477 * include/grub/sparc64/time.h: Likewise.
47478
47479 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47480 instances to ...
47481 (KERNEL_MACHINE_TIME_HEADER): ... this.
47482 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47483 instances to ...
47484 (KERNEL_MACHINE_TIME_HEADER): ... this.
47485 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47486 instances to ...
47487 (KERNEL_MACHINE_TIME_HEADER): ... this.
47488
47489 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47490 (grub_millisleep): New function.
47491 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47492 (grub_millisleep): New function.
47493 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47494 Remove `grub/machine/time.h' include.
47495 (grub_millisleep): New function.
47496 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47497 Remove `grub/machine/time.h' include.
47498 (grub_millisleep): New function.
47499
47500 * include/grub/misc.h (grub_div_roundup): New function.
47501
47502 * kern/misc.c: Include `<grub/time.h>'.
47503 (grub_millisleep_generic): New function.
47504
47505 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47506 Add `time.h'.
47507 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47508 Add `time.h'.
47509 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47510 `machine/time.h'. Add `time.h'.
47511 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47512
47513 2007-10-21 Robert Millan <rmh@aybabtu.com>
47514
47515 * include/grub/misc.h (grub_max): New function.
47516
47517 2007-10-21 Robert Millan <rmh@aybabtu.com>
47518
47519 * util/misc.c (grub_util_info): Call fflush() before returning.
47520
47521 2007-10-20 Robert Millan <rmh@aybabtu.com>
47522
47523 * genmk.rb (Image): Copy `extra_flags' from here ...
47524 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47525
47526 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47527 to `argc' and `args' arguments.
47528
47529 2007-10-17 Robert Millan <rmh@aybabtu.com>
47530
47531 * kern/i386/loader.S: New file.
47532
47533 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47534 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47535 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47536 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47537 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47538 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47539 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47540 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47541 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47542 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47543 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47544 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47545 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47546 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47547
47548 * kern/i386/realmode.S: New file.
47549
47550 * kern/i386/pc/startup.S (protstack): Moved from here ...
47551 * kern/i386/realmode.S (protstack)... to here.
47552 * kern/i386/pc/startup.S (gdt): Moved from here ...
47553 * kern/i386/realmode.S (gdt)... to here.
47554 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47555 * kern/i386/realmode.S (prot_to_real)... to here.
47556
47557 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47558 `kern/i386/realmode.S'.
47559
47560 2007-10-17 Robert Millan <rmh@aybabtu.com>
47561
47562 * include/grub/i386/loader.h: New file.
47563
47564 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47565 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47566 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47567 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47568 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47569 * include/grub/i386/loader.h (grub_linux_prot_size)
47570 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47571 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47572 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47573 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47574
47575 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47576
47577 2007-10-15 Robert Millan <rmh@aybabtu.com>
47578
47579 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47580 filesystem when dev->disk is unset.
47581 Do probe for filesystem even when dev->disk->has_partitions is set.
47582 In case a filesystem is found, always report it.
47583 In case it isn't, if dev->disk->has_partitions is set, report that
47584 a partition table was found instead of reporting that no filesystem
47585 could be identified.
47586
47587 2007-10-12 Robert Millan <rmh@aybabtu.com>
47588
47589 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47590 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47591
47592 * include/grub/types.h (grub_host_to_target16): New macro.
47593 (grub_host_to_target32): Likewise.
47594 (grub_host_to_target64): Likewise.
47595 (grub_target_to_host16): Likewise.
47596 (grub_target_to_host32): Likewise.
47597 (grub_target_to_host64): Likewise.
47598
47599 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47600 Renamed from to ...
47601 (GRUB_MOD_ALIGN): ...this. Update all users.
47602
47603 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47604 grub_host_to_target32.
47605 Replace grub_be_to_cpu32 with grub_target_to_host32.
47606 (load_modules): Likewise.
47607 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47608 Replace grub_be_to_cpu32 with grub_target_to_host32.
47609 Replace grub_cpu_to_be16 with grub_host_to_target16.
47610 Replace grub_cpu_to_be32 grub_host_to_target32.
47611
47612 2007-10-12 Robert Millan <rmh@aybabtu.com>
47613
47614 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47615 * util/elf/grub-mkimage.c: ... here.
47616
47617 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47618 `util/powerpc/ieee1275/grub-mkimage.c'.
47619
47620 2007-10-07 Robert Millan <rmh@aybabtu.com>
47621
47622 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47623 and make it easier to figure out.
47624 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47625 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47626 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47627 leave us with less than HEAP_MIN_SIZE total heap.
47628 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47629
47630 2007-10-03 Robert Millan <rmh@aybabtu.com>
47631
47632 * include/grub/i386/io.h: New file.
47633 * commands/i386/pc/play.c (inb): Removed.
47634 (outb): Removed.
47635 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47636 with grub_outb().
47637 * term/i386/pc/serial.c (inb): Removed.
47638 (outb): Removed.
47639 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47640 with grub_outb().
47641 * term/i386/pc/vga.c (inb): Removed.
47642 (outb): Removed.
47643 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47644 with grub_outb().
47645
47646 2007-10-02 Robert Millan <rmh@aybabtu.com>
47647
47648 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47650 Reported by Marcin Kurek.
47651
47652 2007-09-07 Robert Millan <rmh@aybabtu.com>
47653
47654 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47655 SmartFirmware version updates (as released by Sven Luther), and avoid
47656 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47657 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47658 known broken.
47659
47660 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47661
47662 From Hitoshi Ozeki:
47663 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47664 when merging two regions.
47665
47666 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47667
47668 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47669 * normal/completion.c (grub_normal_do_completion): Likewise.
47670 Reported by Hitoshi Ozeki.
47671
47672 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47673
47674 Do not use devices at boot in chainloading.
47675
47676 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47677 (boot_part_addr): Likewise.
47678 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47679 with BOOT_DRIVE and BOOT_PART_ADDR.
47680 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47681 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47682
47683 2007-08-29 Robert Millan <rmh@aybabtu.com>
47684
47685 Patch from Simon Peter <dn.tlp@gmx.net>:
47686 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47687 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47688 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47689 util/i386/pc/grub-setup.c_DEPENDENCIES.
47690 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47691 util/grub-probe.c_DEPENDENCIES.
47692 * conf/powerpc-ieee1275.rmk: Likewise.
47693
47694 2007-08-28 Robert Millan <rmh@aybabtu.com>
47695
47696 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47697 to tell grub-mkdevicemap how to name devices.
47698 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47699 feature).
47700
47701 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47702 util/i386/get_disk_name.c.
47703 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47704 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47705 util/ieee1275/get_disk_name.c.
47706
47707 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47708
47709 * DISTLIST: Add util/i386/get_disk_name.c and
47710 util/ieee1275/get_disk_name.c.
47711
47712 * util/grub-mkdevicemap.c: Replace device naming logic with
47713 grub_util_get_disk_name() calls.
47714
47715 2007-08-20 Robert Millan <rmh@aybabtu.com>
47716
47717 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47718 (so that it works for both plural and singular quantities).
47719
47720 2007-08-05 Robert Millan <rmh@aybabtu.com>
47721
47722 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47723 so that [xz] isn't taken into account when determining order.
47724
47725 2007-08-02 Marco Gerards <marco@gnu.org>
47726
47727 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47728 `include/multiboot2.h', `include/grub/elfload.h',
47729 `include/multiboot.h', `include/grub/multiboot.h',
47730 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47731 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47732 `kern/elf.c', `loader/multiboot_loader.c',
47733 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47734 `loader/i386/pc/multiboot2.c',
47735 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47736 `util/i386/pc/grub-mkrescue.in'. Remove
47737 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47738 `include/grub/i386/pc/util/biosdisk.h' and
47739 `include/grub/powerpc/ieee1275/multiboot.h'.
47740
47741 2007-08-02 Bean <bean123ch@gmail.com>
47742
47743 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47744 (ntfs_mod_SOURCES): New variable.
47745 (ntfs_mod_CFLAGS): Likewise.
47746 (ntfs_mod_LDFLAGS): Likewise.
47747
47748 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47749 (grub_probe_SOURCES): Likewise.
47750 (grub_emu_SOURCES): Likewise.
47751
47752 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47753 (grub_emu_SOURCES): Likewise.
47754
47755 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47756 (grub_emu_SOURCES): Likewise.
47757
47758 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47759
47760 * fs/ntfs.c: New file.
47761
47762 2007-08-02 Bean <bean123ch@gmail.com>
47763
47764 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47765
47766 * file.h (grub_file): Likewise.
47767
47768 * fshelp.h (grub_fshelp_read_file): Likewise.
47769
47770 * util/i386/pc/grub-setup.c (setup): Likewise.
47771 (save_first_sector): Likewise.
47772 (save_blocklists): Likewise.
47773
47774 * fs/affs.c (grub_affs_read_file): Likewise.
47775
47776 * fs/ext2.c (grub_ext2_read_file): Likewise.
47777
47778 * fs/fat.c (grub_fat_read_data): Likewise.
47779
47780 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47781
47782 * fs/hfs.c (grub_hfs_read_file): Likewise.
47783
47784 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47785
47786 * fs/jfs.c (grub_jfs_read_file): Likewise.
47787
47788 * fs/minix.c (grub_minix_read_file): Likewise.
47789
47790 * fs/sfs.c (grub_sfs_read_file): Likewise.
47791
47792 * fs/ufs.c (grub_ufs_read_file): Likewise.
47793
47794 * fs/xfs.c (grub_xfs_read_file): Likewise.
47795
47796 * command/blocklist.c (read_blocklist): Likewise.
47797 (print_blocklist): Likewise.
47798
47799 2007-08-02 Marco Gerards <marco@gnu.org>
47800
47801 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47802 `util/hostfs.c'.
47803
47804 * disk/host.c: New file.
47805
47806 * util/hostfs.c: Likewise.
47807
47808 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47809 return `GRUB_ERR_BAD_FS'.
47810 * fs/sfs.c (grub_sfs_mount): Likewise.
47811 * fs/xfs.c (grub_xfs_mount): Likewise.
47812
47813 * include/grub/disk.h (enum grub_disk_dev_id): Add
47814 `GRUB_DISK_DEVICE_HOST_ID'.
47815
47816 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47817
47818 2007-07-24 Jerone Young <jerone@gmail.com>
47819
47820 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47821 modules for compilation.
47822 * conf/powerpc-ieee1275.rmk: Likewise.
47823
47824 * include/multiboot.h: Move multiboot definitions to one file. Rename
47825 many definitions to not get grub specific.
47826 * include/multiboot2.h: Create header with multiboot 2 definitions.
47827 * include/grub/multiboot.h: Header for grub specific function
47828 prototypes and definitions.
47829 * include/grub/multiboot2.h: Likewise.
47830 * include/grub/multiboot_loader.h: Likewise.
47831 * include/grub/i386/pc/multiboot.h: Removed.
47832 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47833
47834 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47835 and 2 to allow for one multiboot and module commands.
47836 * loader/multiboot2.c: Add multiboot2 functionality.
47837 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47838 and definition names.
47839 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47840 2 functions.
47841 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47842 ieee1275 specific multiboot2 code.
47843
47844 * kern/i386/pc/startup.S: Change headers and definition names for
47845 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47846
47847 2007-07-22 Robert Millan <rmh@aybabtu.com>
47848
47849 * geninitheader.sh: Process file specified in first parameter rather
47850 than hardcoding grub_modules_init.lst.
47851 * geninit.sh: Likewise. Also, construct header name dynamically rather
47852 than hardcoding grub_modules_init.h.
47853
47854 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47855 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47856 grub_probe_init.[ch] and grub_setup_init.[ch].
47857
47858 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47859 grub_modules_init.h with grub_emu_init.h.
47860 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47861 grub_probe_init.[ch] files.
47862 * conf/i386-efi.rmk: Likewise.
47863 * conf/i386-pc.rmk: Likewise.
47864 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47865 grub_setup_init.[ch] files.
47866
47867 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47868 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47869 to initialize modules rather than a list of hardcoded functions.
47870 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47871 grub_init_all() to initialize modules rather than a list of hardcoded
47872 functions.
47873
47874 2007-07-22 Robert Millan <rmh@aybabtu.com>
47875
47876 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47877 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47878
47879 2007-07-22 Robert Millan <rmh@aybabtu.com>
47880
47881 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47882 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47883 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47884 flag when running on SmartFirmware.
47885 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47886 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47887 was set.
47888
47889 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47890 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47891 rather than decreasing it.
47892
47893 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47894 there's not enough space to do it, fail in the same way as when it
47895 can't be done because there are no partitions.
47896
47897 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47898 when nvsetenv failed.
47899
47900 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47901
47902 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47903 because this rule is automatically generated.
47904 (grub-mkrescue): Removed for the same reason as above.
47905
47906 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47907
47908 Migrate to GNU General Public License Version 3.
47909
47910 * COPYING: Replaced with the plain text version of GPLv3.
47911
47912 * config.guess: Updated from gnulib.
47913 * config.sub: Likewise.
47914
47915 * geninit.sh: Output a GPLv3 copyright notice.
47916 * geninitheader.sh: Likewise.
47917 * genmodsrc.sh: Likewise.
47918 * gensymlist.sh.in: Likewise.
47919
47920 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47921 * boot/i386/pc/diskboot.S: Likewise.
47922 * boot/i386/pc/pxeboot.S: Likewise.
47923 * commands/blocklist.c: Likewise.
47924 * commands/boot.c: Likewise.
47925 * commands/cat.c: Likewise.
47926 * commands/cmp.c: Likewise.
47927 * commands/configfile.c: Likewise.
47928 * commands/echo.c: Likewise.
47929 * commands/help.c: Likewise.
47930 * commands/ls.c: Likewise.
47931 * commands/search.c: Likewise.
47932 * commands/terminal.c: Likewise.
47933 * commands/test.c: Likewise.
47934 * commands/videotest.c: Likewise.
47935 * commands/i386/cpuid.c: Likewise.
47936 * commands/i386/pc/halt.c: Likewise.
47937 * commands/i386/pc/play.c: Likewise.
47938 * commands/i386/pc/reboot.c: Likewise.
47939 * commands/i386/pc/vbeinfo.c: Likewise.
47940 * commands/i386/pc/vbetest.c: Likewise.
47941 * commands/ieee1275/halt.c: Likewise.
47942 * commands/ieee1275/reboot.c: Likewise.
47943 * commands/ieee1275/suspend.c: Likewise.
47944 * disk/loopback.c: Likewise.
47945 * disk/lvm.c: Likewise.
47946 * disk/raid.c: Likewise.
47947 * disk/efi/efidisk.c: Likewise.
47948 * disk/i386/pc/biosdisk.c: Likewise.
47949 * disk/ieee1275/ofdisk.c: Likewise.
47950 * font/manager.c: Likewise.
47951 * fs/affs.c: Likewise.
47952 * fs/ext2.c: Likewise.
47953 * fs/fat.c: Likewise.
47954 * fs/fshelp.c: Likewise.
47955 * fs/hfs.c: Likewise.
47956 * fs/hfsplus.c: Likewise.
47957 * fs/iso9660.c: Likewise.
47958 * fs/jfs.c: Likewise.
47959 * fs/minix.c: Likewise.
47960 * fs/sfs.c: Likewise.
47961 * fs/ufs.c: Likewise.
47962 * fs/xfs.c: Likewise.
47963 * hello/hello.c: Likewise.
47964 * include/grub/acorn_filecore.h: Likewise.
47965 * include/grub/arg.h: Likewise.
47966 * include/grub/bitmap.h: Likewise.
47967 * include/grub/boot.h: Likewise.
47968 * include/grub/cache.h: Likewise.
47969 * include/grub/device.h: Likewise.
47970 * include/grub/disk.h: Likewise.
47971 * include/grub/dl.h: Likewise.
47972 * include/grub/elfload.h: Likewise.
47973 * include/grub/env.h: Likewise.
47974 * include/grub/err.h: Likewise.
47975 * include/grub/file.h: Likewise.
47976 * include/grub/font.h: Likewise.
47977 * include/grub/fs.h: Likewise.
47978 * include/grub/fshelp.h: Likewise.
47979 * include/grub/gzio.h: Likewise.
47980 * include/grub/hfs.h: Likewise.
47981 * include/grub/kernel.h: Likewise.
47982 * include/grub/loader.h: Likewise.
47983 * include/grub/lvm.h: Likewise.
47984 * include/grub/misc.h: Likewise.
47985 * include/grub/mm.h: Likewise.
47986 * include/grub/net.h: Likewise.
47987 * include/grub/normal.h: Likewise.
47988 * include/grub/parser.h: Likewise.
47989 * include/grub/partition.h: Likewise.
47990 * include/grub/pc_partition.h: Likewise.
47991 * include/grub/raid.h: Likewise.
47992 * include/grub/rescue.h: Likewise.
47993 * include/grub/script.h: Likewise.
47994 * include/grub/setjmp.h: Likewise.
47995 * include/grub/symbol.h: Likewise.
47996 * include/grub/term.h: Likewise.
47997 * include/grub/terminfo.h: Likewise.
47998 * include/grub/tparm.h: Likewise.
47999 * include/grub/types.h: Likewise.
48000 * include/grub/video.h: Likewise.
48001 * include/grub/efi/api.h: Likewise.
48002 * include/grub/efi/chainloader.h: Likewise.
48003 * include/grub/efi/console.h: Likewise.
48004 * include/grub/efi/console_control.h: Likewise.
48005 * include/grub/efi/disk.h: Likewise.
48006 * include/grub/efi/efi.h: Likewise.
48007 * include/grub/efi/pe32.h: Likewise.
48008 * include/grub/efi/time.h: Likewise.
48009 * include/grub/i386/linux.h: Likewise.
48010 * include/grub/i386/setjmp.h: Likewise.
48011 * include/grub/i386/types.h: Likewise.
48012 * include/grub/i386/efi/kernel.h: Likewise.
48013 * include/grub/i386/efi/loader.h: Likewise.
48014 * include/grub/i386/efi/time.h: Likewise.
48015 * include/grub/i386/pc/biosdisk.h: Likewise.
48016 * include/grub/i386/pc/boot.h: Likewise.
48017 * include/grub/i386/pc/chainloader.h: Likewise.
48018 * include/grub/i386/pc/console.h: Likewise.
48019 * include/grub/i386/pc/init.h: Likewise.
48020 * include/grub/i386/pc/kernel.h: Likewise.
48021 * include/grub/i386/pc/loader.h: Likewise.
48022 * include/grub/i386/pc/memory.h: Likewise.
48023 * include/grub/i386/pc/multiboot.h: Likewise.
48024 * include/grub/i386/pc/serial.h: Likewise.
48025 * include/grub/i386/pc/time.h: Likewise.
48026 * include/grub/i386/pc/vbe.h: Likewise.
48027 * include/grub/i386/pc/vbeblit.h: Likewise.
48028 * include/grub/i386/pc/vbefill.h: Likewise.
48029 * include/grub/i386/pc/vbeutil.h: Likewise.
48030 * include/grub/i386/pc/vga.h: Likewise.
48031 * include/grub/ieee1275/ieee1275.h: Likewise.
48032 * include/grub/ieee1275/ofdisk.h: Likewise.
48033 * include/grub/powerpc/libgcc.h: Likewise.
48034 * include/grub/powerpc/setjmp.h: Likewise.
48035 * include/grub/powerpc/types.h: Likewise.
48036 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48037 * include/grub/powerpc/ieee1275/console.h: Likewise.
48038 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48039 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48040 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48041 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48042 * include/grub/powerpc/ieee1275/time.h: Likewise.
48043 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48044 * include/grub/sparc64/libgcc.h: Likewise.
48045 * include/grub/sparc64/setjmp.h: Likewise.
48046 * include/grub/sparc64/types.h: Likewise.
48047 * include/grub/sparc64/ieee1275/console.h: Likewise.
48048 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48049 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48050 * include/grub/sparc64/ieee1275/time.h: Likewise.
48051 * include/grub/util/biosdisk.h: Likewise.
48052 * include/grub/util/getroot.h: Likewise.
48053 * include/grub/util/lvm.h: Likewise.
48054 * include/grub/util/misc.h: Likewise.
48055 * include/grub/util/raid.h: Likewise.
48056 * include/grub/util/resolve.h: Likewise.
48057 * io/gzio.c: Likewise.
48058 * kern/device.c: Likewise.
48059 * kern/disk.c: Likewise.
48060 * kern/dl.c: Likewise.
48061 * kern/elf.c: Likewise.
48062 * kern/env.c: Likewise.
48063 * kern/err.c: Likewise.
48064 * kern/file.c: Likewise.
48065 * kern/fs.c: Likewise.
48066 * kern/loader.c: Likewise.
48067 * kern/main.c: Likewise.
48068 * kern/misc.c: Likewise.
48069 * kern/mm.c: Likewise.
48070 * kern/parser.c: Likewise.
48071 * kern/partition.c: Likewise.
48072 * kern/rescue.c: Likewise.
48073 * kern/term.c: Likewise.
48074 * kern/efi/efi.c: Likewise.
48075 * kern/efi/init.c: Likewise.
48076 * kern/efi/mm.c: Likewise.
48077 * kern/i386/dl.c: Likewise.
48078 * kern/i386/efi/init.c: Likewise.
48079 * kern/i386/efi/startup.S: Likewise.
48080 * kern/i386/pc/init.c: Likewise.
48081 * kern/i386/pc/lzo1x.S: Likewise.
48082 * kern/i386/pc/startup.S: Likewise.
48083 * kern/ieee1275/ieee1275.c: Likewise.
48084 * kern/powerpc/cache.S: Likewise.
48085 * kern/powerpc/dl.c: Likewise.
48086 * kern/powerpc/ieee1275/cmain.c: Likewise.
48087 * kern/powerpc/ieee1275/crt0.S: Likewise.
48088 * kern/powerpc/ieee1275/init.c: Likewise.
48089 * kern/powerpc/ieee1275/openfw.c: Likewise.
48090 * kern/sparc64/cache.S: Likewise.
48091 * kern/sparc64/dl.c: Likewise.
48092 * kern/sparc64/ieee1275/init.c: Likewise.
48093 * kern/sparc64/ieee1275/openfw.c: Likewise.
48094 * loader/efi/chainloader.c: Likewise.
48095 * loader/efi/chainloader_normal.c: Likewise.
48096 * loader/i386/efi/linux.c: Likewise.
48097 * loader/i386/efi/linux_normal.c: Likewise.
48098 * loader/i386/pc/chainloader.c: Likewise.
48099 * loader/i386/pc/chainloader_normal.c: Likewise.
48100 * loader/i386/pc/linux.c: Likewise.
48101 * loader/i386/pc/linux_normal.c: Likewise.
48102 * loader/i386/pc/multiboot.c: Likewise.
48103 * loader/i386/pc/multiboot_normal.c: Likewise.
48104 * loader/powerpc/ieee1275/linux.c: Likewise.
48105 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48106 * normal/arg.c: Likewise.
48107 * normal/cmdline.c: Likewise.
48108 * normal/command.c: Likewise.
48109 * normal/completion.c: Likewise.
48110 * normal/execute.c: Likewise.
48111 * normal/function.c: Likewise.
48112 * normal/lexer.c: Likewise.
48113 * normal/main.c: Likewise.
48114 * normal/menu.c: Likewise.
48115 * normal/menu_entry.c: Likewise.
48116 * normal/misc.c: Likewise.
48117 * normal/parser.y: Likewise.
48118 * normal/script.c: Likewise.
48119 * normal/i386/setjmp.S: Likewise.
48120 * normal/powerpc/setjmp.S: Likewise.
48121 * normal/sparc64/setjmp.S: Likewise.
48122 * partmap/acorn.c: Likewise.
48123 * partmap/amiga.c: Likewise.
48124 * partmap/apple.c: Likewise.
48125 * partmap/gpt.c: Likewise.
48126 * partmap/pc.c: Likewise.
48127 * partmap/sun.c: Likewise.
48128 * term/gfxterm.c: Likewise.
48129 * term/terminfo.c: Likewise.
48130 * term/efi/console.c: Likewise.
48131 * term/i386/pc/console.c: Likewise.
48132 * term/i386/pc/serial.c: Likewise.
48133 * term/i386/pc/vesafb.c: Likewise.
48134 * term/i386/pc/vga.c: Likewise.
48135 * term/ieee1275/ofconsole.c: Likewise.
48136 * util/biosdisk.c: Likewise.
48137 * util/console.c: Likewise.
48138 * util/genmoddep.c: Likewise.
48139 * util/getroot.c: Likewise.
48140 * util/grub-emu.c: Likewise.
48141 * util/grub-mkdevicemap.c: Likewise.
48142 * util/grub-probe.c: Likewise.
48143 * util/lvm.c: Likewise.
48144 * util/misc.c: Likewise.
48145 * util/raid.c: Likewise.
48146 * util/resolve.c: Likewise.
48147 * util/update-grub.in: Likewise.
48148 * util/update-grub_lib.in: Likewise.
48149 * util/grub.d/00_header.in: Likewise.
48150 * util/grub.d/10_hurd.in: Likewise.
48151 * util/grub.d/10_linux.in: Likewise.
48152 * util/i386/efi/grub-install.in: Likewise.
48153 * util/i386/efi/grub-mkimage.c: Likewise.
48154 * util/i386/pc/grub-install.in: Likewise.
48155 * util/i386/pc/grub-mkimage.c: Likewise.
48156 * util/i386/pc/grub-mkrescue.in: Likewise.
48157 * util/i386/pc/grub-setup.c: Likewise.
48158 * util/i386/pc/misc.c: Likewise.
48159 * util/powerpc/ieee1275/grub-install.in: Likewise.
48160 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48161 * util/powerpc/ieee1275/misc.c: Likewise.
48162 * video/bitmap.c: Likewise.
48163 * video/video.c: Likewise.
48164 * video/i386/pc/vbe.c: Likewise.
48165 * video/i386/pc/vbeblit.c: Likewise.
48166 * video/i386/pc/vbefill.c: Likewise.
48167 * video/i386/pc/vbeutil.c: Likewise.
48168 * video/readers/tga.c: Likewise.
48169
48170 2007-07-02 Robert Millan <rmh@aybabtu.com>
48171
48172 * conf/i386-efi.rmk: Replace obsolete reference to
48173 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48174 with util/getroot.c.
48175 * conf/powerpc-ieee1275.rmk: Likewise.
48176 * conf/sparc64-ieee1275.rmk: Likewise.
48177
48178 * util/grub-emu.c (main): Fix unchecked pointer handling.
48179
48180 2007-07-02 Robert Millan <rmh@aybabtu.com>
48181
48182 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48183 invocation to fail, in order to support partition-less media.
48184
48185 * util/i386/pc/grub-install.in: Likewise.
48186
48187 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48188 which fs or partmap modules are needed (akin to its sister scripts).
48189
48190 Also use grub-probe to get rid of unportable /proc/mounts check.
48191
48192 Print the same informational message that the other scripts do, before
48193 exiting.
48194
48195 2007-06-23 Robert Millan <rmh@aybabtu.com>
48196
48197 * util/update-grub_lib.in (font_path): New function. Determine whether
48198 a font file can be found and, if so, echo the GRUB path to it.
48199
48200 * util/update-grub.in: Handle multiple terminals depending on user
48201 input, platform availability and font file presence. Propagate
48202 variables of our findings to /etc/grub.d/ children.
48203
48204 * util/grub.d/00_header.in: Handle multiple terminals, based on
48205 environment setup by update-grub.
48206
48207 2007-06-23 Robert Millan <rmh@aybabtu.com>
48208
48209 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48210
48211 2007-06-21 Robert Millan <rmh@aybabtu.com>
48212
48213 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48214 indicate end of data section in kernel image.
48215 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48216 GRUB_KERNEL_MACHINE_DATA_END.
48217
48218 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48219 space for it.
48220 * kern/i386/efi/startup.S: Likewise.
48221
48222 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48223 during image generation. Implement --prefix option to override this
48224 patch.
48225 * util/i386/efi/grub-mkimage.c: Likewise.
48226
48227 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48228 code to make path relative to its root into a separate function.
48229
48230 * util/i386/pc/grub-install.in: Use newly provided
48231 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48232 pass the result to grub-install --prefix.
48233
48234 2007-06-13 Robert Millan <rmh@aybabtu.com>
48235
48236 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48237 DEFAULT_DEVICE_MAP.
48238 * util/grub-emu.c: Use above definitions from misc.h instead of
48239 defining them.
48240 * util/grub-mkdevicemap.c: Likewise.
48241 * util/i386/pc/grub-setup.c: Likewise.
48242 * util/grub-probe.c: Likewise.
48243 (probe): Abort with grub_util_error() when either
48244 grub_guess_root_device or grub_util_get_grub_dev fails.
48245
48246 2007-06-12 Robert Millan <rmh@aybabtu.com>
48247
48248 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48249 "pager" assignment.
48250 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48251 "pcdata".
48252 * util/grub-probe.c (probe): Likewise for "drive_name".
48253
48254 2007-06-11 Robert Millan <rmh@aybabtu.com>
48255
48256 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48257 not just the cdrom one.
48258
48259 2007-06-11 Robert Millan <rmh@aybabtu.com>
48260
48261 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48262 Add --pkglibdir=DIR option to override pkglibdir.
48263 Mention --image-type=TYPE in help output.
48264 Fix --grub-mkimage (it was a no-op).
48265 Abort gracefully when no parameter is given.
48266
48267 2007-06-11 Robert Millan <rmh@aybabtu.com>
48268
48269 * util/i386/pc/grub-mkrescue.in: New file.
48270 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48271 * Makefile.in: Handle bin_SCRIPTS.
48272
48273 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48274
48275 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48276 list of video modes.
48277
48278 2007-06-06 Robert Millan <rmh@aybabtu.com>
48279
48280 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48281 file doesn't exist, or if it is in a filesystem grub can't read.
48282
48283 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48284 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48285 header comment to fit in 80 columns when the variables are resolved.
48286
48287 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48288 could be identified by update-grub. Remove redundant check for
48289 unifont.pff existence (since convert_system_path_to_grub_path now
48290 handles that).
48291
48292 2007-06-04 Robert Millan <rmh@aybabtu.com>
48293
48294 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48295
48296 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48297
48298 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48299
48300 2007-06-04 Robert Millan <rmh@aybabtu.com>
48301
48302 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48303
48304 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48305 grub_apple_partition_map_fini.
48306
48307 * util/biosdisk.c
48308 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48309 to access >2 TiB disks).
48310
48311 Print disk->total_sectors with %llu instead of %lu, since this
48312 variable is always 64-bit (prevents wrong disk size from being displayed
48313 on either >2 TiB disk or big-endian CPU).
48314
48315 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48316 into a generic case that supports all (sane) partition maps.
48317
48318 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48319 breaks big-endian.
48320
48321 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48322 and grub_apple_partition_map_fini() after that.
48323
48324 2007-06-01 Robert Millan <rmh@aybabtu.com>
48325
48326 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48327
48328 * util/grub.d/00_header.in: Only enable gfxterm when
48329 convert_system_path_to_grub_path() succeeds.
48330
48331 2007-05-20 Robert Millan <rmh@aybabtu.com>
48332
48333 * util/update-grub_lib.in: New file.
48334 * DISTLIST: Add update-grub_lib.in.
48335 * conf/common.rmk: Generate update-grub_lib and install it in
48336 $(lib_DATA).
48337 * Makefile.in: Add install routine for $(lib_DATA).
48338
48339 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48340 function provided by update-grub_lib to support arbitrary paths of
48341 unifont.pff.
48342 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48343 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48344
48345 2007-05-19 Robert Millan <rmh@aybabtu.com>
48346
48347 * commands/i386/cpuid.c: New module.
48348 * DISTLIST: Add it.
48349 * conf/i386-efi.rmk: Enable cpuid.mod.
48350 * conf/i386-pc.rmk: Likewise.
48351
48352 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48353
48354 * kern/disk.c (grub_disk_read): Check return value of
48355 grub_realloc().
48356
48357 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48358
48359 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48360 arrays.
48361 * disk/raid.c (grub_raid_open): Likewise.
48362
48363 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48364
48365 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48366 stack instead of on the heap.
48367
48368 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48369 before doing a read on it.
48370
48371 * configure.ac: Only use -fno-stack-protector for the target
48372 environment.
48373
48374 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48375
48376 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48377 __attribute_ ((unused)) to mode_type argument.
48378
48379 * util/getroot.c (grub_guess_root_device): Fix #endif.
48380
48381 * kern/misc.c (memcmp): Fix prototype.
48382
48383 * include/grub/partition.h [GRUB_UTIL]
48384 (grub_gpt_partition_map_init): Add prototype.
48385 (grub_gpt_partition_map_fini): Likewise.
48386
48387 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48388 at the right place.
48389
48390 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48391 (grub_fat_read_data): Likewise.
48392 (grub_fat_find_dir): Likewise.
48393
48394 * font/manager.c (find_glyph): Make table a const.
48395 (grub_font_get_glyph): Remove bitmap from if statement.
48396
48397 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48398
48399 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48400 code, first search for device in /dev/mapper, then in /dev.
48401 (grub_util_get_grub_dev): New function.
48402 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48403 prototype.
48404 * util/grub-probe.c (probe): Remove check for RAID, call
48405 grub_util_get_grub_dev() instead of
48406 grub_util_biosdisk_get_grub_dev().
48407 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48408 grub_util_biosdisk_get_grub_dev().
48409 * util/i386/pc/grub-setup.c (main): Likewise.
48410
48411 2007-05-16 Robert Millan <rmh@aybabtu.com>
48412
48413 * DISTLIST: Update for the latest changes.
48414 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48415 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48416 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48417 grub/util/biosdisk.h.
48418 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48419 grub/util/biosdisk.h.
48420
48421 2007-05-16 Robert Millan <rmh@aybabtu.com>
48422
48423 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48424
48425 2007-05-16 Robert Millan <rmh@aybabtu.com>
48426
48427 * util/i386/efi/grub-install.in: New.
48428 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48429 newly added grub-install.
48430 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48431 include.
48432 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48433 grub/util/biosdisk.h.
48434 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48435 grub/util/biosdisk.h.
48436
48437 2007-05-16 Robert Millan <rmh@aybabtu.com>
48438
48439 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48440 * include/grub/util/biosdisk.h: ... here.
48441 * util/i386/pc/biosdisk.c: Moved to ...
48442 * util/biosdisk.c: ... here.
48443 * util/i386/pc/getroot.c: Moved to ...
48444 * util/getroot.c: ... here.
48445 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48446 * util/grub-mkdevicemap.c: ... here.
48447 * util/i386/pc/grub-probe.c: Moved to ...
48448 * util/grub-probe.c: ... here.
48449
48450 2007-05-15 Robert Millan <rmh@aybabtu.com>
48451
48452 * util/update-grub.in: Remove duplicated line in grub.cfg header
48453 message.
48454
48455 2007-05-13 Robert Millan <rmh@aybabtu.com>
48456
48457 * util/update-grub.in: Fix a few assumptions about the devices holding
48458 /, /boot and /boot/grub being the same.
48459 * util/grub.d/00_header.in: Likewise.
48460 * util/grub.d/10_hurd.in: Likewise.
48461 * util/grub.d/10_linux.in: Likewise.
48462
48463 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48464 patterns. Use that to define the `.old' suffix as older than `'.
48465
48466 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48467
48468 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48469 the grub.cfg header message.
48470
48471 2007-05-11 Robert Millan <rmh@aybabtu.com>
48472
48473 * util/update-grub.in: Create device.map if it doesn't already exist,
48474 before attempting to run grub-probe.
48475 Check for grub-probe and grub-mkdevicemap with the same code
48476 grub-install is using.
48477 Remove test mode.
48478
48479 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48480
48481 * Makefile.in: Add the datarootdir autoconf variable.
48482
48483 2007-05-09 Robert Millan <rmh@aybabtu.com>
48484
48485 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48486 fail gracefully if dev->disk->partition == NULL.
48487
48488 2007-05-07 Robert Millan <rmh@aybabtu.com>
48489
48490 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48491 determine partition map module.
48492 * util/i386/pc/grub-install.in: Use this feature to decide which
48493 partition module to load, instead of hardcoding pc and gpt.
48494
48495 2007-05-07 Robert Millan <rmh@aybabtu.com>
48496
48497 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48498 source directory differs from build directory.
48499
48500 2007-05-05 Robert Millan <rmh@aybabtu.com>
48501
48502 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48503 initialisation.
48504
48505 2007-05-05 Robert Millan <rmh@aybabtu.com>
48506
48507 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48508
48509 2007-05-05 Robert Millan <rmh@aybabtu.com>
48510
48511 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48512 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48513
48514 2007-05-05 Robert Millan <rmh@aybabtu.com>
48515
48516 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48517 (grub_probe_SOURCES): Likewise.
48518 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48519 GPT and initialize dos_part and bsd_part accordingly.
48520 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48521 install_bsd_part.
48522 (main): Activate gpt module for use during partition identification,
48523 and deactivate it afterwards.
48524 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48525 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48526 partition identification, and deactivate it afterwards.
48527
48528 2007-05-05 Robert Millan <rmh@aybabtu.com>
48529
48530 * term/i386/pc/console.c (grub_console_fini): Call
48531 grub_term_set_current() before grub_term_unregister().
48532
48533 2007-05-04 Robert Millan <rmh@aybabtu.com>
48534
48535 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48536 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48537 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48538 and update-grub_DATA.
48539 * conf/common.rmk: Build and install update-grub components.
48540 * conf/common.mk: Regenerate.
48541 * util/update-grub.in: New. Core of update-grub.
48542 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48543 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48544 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48545 * util/grub.d/README: New. Document grub.d directory layout.
48546
48547 2007-05-01 Robert Millan <rmh@aybabtu.com>
48548
48549 * util/grub-emu.c: Move initialization functions
48550 grub_util_biosdisk_init() and grub_init_all() before
48551 grub_util_biosdisk_get_grub_dev(), which relies on them.
48552
48553 2007-04-19 Robert Millan <rmh@aybabtu.com>
48554
48555 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48556 it is used later.
48557
48558 2007-04-18 Jerone Young <jerone@gmail.com>
48559
48560 * kernel/elf.c: Add missing parenthesis for conditional statement
48561 stanza.
48562
48563 2007-04-10 Jerone Young <jerone@gmail.com>
48564
48565 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48566 continue on and look for device node with real device name.
48567
48568 2007-04-10 Jerone Young <jerone@gmail.com>
48569
48570 * configure.ac: Add argument for autoconf to use transformation
48571 ability.
48572 * Makefile.in: Add autoconf package transformation code.
48573 * util/i386/pc/grub-install.in: Likewise.
48574 * util/powerpc/ieee1275/grub-install.in: Likewise.
48575
48576 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48577
48578 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48579 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48580 (EXT2_REVISION): Likewise.
48581 (EXT2_INODE_SIZE): Likewise.
48582 (struct grub_ext2_block_group): Added a missing member
48583 "used_dirs".
48584 (grub_ext2_read_inode): Divide by the inode size in a superblock
48585 instead of 128 to obtain INODES_PER_BLOCK.
48586 Use the macro EXT2_INODE_SIZE instead of directly using
48587 SBLOCK->INODE_SIZE.
48588
48589 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48590
48591 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48592 superblock instead of the structure size to compute an
48593 offset. This fixes the problem that GRUB could not read a
48594 filesystem when inode size is different from 128-byte.
48595
48596 2007-03-05 Marco Gerards <marco@gnu.org>
48597
48598 * normal/main.c (read_config_file): When "menu" is not set, create
48599 an initial context.
48600
48601 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48602
48603 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48604 (HEAP_LIMIT): New macro.
48605 (grub_claim_heap): Claim memory up to `heaplimit'.
48606
48607 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48608
48609 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48610 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48611 (_start): Likewise.
48612 (grub_arch_modules_addr): Return address after `_end'.
48613 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48614 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48615 (add_segments): Calculate `_end' from phdr size and location.
48616 (ALIGN_UP): Moved to ...
48617 * include/grub/misc.h: here.
48618 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48619 New macro.
48620 (GRUB_IEEE1275_MODULE_BASE): Removed.
48621
48622 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48623
48624 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48625 loop boundary.
48626
48627 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48628
48629 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48630 All users updated.
48631 (grub_elf64_load_hook_t): Likewise.
48632 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48633 debug output.
48634
48635 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48636
48637 * kern/mm.c: Update copyright.
48638 (grub_mm_debug): Correct syntax error.
48639 (grub_mm_dump_free): New function.
48640 (grub_debug_free): Call `grub_free'.
48641 * include/grub/mm.h: Update copyright.
48642 (grub_mm_dump_free): Add declaration.
48643
48644 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48645
48646 * include/grub/ieee1275/ieee1275.h: Update copyright.
48647 * kern/powerpc/ieee1275/init.c: Likewise.
48648 * kern/powerpc/ieee1275/openfw.c: Likewise.
48649
48650 * loader/powerpc/ieee1275/linux.c: Likewise.
48651 * include/grub/elfload.h: Likewise.
48652 * kern/elf.c: Likewise.
48653 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48654 callers.
48655 (grub_elf64_load): Likewise.
48656 (grub_elf32_load_segment): Move to a nested function.
48657 (grub_elf64_load_segment): Likewise.
48658
48659 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48660
48661 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48662 prototype.
48663 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48664 (grub_heap_len): Likewise.
48665 (HEAP_SIZE): New macro.
48666 (grub_claim_heap): New function.
48667 (grub_machine_init): Don't claim heap directly. Call
48668 `grub_claim_heap'.
48669 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48670 (grub_available_iterate): New function.
48671
48672 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48673
48674 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48675 * configure.ac: Use it for testing the HOST and TARGET compilers.
48676
48677 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48678
48679 * Makefile.in (enable_grub_emu): New variable.
48680 * configure.ac (--enable-grub-emu): New option.
48681 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48682 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48683 * conf/i386-pc.rmk: Likewise.
48684 * conf/powerpc-ieee1275.rmk: Likewise.
48685 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48686
48687 2006-12-12 Marco Gerards <marco@gnu.org>
48688
48689 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48690
48691 * kern/env.c (grub_env_unset): Don't free the member `value' when
48692 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48693 pointer.
48694
48695 * normal/main.c (current_menu): Removed.
48696 (free_menu): Unset the `menu' environment variable.
48697 (grub_normal_menu_addentry): Make use of the environment variable
48698 `menu', instead of using the global `current_menu'. Allocate
48699 memory for the sourcecode of this entry.
48700 (read_config_file): New argument `nested', changed all callers.
48701 Only in the case of a new context, initialize a new menu. Set the
48702 `menu' environment variable.
48703 (grub_normal_execute): Don't set and unset the environment
48704 variable `menu' here anymore. Only free the menu when leaving the
48705 context.
48706
48707 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48708 leak.
48709
48710 2006-12-11 Marco Gerards <marco@gnu.org>
48711
48712 * normal/menu_entry.c (run): Fix off by one bug so the last line
48713 is executed. Move the loader check to outside the loop.
48714
48715 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48716
48717 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48718
48719 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48720
48721 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48722 the number of sectors. Reported by Andrey Shuvikov
48723 <mr_hyro@yahoo.com>.
48724
48725 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48726
48727 * kern/disk.c (grub_disk_read): When there is a read error, always
48728 try to read only the necessary data.
48729
48730 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48731 disk/raid.c.
48732 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48733 prototype.
48734 [GRUB_UTIL] (grub_raid_fini): Likewise.
48735 [GRUB_UTIL] (grub_lvm_init): Likewise.
48736 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48737 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48738 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48739 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48740 and grub_raid_fini().
48741
48742 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48743
48744 * include/grub/types.h (__unused): Rename to UNUSED.
48745 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48746 (grub_elf64_size): Likewise.
48747
48748 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48749
48750 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48751 grub_error_push and grub_error_pop in the error-handling path.
48752 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48753 length.
48754
48755 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48756
48757 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48758 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48760 (kernel_elf_SOURCES): Likewise.
48761 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48762 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48763 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48764 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48765 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48766 (elf_mod_SOURCES): New variable.
48767 (elf_mod_CFLAGS): Likewise.
48768 (elf_mod_LDFLAGS): Likewise.
48769 * include/grub/types.h (__unused): New macro.
48770 * include/grub/elfload.h: New file.
48771 * kern/elf.c: Likewise.
48772 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48773 (ELF32_LOADMASK): New macro.
48774 (ELF64_LOADMASK): Likewise.
48775 (vmlinux): Removed.
48776 (grub_linux_load32): New function.
48777 (grub_linux_load64): Likewise.
48778 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48779 Use grub_elf_t instead of grub_file_t.
48780
48781 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48782
48783 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48784 `catch_result' to struct set_color_args.
48785
48786 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48787
48788 * normal/menu.c: Include grub/script.h.
48789 * normal/menu_entry.c: Likewise.
48790 * include/grub/normal.h: Do not include grub/script.h.
48791
48792 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48793
48794 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48795
48796 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48797
48798 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48799 disk.
48800 (grub_disk_close): Print debug messages when closing a disk.
48801 (grub_disk_read): Print debug messages when disk read fails.
48802 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48803 filesystem type.
48804 * kern/partition.c: Include misc.h.
48805 (grub_partition_iterate): Print debug messages when detecting
48806 partition type.
48807
48808 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48809
48810 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48811 is negative.
48812 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48813
48814 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48815
48816 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48817 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48818
48819 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48820
48821 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48822 instead of sizeof(lv). Patch by Michael Guntsche.
48823
48824 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48825
48826 * disk/lvm.c: Rename VGS to VG_LIST.
48827 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48828 (grub_lvm_open): Likewise.
48829 Thanks to Michael Guntsche for finding this bug.
48830
48831 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48832
48833 * configure.ac (AC_INIT): Bumped to 1.95.
48834
48835 2006-10-14 Robert Millan <rmh@aybabtu.com>
48836
48837 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48838 with "/dev/.static/dev/md".
48839
48840 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48841
48842 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48843 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48844 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48845 DRIVE_NAME are always freed.
48846
48847 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48848 DOS_PART, as a DOS partition is counted from one instead of zero
48849 now. Reported by Robert Millan.
48850
48851 2006-10-14 Robert Millan <rmh@aybabtu.com>
48852
48853 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48854 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48855 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48856 string returned by grub_guess_root_device.
48857 * util/i386/pc/grub-setup.c: Likewise.
48858 * util/i386/pc/grub-probefs.c: Likewise.
48859
48860 * util/i386/pc/grub-probefs.c: Rename to ...
48861 * util/i386/pc/grub-probe.c: ... this.
48862 * DISTLIST: Remove grub-probefs, add grub-probe.
48863 * conf/i386-efi.rmk: Likewise.
48864 * conf/i386-pc.rmk: Likewise.
48865 * util/i386/pc/grub-install.in: Likewise.
48866
48867 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48868 choose which information we want to print.
48869
48870 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48871
48872 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48873 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48874 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48875 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48876 video/readers/tga.c and video/i386/pc/vbeutil.c.
48877
48878 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48879
48880 Added support for RAID and LVM.
48881
48882 * disk/lvm.c: New file.
48883 * disk/raid.c: Likewise.
48884 * include/grub/lvm.h: Likewise.
48885 * include/grub/raid.h: Likewise.
48886 * include/grub/util/lvm.h: Likewise.
48887 * include/grub/util/raid.h: Likewise.
48888 * util/lvm.c: Likewise.
48889 * util/raid.c: Likewise.
48890
48891 * include/grub/disk.h (grub_disk_dev_id): Add
48892 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48893 (grub_disk_get_size): New prototype.
48894 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48895 returns a partition.
48896 (grub_disk_get_size): New function.
48897
48898 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48899 verbatim if grub_install_dos_part is -2.
48900
48901 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48902 and LVM devices.
48903
48904 * util/i386/pc/grub-setup.c (setup): New argument
48905 MUST_EMBED. Force embedding of GRUB when the argument is
48906 true. Close FILE before returning.
48907 (main): Add support for RAID and LVM.
48908
48909 * conf/common.rmk: Add RAID and LVM modules.
48910 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48911 util/lvm.c.
48912 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48913
48914 * kern/misc.c (grub_strstr): New function.
48915 * include/grub/misc.h (grub_strstr): New prototype.
48916
48917 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48918
48919 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48920
48921 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48922
48923 * kern/misc.c (grub_strtoull): Guess the base only if not
48924 specified.
48925
48926 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48927
48928 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48929 PowerMac support.
48930
48931 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48932
48933 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48934
48935 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48936 Remove `flags' argument. All callers changed.
48937 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48938 (IEEE1275_IHANDLE_INVALID): New variable.
48939 (IEEE1275_CELL_INVALID): New variable.
48940 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48941 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48942 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48943 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48944 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48945 codes from Open Firmware. All callers updated.
48946 (grub_ieee1275_next_property): Directly return Open Firmware return
48947 code.
48948 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48949 Standardize error checking from `grub_ieee1275_get_property'.
48950 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48951 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48952
48953 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48954
48955 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48956 `instance_to_package_args' to `instance_to_path_args'.
48957
48958 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48959 `grub_ieee1275_chosen'.
48960
48961 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48962 `grub_ieee1275_interpret'.
48963
48964 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48965
48966 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48967
48968 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48969
48970 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48971 (__cmpdi): Likewise.
48972
48973 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48974 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48975 `grub_ssize_t'.
48976
48977 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48978
48979 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48980 to type `grub_ssize_t'.
48981 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48982
48983 2006-09-22 Marco Gerards <marco@gnu.org>
48984
48985 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48986 newlines.
48987
48988 2006-09-22 Marco Gerards <marco@gnu.org>
48989
48990 * commands/echo.c: New file.
48991
48992 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48993
48994 * conf/common.rmk (echo_mod_SOURCES): New variable.
48995 (echo_mod_CFLAGS): Likewise.
48996 (echo_mod_LDFLAGS): Likewise.
48997
48998 2006-09-22 Marco Gerards <marco@gnu.org>
48999
49000 * normal/main.c (get_line): Malloc memory instead of using
49001 preallocated memory. Removed the arguments `cmdline' and
49002 `max_len'. Updated all callers.
49003
49004 2006-09-22 Marco Gerards <marco@gnu.org>
49005
49006 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49007 (normal_mod_DEPENDENCIES): Likewise.
49008
49009 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49010 (normal_mod_DEPENDENCIES): Likewise.
49011
49012 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49013
49014 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
49015
49016 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49017 programs.
49018 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49019 (normal_mod_DEPENDENCIES): Likewise.
49020 * conf/i386-pc.mk: Regenerate.
49021 * conf/i386-efi.mk: Likewise
49022 * conf/common.mk: Likewise.
49023 * conf/powerpc-ieee1275.mk: Likewise.
49024 * conf/sparc64-ieee1275.mk: Likewise.
49025
49026 2006-09-22 Robert Millan <rmh@aybabtu.com>
49027
49028 Sync with i386 version.
49029 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49030 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49031
49032 2006-09-21 Robert Millan <rmh@aybabtu.com>
49033
49034 Import from GRUB Legacy (lib/device.c):
49035 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49036 (init_device_map) [__linux__]: Add support for I2O devices.
49037
49038 2006-09-14 Marco Gerards <marco@gnu.org>
49039
49040 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49041 `-melf_i386'.
49042
49043 2006-09-14 Robert Millan <rmh@aybabtu.com>
49044
49045 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49046 /boot/grub/*.lst.
49047
49048 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49049
49050 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49051 before adding it to device.map.
49052
49053 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49054
49055 * genmk.rb: Let GCC generate dependencies the first time it
49056 compiles a file; using the -MD option.
49057 * conf/common.mk: Regenerate.
49058 * conf/i386-pc.mk: Likewise.
49059 * conf/i386-efi.mk: Likewise.
49060 * conf/powerpc-ieee1275.mk: Likewise.
49061 * conf/sparc64-ieee1275.mk: Likewise.
49062
49063 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49064
49065 Move the prototypes of grub_setjmp and grub_longjmp to
49066 cpu/setjmp.h, so that each architecture may specify different
49067 attributes.
49068
49069 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49070 (grub_longjmp): Likewise.
49071 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49072 (grub_longjmp): Likewise.
49073 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49074 (grub_longjmp): Likewise.
49075
49076 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49077 [!GRUB_UTIL] (grub_longjmp): Removed.
49078
49079 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49080
49081 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49082 "color!" method does not return any value.
49083
49084 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49085
49086 * include/grub/bitmap.h: New file.
49087
49088 * include/grub/i386/pc/vbeutil.h: Likewise.
49089
49090 * video/bitmap.c: Likewise.
49091
49092 * video/readers/tga.c: Likewise.
49093
49094 * video/i386/pc/vbeutil.c: Likewise.
49095
49096 * commands/videotest.c: Code cleanup and updated to reflect to new
49097 video API.
49098
49099 * term/gfxterm.c: Likewise.
49100
49101 * video/video.c: Likewise.
49102
49103 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49104 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49105 (bitmap_mod_SOURCES): New entry.
49106 (bitmap_mod_CFLAGS): Likewise.
49107 (bitmap_mod_LDFLAGS): Likewise.
49108 (tga_mod_SOURCES): Likewise.
49109 (tga_mod_CFLAGS): Likewise.
49110 (tga_mod_LDFLAGS): Likewise.
49111
49112 * include/grub/video.h (grub_video_blit_operators): New enum type.
49113 (grub_video_render_target): Changed as forward declaration and moved
49114 actual definition to be video driver specific.
49115 (grub_video_adapter.blit_bitmap): Added blitting operator.
49116 (grub_video_adapter.blit_render_target): Likewise.
49117 (grub_video_blit_bitmap): Likewise.
49118 (grub_video_blit_render_target): Likewise.
49119
49120 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49121 driver specific render target definition.
49122 (grub_video_vbe_map_rgba): Added driver internal helper.
49123 (grub_video_vbe_unmap_color): Updated to use
49124 grub_video_i386_vbeblit_info.
49125 (grub_video_vbe_get_video_ptr): Likewise.
49126
49127 * include/grub/i386/pc/vbeblit.h
49128 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49129 grub_video_i386_vbeblit_info.
49130 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49131 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49132 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49133 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49134 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49135 (grub_video_i386_vbeblit_index_index): Likewise.
49136 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49137 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49138 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49139 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49140 operator.
49141 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49142 operator.
49143
49144 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49145 include/grub/i386/pc/vbeblit.h.
49146
49147 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49148 Updated to use grub_video_i386_vbeblit_info.
49149 (grub_video_i386_vbefill_R8G8B8): Likewise.
49150 (grub_video_i386_vbefill_index): Likewise.
49151 (grub_video_i386_vbefill): Added generic filler.
49152
49153 * video/i386/pc/vbefill.c: Updated to reflect changes on
49154 include/grub/i386/pc/vbefill.h.
49155
49156 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49157 grub_video_i386_vbeblit_info.
49158 (grub_video_vbe_unmap_color): Likewise.
49159 (grub_video_vbe_blit_glyph): Likewise.
49160 (grub_video_vbe_scroll): Likewise.
49161 (grub_video_vbe_draw_pixel): Removed function.
49162 (grub_video_vbe_get_pixel): Likewise.
49163 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49164 updated code to use it.
49165 (common_blitter): Added common blitter for render target and bitmap.
49166 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49167 (grub_video_vbe_blit_render_target): Likewise.
49168
49169 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49170
49171 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49172 is in text mode if there is no console control protocol instance
49173 available.
49174
49175 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49176
49177 * include/grub/video.h: Code cleanup.
49178
49179 * include/grub/i386/pc/vbe.h: Likewise.
49180
49181 * video/i386/pc/vbe.c: Likewise.
49182
49183 * video/i386/pc/vbeblit.c: Likewise.
49184
49185 * video/i386/pc/vbefill.c: Likewise.
49186
49187 * video/video.c: Likewise. Also added more comments.
49188
49189 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49190
49191 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49192 (struct grub_biosdisk_dap): Likewise.
49193
49194 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49195 linkage settings for all functions.
49196
49197 2006-07-12 Marco Gerards <marco@gnu.org>
49198
49199 * configure.ac (--enable-mm-debug): Fix typo.
49200
49201 * genkernsyms.sh.in: Use proper quoting for `CC'.
49202
49203 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49204
49205 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49206 (normal_mod_ASFLAGS): Remove "-m32".
49207
49208 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49209
49210 * util/misc.c: Include config.h.
49211 [!HAVE_MEMALIGN]: Do not include malloc.h.
49212 (grub_memalign): Use posix_memalign, if present. Then, use
49213 memalign, if present. Otherwise, emit an error.
49214
49215 * util/grub-emu.c: Do not include malloc.h.
49216
49217 * include/grub/util/misc.h: Include unistd.h. This is required for
49218 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49219 D. Eades III <hde@foobar-qux.org>.
49220
49221 * configure.ac (AC_GNU_SOURCE): Added.
49222 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49223 type.
49224
49225 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49226
49227 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49228 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49229
49230 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49231
49232 * include/grub/types.h (grub_host_addr_t): Rename to
49233 grub_target_addr_t.
49234 (grub_host_off_t): Rename to grub_target_off_t.
49235 (grub_host_size_t): Rename to grub_target_size_t.
49236 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49237 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49238
49239 * include/grub/kernel.h (struct grub_module_header): Change type
49240 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49241 (grub_module_info): Likewise.
49242
49243 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49244
49245 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49246 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49247 Velazquez <jesus.velazquez@gmail.com>.
49248
49249 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49250
49251 Count partitions from 1 instead of 0 in the string representation
49252 of partitions. Still use 0-based internally.
49253
49254 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49255 (sun_partition_map_iterate): Use grub_partition_t instead of
49256 struct grub_partition *. Cast DESC->START_CYLINDER to
49257 grub_uint64_t after converting the endian.
49258 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49259 (sun_partition_map_get_name): Add 1 to P->INDEX.
49260
49261 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49262 PCDATA->DOS_PART.
49263 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49264
49265 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49266 zero instead of one.
49267 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49268 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49269
49270 * partmap/apple.c (apple_partition_map_iterate): Change the type
49271 of POS to unsigned.
49272 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49273 (apple_partition_map_get_name): Add 1 into P->INDEX.
49274
49275 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49276 of POS to unsigned.
49277 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49278 calculate the offset of a partition.
49279 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49280 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49281
49282 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49283 SECTOR to grub_disk_addr_t.
49284 (acorn_partition_map_iterate): Likewise.
49285 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49286 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49287 top.
49288 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49289
49290 * kern/i386/pc/init.c (make_install_device): Add 1 into
49291 GRUB_INSTALL_DOS_PART.
49292
49293 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49294 conditional.
49295
49296 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49297
49298 Clean up the code to support 64-bit addressing in disks and
49299 files. This change is not enough for filesystems yet.
49300
49301 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49302 type of "start" to grub_uint64_t.
49303 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49304 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49305 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49306 convert addresses.
49307
49308 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49309 to grub_disk_addr_t.
49310
49311 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49312 string.
49313
49314 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49315
49316 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49317 to char *.
49318
49319 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49320
49321 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49322
49323 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49324
49325 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49326 to grub_off_t, to detect an error from grub_file_seek.
49327 (grub_multiboot_load_elf32): Likewise.
49328
49329 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49330 maximum unsigned long value when an overflow is detected.
49331 (grub_strtoull): New function.
49332 (grub_divmod64): Likewise.
49333 (grub_lltoa): use grub_divmod64.
49334
49335 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49336 grub_disk_addr_t.
49337 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49338 the pointer to next character. Use grub_strtoull instead of
49339 grub_strtoul.
49340 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49341 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49342 respectively.
49343
49344 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49345 return value is signed.
49346 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49347 test if OFFSET is less than zero, as OFFSET is unsigned now.
49348
49349 * kern/disk.c (struct grub_disk_cache): Change the type of
49350 "sector" to grub_disk_addr_t.
49351 (grub_disk_cache_get_index): Change the type of SECTOR to
49352 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49353 unsigned after shifting.
49354 (grub_disk_cache_invalidate): Change the type of SECTOR to
49355 grub_disk_addr_t.
49356 (grub_disk_cache_unlock): Likewise.
49357 (grub_disk_cache_store): Likewise.
49358 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49359 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49360 grub_disk_addr_t and grub_uint64_t, respectively.
49361 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49362 body, as the value of OFFSET is tweaked by
49363 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49364 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49365 respectively.
49366 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49367 body, as the value of OFFSET is tweaked by
49368 grub_disk_check_range. Change the types of LEN and N to
49369 grub_size_t.
49370
49371 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49372 and "saved_offset" to grub_off_t.
49373 (test_header): Cast BUF to char *.
49374 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49375 to char *.
49376 (grub_gzio_read): Change the types of OFFSET and SIZE to
49377 grub_off_t and grub_size_t, respectively.
49378
49379 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49380 Removed.
49381 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49382 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49383 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49384 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49385 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49386
49387 * include/grub/types.h (grub_off_t): Unconditionally set to
49388 grub_uint64_t.
49389 (grub_disk_addr_t): Changed to grub_uint64_t.
49390
49391 * include/grub/partition.h (struct grub_partition): Change the
49392 types of "start", "len" and "offset" to grub_disk_addr_t,
49393 grub_uint64_t and grub_disk_addr_t, respectively.
49394 (grub_partition_get_start): Return grub_disk_addr_t.
49395 (grub_partition_get_len): Return grub_uint64_t.
49396
49397 * include/grub/misc.h (grub_strtoull): New prototype.
49398 (grub_divmod64): Likewise.
49399
49400 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49401 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49402 grub_off_t, respectively.
49403 All callers and references changed.
49404
49405 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49406 grub_size_t in "read".
49407 All callers and references changed.
49408
49409 * include/grub/file.h (struct grub_file): Change the types of
49410 "offset" and "size" to grub_off_t and grub_off_t,
49411 respectively. Change the type of SECTOR to grub_disk_addr_t in
49412 "read_hook".
49413 (grub_file_read): Change the type of LEN to grub_size_t.
49414 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49415 grub_off_t.
49416 (grub_file_size): Return grub_off_t.
49417 (grub_file_tell): Likewise.
49418 All callers and references changed.
49419
49420 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49421 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49422 "write".
49423 (struct grub_disk): Change the type of "total_sectors" to
49424 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49425 "read_hook".
49426 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49427 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49428 (grub_disk_write): Likewise.
49429 All callers and references changed.
49430
49431 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49432 char * for grub_strncmp to silence gcc.
49433 (grub_iso9660_mount): Likewise.
49434 (grub_iso9660_mount): Likewise.
49435 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49436 return statement.
49437 (grub_iso9660_iterate_dir): Likewise.
49438 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49439
49440 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49441 LEN to grub_disk_addr_t and grub_size_t, respectively.
49442
49443 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49444
49445 * fs/jfs.c (grub_jfs_read_file): Likewise.
49446
49447 * fs/minix.c (grub_jfs_read_file): Likewise.
49448
49449 * fs/sfs.c (grub_jfs_read_file): Likewise.
49450
49451 * fs/ufs.c (grub_jfs_read_file): Likewise.
49452
49453 * fs/xfs.c (grub_jfs_read_file): Likewise.
49454
49455 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49456 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49457 respectively.
49458
49459 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49460 BLKNR to -1 instead of returning GRUB_ERRNO.
49461 (grub_ext2_read_file): Change the types of SECTOR and
49462 LEN to grub_disk_addr_t and grub_size_t, respectively.
49463
49464 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49465 LEN to grub_disk_addr_t and grub_size_t, respectively.
49466
49467 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49468 grub_file_read.
49469
49470 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49471 string. Do not cast SECTOR explicitly.
49472
49473 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49474 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49475 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49476 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49477 over 2TB and LBA mode is not supported, raise an error.
49478 (get_safe_sectors): New function.
49479 (grub_biosdisk_read): Use get_safe_sectors.
49480 (grub_biosdisk_write): Likewise.
49481
49482 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49483 (grub_efidisk_write): Likewise.
49484
49485 * disk/loopback.c (delete_loopback): Cosmetic changes.
49486 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49487 correctly.
49488 (grub_loopback_open): Likewise.
49489 (grub_loopback_read): Likewise. Also, change the type of POS to
49490 grub_off_t, and fix the usage of grub_memset.
49491
49492 * commands/i386/pc/play.c: Include grub/machine/time.h.
49493
49494 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49495 print FILE->SIZE.
49496
49497 * commands/configfile.c: Include grub/env.h.
49498
49499 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49500 GRUB_ERRNO directly instead. Change the type of POS to
49501 grub_off_t. Follow the coding standard.
49502
49503 * commands/blocklist.c: Include grub/partition.h.
49504 (grub_cmd_blocklist): Return an error if the underlying device is
49505 not a disk. Take the starting sector of a partition into account,
49506 if a partition is used.
49507
49508 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49509 a length field.
49510 (lba_mode): Support 64-bit addresses.
49511 (chs_mode): Likewise.
49512 (copy_buffer): Adapted to the new offsets of a length field and a
49513 segment field.
49514 (blocklist_default_start): Allocate 64-bit space.
49515
49516 * boot/i386/pc/boot.S (force_lba): Removed.
49517 (boot_drive): Moved to under KERNEL_SECTOR.
49518 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49519 space.
49520 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49521 is useless.
49522 (lba_mode): Refactored to support a 64-bit address. More size
49523 optimization.
49524 (setup_sectors): Likewise.
49525
49526 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49527
49528 * DISTLIST: Added include/grub/i386/linux.h. Removed
49529 include/grub/i386/pc/linux.h
49530
49531 * configure.ac (AC_INIT): Bumped to 1.94.
49532
49533 * config.guess: Updated from gnulib.
49534 * config.sub: Likewise.
49535 * install-sh: Likewise.
49536 * mkinstalldirs: Likewise.
49537
49538 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49539
49540 * conf/common.rmk (grub_modules_init.lst): Depended on
49541 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49542 MODSRCFILES.
49543
49544 * genmk.rb (PModule::rule): Reverted the previous change.
49545
49546 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49547
49548 * conf/common.rmk (grub_modules_init.lst): Depends on
49549 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49550 that the target does not exist before producing.
49551 (grub_modules_init.h): Remove the target before generating.
49552 (grub_emu_init.c): Likewise.
49553
49554 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49555
49556 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49557
49558 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49559 for the target-specific tests. Make sure that we also have the
49560 up-to-date target variables for those tests.
49561
49562 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49563
49564 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49565 (PModule::rule): Likewise.
49566
49567 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49568
49569 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49570 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49571 target-specific flags should be prefixed.
49572 (PModule::rule): Likewise.
49573
49574 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49575
49576 * configure.ac (CMP): Check if cmp is available explicitly.
49577
49578 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49579
49580 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49581 (target_cpu): New variable.
49582 (pkglibdir): Use target_cpu instead of host_cpu.
49583
49584 * util/i386/pc/grub-install.in (host_cpu): Removed.
49585 (target_cpu): New variable.
49586 (pkglibdir): Use target_cpu instead of host_cpu.
49587
49588 * util/genmoddep.c: Removed.
49589
49590 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49591 instead of GRUB_HOST_SIZEOF_VOID_P.
49592 * kern/dl.c: Likewise.
49593
49594 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49595 ...
49596 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49597 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49598 (GRUB_TARGET_SIZEOF_LONG): ... this.
49599 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49600 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49601 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49602 to ...
49603 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49604 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49605 (GRUB_TARGET_SIZEOF_LONG): ... this.
49606 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49607 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49608 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49609 to ...
49610 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49611 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49612 (GRUB_TARGET_SIZEOF_LONG): ... this.
49613 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49614 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49615
49616 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49617 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49618 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49619 instead of GRUB_HOST_SIZEOF_LONG.
49620 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49621 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49622 GRUB_CPU_WORDS_BIGENDIAN.
49623 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49624 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49625 grub_host_ssize_t.
49626
49627 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49628 (genmoddep_SOURCES): Likewise.
49629 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49630 (genmoddep_SOURCES): Likewise.
49631 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49632 (genmoddep_SOURCES): Likewise.
49633 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49634 Likewise.
49635 (genmoddep_SOURCES): Likewise.
49636
49637 * genmoddep.awk: New file.
49638
49639 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49640 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49641 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49642 (PModule::rule): Likewise.
49643 (Program::rule): Likewise.
49644 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49645 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49646 respectively.
49647
49648 * configure.ac: Rewritten intensively to use host and target
49649 instead of build and host, respectively.
49650
49651 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49652 (host_cpu): Removed.
49653 (target_cpu): New variable.
49654 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49655 (BUILD_CC): Removed.
49656 (BUILD_CFLAGS): Likewise.
49657 (BUILD_CPPFLAGS): Likewise.
49658 (TARGET_CC): New variable.
49659 (TARGET_CFLAGS): Likewise.
49660 (TARGET_CPPFLAGS): Likewise.
49661 (TARGET_LDFLAGS): Likewise.
49662 (AWK): Likewise.
49663 (include): Use target_cpu instead of host_cpu.
49664 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49665
49666 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49667
49668 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49669
49670 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49671 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49672 field 'false' to 'exec_on_false'.
49673 (grub_script_create_cmdif): Renamed argument names to reflect above
49674 changes.
49675
49676 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49677
49678 * normal/script.c (grub_script_create_cmdif): Likewise.
49679
49680 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49681
49682 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49683 top.
49684 (grub_hfsplus_btree_recptr): Likewise.
49685 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49686 FILEBLOCK both to pass a block number and store next block
49687 number.
49688 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49689 overflow file correctly. Specify errors appropriately, because
49690 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49691 grub_hfsplus_btree_recptr to get the pointer to a found key.
49692 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49693 is found.
49694
49695 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49696 linux.mod.
49697 (_linux_mod_SOURCES): New variable.
49698 (_linux_mod_CFLAGS): Likewise.
49699 (_linux_mod_LDFLAGS): Likewise.
49700 (linux_mod_SOURCES): Likewise.
49701 (linux_mod_CFLAGS): Likewise.
49702 (linux_mod_LDFLAGS): Likewise.
49703
49704 * DISTLIST: Added loader/i386/efi/linux.c,
49705 loader/i386/efi/linux_normal.c and
49706 include/grub/i386/efi/loader.h.
49707
49708 * loader/i386/efi/linux.c: New file.
49709 * loader/i386/efi/linux_normal.c: Likewise.
49710 * include/grub/i386/efi/loader.h: Likewise.
49711
49712 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49713
49714 * commands/blocklist.c: New file.
49715
49716 * DISTLIST: Added commands/blocklist.c.
49717
49718 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49719 color for the background, and a darker color for the foreground.
49720 (grub_console_checkkey): Return READ_KEY.
49721 (grub_console_cls): Set the background to
49722 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49723
49724 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49725
49726 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49727 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49728
49729 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49730 prototype.
49731
49732 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49733 BG. The spec is wrong again.
49734
49735 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49736 prototype.
49737 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49738
49739 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49740 commands/blocklist.c.
49741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49742
49743 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49744 (blocklist_mod_SOURCES): New variable.
49745 (blocklist_mod_CFLAGS): Likewise.
49746 (blocklist_mod_LDFLAGS): Likewise.
49747
49748 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49749
49750 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49751 duplication.
49752 (lba_mode): Use %eax more intensively to reduce the code size.
49753
49754 2006-05-20 Marco Gerards <marco@gnu.org>
49755
49756 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49757
49758 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49759 for `menuentry'.
49760 (script): Accept leading newlines.
49761 (newlines): New rule to describe 0 or more newlines.
49762 (commands): Accept `command' with trailing newline. Fixed the
49763 order in which arguments were passed to `grub_script_add_cmd'.
49764 Accept commands separated by newlines.
49765 (function): Changed to accept newlines.
49766 (menuentry) Rewritten.
49767
49768 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49769 front of the list, instead of to the end.
49770
49771 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49772
49773 * util/i386/pc/grub-install.in (bindir): New variable.
49774 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49775 Shaver <lbgwjl@gmail.com>.
49776
49777 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49778
49779 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49780 grub/machine/linux.h
49781 * loader/i386/pc/linux.c: Likewise.
49782
49783 * include/grub/i386/pc/linux.h: Moved to ...
49784 * include/grub/i386/linux.h: ... here.
49785
49786 * include/grub/i386/linux.h (struct linux_kernel_params): New
49787 struct.
49788
49789 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49790
49791 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49792 checking.
49793 (grub_video_vbe_blit_glyph): Likewise.
49794 (grub_video_vbe_blit_bitmap): Likewise.
49795 (grub_video_vbe_blit_render_target): Likewise.
49796
49797 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49798
49799 * configure.ac (--with-platform): Properly quote the square
49800 brackets.
49801
49802 2006-05-08 Marco Gerards <marco@gnu.org>
49803
49804 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49805 this...
49806 (kernel_elf_HEADERS): ...to this. Updated all users.
49807 (grubof_symlist.c): Renamed from this...
49808 (kernel_elf_symlist.c): ...to this. Updated all users.
49809 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49810 (grubof_SOURCES): Renamed from this...
49811 (kernel_elf_SOURCES): ...to this.
49812 (grubof_HEADERS): Renamed from this...
49813 (kernel_elf_HEADERS): ...to this.
49814 (grubof_CFLAGS): Renamed from this...
49815 (kernel_elf_CFLAGS): ...to this.
49816 (grubof_ASFLAGS): Renamed from this...
49817 (kernel_elf_ASFLAGS): ...to this.
49818 (grubof_LDFLAGS): Renamed from this...
49819 (kernel_elf_LDFLAGS): ...to this.
49820
49821 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49822 this...
49823 (kernel_elf_HEADERS): ...to this. Updated all users.
49824 (grubof_symlist.c): Renamed from this...
49825 (kernel_elf_symlist.c): ...to this. Updated all users.
49826 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49827 (grubof_SOURCES): Renamed from this...
49828 (kernel_elf_SOURCES): ...to this.
49829 (grubof_HEADERS): Renamed from this...
49830 (kernel_elf_HEADERS): ...to this.
49831 (grubof_CFLAGS): Renamed from this...
49832 (kernel_elf_CFLAGS): ...to this.
49833 (grubof_ASFLAGS): Renamed from this...
49834 (kernel_elf_ASFLAGS): ...to this.
49835 (grubof_LDFLAGS): Renamed from this...
49836 (kernel_elf_LDFLAGS): ...to this.
49837
49838 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49839 `kernel.elf' instead of `grubof'.
49840
49841 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49842
49843 Add --with-platform to configure. Use pkglibdir instead of
49844 pkgdatadir. This is reported by Roger Leigh.
49845
49846 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49847 (host_vendor): Likewise.
49848 (host_os): Likewise.
49849 (pkgdatadir): Likewise.
49850 (platform): New variable.
49851 (pkglibdir): Likewise.
49852 Use PKGLIBDIR instead of PKGDATADIR.
49853
49854 * util/i386/pc/grub-install.in (datadir): Removed.
49855 (host_vendor): Likewise.
49856 (host_os): Likewise.
49857 (pkgdatadir): Likewise.
49858 (platform): New variable.
49859 (pkglibdir): Likewise.
49860 Use PKGLIBDIR instead of PKGDATADIR.
49861
49862 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49863 instead of GRUB_DATADIR.
49864 (main): Likewise.
49865 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49866 (main): Likewise.
49867 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49868 (main): Likewise.
49869
49870 * configure.ac (--with-platform): New option.
49871 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49872
49873 * Makefile.in: Include a makefile based on PLATFORM instead of
49874 HOST_VENDOR.
49875 (pkgdatadir): Not appended by the machine type.
49876 (pkglibdir): Appended by the machine type.
49877 (host_vendor): Removed.
49878 (platform): New variable.
49879 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49880 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49881 (uninstall): Likewise.
49882
49883 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49884
49885 Use the environment context in the menu. Remove the commands
49886 "default" and "timeout", and use variables instead.
49887
49888 * normal/menu.c: Include grub/env.h.
49889 (print_entry): Cast TITLE to silence gcc.
49890 (get_timeout): New function.
49891 (set_timeout): Likewise.
49892 (get_entry_number): Likewise.
49893 (run_menu): Use a default entry, a fallback entry and a timeout
49894 in the environment variables "default", "fallback" and
49895 "timeout". Also, tweak the default entry if it is not within the
49896 current menu entries.
49897 (grub_menu_run): Use a fallback entry in the environment variable
49898 "fallback".
49899
49900 * normal/main.c (read_config_file): Do not initialize
49901 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49902 NEWMENU->TIMEOUT.
49903 (grub_normal_execute): Use a data slot to store the menu.
49904
49905 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49906 fallback_entry and timeout.
49907 (struct grub_menu_list): Removed.
49908 (grub_menu_list_t): Likewise.
49909 (struct grub_context): Likewise.
49910 (grub_context_t): Likewise.
49911 (grub_context_get): Likewise.
49912 (grub_context_get_current_menu): Likewise.
49913 (grub_context_push_menu): Likewise.
49914 (grub_context_pop_menu): Likewise.
49915 (grub_default_init): Likewise.
49916 (grub_default_fini): Likewise.
49917 (grub_timeout_init): Likewise.
49918 (grub_timeout_fini): Likewise.
49919
49920 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49921 and timeout.mod.
49922 (normal_mod_SOURCES): Removed normal/context.c.
49923
49924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49925 commands/default.c, commands/timeout.c and normal/context.c.
49926 (normal_mod_SOURCES): Removed normal/context.c.
49927
49928 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49929 commands/timeout.c and normal/context.c.
49930 (normal_mod_SOURCES): Removed normal/context.c.
49931
49932 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49933 commands/default.c, commands/timeout.c and normal/context.c.
49934 (normal_mod_SOURCES): Removed normal/context.c.
49935
49936 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49937 timeout.mod.
49938 (default_mod_SOURCES): Removed.
49939 (default_mod_CFLAGS): Likewise.
49940 (default_mod_LDFLAGS): Likewise.
49941 (timeout_mod_SOURCES): Removed.
49942 (timeout_mod_CFLAGS): Likewise.
49943 (timeout_mod_LDFLAGS): Likewise.
49944
49945 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49946 normal/context.c.
49947
49948 * commands/default.c: Removed.
49949 * commands/timeout.c: Likewise.
49950 * normal/context.c: Likewise.
49951
49952 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49953
49954 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49955
49956 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49957
49958 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49959 "next" to "prev" for readability.
49960 (struct grub_env_sorted_var): New struct.
49961 (grub_env_context): Renamed to ...
49962 (initial_context): ... this.
49963 (grub_env_var_context): Renamed to ...
49964 (current_context): ... this.
49965 (grub_env_find): Look only at CURRENT_CONTEXT.
49966 (grub_env_context_open): Rewritten to copy exported variables from
49967 previous context.
49968 (grub_env_context_close): Rewritten according to the new
49969 scheme. Also, add an assertion to prevent the initial context from
49970 removed.
49971 (grub_env_insert): Removed the code for the sorted list.
49972 (grub_env_remove): Likewise.
49973 (grub_env_export): Simply mark the variable with
49974 GRUB_ENV_VAR_GLOBAL.
49975 (grub_env_set): A cosmetic change for naming consistency.
49976 (grub_env_get): Likewise.
49977 (grub_env_unset): Likewise.
49978 (grub_env_iterate): Rewritten to sort variables within this
49979 function.
49980 (grub_register_variable_hook): Fixed for naming consistency. Call
49981 grub_env_find again, only if NAME is not found at the first time.
49982 (mangle_data_slot_name): New function.
49983 (grub_env_set_data_slot): Likewise.
49984 (grub_env_get_data_slot): Likewise.
49985 (grub_env_unset_data_slot): Likewise.
49986
49987 * include/grub/env.h (grub_env_var_type): New enum.
49988 (GRUB_ENV_VAR_LOCAL): New constant.
49989 (GRUB_ENV_VAR_GLOBAL): Likewise.
49990 (GRUB_ENV_VAR_DATA): Likewise.
49991 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49992 "type".
49993 (grub_env_set): Replace VAR with NAME for consistency.
49994 (grub_register_variable_hook): Likewise.
49995 (grub_env_export): Specify the name of the argument.
49996 (grub_env_set_data_slot): New prototype.
49997 (grub_env_get_data_slot): Likewise.
49998 (grub_env_unset_data_slot): Likewise.
49999
50000 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50001
50002 Extend the loader so that GRUB can accept a loader which comes
50003 back to GRUB when a loaded image exits. Also, this change adds
50004 support for a chainloader on EFI.
50005
50006 * term/efi/console.c: Include grub/misc.h.
50007 (grub_console_checkkey): Display a scan code on the top for
50008 debugging. This will be removed once the EFI port gets stable.
50009 Correct the scan code mapping.
50010
50011 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50012 allocate memory from larger regions, in order to reduce the number
50013 of allocated regions. Otherwise, the MacOSX loader panics.
50014 (filter_memory_map): Avoid less than 1MB for compatibility with
50015 other loaders.
50016 (add_memory_regions): Allocate from the tail of a region, if
50017 possible, to avoid allocating a region near to 1MB, for the MacOSX
50018 loader.
50019
50020 * kern/efi/init.c (grub_efi_set_prefix): Specify
50021 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50022
50023 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50024 argument IMAGE_HANDLE and specify it to get a loaded image.
50025 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50026 grub_efi_get_loaded_image.
50027 (grub_efi_get_filename): Divide the length by the size of
50028 grub_efi_char16_t.
50029 (grub_efi_get_device_path): New function.
50030 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50031 the length by the size of grub_efi_char16_t for a file path device
50032 path node.
50033
50034 * kern/loader.c (grub_loader_noreturn): New variable.
50035 (grub_loader_set): Accept a new argument NORETURN. Set
50036 GRUB_LOADER_NORETURN to NORETURN.
50037 All callers changed.
50038 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50039 grub_machine_fini.
50040
50041 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50042 prototype.
50043 (grub_efi_get_loaded_image): Take an argument to specify an image
50044 handle.
50045
50046 * include/grub/loader.h (grub_loader_set): Added one more argument
50047 NORETURN.
50048
50049 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50050 instead of grub_efi_open_protocol.
50051 (grub_efidisk_get_device_name): Likewise.
50052 (grub_efidisk_close): Print a newline.
50053 (grub_efidisk_get_device_handle): Fixed to use
50054 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50055 GRUB_EFI_DEVICE_PATH_TYPE.
50056
50057 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50058 * kern/efi/efi.c (device_path_guid): ... here.
50059
50060 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50061 chain.mod.
50062 (kernel_mod_HEADERS): Added efi/disk.h.
50063 (_chain_mod_SOURCES): New variable.
50064 (_chain_mod_CFLAGS): Likewise.
50065 (_chain_mod_LDFLAGS): Likewise.
50066 (chain_mod_SOURCES): Likewise.
50067 (chain_mod_CFLAGS): Likewise.
50068 (chain_mod_LDFLAGS): Likewise.
50069
50070 * DISTLIST: Added include/grub/efi/chainloader.h,
50071 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50072
50073 * include/grub/efi/chainloader.h: New file.
50074 * loader/efi/chainloader.c: Likewise.
50075 * loader/efi/chainloader_normal.c: Likewise.
50076
50077 2006-04-30 Marco Gerards <marco@gnu.org>
50078
50079 * commands/configfile.c (grub_cmd_source): New function.
50080 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50081 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50082
50083 2006-04-30 Marco Gerards <marco@gnu.org>
50084
50085 * normal/execute.c (grub_script_execute_cmd): Change the return
50086 type to `grub_err_t'. Correctly return the error.
50087 (grub_script_execute_cmdline): In case a command line is not a
50088 command or a function, try to interpret it as an assignment.
50089
50090 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50091
50092 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50093 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50094 skip a node whose name is obviously invalid as UTF-16,
50095 i.e. contains a NUL character. Stop the iteration when the last
50096 directory entry is found. Instead of using the return value of
50097 grub_hfsplus_btree_iterate_node, store the value in RET and use
50098 it, because the iterator can be stopped by the last directory
50099 entry.
50100
50101 2006-04-30 Marco Gerards <marco@gnu.org>
50102
50103 * include/grub/env.h (grub_env_export): New prototype. Reported
50104 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50105
50106 2006-04-30 Marco Gerards <marco@gnu.org>
50107
50108 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50109 size of the extents in a catalog file record.
50110
50111 2006-04-29 Marco Gerards <marco@gnu.org>
50112
50113 * commands/configfile.c (grub_cmd_configfile): Execute the
50114 configfile within its own context.
50115
50116 * include/grub/env.h (grub_env_context_open): New prototype.
50117 (grub_env_context_close): Likewise.
50118
50119 * kern/env.c (grub_env): Removed.
50120 (grub_env_sorted): Likewise.
50121 (grub_env_context): New variable.
50122 (grub_env_var_context): Likewise.
50123 (grub_env_find): Search both the active context and the global
50124 context.
50125 (grub_env_context_open): New function.
50126 (grub_env_context_close): Likewise.
50127 (grub_env_insert): Likewise.
50128 (grub_env_remove): Likewise.
50129 (grub_env_export): Likewise.
50130 (grub_env_set): Changed to use helper functions to avoid code
50131 duplication.
50132 (grub_env_iterate): Rewritten so both the current context and the
50133 global context are being used.
50134
50135 * normal/command.c (export_command): New function.
50136 (grub_command_init): Register the `export' function.
50137
50138 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50139
50140 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50141 explicitly to suppress gcc's warnings.
50142 * fs/fat.c (grub_fat_find_dir): Likewise.
50143 (grub_fat_label): Likewise.
50144 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50145 (grub_xfs_mount): Likewise.
50146 (grub_xfs_label): Likewise.
50147 * fs/affs.c (grub_affs_mount): Likewise.
50148 (grub_affs_label): Likewise.
50149 (grub_affs_iterate_dir): Likewise.
50150 * fs/sfs.c (grub_sfs_mount): Likewise.
50151 (grub_sfs_iterate_dir): Likewise.
50152 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50153 * fs/hfs.c (grub_hfs_mount): Likewise.
50154 (grub_hfs_cmp_catkeys): Likewise.
50155 (grub_hfs_find_dir): Likewise.
50156 (grub_hfs_dir): Likewise.
50157 (grub_hfs_label): Likewise.
50158 * fs/jfs.c (grub_jfs_mount): Likewise.
50159 (grub_jfs_opendir): Likewise.
50160 (grub_jfs_getent): Likewise.
50161 (grub_jfs_lookup_symlink): Likewise.
50162 (grub_jfs_label): Likewise.
50163 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50164 (grub_hfsplus_iterate_dir): Likewise.
50165 (grub_hfsplus_btree_iterate_node): Made static.
50166
50167 * util/grub-emu.c (prefix): New variable.
50168 (grub_machine_set_prefix): New function.
50169 (main): Do not set the environment variable "prefix" here. Only
50170 set PREFIX, which is used later by grub_machine_set_prefix.
50171
50172 * include/grub/video.h: Do not include grub/symbol.h.
50173 (grub_video_register): Not exported. This symbol is not defined in
50174 the kernel.
50175 (grub_video_unregister): Likewise.
50176 (grub_video_iterate): Likewise.
50177 (grub_video_setup): Likewise.
50178 (grub_video_restore): Likewise.
50179 (grub_video_get_info): Likewise.
50180 (grub_video_get_blit_format): Likewise.
50181 (grub_video_set_palette): Likewise.
50182 (grub_video_get_palette): Likewise.
50183 (grub_video_set_viewport): Likewise.
50184 (grub_video_get_viewport): Likewise.
50185 (grub_video_map_color): Likewise.
50186 (grub_video_map_rgb): Likewise.
50187 (grub_video_map_rgba): Likewise.
50188 (grub_video_fill_rect): Likewise.
50189 (grub_video_blit_glyph): Likewise.
50190 (grub_video_blit_bitmap): Likewise.
50191 (grub_video_blit_render_target): Likewise.
50192 (grub_video_scroll): Likewise.
50193 (grub_video_swap_buffers): Likewise.
50194 (grub_video_create_render_target): Likewise.
50195 (grub_video_delete_render_target): Likewise.
50196 (grub_video_set_active_render_target): Likewise.
50197
50198 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50199 Undefined.
50200 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50201
50202 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50203 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50204 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50205 instead of $(srcdir)/genkernsyms.sh.
50206
50207 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50208 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50209 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50210 instead of $(srcdir)/genkernsyms.sh.
50211
50212 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50213 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50214 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50215 instead of $(srcdir)/genkernsyms.sh.
50216
50217 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50218 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50219 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50220 instead of $(srcdir)/genkernsyms.sh.
50221
50222 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50223 genkernsyms.sh.
50224
50225 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50226 genkernsyms.sh.
50227 (gensymlist.sh): New target.
50228 (genkernsyms.sh): Likewise.
50229
50230 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50231 genkernsyms.sh.in and gensymlist.sh.in.
50232
50233 * genkernsyms.sh: Removed.
50234 * gensymlist.sh: Likewise.
50235
50236 * genkernsyms.sh.in: New file.
50237 * gensymlist.sh.in: Likewise.
50238
50239 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50240
50241 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50242 clobber "prefix", since we may have already set it manually.
50243
50244 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50245
50246 * kern/misc.c (abort): New alias for grub_abort.
50247
50248 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50249
50250 A new machine-specific function "grub_machine_set_prefix" is
50251 defined. This is called after loading modules, so that a prefix
50252 initialization can use modules. Also, this change adds an
50253 intensive debugging feature for the memory manager via the
50254 configure option "--enable-mm-debug".
50255
50256 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50257 PART.LEN.
50258
50259 * kern/sparc64/ieee1275/init.c (abort): Removed.
50260 (grub_stop): Likewise.
50261 (grub_exit): New function.
50262 (grub_set_prefix): Renamed to ...
50263 (grub_machine_set_prefix): ... this.
50264 (grub_machine_init): Do not call grub_set_prefix.
50265
50266 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50267 (grub_machine_set_prefix): ... this.
50268 (grub_machine_init): Do not call grub_set_prefix.
50269
50270 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50271 (grub_machine_init): Do not set the prefix here.
50272
50273 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50274
50275 * kern/efi/init.c: Include grub/mm.h.
50276 (grub_efi_set_prefix): New function.
50277
50278 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50279 (grub_efi_get_filename): New function.
50280 (grub_print_device_path): Renamed to ...
50281 (grub_efi_print_device_path): ... this.
50282
50283 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50284 [MM_DEBUG] (grub_realloc): Likewise.
50285 [MM_DEBUG] (grub_free): Likewise.
50286 [MM_DEBUG] (grub_memalign): Likewise.
50287 [MM_DEBUG] (grub_mm_debug): New variable.
50288 [MM_DEBUG] (grub_debug_malloc): New function.
50289 [MM_DEBUG] (grub_debug_free): New function.
50290 [MM_DEBUG] (grub_debug_realloc): New function.
50291 [MM_DEBUG] (grub_debug_memalign): New function.
50292
50293 * kern/misc.c (grub_abort): Print a newline to distinguish
50294 the message.
50295
50296 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50297 grub_set_root_dev after loading modules. This is necessary when
50298 setting a prefix depends on modules.
50299
50300 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50301 (grub_efi_print_device_path): ... this.
50302 (grub_efi_get_filename): New prototype.
50303 (grub_efi_set_prefix): Likewise.
50304
50305 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50306 and grub/disk.h.
50307 (grub_efidisk_get_device_handle): New prototype.
50308 (grub_efidisk_get_device_name): Likewise.
50309
50310 * include/grub/mm.h: Include config.h.
50311 (MM_DEBUG): Removed.
50312 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50313 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50314 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50315 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50316 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50317 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50318 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50319 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50320 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50321
50322 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50323
50324 * disk/efi/efidisk.c: Include grub/partition.h.
50325 (iterate_child_devices): New function.
50326 (add_device): First, compare only last device path nodes, so that
50327 devices are sorted by the types.
50328 (grub_efidisk_get_device_handle): New function.
50329 (grub_efidisk_get_device_name): Likewise.
50330
50331 * configure.ac (--enable-mm-debug): New option to enable the
50332 memory manager debugging feature. This makes the binary much
50333 bigger, so is disabled by default.
50334
50335 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50336
50337 Use grub_abort instead of grub_stop, and grub_exit must be
50338 define in each architecture now. Also, this change adds support
50339 for EFI disks.
50340
50341 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50342 (grub_getkey): New function.
50343 (grub_term_get_current): Likewise.
50344
50345 * util/i386/pc/grub-setup.c: Include grub/term.h.
50346 (grub_getkey): New function.
50347 (grub_term_get_current): Likewise.
50348
50349 * util/misc.c (grub_stop): Renamed to ...
50350 (grub_exit): ... this.
50351
50352 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50353 (grub_exit): ... this.
50354 (grub_machine_init): Use grub_abort instead of abort.
50355 (grub_stop): Removed.
50356
50357 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50358 abort.
50359
50360 * kern/i386/pc/startup.S (grub_exit): New function.
50361 (cold_reboot): New label.
50362
50363 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50364 (grub_efi_init): Call grub_efidisk_init.
50365 (grub_efi_fini): Call grub_efidisk_fini.
50366
50367 * kern/efi/efi.c: Include grub/mm.h.
50368 (grub_efi_console_control_guid): Renamed to ...
50369 (console_control_guid): ... this.
50370 (grub_efi_loaded_image_guid): Renamed to ...
50371 (loaded_image_guid): ... this.
50372 (grub_efi_locate_handle): New function.
50373 (grub_efi_open_protocol): Likewise.
50374 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50375 GRUB_EFI_CONSOLE_CONTROL_GUID.
50376 (grub_efi_exit): Removed.
50377 (grub_stop): Likewise.
50378 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50379 (grub_exit): New function.
50380 (grub_print_device_path): Likewise.
50381
50382 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50383 (grub_enter_rescue_mode): Register "exit".
50384
50385 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50386 (grub_abort): New function.
50387
50388 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50389
50390 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50391
50392 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50393
50394 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50395 (grub_print_device_path): New prototype.
50396 (grub_efi_locate_handle): Likewise.
50397 (grub_efi_open_protocol): Likewise.
50398
50399 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50400 * disk/efi/efidisk.c: Likewise.
50401
50402 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50403
50404 * include/grub/efi/console_control.h
50405 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50406
50407 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50408 last 8 bytes as an array.
50409 (GRUB_EFI_DISK_IO_GUID): New macro.
50410 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50411 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50412 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50413 grub_uint8_t.
50414 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50415 (struct grub_efi_device_path): Rename the member "sub_type" to
50416 "subtype".
50417 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50418 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50419 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50420 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50421 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50422 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50423 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50424 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50425 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50426 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50427 (struct grub_efi_pci_device_path): New structure.
50428 (grub_efi_pci_device_path_t): New type.
50429 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50430 (struct grub_efi_pccard_device_path): New structure.
50431 (grub_efi_pccard_device_path_t): New type.
50432 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50433 (struct grub_efi_memory_mapped_device_path): New structure.
50434 (grub_efi_memory_mapped_device_path_t): New type.
50435 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50436 (struct grub_efi_vendor_device_path): New structure.
50437 (grub_efi_vendor_device_path_t): New type.
50438 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50439 (struct grub_efi_controller_device_path): New structure.
50440 (grub_efi_controller_device_path_t): New type.
50441 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50442 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50443 (struct grub_efi_acpi_device_path): New structure.
50444 (grub_efi_acpi_device_path_t): New type.
50445 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50446 (struct grub_efi_expanded_acpi_device_path): New structure.
50447 (grub_efi_expanded_acpi_device_path_t): New type.
50448 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50449 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50450 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50451 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50452 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50453 (struct grub_efi_atapi_device_path): New structure.
50454 (grub_efi_atapi_device_path_t): New type.
50455 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50456 (struct grub_efi_fibre_channel_device_path): New structure.
50457 (grub_efi_fibre_channel_device_path_t): New type.
50458 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50459 (struct grub_efi_1394_device_path): New structure.
50460 (grub_efi_1394_device_path_t): New type.
50461 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50462 (struct grub_efi_usb_device_path): New structure.
50463 (grub_efi_usb_device_path_t): New type.
50464 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50465 (struct grub_efi_usb_class_device_path): New structure.
50466 (grub_efi_usb_class_device_path_t): New type.
50467 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50468 (struct grub_efi_i2o_device_path): New structure.
50469 (grub_efi_i2o_device_path_t): New type.
50470 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50471 (struct grub_efi_mac_address_device_path): New structure.
50472 (grub_efi_mac_address_device_path_t): New type.
50473 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50474 (struct grub_efi_ipv4_device_path): New structure.
50475 (grub_efi_ipv4_device_path_t): New type.
50476 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50477 (struct grub_efi_ipv6_device_path): New structure.
50478 (grub_efi_ipv6_device_path_t): New type.
50479 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50480 (struct grub_efi_infiniband_device_path): New structure.
50481 (grub_efi_infiniband_device_path_t): New type.
50482 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50483 (struct grub_efi_uart_device_path): New structure.
50484 (grub_efi_uart_device_path_t): New type.
50485 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50486 (struct grub_efi_vendor_messaging_device_path): New structure.
50487 (grub_efi_vendor_messaging_device_path_t): New type.
50488 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50489 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50490 (struct grub_efi_hard_drive_device_path): New structure.
50491 (grub_efi_hard_drive_device_path_t): New type.
50492 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50493 (struct grub_efi_cdrom_device_path): New structure.
50494 (grub_efi_cdrom_device_path_t): New type.
50495 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50496 (struct grub_efi_vendor_media_device_path): New structure.
50497 (grub_efi_vendor_media_device_path_t): New type.
50498 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50499 (struct grub_efi_file_path_device_path): New structure.
50500 (grub_efi_file_path_device_path_t): New type.
50501 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50502 (struct grub_efi_protocol_device_path): New structure.
50503 (grub_efi_protocol_device_path_t): New type.
50504 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50505 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50506 (struct grub_efi_bios_device_path): New structure.
50507 (grub_efi_bios_device_path_t): New type.
50508 (struct grub_efi_disk_io): New structure.
50509 (grub_efi_disk_io_t): New type.
50510 (struct grub_efi_block_io_media): New structure.
50511 (grub_efi_block_io_media_t): New type.
50512 (struct grub_efi_block_io): New structure.
50513 (grub_efi_block_io_t): New type.
50514
50515 * include/grub/misc.h (grub_stop): Removed.
50516 (grub_exit): New prototype.
50517 (grub_abort): Likewise.
50518
50519 * include/grub/disk.h (enum grub_disk_dev_id): Added
50520 GRUB_DISK_DEVICE_EFIDISK_ID.
50521
50522 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50523 disk/efi/efidisk.c.
50524 (kernel_syms.lst): Remove the target if an error occurs.
50525
50526 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50527
50528 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50529 as it was simply too buggy.
50530
50531 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50532
50533 * kern/misc.c (grub_lltoa): New function.
50534 (grub_vsprintf): Added support for the long long suffix,
50535 i.e. "ll".
50536
50537 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50538
50539 * Makefile.in (LDFLAGS): Add variable.
50540 (LD): Remove variable.
50541 * configure.ac: Add -m32 to LDFLAGS.
50542 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50543 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50544 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50545 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50546 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50547 variables.
50548 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50549 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50550 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50551
50552 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50553
50554 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50555 length for unknown glyph.
50556
50557 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50558
50559 Add support for pre-loaded modules into the EFI port.
50560
50561 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50562 completely. Accept one more argument DIR. The caller has changed.
50563
50564 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50565
50566 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50567 (grub_efi_loaded_image_guid): New variable.
50568 (grub_efi_get_loaded_image): New function.
50569 (grub_arch_modules_addr): Likewise.
50570
50571 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50572 prototype.
50573
50574 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50575 (struct grub_efi_loaded_image): New structure.
50576 (grub_efi_loaded_image_t): New type.
50577
50578 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50579
50580 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50581 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50582 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50583
50584 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50585
50586 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50587
50588 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50589
50590 * DISTLIST: Added include/grub/efi/console.h,
50591 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50592 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50593
50594 * include/grub/efi/console.h: New file.
50595 * include/grub/efi/time.h: Likewise.
50596 * include/grub/i386/efi/kernel.h: Likewise.
50597 * kern/efi/init.c: Likewise.
50598 * kern/efi/mm.c: Likewise.
50599 * term/efi/console.c: Likewise.
50600
50601 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50602 (grub_stop): Removed.
50603 (grub_get_rtc): Likewise.
50604 (grub_machine_init): Simply call grub_efi_init.
50605 (grub_machine_fini): Call grub_efi_fini.
50606
50607 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50608 (grub_efi_output_string): Removed.
50609 (grub_efi_stall): New function.
50610 (grub_stop): Likewise.
50611 (grub_get_rtc): Likewise.
50612
50613 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50614 (grub_efi_stall): New prototype.
50615 (grub_efi_allocate_pages): Likewise.
50616 (grub_efi_free_pages): Likewise.
50617 (grub_efi_get_memory_map): Likewise.
50618 (grub_efi_mm_init): Likewise.
50619 (grub_efi_mm_fini): Likewise.
50620 (grub_efi_init): Likewise.
50621 (grub_efi_fini): Likewise.
50622
50623 * include/grub/i386/efi/time.h: Do not include
50624 grub/symbol.h. Include grub/efi/time.h.
50625 (GRUB_TICKS_PER_SECOND): Removed.
50626 (grub_get_rtc): Likewise.
50627
50628 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50629 Added padding. The EFI spec is buggy.
50630 (GRUB_EFI_BLACK): New macro.
50631 (GRUB_EFI_BLUE): Likewise.
50632 (GRUB_EFI_GREEN): Likewise.
50633 (GRUB_EFI_CYAN): Likewise.
50634 (GRUB_EFI_RED): Likewise.
50635 (GRUB_EFI_MAGENTA): Likewise.
50636 (GRUB_EFI_BROWN): Likewise.
50637 (GRUB_EFI_LIGHTGRAY): Likewise.
50638 (GRUB_EFI_BRIGHT): Likewise.
50639 (GRUB_EFI_DARKGRAY): Likewise.
50640 (GRUB_EFI_LIGHTBLUE): Likewise.
50641 (GRUB_EFI_LIGHTGREEN): Likewise.
50642 (GRUB_EFI_LIGHTCYAN): Likewise.
50643 (GRUB_EFI_LIGHTRED): Likewise.
50644 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50645 (GRUB_EFI_YELLOW): Likewise.
50646 (GRUB_EFI_WHITE): Likewise.
50647 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50648 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50649 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50650 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50651 (GRUB_EFI_BACKGROUND_RED): Likewise.
50652 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50653 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50654 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50655 (GRUB_EFI_TEXT_ATTR): Likewise.
50656
50657 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50658 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50659 (kernel_mod_HEADERS): Added efi/time.h.
50660
50661 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50662
50663 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50664 include/grub/efi/api.h, include/grub/efi/console_control.h,
50665 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50666 include/grub/i386/efi/time.h, kern/efi/efi.c,
50667 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50668 and util/i386/efi/grub-mkimage.c.
50669
50670 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50671
50672 * genmk.rb (PModule#rule): Do not export symbols if
50673 #{prefix}_EXPORTS is set to "no".
50674
50675 * conf/i386-efi.mk: New file.
50676 * conf/i386-efi.rmk: Likewise.
50677 * include/grub/efi/api.h: Likewise.
50678 * include/grub/efi/console_control.h: Likewise.
50679 * include/grub/efi/efi.h: Likewise.
50680 * include/grub/efi/pe32.h: Likewise.
50681 * include/grub/i386/efi/time.h: Likewise.
50682 * kern/efi/efi.c: Likewise.
50683 * kern/i386/efi/init.c: Likewise.
50684 * kern/i386/efi/startup.S: Likewise.
50685 * util/i386/efi/grub-mkimage.c: Likewise.
50686
50687 2006-04-17 Marco Gerards <marco@gnu.org>
50688
50689 * include/grub/script.h: Include <grub/parser.h> and
50690 "grub_script.tab.h".
50691 (struct grub_lexer_param): New struct.
50692 (struct grub_parser_param): Likewise.
50693 (grub_script_create_arglist): Pass the state in an argument.
50694 (grub_script_add_arglist): Likewise.
50695 (grub_script_create_cmdline): Likewise.
50696 (grub_script_create_cmdblock): Likewise.
50697 (grub_script_create_cmdif): Likewise.
50698 (grub_script_create_cmdmenu): Likewise.
50699 (grub_script_add_cmd): Likewise.
50700 (grub_script_arg_add): Likewise.
50701 (grub_script_lexer_ref): Likewise.
50702 (grub_script_lexer_deref): Likewise.
50703 (grub_script_lexer_record_start): Likewise.
50704 (grub_script_lexer_record_stop): Likewise.
50705 (grub_script_mem_record): Likewise.
50706 (grub_script_mem_record_stop): Likewise.
50707 (grub_script_malloc): Likewise.
50708 (grub_script_yylex): Likewise.
50709 (grub_script_yyparse): Likewise.
50710 (grub_script_yyerror): Likewise.
50711 (grub_script_yylex): Likewise.
50712 (grub_script_lexer_init): Return the state.
50713
50714 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50715 (grub_script_lexer_done): Likewise.
50716 (grub_script_lexer_getline): Likewise.
50717 (grub_script_lexer_refs): Likewise.
50718 (script): Likewise.
50719 (newscript): Likewise.
50720 (record): Likewise.
50721 (recording): Likewise.
50722 (recordpos): Likewise.
50723 (recordlen): Likewise.
50724 (grub_script_lexer_init): Return the state instead of setting
50725 global variables.
50726 (grub_script_lexer_ref): Use the newly added argument for state
50727 instead of globals.
50728 (grub_script_lexer_deref): Likewise.
50729 (grub_script_lexer_record_start): Likewise.
50730 (grub_script_lexer_record_stop): Likewise.
50731 (recordchar): Likewise.
50732 (nextchar): Likewise.
50733 (grub_script_yylex2): Likewise.
50734 (grub_script_yylex): Likewise.
50735 (grub_script_yyerror): Likewise.
50736
50737 * normal/parser.y (func_mem): Removed variable.
50738 (menu_entry): Likewise.
50739 (err): Likewise.
50740 (%lex-param): New parser option.
50741 (%parse-param): Likewise.
50742 (script): Always return the AST.
50743 (argument): Pass the state around.
50744 (arguments): Likewise.
50745 (grubcmd): Likewise.
50746 (commands): Likewise.
50747 (function): Likewise.
50748 (menuentry): Likewise.
50749 (if_statement): Likewise.
50750 (if): Likewise.
50751
50752 * normal/script.c (grub_script_memused): Removed variable.
50753 (grub_script_parsed): Likewise.
50754 (grub_script_malloc): Added a state argument. Use that instead of
50755 global variables.
50756 (grub_script_mem_record): Likewise.
50757 (grub_script_mem_record_stop): Likewise.
50758 (grub_script_arg_add): Likewise.
50759 (grub_script_add_arglist): Likewise.
50760 (grub_script_create_cmdline): Likewise.
50761 (grub_script_create_cmdif): Likewise.
50762 (grub_script_create_cmdmenu): Likewise.
50763 (grub_script_add_cmd): Likewise.
50764 (grub_script_parse): Setup the state before calling the parser.
50765
50766 2006-04-16 Marco Gerards <marco@gnu.org>
50767
50768 * normal/command.c (grub_command_init): Remove the title command.
50769
50770 * normal/lexer.c (grub_script_yylex): Renamed from this...
50771 (grub_script_yylex2): ... to this.
50772 (grub_script_yylex): New function. Temporary
50773 introduced to filter some tokens.
50774 (grub_script_yyerror): Print a newline.
50775
50776 * normal/main.c (read_config_file): Output information about the
50777 lines that contain errors. Wait for a key after all lines have
50778 been processed. Don't return an empty menu.
50779
50780 * normal/parser.y (func_mem): Don't initialize.
50781 (menu_entry): Likewise.
50782 (err): New variable.
50783 (script): Don't return anything when an error was encountered.
50784 (ws, returns): Removed rules.
50785 (argument): Disabled concatenated variable support.
50786 (arguments): Remove explicit separators.
50787 (grubcmd): Likewise.
50788 (function): Likewise.
50789 (menuentry): Likewise.
50790 (if): Likewise.
50791 (commands): Likewise. Add error handling.
50792
50793 * normal/script.c (grub_script_create_cmdline): If
50794 `grub_script_parsed' is 0, assume the parser encountered an error.
50795
50796 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50797
50798 * configure.ac: Add support for EFI. Fix the typo
50799 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50800
50801 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50802
50803 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50804 foreign multibyte characters should be shown correctly.
50805
50806 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50807
50808 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50809 calculation.
50810 (read_config_file): Made it to close file before returning.
50811
50812 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50813
50814 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50815 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50816 video/i386/pc/vbefill.c.
50817
50818 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50819 video/i386/pc/vbefill.c.
50820
50821 * include/grub/video.h (grub_video_blit_format): New enum.
50822 (grub_video_mode_info): Added new member blit_format.
50823 (grub_video_get_blit_format): New function prototype.
50824
50825 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50826 function prototype.
50827 (grub_video_vbe_map_rgb): Likewise.
50828 (grub_video_vbe_unmap_color): Likewise.
50829
50830 * include/grub/i386/pc/vbeblit.h: New file.
50831
50832 * include/grub/i386/pc/vbefill.h: New file.
50833
50834 * video/video.c (grub_video_get_blit_format): New function.
50835 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50836 (grub_video_vbe_map_rgb): Likewise.
50837 (grub_video_vbe_unmap_color): Likewise.
50838
50839 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50840 optimized fills.
50841 (grub_video_vbe_blit_render_target): Changed to use more optimized
50842 blits.
50843 (grub_video_vbe_setup): Added detection for optimized settings.
50844 (grub_video_vbe_create_render_target): Likewise.
50845
50846 * video/i386/pc/vbeblit.c: New file.
50847
50848 * video/i386/pc/vbefill.c: New file.
50849
50850 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50851
50852 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50853 here...
50854
50855 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50856 parsing to support both hex and dec ranges. If filename was missing
50857 show usage information.
50858
50859 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50860
50861 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50862 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50863
50864 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50865 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50866 (video_mod_SOURCES): Added.
50867 (video_mod_CFLAGS): Likewise.
50868 (video_mod_LDFLAGS): Likewise.
50869 (gfxterm_mod_SOURCES): Likewise.
50870 (gfxterm_mod_CFLAGS): Likewise.
50871 (gfxterm_mod_LDFLAGS): Likewise.
50872 (videotest_mod_SOURCES): Likewise.
50873 (videotest_mod_CFLAGS): Likewise.
50874 (videotest_mod_LDFLAGS): Likewise.
50875 (vesafb_mod_SOURCES): Removed.
50876 (vesafb_mod_CFLAGS): Likewise.
50877 (vesafb_mod_LDFLAGS): Likewise.
50878 (vga_mod_SOURCES): Likewise.
50879 (vga_mod_CFLAGS): Likewise.
50880 (vga_mod_LDFLAGS): Likewise.
50881
50882 * commands/videotest.c: New file.
50883
50884 * font/manager.c (fill_with_default_glyph): Modified to use
50885 grub_font_glyph.
50886 (grub_font_get_glyph): Likewise.
50887 (fontmanager): Renamed from this...
50888 (font_manager): ... to this.
50889
50890 * include/grub/font.h (grub_font_glyph): Added new structure.
50891 (grub_font_get_glyph): Modified to use grub_font_glyph.
50892
50893 * include/grub/misc.h (grub_abs): Added as inline function.
50894
50895 * include/grub/video.h: New file.
50896
50897 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50898 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50899 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50900 (grub_vbe_get_controller_info): Renamed from this...
50901 (grub_vbe_bios_get_controller_info): ... to this.
50902 (grub_vbe_get_mode_info): Renamed from this...
50903 (grub_vbe_bios_get_mode_info): ... to this.
50904 (grub_vbe_set_mode): Renamed from this...
50905 (grub_vbe_bios_set_mode): ... to this.
50906 (grub_vbe_get_mode): Renamed from this...
50907 (grub_vbe_bios_get_mode): ... to this.
50908 (grub_vbe_set_memory_window): Renamed from this...
50909 (grub_vbe_bios_set_memory_window): ... to this.
50910 (grub_vbe_get_memory_window): Renamed from this...
50911 (grub_vbe_bios_get_memory_window): ... to this.
50912 (grub_vbe_set_scanline_length): Renamed from this...
50913 (grub_vbe_set_scanline_length): ... to this.
50914 (grub_vbe_get_scanline_length): Renamed from this...
50915 (grub_vbe_bios_get_scanline_length): ... to this.
50916 (grub_vbe_set_display_start): Renamed from this...
50917 (grub_vbe_bios_set_display_start): ... to this.
50918 (grub_vbe_get_display_start): Renamed from this...
50919 (grub_vbe_bios_get_display_start): ... to this.
50920 (grub_vbe_set_palette_data): Renamed from this...
50921 (grub_vbe_bios_set_palette_data): ... to this.
50922 (grub_vbe_set_pixel_rgb): Removed.
50923 (grub_vbe_set_pixel_index): Likewise.
50924
50925 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50926 from this...
50927 (grub_vbe_bios_get_controller_info): ... to this.
50928 (grub_vbe_get_mode_info): Renamed from this...
50929 (grub_vbe_bios_get_mode_info): ... to this.
50930 (grub_vbe_set_mode): Renamed from this...
50931 (grub_vbe_bios_set_mode): ... to this.
50932 (grub_vbe_get_mode): Renamed from this...
50933 (grub_vbe_bios_get_mode): ... to this.
50934 (grub_vbe_set_memory_window): Renamed from this...
50935 (grub_vbe_bios_set_memory_window): ... to this.
50936 (grub_vbe_get_memory_window): Renamed from this...
50937 (grub_vbe_bios_get_memory_window): ... to this.
50938 (grub_vbe_set_scanline_length): Renamed from this...
50939 (grub_vbe_set_scanline_length): ... to this.
50940 (grub_vbe_get_scanline_length): Renamed from this...
50941 (grub_vbe_bios_get_scanline_length): ... to this.
50942 (grub_vbe_set_display_start): Renamed from this...
50943 (grub_vbe_bios_set_display_start): ... to this.
50944 (grub_vbe_get_display_start): Renamed from this...
50945 (grub_vbe_bios_get_display_start): ... to this.
50946 (grub_vbe_set_palette_data): Renamed from this...
50947 (grub_vbe_bios_set_palette_data): ... to this.
50948 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50949 getting corrupted after calling it. Added more pushes and pops.
50950 (grub_vbe_bios_set_mode): Likewise.
50951 (grub_vbe_bios_get_mode): Likewise.
50952 (grub_vbe_bios_get_memory_window): Likewise.
50953 (grub_vbe_bios_set_scanline_length): Likewise.
50954 (grub_vbe_bios_get_scanline_length): Likewise.
50955 (grub_vbe_bios_get_display_start): Likewise.
50956 (grub_vbe_bios_set_palette_data): Likewise.
50957
50958 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50959 (cl_insert): Likewise.
50960 (cl_delete): Likewise.
50961
50962 * term/gfxterm.c: New file.
50963
50964 * term/i386/pc/vesafb.c: Removed file.
50965
50966 * video/video.c: New file.
50967
50968 * video/i386/pc/vbe.c (real2pm): Added new function.
50969 (grub_video_vbe_draw_pixel): Likewise.
50970 (grub_video_vbe_get_video_ptr): Likewise.
50971 (grub_video_vbe_get_pixel): Likewise
50972 (grub_video_vbe_init): Likewise.
50973 (grub_video_vbe_fini): Likewise.
50974 (grub_video_vbe_setup): Likewise.
50975 (grub_video_vbe_get_info): Likewise.
50976 (grub_video_vbe_set_palette): Likewise.
50977 (grub_video_vbe_get_palette): Likewise.
50978 (grub_video_vbe_set_viewport): Likewise.
50979 (grub_video_vbe_get_viewport): Likewise.
50980 (grub_video_vbe_map_color): Likewise.
50981 (grub_video_vbe_map_rgb): Likewise.
50982 (grub_video_vbe_map_rgba): Likewise.
50983 (grub_video_vbe_unmap_color): Likewise.
50984 (grub_video_vbe_fill_rect): Likewise.
50985 (grub_video_vbe_blit_glyph): Likewise.
50986 (grub_video_vbe_blit_bitmap): Likewise.
50987 (grub_video_vbe_blit_render_target): Likewise.
50988 (grub_video_vbe_scroll): Likewise.
50989 (grub_video_vbe_swap_buffers): Likewise.
50990 (grub_video_vbe_create_render_target): Likewise.
50991 (grub_video_vbe_delete_render_target): Likewise.
50992 (grub_video_vbe_set_active_render_target): Likewise.
50993 (grub_vbe_set_pixel_rgb): Remove function.
50994 (grub_vbe_set_pixel_index): Likewise.
50995 (index_color_mode): Remove static variable.
50996 (active_mode): Likewise.
50997 (framebuffer): Likewise.
50998 (bytes_per_scan_line): Likewise.
50999 (grub_video_vbe_adapter): Added new static variable.
51000 (framebuffer): Likewise.
51001 (render_target): Likewise.
51002 (initial_mode): Likewise.
51003 (mode_in_use): Likewise.
51004 (mode_list): Likewise.
51005
51006 2006-03-10 Marco Gerards <marco@gnu.org>
51007
51008 * configure.ac (AC_INIT): Bumped to 1.93.
51009
51010 * DISTLIST: Added `include/grub/hfs.h'.
51011
51012 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51013
51014 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51015 18H, which might help the BIOS falling back to next boot media.
51016
51017 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51018
51019 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51020 Poe Chen <poe.poechen@gmail.com>.
51021
51022 2006-01-17 Marco Gerards <marco@gnu.org>
51023
51024 * include/grub/normal.h: Include <grub/script.h>.
51025 (grub_command_list): Removed struct.
51026 (grub_command_list_t): Removed type.
51027 (grub_menu_entry): Remove members `num' and `command_list'. Add
51028 members `commands' and `sourcecode'.
51029 * include/grub/script.h: Add inclusion guards.
51030 (grub_script_cmd_menuentry): New struct.
51031 (grub_script_execute_menuentry): New prototype.
51032 (grub_script_lexer_record_start): Likewise.
51033 (grub_script_lexer_record_stop): Likewise.
51034 * normal/execute.c (grub_script_execute_menuentry): New function.
51035 * normal/lexer.c (record, recording, recordpos, recordlen): New
51036 variables.
51037 (grub_script_lexer_record_start): New function.
51038 (grub_script_lexer_record_stop): Likewise.
51039 (recordchar): Likewise.
51040 (nextchar): Likewise.
51041 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51042 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51043 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51044 (current_menu): New variable.
51045 (free_menu): Mainly rewritten.
51046 (grub_normal_menu_addentry): New function.
51047 (read_config_file): Rewritten.
51048 * normal/menu.c (run_menu_entry): Mainly rewritten.
51049 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51050 the menu entry.
51051 (run): Mainly rewritten.
51052 * normal/parser.y (menu_entry): New variable.
51053 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51054 (menuentry): New rule.
51055 (command): Add `menuentry'.
51056 (if_statement): Allow additional returns before `fi'.
51057 * normal/script.c (grub_script_create_cmdmenu): New function.
51058
51059 2006-01-03 Marco Gerards <marco@gnu.org>
51060
51061 * INSTALL: GNU Bison is required.
51062 * configure.ac: Rewritten the test to detect Bison.
51063 * Makefile.in (YACC): New variable. Reported by Xun Sun
51064 <xun.sun.cn@gmail.com>.
51065
51066 2006-01-03 Marco Gerards <marco@gnu.org>
51067
51068 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51069 the HFS+ filesystem to filesystem blocks.
51070 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51071 GCC warning is silenced.
51072
51073 2006-01-03 Marco Gerards <marco@gnu.org>
51074
51075 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51076 read from disk from big endian to host byte order.
51077
51078 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51079
51080 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51081 documentation.
51082 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51083 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51084 embedded HFS+ filesystem.
51085 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51086 (grub_hfs_sblock): Move from here...
51087 * include/grub/hfs.h: To here... New file.
51088 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51089 documentation.
51090 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51091 New macros.
51092 (grub_hfsplus_volheader): Change type of member `magic' to
51093 `grub_uint16_t'.
51094 (grub_hfsplus_data): Add new member `embedded_offset'.
51095 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51096 returned block.
51097 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51098 Calculate the offset.
51099
51100 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51101
51102 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51103 Removed.
51104 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51105
51106 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51107
51108 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51109 ENV->NAME is NULL after allocating ENV->VALUE.
51110
51111 2005-12-25 Marco Gerards <marco@gnu.org>
51112
51113 * kern/env.c (grub_env_set): Rewritten the error handling code.
51114
51115 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51116
51117 * geninit.sh: Made more robust, and more portable.
51118
51119 2005-12-25 Marco Gerards <marco@gnu.org>
51120
51121 Add support for Apple HFS+ filesystems.
51122
51123 * fs/hfsplus.c: New file.
51124
51125 * DISTLIST: Added `fs/hfsplus.c'.
51126
51127 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51128 (hfsplus_mod_SOURCES): New variable.
51129 (hfsplus_mod_CFLAGS): Likewise.
51130 (hfsplus_mod_LDFLAGS): Likewise.
51131 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51132 (grub_setup_SOURCES): Likewise.
51133 (grub_mkdevicemap_SOURCES): Likewise.
51134 (grub_emu_SOURCES): Likewise.
51135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51136
51137 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51138
51139 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51140
51141 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51142
51143 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51144 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51145 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51146 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51147 normal/lexer.c, normal/parser.y, normal/script.c, and
51148 partmap/gpt.c.
51149 Removed kern/sparc64/cache.c.
51150
51151 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51152 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51153 grub_emu_init.c.
51154
51155 * configure.ac (AC_INIT): Bumped to 1.92.
51156
51157 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51158
51159 * kern/err.c (grub_error_push): Added new function to support error
51160 stacks.
51161 (grub_error_pop): Likewise.
51162 (grub_error_stack_items): New local variable to support error stacks.
51163 (grub_error_stack_pos): Likewise.
51164 (grub_error_stack_assert): Likewise.
51165 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51166 stack depth.
51167 (grub_print_error): Added support to print errors from error stack.
51168
51169 * include/grub/err.h (grub_error_push): Added function prototype.
51170 (grub_error_pop): Likewise.
51171
51172 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51173
51174 * configure.ac: Accept `powerpc64' as host_cpu.
51175 (amd64): Rename to `biarch32'.
51176
51177 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51178 non-cacheline-aligned addresses.
51179
51180 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51181 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51182 if `size' is non-zero.
51183
51184 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51185
51186 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51187 and `cd' to make sure the filename is not prefixed with a
51188 directory name.
51189 (pkgdata_MODULES): Add `gpt.mod'.
51190 (gpt_mod_SOURCES): New variable.
51191 (gpt_mod_CFLAGS): Likewise.
51192 (gpt_mod_LDFLAGS): Likewise.
51193
51194 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51195
51196 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51197 New macro.
51198
51199 * partmap/gpt.c: New file.
51200
51201 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51202 GPT partition map is detected.
51203
51204 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51205
51206 * commands/i386/pc/play.c: New file.
51207 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51208 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51209 macros.
51210
51211 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51212
51213 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51214 ((unused))' to silence gcc warning.
51215
51216 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51217
51218 * configure.ac: Correct `AC_PROG_YACC' test.
51219
51220 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51221
51222 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51223 check before installing files.
51224
51225 2005-11-22 Mike Small <smallm@panix.com>
51226
51227 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51228 number regex so multidigit numbers are recognized correctly.
51229
51230 2005-11-22 Mike Small <smallm@panix.com>
51231
51232 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51233 debugging message before attempting to claim memory.
51234 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51235 multiple addresses in case of failure.
51236
51237 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51238
51239 * term/tparm.c (get_space): Remove empty `if' statement.
51240
51241 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51242
51243 * kern/parser.c (check_varstate): Rename `state' to 's'.
51244
51245 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51246
51247 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51248 variable definitions to the beginning of each function. Sort stack
51249 variables by size.
51250 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51251 `buf' argument to `char *'.
51252
51253 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51254
51255 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51256 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51257 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51258 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51259 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51260 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51261 configfile.mod, search.mod, gzio.mod and test.mod.
51262 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51263 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51264 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51265 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51266 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51267 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51268 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51269 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51270 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51271 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51272 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51273 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51274 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51275 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51276 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51277 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51278 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51279 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51280 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51281 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51282 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51283 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51284 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51285
51286 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51287 `grep --include'.
51288 (pkgdata_MODULES): Add test.mod.
51289
51290 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51291
51292 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51293 appending to variables with "+=".
51294 (PModule): Use full pathname to generate *.lst filenames.
51295
51296 * Makefile.in: Fixed list rules moved from genmk.rb.
51297 (.DELETE_ON_ERROR): New special target.
51298 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51299
51300 * conf/i386-pc.rmk: Include conf/common.mk.
51301 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51302 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51303 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51304 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51305 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51306 configfile.mod, search.mod, gzio.mod and test.mod.
51307 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51308 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51309 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51310 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51311 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51312 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51313 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51314 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51315 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51316 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51317 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51318 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51319 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51320 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51321 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51322 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51323 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51324 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51325 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51326 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51327 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51328 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51329 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51330 here...
51331 * conf/common.rmk: ... to here. New file.
51332
51333 * conf/common.mk: New file.
51334
51335 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51336
51337 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51338 (grub_script.tab.c): ... here.
51339
51340 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51341 (grub_script.tab.c): ... here.
51342
51343 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51344 (grub_script.tab.c): ... here.
51345
51346 * normal/command.c (grub_command_find): Fixed a memory leak of
51347 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51348
51349 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51350
51351 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51352 "@" which marks the start of a comment on ARM.
51353 (VARIABLE): Likewise.
51354
51355 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51356
51357 Add support for Linux/ADFS partition tables.
51358
51359 * partmap/acorn.c: New file.
51360
51361 * include/grub/acorn_filecore.h: Likewise.
51362
51363 * DISTLIST: Added `partmap/acorn.c' and
51364 `include/grub/acorn_filecore.h'.
51365
51366 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51367 `partmap/acorn.c'.
51368 (pkgdata_MODULES): Add `acorn.mod'.
51369 (acorn_mod_SOURCES): New variable.
51370 (acorn_mod_CFLAGS): Likewise.
51371
51372 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51373 `partmap/acorn.c'.
51374 (pkgdata_MODULES): Add `acorn.mod'.
51375 (acorn_mod_SOURCES): New variable.
51376 (acorn_mod_CFLAGS): Likewise.
51377
51378 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51379 (pkgdata_MODULES): Add `acorn.mod'.
51380 (acorn_mod_SOURCES): New variable.
51381 (acorn_mod_CFLAGS): Likewise.
51382 (acorn_mod_LDFLAGS): Likewise.
51383
51384 * include/types.h (grub_disk_addr_t): New typedef.
51385
51386 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51387
51388 * geninit.sh: New file.
51389
51390 * geninitheader.sh: Likewise.
51391
51392 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51393 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51394 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51395 * commands/configfile.c (grub_configfile_init)
51396 (grub_configfile_fini): Likewise.
51397 * commands/default.c (grub_default_init, grub_default_fini):
51398 Likewise.
51399 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51400 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51401 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51402 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51403 Likewise.
51404 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51405 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51406 Likewise.
51407 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51408 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51409 Likewise.
51410 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51411 Likewise.
51412 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51413 Likewise.
51414 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51415 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51416 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51417 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51418 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51419 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51420 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51421 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51422 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51423 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51424 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51425 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51426 * partmap/amiga.c (grub_amiga_partition_map_init)
51427 (grub_amiga_partition_map_fini): Likewise.
51428 * partmap/apple.c (grub_apple_partition_map_init)
51429 (grub_apple_partition_map_fini): Likewise.
51430 * partmap/pc.c (grub_pc_partition_map_init)
51431 (grub_pc_partition_map_fini): Likewise.
51432 * partmap/sun.c (grub_sun_partition_map_init,
51433 grub_sun_partition_map_fini): Likewise.
51434 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51435 Likewise.
51436
51437 * util/grub-emu.c: Include <grub_modules_init.h>.
51438 (main): Don't initialize and de-initialize any modules directly,
51439 use `grub_init_all' and `grub_fini_all' instead.
51440
51441 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51442 `grub_vesafb_mod_init'.
51443 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51444 all users.
51445 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51446 `grub_vga_mod_init'. Updated all users.
51447 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51448
51449 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51450 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51451 rules.
51452
51453 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51454 Generate a function to initialize the module in utilities.
51455 Updated all callers.
51456 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51457 initialize the module in utilities. Updated all callers.
51458
51459 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51460
51461 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51462 escape sequence and a literal ^L to clear the screen.
51463
51464 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51465 when returning from Open Firmware.
51466
51467 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51468
51469 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51470 (grub_ofconsole_height): Likewise.
51471 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51472 manually insert a '\n'.
51473 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51474 `grub_ofconsole_height'. Return early if these are already set.
51475
51476 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51477
51478 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51479 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51480 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51481 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51482 and `normal/script.c'.
51483 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51484 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51485 (test_mod_SOURCES): New variable.
51486 (test_mod_CFLAGS): Likewise.
51487 (test_mod_LDFLAGS): Likewise.
51488 (pkgdata_MODULES): Add `test.mod'.
51489 (grub_script.tab.c): New rule.
51490 (grub_script.tab.h): Likewise.
51491
51492 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51493
51494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51495 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51496 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51497 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51498 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51499 (test_mod_SOURCES): New variable.
51500 (test_mod_CFLAGS): Likewise.
51501 (pkgdata_MODULES): Add `test.mod'.
51502 (grub_script.tab.c): New rule.
51503 (grub_script.tab.h): Likewise.
51504
51505 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51506
51507 Add initial scripting support.
51508
51509 * commands/test.c: New file.
51510 * include/grub/script.h: Likewise.
51511 * normal/execute.c: Likewise.
51512 * normal/function.c: Likewise.
51513 * normal/lexer.c: Likewise.
51514 * normal/parser.y: Likewise.
51515 * normal/script.c: Likewise.
51516
51517 * configure.ac: Add `AC_PROG_YACC' test.
51518
51519 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51520 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51521 `normal/function.c' and `normal/script.c'.
51522 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51523 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51524 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51525 variables.
51526 (pkgdata_MODULES): Add `test.mod'.
51527 (grub_script.tab.c): New rule.
51528 (grub_script.tab.h): Likewise.
51529
51530 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51531
51532 * include/grub/normal.h (grub_test_init): New prototype.
51533 (grub_test_fini): Likewise.
51534
51535 * normal/command.c: Include <grub/script.h>.
51536 (grub_command_execute): Rewritten.
51537
51538 * util/grub-emu.c (main): Call `grub_test_init' and
51539 `grub_test_fini'.
51540
51541 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51542
51543 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51544 to 0.
51545 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51546 there are no pending characters.
51547
51548 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51549
51550 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51551 `grub_strndup' to drop device arguments. Replace unnecessary
51552 `grub_strndup' with `grub_strdup'.
51553
51554 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51555
51556 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51557 `debug' environment variable has been set.
51558
51559 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51560
51561 * Makefile.in (install-local): Use $(DATA).
51562 (uninstall): Likewise.
51563 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51564 (sbin_UTILITIES): ... to here.
51565 (sbin_SCRIPTS): New variable.
51566 (grub_install_SOURCES): New variable.
51567 * util/powerpc/ieee1275/grub-install.in: New file.
51568 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51569 variable.
51570 (add_segments): Call `grub_util_get_path'.
51571
51572 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51573
51574 From Timothy Baldwin:
51575 * commands/ls.c (grub_ls_list_files): Close FILE with
51576 grub_file_close.
51577 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51578
51579 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51580
51581 * include/grub/parser.h: New file.
51582
51583 * kern/parser.c: Likewise.
51584
51585 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51586 (grub_setup_SOURCES): Likewise.
51587 (grub_probefs_SOURCES): Likewise.
51588 (grub_emu_SOURCES): Likewise.
51589 (kernel_img_HEADERS): Add `parser.h'.
51590
51591 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51592 (grub_emu_SOURCES): Add `kern/parser.c'.
51593 (grubof_SOURCES): Likewise.
51594
51595 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51596 (grubof_SOURCES): Add `kern/parser.c'.
51597
51598 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51599
51600 * kern/misc.c (grub_split_cmdline): Removed function.
51601
51602 * kern/rescue.c: Include <grub/parser.h>.
51603 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51604 of `grub_split_cmdline'.
51605
51606 * normal/command.c: Include <grub/parser.h>.
51607 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51608 of `grub_split_cmdline'.
51609
51610 * normal/completion.c: Include <grub/parser.h>.
51611 (cmdline_state): New variable.
51612 (iterate_dir): End the filename with a quote depending on the
51613 command line state.
51614 (get_state): new function.
51615 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51616 split the arguments and determine the current argument. When the
51617 argument string is not quoted, escape all spaces.
51618
51619 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51620
51621 * normal/sparc64/setjmp.S: New file.
51622
51623 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51624
51625 * include/grub/sparc64/libgcc.h: New file.
51626 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51627 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51628 normal/sparc64/setjmp.c.
51629
51630 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51631
51632 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51633 * kern/sparc64/cache.S: New file.
51634 * kern/sparc64/cache.c: Removed.
51635 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51636 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51637 -mtune=ultrasparc.
51638 (COMMON_LDFLAGS): Add -melf64_sparc.
51639 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51640 (grubof_SOURCES): Use cache.S instead of cache.c.
51641 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51642 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51643 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51644 commented though.
51645 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51646 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51647 (linux_mod_CFLAGS): Commented out.
51648 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51649 out because module isn't built.
51650 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51651 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51652 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51653 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51654 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51655 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51656 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51657 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51658 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51659 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51660 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51661 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51662 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51663 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51664
51665 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51666
51667 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51668 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51669 longer, because HFS should not be used on PC.
51670
51671 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51672
51673 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51674 consistently within the loop.
51675
51676 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51677
51678 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51679 directory can not be read.
51680
51681 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51682
51683 * configure.ac (AC_INIT): Increase the version number to 1.91.
51684
51685 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51686 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51687 term/i386/pc/serial.c.
51688
51689 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51690
51691 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51692 file size must be permitted.
51693
51694 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51695 between %ah and %al.
51696
51697 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51698
51699 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51700 grub_uint64_t.
51701 Call the hook with a NUL-terminated filename.
51702 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51703 grub_cpu_to_be32.
51704
51705 * kern/term.c (cursor_state): New variable.
51706 (grub_term_set_current): Reset the cursor state on a new
51707 terminal.
51708 (grub_setcursor): Rewritten to use CURSOR_STATE.
51709 (grub_getcursor): New function.
51710
51711 * include/grub/term.h (grub_getcursor): New prototype.
51712
51713 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51714 integers on ARM. Reported by Timothy Baldwin
51715 <T.E.Baldwin99@members.leeds.ac.uk>.
51716
51717 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51718
51719 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51720 allocated.
51721 (grub_sfs_dir): Likewise.
51722
51723 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51724
51725 Add support for the SFS filesystem.
51726
51727 * fs/sfs.c: New file.
51728
51729 * DISTLIST: Added `fs/sfs.c'.
51730
51731 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51732 (grub_probefs_SOURCES): Likewise.
51733 (grub_emu_SOURCES): Likewise.
51734 (pkgdata_MODULES): Add `sfs.mod'.
51735 (sfs_mod_SOURCES): New variable.
51736 (sfs_mod_CFLAGS): Likewise.
51737 (sfs_mod_LDFLAGS): Likewise.
51738
51739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51740 (pkgdata_MODULES): Add `sfs.mod'.
51741 (sfs_mod_SOURCES): New variable.
51742 (sfs_mod_CFLAGS): Likewise.
51743
51744 * util/grub-emu.c (main): Call `grub_sfs_init' and
51745 `grub_sfs_fini'.
51746
51747 * include/grub/fs.h (grub_sfs_init): New prototype.
51748 (grub_sfs_fini): Likewise.
51749
51750 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51751
51752 Add support for the AFFS filesystem.
51753
51754 * fs/affs.c: New file.
51755
51756 * DISTLIST: Added `fs/affs.c'.
51757
51758 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51759 (grub_probefs_SOURCES): Likewise.
51760 (grub_emu_SOURCES): Likewise.
51761 (pkgdata_MODULES): Add `affs.mod'.
51762 (affs_mod_SOURCES): New variable.
51763 (affs_mod_CFLAGS): Likewise.
51764 (affs_mod_LDFLAGS): Likewise.
51765
51766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51767 (pkgdata_MODULES): Add `affs.mod'.
51768 (affs_mod_SOURCES): New variable.
51769 (affs_mod_CFLAGS): Likewise.
51770
51771 * util/grub-emu.c (main): Call `grub_affs_init' and
51772 `grub_affs_fini'.
51773
51774 * include/grub/fs.h (grub_affs_init): New prototype.
51775 (grub_affs_fini): Likewise.
51776
51777 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51778
51779 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51780
51781 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51782
51783 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51784 `-m32' to CFLAGS.
51785
51786 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51787 linking.
51788
51789 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51790 (COMMON_LDFLAGS): New variable.
51791 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51792 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51793 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51794 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51795 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51796 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51797 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51798 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51799 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51800 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51801 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51802 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51803 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51804 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51805 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51806 variables.
51807 (normal_mod_ASFLAGS): Add `-m32'.
51808
51809 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51810 (grub_host_size_t, grub_host_ssize_t): New types.
51811 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51812 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51813 `GRUB_HOST_SIZEOF_VOID_P'.
51814
51815 * include/grub/kernel.h (struct grub_module_header): Type of
51816 member offset changed to `grub_host_off_t'. Type of member size
51817 changed to `grub_host_size_t'.
51818 (struct grub_module_info): Type of member offset changed to
51819 `grub_host_off_t'. Type of member size changed to
51820 `grub_host_size_t'.
51821
51822 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51823
51824 Make GRUB's kernel compliant to Multiboot Specification.
51825
51826 * kern/i386/pc/startup.S (multiboot_header): New label.
51827 (multiboot_entry): Likewise.
51828 (multiboot_trampoline): Likewise.
51829
51830 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51831 Increased to 0x4A0.
51832
51833 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51834 put parentheses after a question mark.
51835 [!GRUB_UTIL] (my_mod): New variable.
51836
51837 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51838
51839 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51840
51841 Adds support for the XFS filesystem. Btrees are not supported
51842 yet.
51843
51844 * fs/xfs.c: New file.
51845
51846 * DISTLIST: Added `fs/xfs.c'.
51847
51848 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51849 (grub_probefs_SOURCES): Likewise.
51850 (grub_emu_SOURCES): Likewise.
51851 (pkgdata_MODULES): Add `xfs.mod'.
51852 (xfs_mod_SOURCES): New variable.
51853 (xfs_mod_CFLAGS): Likewise.
51854
51855 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51856 (pkgdata_MODULES): Add `xfs.mod'.
51857 (xfs_mod_SOURCES): New variable.
51858 (xfs_mod_CFLAGS): Likewise.
51859
51860 * util/grub-emu.c (main): Call `grub_xfs_init' and
51861 `grub_xfs_fini'.
51862
51863 * include/grub/fs.h (grub_xfs_init): New prototype.
51864 (grub_xfs_fini): Likewise.
51865
51866
51867 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51868
51869 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51870 color modes, allow greater than 16 colors to be configured as
51871 a default palette.
51872
51873 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51874
51875 * normal/completion.c (complete_arguments): Add the qualifier
51876 const into OPTIONS.
51877
51878 From Omniflux <omniflux+lists@omniflux.com>:
51879 * include/grub/terminfo.h: New file.
51880 * include/grub/tparm.h: Likewise.
51881 * include/grub/i386/pc/serial.h: Likewise.
51882 * term/terminfo.c: Likewise.
51883 * term/tparm.c: Likewise.
51884 * term/i386/pc/serial.c: Likewise.
51885 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51886 serial.mod.
51887 (terminfo_mod_SOURCES): New variable.
51888 (terminfo_mod_CFLAGS): Likewise.
51889 (serial_mod_SOURCES): Likewise.
51890 (serial_mod_CFLAGS): Likewise.
51891
51892 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51893
51894 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51895 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51896 and kern/powerpc/ieee1275/cmain.c, respectively.
51897
51898 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51899 * kern/powerpc/ieee1275/crt0.S: ... here.
51900
51901 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51902 * kern/powerpc/ieee1275/cmain.c: ... here.
51903
51904 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51905 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51906 instead of boot/powerpc/ieee1275/crt0.S and
51907 boot/powerpc/ieee1275/cmain.c, respectively.
51908
51909 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51910 sectors. It was not used anyway.
51911
51912 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51913
51914 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51915 `unused parameter' warning.
51916
51917 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51918
51919 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51920 function.
51921 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51922 getcharwidth.
51923
51924 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51925
51926 * include/grub/normal.h (enum grub_completion_type): Added
51927 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51928
51929 * normal/cmdline.c (print_completion): Handle
51930 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51931 * normal/menu_entry.c (store_completion): Likewise.
51932
51933 * normal/completion.c (complete_arguments): New function.
51934 (grub_normal_do_completion): Call `complete_arguments' when the
51935 current words start with a dash.
51936
51937 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51938
51939 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51940 `gzio.mod' instead of `io.mod').
51941
51942 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51943
51944 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51945 (DISTDIRS): Added io and video.
51946 Rewrite the search routine to make an output consistently.
51947
51948 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51949 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51950 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51951 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51952 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51953 util/powerpc/ieee1275/misc.c.
51954
51955 * include/grub/gzio.h: New file.
51956 * io/gzio.c: Likewise.
51957
51958 * kern/file.c (grub_file_close): Call grub_device_close only if
51959 FILE->DEVICE is not NULL.
51960
51961 * include/grub/mm.h [!NULL] (NULL): New macro.
51962
51963 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51964
51965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51966 (pkgdata_MODULES): Added gzio.mod.
51967 (gzio_mod_SOURCES): New variable.
51968 (gzio_mod_CFLAGS): Likewise.
51969
51970 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51971 (pkgdata_MODULES): Added gzio.mod.
51972 (gzio_mod_SOURCES): New variable.
51973 (gzio_mod_CFLAGS): Likewise.
51974
51975 * commands/cat.c: Include grub/gzio.h.
51976 (grub_cmd_cat): Use grub_gzfile_open instead of
51977 grub_file_open.
51978
51979 * commands/cmp.c: Include grub/gzio.h.
51980 (grub_cmd_cmp): Use grub_gzfile_open instead of
51981 grub_file_open.
51982
51983 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51984 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51985 grub_file_open.
51986 (grub_rescue_cmd_module): Likewise.
51987
51988 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51989
51990 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51991 kern/sparc64/ieee1275/init.c because it contains _start.
51992 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51993
51994 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51995
51996 * configure.ac: Add support for sparc64 host with ieee1275
51997 firmware.
51998 * configure: Generated from configure.ac.
51999 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52000 instead of int.
52001 (grub_ofdisk_read): Likewise.
52002 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52003 pointers as (void *) to remove a warning.
52004 (grub_ofdisk_close): Likewise.
52005 (grub_ofdisk_read): Likewise.
52006 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52007 returns, so make it return void to remove a warning.
52008 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52009 Corresponding prototype change.
52010 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52011 values, and cast the pointers as (void *) to remove a warning.
52012 (grub_mm_dump): Likewise.
52013 * conf/sparc64-ieee1275.mk: New file.
52014 * conf/sparc64-ieee1275.rmk: Likewise.
52015 * include/grub/sparc64/setjmp.h: Likewise.
52016 * include/grub/sparc64/types.h: Likewise.
52017 * include/grub/sparc64/ieee1275/console.h: Likewise.
52018 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52019 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52020 * include/grub/sparc64/ieee1275/time.h: Likewise.
52021 * kern/sparc64/cache.c: Likewise.
52022 * kern/sparc64/dl.c: Likewise.
52023 * kern/sparc64/ieee1275/init.c: Likewise.
52024 * kern/sparc64/ieee1275/openfw.c: Likewise.
52025
52026 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52027
52028 * util/console.c (grub_ncurses_putchar): If C is greater than
52029 0x7f, set C to a question mark.
52030 (grub_ncurses_getcharwidth): New function.
52031 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52032 getcharwidth.
52033
52034 * normal/menu.c (print_entry): Made aware of Unicode. First,
52035 convert TITLE to UCS-4, and predict the cursor position by
52036 grub_getcharwidth.
52037
52038 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52039 const to SRC.
52040 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52041
52042 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52043
52044 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52045 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52046 grub_strcat.
52047
52048 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52049 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52050 grub_strcpy and grub_strlen. Take it into account that a space
52051 character is inserted as a delimiter.
52052
52053 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52054
52055 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52056 invalid magic in the error.
52057
52058 * commands/search.c: New file.
52059
52060 * util/grub-emu.c (main): Call grub_search_init and
52061 grub_search_fini.
52062
52063 * kern/rescue.c (grub_rescue_print_disks): Removed.
52064 (grub_rescue_print_devices): New function.
52065 (grub_rescue_cmd_ls): Use grub_device_iterate with
52066 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52067 grub_rescue_print_disks.
52068
52069 * kern/partition.c (grub_partition_iterate): Return the result of
52070 PARTMAP->ITERATE instead of GRUB_ERRNO.
52071
52072 * kern/device.c: Include grub/partition.h.
52073 (grub_device_iterate): New function.
52074
52075 * include/grub/partition.h (grub_partition_iterate): Return int
52076 instead of grub_err_t.
52077
52078 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52079 prototype.
52080 [GRUB_UTIL] (grub_search_fini): Likewise.
52081
52082 * include/grub/device.h (grub_device_iterate): New prototype.
52083
52084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52085 commands/search.c.
52086 (pkgdata_MODULES): Added search.mod.
52087 (search_mod_SOURCES): New variable.
52088 (search_mod_CFLAGS): Likewise.
52089
52090 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52091 (pkgdata_MODULES): Added search.mod.
52092 (search_mod_SOURCES): New variable.
52093 (search_mod_CFLAGS): Likewise.
52094
52095 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52096 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52097 All callers changed.
52098
52099 * DISTLIST: Added commands/search.c.
52100
52101 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52102
52103 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52104 conversion.
52105 (grub_getcharwidth): New function.
52106
52107 * kern/misc.c (grub_utf8_to_ucs4): New function.
52108
52109 * include/grub/term.h (struct grub_term): Added a new member
52110 "getcharwidth".
52111 (grub_getcharwidth): New prototype.
52112
52113 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52114
52115 * term/i386/pc/console.c (map_char): New function. Segregated from
52116 grub_console_putchar.
52117 (grub_console_putchar): Use map_char.
52118 (grub_console_getcharwidth): New function.
52119 (grub_console_term): Specified grub_console_getcharwidth as
52120 getcharwidth.
52121
52122 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52123 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52124
52125 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52126 GRUB_ERRNO.
52127 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52128 on grub_strtoul completely.
52129 (write_char): Declare local variables in the beginning of the
52130 function.
52131 (grub_vesafb_getcharwidth): New function.
52132 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52133 getcharwidth.
52134
52135 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52136
52137 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52138 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52139 commands/i386/pc/vbetest.c.
52140
52141 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52142 call grub_vbe_get_controller_info again, because the returned
52143 information is volatile.
52144 (grub_vbe_set_video_mode): Mostly rewritten.
52145 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52146 grub_vbe_status_t correctly.
52147 (grub_vbe_get_video_mode_info): Likewise.
52148 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52149 several if statements.
52150
52151 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52152 * commands/i386/pc/vbeinfo.c: ... this.
52153
52154 * commands/i386/pc/vbe_test.c: Renamed to ...
52155 * commands/i386/pc/vbetest.c: ... this.
52156
52157 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52158 ...
52159 (grub_cmd_vbeinfo): ... this. Save video modes before
52160 iterating. Skip a video mode, if it is not available, not enough
52161 information is given or it is monochrome. Show the memory
52162 model. Leave the interpretation of MODEVAR to grub_strtoul
52163 completely.
52164 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52165 (GRUB_MOD_FINI): Likewise.
52166
52167 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52168 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52169 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52170 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52171 grub_strtoul completely.
52172 (real2pm): Removed.
52173 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52174 (GRUB_MOD_FINI): Likewise.
52175
52176 * normal/misc.c: Include grub/mm.h.
52177
52178 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52179 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52180 (vbe_list_modes_mod_SOURCES): Removed.
52181 (vbe_list_modes_mod_CFLAGS): Likewise.
52182 (vbe_test_mod_SOURCES): Likewise.
52183 (vbe_test_mod_CFLAGS): Likewise.
52184 (vbeinfo_mod_SOURCES): New variable.
52185 (vbeinfo_mod_CFLAGS): Likewise.
52186 (vbetest_mod_SOURCES): Likewise.
52187 (vbetest_mod_CFLAGS): Likewise.
52188
52189 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52190
52191 * normal/misc.c: New file.
52192
52193 * DISTLIST: Added normal/misc.c.
52194
52195 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52196 DISK to HOOK. Call HOOK with DISK.
52197 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52198 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52199 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52200
52201 * normal/menu_entry.c (struct screen): Added a new member
52202 "completion_shown".
52203 (completion_buffer): New global variable.
52204 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52205 (store_completion): New function.
52206 (complete): Likewise.
52207 (clear_completions): Likewise.
52208 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52209 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52210 a tab, call complete.
52211
52212 * normal/completion.c (disk_dev): Removed.
52213 (print_simple_completion): Likewise.
52214 (print_partition_completion): Likewise.
52215 (print_func): New global variable.
52216 (add_completion): Do not take the arguments WHAT or PRINT any
52217 longer. Added a new argument TYPE. Instead of printing directly,
52218 call PRINT_FUNC if not NULL.
52219 All callers changed.
52220 (complete_device): Use a local variable DEV instead of
52221 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52222 (grub_normal_do_completion): Take a new argument HOOK. Do not
52223 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52224 empty string, return NULL instead.
52225 All callers changed.
52226
52227 * normal/cmdline.c (print_completion): New function.
52228
52229 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52230 to HOOK.
52231 All callers changed.
52232
52233 * kern/disk.c (grub_print_partinfo): Removed.
52234
52235 * include/grub/partition.h (struct grub_partition_map): Add a new
52236 argument DISK into HOOK of ITERATE.
52237 (grub_partition_iterate): Add a new argument DISK to HOOK.
52238
52239 * include/grub/normal.h (enum grub_completion_type): New enum.
52240 (grub_completion_type_t): New type.
52241 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52242 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52243 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52244 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52245 (grub_normal_do_completion): Added a new argument HOOK.
52246 (grub_normal_print_device_info): New prototype.
52247
52248 * include/grub/disk.h (grub_print_partinfo): Removed.
52249
52250 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52251 (normal_mod_SOURCES): Likewise.
52252 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52253 (normal_mod_SOURCES): Likewise.
52254
52255 * commands/ls.c (grub_ls_list_disks): Use
52256 grub_normal_print_device_info instead of grub_print_partinfo. Free
52257 PNAME.
52258 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52259 duplicating the code.
52260
52261 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52262
52263 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52264 follow GCS more precisely.
52265 * commands/i386/pc/vbe_test.c: Likewise.
52266 * include/grub/i386/pc/vbe.h: Likewise.
52267 * term/i386/pc/vesafb.c: Likewise.
52268 * video/i386/pc/vbe.c: Likewise.
52269
52270 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52271
52272 * DISTLIST: Added term/i386/pc/vesafb.c
52273 DISTLIST: Added video/i386/pc/vbe.c
52274 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52275 DISTLIST: Added commands/i386/pc/vbe_test.c.
52276 * commands/i386/pc/vbe_list_modes.c: New file.
52277 * commands/i386/pc/vbe_test.c: Likewise.
52278 * term/i386/pc/vesafb.c: Likewise.
52279 * video/i386/pc/vbe.c: Likewise.
52280 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52281 (grub_vbe_probe) Added prototype.
52282 (grub_vbe_set_video_mode) Likewise.
52283 (grub_vbe_get_video_mode) Likewise.
52284 (grub_vbe_get_video_mode_info) Likewise.
52285 (grub_vbe_set_pixel_rgb) Likewise.
52286 (grub_vbe_set_pixel_index) Likewise.
52287 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52288 (pkgdata_MODULES): Added vesafb.mod.
52289 (pkgdata_MODULES): Added vbe_list_modes.mod.
52290 (pkgdata_MODULES): Added vbe_test.mod.
52291 (vbe_mod_SOURCES): Added.
52292 (vbe_mod_CFLAGS): Likewise.
52293 (vesafb_mod_SOURCES): Likewise.
52294 (vesafb_mod_CFLAGS): Likewise.
52295 (vbe_list_modes_mod_SOURCES): Likewise.
52296 (vbe_list_modes_mod_CFLAGS): Likewise.
52297 (vbe_test_mod_SOURCES): Likewise.
52298 (vbe_test_mod_CFLAGS): Likewise.
52299
52300 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52301
52302 * normal/command.c (grub_command_execute): If INTERACTIVE is
52303 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52304 CMDLINE. Disable the pager if INTERACTIVE is true.
52305 All callers are changed.
52306
52307 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52308 before reading a config file.
52309 * normal/main.c (read_config_file): Even if a command is not
52310 found, register it if it is within an entry.
52311
52312 * util/grub-emu.c: Include sys/types.h and unistd.h.
52313 (options): Added --hold.
52314 (struct arguments): Added a new member "hold".
52315 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52316 missing.
52317 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52318 cleared by a debugger, if it is not zero.
52319
52320 * include/grub/normal.h (grub_command_execute): Add an argument
52321 INTERACTIVE.
52322
52323 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52324
52325 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52326
52327 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52328
52329 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52330 program with another one, because the old one didn't detect a bug
52331 in gcc-3.4. Always use regparm 2, because the new test is still
52332 not enough for gcc-4.0. Someone must investigate a simple test
52333 case which detects a bug in gcc-4.0.
52334
52335 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52336
52337 * DISTLIST: Added normal/completion.c.
52338
52339 * normal/completion.c: New file.
52340
52341 * term/i386/pc/console.c (grub_console_getwh): New function.
52342 (grub_console_term): Assign grub_console_getwh to getwh.
52343
52344 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52345 function is defined in normal/completion.c as
52346 grub_normal_do_completion.
52347 (grub_cmdline_get): Use grub_normal_do_completion instead of
52348 grub_tab_complete.
52349
52350 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52351 returns non-zero, otherwise return 0.
52352 (grub_partition_iterate): First, probe the partition map. Then,
52353 call ITERATE only for this partition map.
52354
52355 * kern/misc.c (grub_strncmp): Rewritten.
52356
52357 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52358 returns non-zero. Otherwise return 0.
52359
52360 * include/grub/partition.h (grub_partition_map_iterate): Return
52361 int instead of void.
52362
52363 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52364
52365 * include/grub/misc.h (grub_strncmp): Change the type of N to
52366 grub_size_t.
52367
52368 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52369 of void.
52370
52371 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52372 unsigned explicitly before comparing it with I.
52373
52374 * kern/main.c (grub_env_write_root): Add the attribute unused into
52375 VAR.
52376
52377 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52378 normal/completion.c.
52379 (normal_mod_SOURCES): Likewise.
52380 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52381 (normal_mod_SOURCES): Likewise.
52382
52383 * normal/command.c (grub_iterate_commands): If ITERATE returns
52384 non-zero, return one immediately.
52385
52386 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52387
52388 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52389 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52390 descriptions.
52391 (grub_vbe_get_controller_info): New function.
52392 (grub_vbe_get_mode_info): Likewise.
52393 (grub_vbe_set_mode): Likewise.
52394 (grub_vbe_get_mode): Likewise.
52395 (grub_vbe_set_memory_window): Likewise.
52396 (grub_vbe_get_memory_window): Likewise.
52397 (grub_vbe_set_scanline_length): Likewise.
52398 (grub_vbe_get_scanline_length): Likewise.
52399 (grub_vbe_set_display_start): Likewise.
52400 (grub_vbe_get_display_start): Likewise.
52401 (grub_vbe_set_palette_data): Likewise.
52402 * include/grub/i386/pc/vbe.h: New file.
52403
52404 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52405
52406 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52407 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52408 * DISTLIST: Likewise.
52409 * kern/ieee1275/of.c: Moved to ...
52410 * kern/ieee1275/ieee1275.c: ... here.
52411
52412 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52413
52414 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52415 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52416 Pass 0 as `end' parameter to grub_strtoul().
52417
52418 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52419
52420 * include/grub/powerpc/ieee1275/console.h: Do not include
52421 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52422 ifdef.
52423 (grub_console_cur_color): Remove i386-specific prototype.
52424 (grub_console_real_putchar): Likewise.
52425 (grub_console_checkkey): Likewise.
52426 (grub_console_getkey): Likewise.
52427 (grub_console_getxy): Likewise.
52428 (grub_console_gotoxy): Likewise.
52429 (grub_console_cls): Likewise.
52430 (grub_console_setcursor): Likewise.
52431 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52432 Include <grub/machine/console.h>.
52433 * term/ieee1275/ofconsole.c: Likewise.
52434
52435 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52436
52437 * Makefile.in (LIBLZO): New variable.
52438
52439 * configure.ac: Check for LZO version 2.
52440
52441 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52442 lzo/lzo1x.h instead of lzo1x.h.
52443
52444 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52445 of -llzo.
52446
52447 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52448 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52449
52450 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52451 copying the data from PARTITION to P.
52452
52453 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52454
52455 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52456 negative, unload the module.
52457
52458 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52459 map is "pc_partition_map" but not "pc".
52460 (usage): Fix the description. The options are --boot-image and
52461 --core-image but not --boot-file or --core-file.
52462 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52463 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52464 DEFAULT_DIRECTORY.
52465
52466 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52467 --core-file. Specify INSTALL_DEVICE as an argument.
52468
52469 * util/console.c: Include config.h.
52470 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52471 [HAVE_NCURSES_H]: Include ncurses.h.
52472 [HAVE_CURSES_H]: Include curses.h.
52473 [!A_NORMAL] (A_NORMAL): Defined as zero.
52474 [!A_STANDOUT] (A_STANDOUT): Likewise.
52475
52476 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52477 -lncurses.
52478 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52479
52480 * configure.ac: Check for curses libraries and headers.
52481
52482 * Makefile.in (LIBCURSES): New variable.
52483
52484 * genmk.rb (Script::rule): Set the executable bits.
52485
52486 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52487 name of the PC partition map is "pc_partition_map" but not "pc".
52488
52489 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52490
52491 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52492 (modules): Likewise.
52493 (usage): Added descriptions for --modules and --grub-probefs.
52494 Handle --modules and --grub-probefs. Save the arguments in MODULES
52495 and GRUB_PROBEFS, respectively.
52496 Auto-detect a filesystem module against GRUBDIR. If the result is
52497 empty and modules are not specified explicitly, abort the
52498 installation. Add the result to MODULES.
52499
52500 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52501 disk/powerpc/ieee1275/ofdisk.c,
52502 include/grub/powerpc/ieee1275/init.h and
52503 term/powerpc/ieee1275/ofconsole.c.
52504 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52505 term/ieee1275/ofconsole.c.
52506
52507 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52508
52509 * COPYING: Upgraded to the latest version. Only the address of the
52510 FSF office has changed.
52511
52512 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52513
52514 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52515 kern/ieee1275.c with kern/ieee1275/of.c.
52516
52517 * kern/ieee1275.c: Moved to ...
52518 * kern/ieee1275/of.c: ... here.
52519
52520 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52521
52522 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52523 readability.
52524
52525 * config.guess: Updated to the latest version from gnulib.
52526 * config.sub: Likewise.
52527 * install.sh: Likewise.
52528 * mkinstalldirs: Likewise.
52529
52530 * include/grub/console.h: Removed. This file is arch-specific. Do
52531 not put this in include/grub.
52532
52533 * include/grub/i386/pc/console.h: Resurrected.
52534
52535 * util/console.c: Include grub/machine/console.h instead of
52536 grub/console.h.
52537 * util/grub-emu.c: Likewise.
52538
52539 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52540
52541 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52542 hardcoded value.
52543
52544 From Vincent Pelletier <subdino2004@yahoo.fr>
52545 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52546 Redefined to use grub_getwh.
52547 (grub_term): New member named getwh.
52548 (grub_getwh): New prototype.
52549 * kern/term.c (grub_getwh): New function.
52550 * term/i386/pc/console.c (grub_console_getwh): New function.
52551 (grub_console_term): New member `getwh'.
52552 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52553 (grub_vga_term): New member `getwh'.
52554 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52555 grub_ssize_t.
52556 (grub_ofconsole_getw): New function.
52557 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52558 (grub_ofconsole_term): New field named getwh and new initial
52559 value.
52560
52561 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52562
52563 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52564 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52565 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52566 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52567 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52568 of <grub/machine/ieee1275.h>.
52569 * commands/ieee1275/reboot.c: Likewise.
52570 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52571 * kern/ieee1275.c: ... to here. All users updated. Change all
52572 parameter structs to use new type `grub_ieee1275_cell_t'.
52573 * term/powerpc/ieee1275/ofconsole.c: Move ...
52574 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52575 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52576 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52577 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52578 to return int.
52579 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52580 Remove unused prototypes. All users updated.
52581 * include/grub/powerpc/ieee1275/console.h: Removed.
52582 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52583 `grub_ieee1275_cell_t'.
52584 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52585 Cast comparisons with -1 to the correct type.
52586 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52587 type to match `grub_ieee1275_entry_fn'.
52588
52589 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52590
52591 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52592
52593 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52594 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52595 partmap/sun.c.
52596 (grub_probefs_SOURCES): New variable.
52597
52598 * util/i386/pc/grub-probefs.c: New file.
52599
52600 * util/i386/pc/grub-setup.c (main): Call
52601 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52602 grub_hfs_init and grub_jfs_init to initialize the system. Call
52603 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52604 grub_pc_partition_map_fini to finish the system.
52605
52606 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52607
52608 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52609 function.
52610 (grub_multiboot_load_elf32): Likewise.
52611 (grub_multiboot_is_elf64): Likewise.
52612 (grub_multiboot_load_elf64): Likewise.
52613 (grub_multiboot_load_elf): Likewise.
52614 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52615 an ELF32 or ELF64 file.
52616 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52617
52618 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52619 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52620 NULL before calling FS->LABEL.
52621 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52622 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52623 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52624 before calling FS->LABEL.
52625
52626 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52627
52628 * util/i386/pc/grub-install.in (datadir): New variable.
52629 (libdir): Removed.
52630 (pkgdatadir): New variable.
52631 (pkglibdir): Removed.
52632
52633 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52634
52635 * DISTLIST: Added util/i386/pc/grub-install.in.
52636
52637 * util/i386/pc/grub-install.in: New file.
52638
52639 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52640 (grub_install_SOURCES): Likewise.
52641
52642 * genmk.rb: Added support for scripts.
52643 (Script): New class.
52644 (scripts): New variable.
52645
52646 * Makefile.in (install-local): Install sbin_SCRIPTS by
52647 INSTALL_SCRIPT.
52648 (uninstall): Remove sbin_SCRIPTS.
52649
52650 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52651 device, try to get a GRUB device by
52652 grub_util_biosdisk_get_grub_dev.
52653 Free DEST_DEV.
52654
52655 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52656 description for --device-map.
52657
52658 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52659
52660 Change the semantics of variable hooks. They now return strings
52661 instead of error values.
52662
52663 * util/i386/pc/grub-setup.c: Include grub/env.h.
52664 (setup): Use grub_device_set_root instead of grub_env_set.
52665
52666 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52667 grub_env_get instead of grub_device_set_root and
52668 grub_device_get_root, respectively.
52669
52670 * kern/main.c (grub_env_write_root): New function.
52671 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52672 grub_env_set instead of grub_device_set_root.
52673
52674 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52675 many variables.
52676 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52677 rather than calling ENV->WRITE_HOOK afterwards.
52678 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52679 passing a pointer of a pointer.
52680 (grub_register_variable_hook): Change the types of "read_hook" and
52681 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52682 respectively.
52683 Allocate the default empty string on the heap, because this string
52684 may be freed later.
52685
52686 * kern/device.c: Include grub/env.h.
52687 (grub_device_set_root): Removed.
52688 (grub_device_get_root): Likewise.
52689 (grub_device_open): Use grub_env_get instead of
52690 grub_device_get_root.
52691
52692 * include/grub/env.h (grub_env_read_hook_t): New type.
52693 (grub_env_write_hook_t): Likewise.
52694 (grub_env_var): Change the types of "read_hook" and "write_hook"
52695 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52696 (grub_register_variable_hook): Likewise.
52697
52698 * include/grub/device.h (grub_device_set_root): Removed.
52699 (grub_device_set_root): Likewise.
52700
52701 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52702 make sure that DIRNAME terminates with '/', so that
52703 grub_fat_find_dir will fail if PATH is not a directory.
52704
52705 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52706 from DIRNAME.
52707 Use the qualifier auto for print_files and print_files_long.
52708 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52709 as a regular file.
52710 Put a newline only if there is no error.
52711 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52712 used.
52713
52714 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52715
52716 * kern/partition.c (grub_partition_probe): Initialize PART to
52717 NULL. Otherwise, when no partition map is registered, this returns
52718 a garbage.
52719
52720 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52721
52722 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52723 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52724 valid.
52725
52726 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52727
52728 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52729 information on each device, if it does not have partitions. Print
52730 "Device" instead of "Disk", because this function is not specific
52731 to disk devices.
52732
52733 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52734 static to ensure that it is put on the memory rather than a
52735 register.
52736
52737 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52738
52739 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52740 (grub_cat_init): Likewise.
52741 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52742 (options): Likewise.
52743 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52744 (grub_configfile_init): Likewise.
52745 * font/manager.c (GRUB_MOD_INIT): Likewise.
52746 * commands/help.c (GRUB_MOD_INIT): Likewise.
52747 (grub_help_init): Likewise.
52748 * normal/command.c (grub_command_init): Likewise.
52749 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52750 * disk/loopback.c (grub_loop_init): Likewise.
52751 (GRUB_MOD_INIT): Likewise.
52752 * commands/ls.c (grub_ls_init): Likewise.
52753 (GRUB_MOD_INIT): Likewise.
52754 (options): Likewise.
52755 * commands/boot.c (grub_boot_init): Likewise.
52756 (GRUB_MOD_INIT): Likewise.
52757 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52758 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52759 (GRUB_MOD_INIT): Likewise.
52760 * commands/cmp.c (grub_cmp_init): Likewise.
52761 (GRUB_MOD_INIT): Likewise.
52762
52763 * normal/arg.c: Use <> instead of "" to include header files.
52764 (SHORT_ARG_HELP): New macro.
52765 (SHORT_ARG_USAGE): Likewise.
52766 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52767 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52768 descriptions.
52769 (find_short): Check if C is 'h' or 'u' explicitly.
52770 (grub_arg_show_help): Use space characters instead of tabs. Treat
52771 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52772 are shown with --help and --usage only if they are not used for
52773 the command itself.
52774 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52775 'h' and 'u'.
52776
52777 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52778 const into "longarg". Change the type of "shortarg" to int.
52779
52780 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52781
52782 * boot/i386/pc/boot.S (boot_drive_check): New label.
52783
52784 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52785 macro.
52786
52787 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52788 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52789
52790 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52791
52792 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52793 When turning off Gate A20, skip the check and return immediately,
52794 because this is not fatal usually.
52795
52796 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52797
52798 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52799 be 0x7C00 instead of 0x8000.
52800
52801 * boot/i386/pc/pxeboot.S: Rewritten.
52802
52803 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52804 EXT_C.
52805 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52806 result.
52807
52808 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52809
52810 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52811 robustness. This routine now supports a BIOS call and System
52812 Control Port A to modify the gate A20.
52813
52814 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52815 Increased to 0x440.
52816
52817 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52818
52819 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52820 device path and resulting ihandle.
52821 (grub_ofdisk_close): dprintf the ihandle being closed.
52822 (grub_ofdisk_read): dprintf function parameters.
52823 * kern/mm.c (grub_mm_init_region): Likewise.
52824 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52825 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52826 size, and boot arguments.
52827 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52828 before loading into memory.
52829 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52830 before loading into memory.
52831
52832 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52833
52834 * kern/mm.c: Added much documentation.
52835 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52836 8, set to 5 instead of 8.
52837
52838 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52839
52840 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52841
52842 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52843 (grub_mkdevicemap_SOURCES): New variable.
52844
52845 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52846 lib/device.c of GRUB Legacy.
52847
52848 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52849
52850 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52851 instead of PATH is NULL.
52852
52853 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52854
52855 * commands/cmp.c (BUFFER_SIZE): New macro.
52856 (grub_cmd_cmp): Close the right file at the right time. Compare
52857 only data just read. Don't report files of different size as
52858 identical. Dynamically allocate buffers. Move variable
52859 declarations at the beginning of function.
52860
52861 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52862
52863 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52864 reverse.
52865
52866 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52867
52868 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52869 when backspace is pressed at beginning of line.
52870
52871 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52872
52873 * DISTLIST: Added genfslist.sh.
52874
52875 * normal/main.c (fs_module_list): New variable.
52876 (autoload_fs_module): New function.
52877 (read_fs_list): Likewise.
52878 (grub_normal_execute): Call read_fs_list.
52879
52880 * kern/fs.c (grub_fs_autoload_hook): New variable.
52881 (grub_fs_probe): Added support for auto-loading.
52882
52883 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52884 (grub_fs_module_list_t): New type.
52885
52886 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52887 (grub_fs_autoload_hook): New prototype.
52888
52889 * genfslist.sh: New file.
52890
52891 * genmk.rb: Added a rule to generate a filesystem list.
52892
52893 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52894
52895 * configure.ac: Fix the test for cross-compiling.
52896
52897 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52898 define GRUB_UTIL anymore.
52899
52900 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52901 so this function works on other systems than just big endian.
52902 (load_modules): Likewise.
52903 (add_segments): Likewise.
52904
52905 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52906
52907 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52908 contains `l' modifier, get a long from va_arg().
52909
52910 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52911
52912 * kern/mm.c (grub_free): If the next free block which is being
52913 merged is the first free block, set the first block to the block
52914 being freed.
52915 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52916
52917 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52918
52919 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52920 `grub_ieee1275_chosen'.
52921
52922 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52923
52924 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52925 (grub_ieee1275_chosen): New variable.
52926 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52927 `chosen'.
52928 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52929 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52930 Rename first argument to `phandle' for consistency.
52931 (grub_ieee1275_get_property_length): Likewise.
52932 (grub_ieee1275_next_property): Likewise. Change type of first argument
52933 to grub_ieee1275_phandle_t.
52934 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52935 Move export next to declaration.
52936 (grub_ieee1275_chosen): New variable.
52937 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52938 Correct cosmetic typo.
52939 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52940 `grub_ieee1275_chosen'.
52941 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52942 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52943 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52944 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52945 `grub_ieee1275_chosen'.
52946
52947 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52948
52949 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52950 /chosen/bootargs.
52951 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52952 /chosen/bootargs as "variable=value" pairs.
52953
52954 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52955
52956 * include/grub/misc.h (grub_dprintf): New macro.
52957 (grub_real_dprintf): New prototype.
52958 (grub_strword): Likewise.
52959 (grub_iswordseparator): Likewise.
52960 * kern/misc.c (grub_real_dprintf): New function.
52961 (grub_strword): Likewise.
52962 (grub_iswordseparator): Likewise.
52963
52964 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52965
52966 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52967 (roundup): Remove macro.
52968 (grub_ieee1275_flags): Make static.
52969 (grub_ieee1275_realmode): Remove.
52970 (grub_ieee1275_test_flag): New function.
52971 (grub_ieee1275_set_flag): Likewise.
52972 (find_options): Rename to `grub_ieee1275_find_options'; update
52973 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52974 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52975 (cmain): New prototype.
52976 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52977 `grub_ieee1275_flags' directly.
52978 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52979 machine/biosdisk.h.
52980 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52981 Don't include grub/machine/init.h.
52982 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52983 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52984 Remove prototype.
52985 (grub_ieee1275_realmode): Likewise.
52986 (grub_ieee1275_flag): New enum.
52987 (grub_ieee1275_test_flag): New prototype.
52988 (grub_ieee1275_set_flag): New prototype.
52989 * include/grub/powerpc/ieee1275/init.h: Remove file.
52990 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52991 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52992 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52993 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52994 comment.
52995 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52996 `grub_ieee1275_test_flag'.
52997 (grub_ieee1275_encode_devname): Likewise.
52998
52999 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53000
53001 * include/grub/powerpc/ieee1275/ieee1275.h
53002 (grub_ieee1275_encode_devname): New prototype.
53003 (grub_ieee1275_get_filename): Likewise.
53004 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53005 function.
53006 (grub_set_prefix): Likewise.
53007 (grub_machine_init): Call grub_set_prefix.
53008 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53009 (grub_parse_type): New enum.
53010 (grub_ieee1275_get_devargs): New function.
53011 (grub_ieee1275_get_devname): Likewise.
53012 (grub_ieee1275_parse_args): Likewise.
53013 (grub_ieee1275_get_filename): Likewise.
53014 (grub_ieee1275_encode_devname): Likewise.
53015
53016 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53017
53018 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53019 `grub_loader_unset'.
53020
53021 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53022
53023 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53024 instead of grub_ieee1275_interpret.
53025 (grub_halt_init): New function.
53026 (grub_halt_fini): Likewise.
53027 (GRUB_MOD_INIT): Correct message grammar.
53028 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53029 instead of grub_ieee1275_interpret.
53030 (grub_reboot_init): New function.
53031 (grub_reboot_fini): Likewise.
53032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53033 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53034 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53035 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53036 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53037 function.
53038 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53039 Add prototype.
53040 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53041 prototype.
53042 (grub_halt): Likewise.
53043 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53044 (cmain): Remove __attribute__((unused)).
53045 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53046 (grub_heap_len): Likewise.
53047 (grub_machine_fini): New function.
53048 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53049 (grub_halt): Likewise.
53050 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53051 function.
53052 * util/powerpc/ieee1275/misc.c: New file.
53053
53054 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53055
53056 * DISTLIST: New file.
53057 * gendistlist.sh: Likewise.
53058
53059 * Makefile.in (COMMON_DISTFILES): Removed.
53060 (BOOT_DISTFILES): Likewise.
53061 (CONF_DISTFILES): Likewise.
53062 (DISK_DISTFILES): Likewise.
53063 (FS_DISTFILES): Likewise.
53064 (INCLUDE_DISTFILES): Likewise.
53065 (KERN_DISTFILES): Likewise.
53066 (LOADER_DISTFILES): Likewise.
53067 (TERM_DISTFILES): Likewise.
53068 (UTIL_DISTFILES): Likewise.
53069 (DISTFILES): Likewise.
53070 (uninstall): Uninstall files in $(pkgdata_DATA).
53071 (DISTLIST): New target.
53072 (distdir): Use the contents of the file DISTLIST to get a list of
53073 distributed files.
53074
53075 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53076
53077 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53078 descriptor. This is ported from GRUB Legacy.
53079
53080 * gencmdlist.sh: Added an extra semicolon to make it work with
53081 old sed versions. Reported by Robert Bihlmeyer
53082 <robbe@orcus.priv.at>.
53083
53084 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53085
53086 Automatic loading of commands is supported.
53087
53088 * normal/main.c (read_command_list): New function.
53089 (grub_normal_execute): Call read_command_list.
53090
53091 * normal/command.c (grub_register_command): Return zero or CMD.
53092 Allocate CMD->NAME from the heap.
53093 Initialize CMD->MODULE_NAME to zero.
53094 Find the same name as well. If the same command is found and it is
53095 a dummy command, overwrite members. If it is not a dummy command,
53096 return zero.
53097 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53098 (grub_command_find): If a dummy command is found, load a module
53099 and retry to find a command only once.
53100
53101 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53102 make sure that each command is loaded.
53103
53104 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53105 macro.
53106 (struct grub_command): Remove const from the member `name'.
53107 Add a new member `module_name'.
53108 (grub_register_command): Return grub_command_t.
53109
53110 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53111 sure that each command is loaded.
53112
53113 * genmk.rb (PModule::rule): Specify a module name without the
53114 suffix ".mod" to gencmdlist.sh.
53115
53116 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53117
53118 * gencmdlist.sh: New file.
53119
53120 * genmk.rb (PModule::rule): Generate a rule for a command list.
53121 Clean command.lst.
53122 Generate command.lst from $(COMMANDFILES).
53123
53124 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53125 (DATA): Added $(pkgdata_DATA).
53126 (install-local): Install files in $(pkgdata_DATA).
53127
53128 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53129
53130 * term/i386/pc/vga.c (debug_command): Removed.
53131 (GRUB_MOD_INIT): Do not register the command "debug".
53132
53133 From Hollis Blanchard:
53134 * commands/configfile.c: New file.
53135 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53136 commands/configfile.c.
53137 (pkgdata_MODULES): Added configfile.mod.
53138 (configfile_mod_SOURCES): New variable.
53139 (configfile_mod_CFLAGS): Likewise.
53140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53141 commands/configfile.c.
53142 (pkgdata_MODULES): Added configfile.mod.
53143 (configfile_mod_SOURCES): New variable.
53144 (configfile_mod_CFLAGS): Likewise.
53145 * util/grub-emu.c (main): Call grub_configfile_init and
53146 grub_configfile_fini.
53147 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53148 prototype.
53149 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53150
53151 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53152
53153 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53154 address.
53155
53156 * commands/help.c (grub_cmd_help): Do not print newlines after
53157 the last command in print_command_help.
53158
53159 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53160
53161 * commands/default.h: New file.
53162 * commands/timeout.h: Likewise.
53163 * normal/context.c: Likewise.
53164
53165 * util/misc.c: Do not include sys/times.h.
53166 Include sys/time.h and grub/machine/time.h.
53167 (grub_get_rtc): Rewritten with gettimeofday.
53168
53169 * util/grub-emu.c (main): Call grub_default_init and
53170 grub_timeout_init before grub_normal_init, and call
53171 grub_timeout_fini and grub_default_fini after grub_main.
53172
53173 * util/console.c (grub_ncurses_checkkey): Return the read
53174 character or -1.
53175
53176 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53177 timeouts.
53178
53179 * normal/main.c (read_config_file): Push MENU. If this fails,
53180 print an error and wait for a user input.
53181 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53182 If a menu is empty or an error occurs, pop MENU.
53183 (grub_normal_execute): Pop and free MENU after grub_menu_run
53184 returns.
53185
53186 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53187
53188 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53189 include time.h.
53190 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53191 without GRUB_UTIL.
53192 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53193 time.h.
53194 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53195 without GRUB_UTIL.
53196
53197 * include/grub/normal.h (struct grub_menu_list): New struct.
53198 (grub_menu_list_t): New type.
53199 (struct grub_context): New struct.
53200 (grub_context_t): New type.
53201 (grub_register_command): Got rid of EXPORT_FUNC.
53202 (grub_unregister_command): Likewise.
53203 (grub_context_get): New prototype.
53204 (grub_context_get_current_menu): Likewise.
53205 (grub_context_push_menu): Likewise.
53206 (grub_context_pop_menu): Likewise.
53207 [GRUB_UTIL] (grub_default_init): Likewise.
53208 [GRUB_UTIL] (grub_default_fini): Likewise.
53209 [GRUB_UTIL] (grub_timeout_init): Likewise.
53210 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53211
53212 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53213 commands/timeout.c and normal/context.c.
53214 (pkgdata_MODULES): Added default.mod and timeout.mod.
53215 (normal_mod_SOURCES): Added normal/context.c.
53216 (default_mod_SOURCES): New variable.
53217 (default_mod_CFLAGS): Likewise.
53218 (timeout_mod_SOURCES): Likewise.
53219 (timeout_mod_CFLAGS): Likewise.
53220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53221 conf/i386-pc.rmk.
53222 (pkgdata_MODULES): Added default.mod and timeout.mod.
53223 (normal_mod_SOURCES): Added normal/context.c.
53224 (default_mod_SOURCES): New variable.
53225 (default_mod_CFLAGS): Likewise.
53226 (timeout_mod_SOURCES): Likewise.
53227 (timeout_mod_CFLAGS): Likewise.
53228
53229 * Makefile.in (all-local): Added $(MKFILES).
53230
53231 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53232
53233 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53234 (grub_emu_SOURCES): Likewise.
53235 (pkgdata_MODULES): Add `sun.mod'.
53236 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53237 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53238 `partmap/sun.c'.
53239 (pkgdata_MODULES): Add `sun.mod'.
53240 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53241 * include/grub/partition.h (grub_sun_partition_map_init): New
53242 prototype.
53243 (grub_sun_partition_map_fini): Likewise.
53244 * partmap/sun.c: New file.
53245 * util/grub-emu.c (main): Initialize and de-initialize the sun
53246 partitionmap support.
53247
53248 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53249
53250 This implements an Emacs-like menu entry editor.
53251
53252 * normal/menu_entry.c: New file.
53253
53254 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53255 characters to ASCII.
53256 (saved_char): New variable.
53257 (grub_ncurses_checkkey): Rewritten completely.
53258 (grub_ncurses_getkey): Likewise.
53259 (grub_ncurses_init): Call raw instead of cbreak.
53260
53261 * normal/menu.c (print_entry): Do not put a space.
53262 (init_page): Renamed to ...
53263 (grub_menu_init_page): ... this. All callers changed.
53264 (edit_menu_entry): Removed.
53265 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53266
53267 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53268
53269 * kern/misc.c (grub_vprintf): Call grub_refresh.
53270
53271 * normal/menu.c (DISP_LEFT): Renamed to ...
53272 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53273 * normal/menu.c (DISP_UP): Renamed to ...
53274 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53275 * normal/menu.c (DISP_RIGHT): Renamed to ...
53276 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53277 * normal/menu.c (DISP_DOWN): Renamed to ...
53278 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53279 * normal/menu.c (DISP_HLINE): Renamed to ...
53280 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53281 * normal/menu.c (DISP_VLINE): Renamed to ...
53282 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53283 * normal/menu.c (DISP_UL): Renamed to ...
53284 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53285 * normal/menu.c (DISP_UR): Renamed to ...
53286 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53287 * normal/menu.c (DISP_LL): Renamed to ...
53288 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53289 * normal/menu.c (DISP_LR): Renamed to ...
53290 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53291 * normal/menu.c (TERM_WIDTH): Renamed to ...
53292 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53293 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53294 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53295 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53296 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53297 * normal/menu.c (TERM_MARGIN): Renamed to ...
53298 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53299 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53300 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53301 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53302 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53303 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53304 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53305 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53306 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53307 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53308 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53309 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53310 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53311 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53312 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53313 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53314 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53315 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53316 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53317 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53318 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53319 All callers changed.
53320
53321 * include/grub/normal.h: New prototype.
53322
53323 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53324 normal/menu_entry.c.
53325 (normal_mod_SOURCES): Likewise.
53326 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53327 (normal_mod_SOURCES): Likewise.
53328
53329 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53330
53331 * include/grub/normal.h (grub_halt_init): New prototype.
53332 (grub_halt_fini): Likewise.
53333 (grub_reboot_init): Likewise.
53334 (grub_reboot_fini): Likewise.
53335
53336 * util/grub-emu.c: Include signal.h.
53337 (main_env): New global variable.
53338 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53339 catch C-c.
53340 (grub_machine_fini): New function.
53341 (main): Call grub_halt_init and grub_reboot_init before
53342 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53343 Call setjmp with MAIN_ENV to go back afterwards.
53344 Call grub_machine_fini right before return.
53345
53346 * include/grub/util/misc.h: Include setjmp.h.
53347 (main_env): New prototype.
53348
53349 * include/grub/kernel.h (grub_machine_fini): New prototype.
53350 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53351 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53352
53353 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53354 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53355 * term/i386/pc/console.c (grub_console_fini): Likewise.
53356
53357 * util/i386/pc/misc.c: New file.
53358
53359 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53360 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53361 commands/i386/pc/reboot.c.
53362
53363 2005-02-14 Guillem Jover <guillem@hadrons.org>
53364
53365 * include/grub/dl.h (grub_dl_check_header): New prototype.
53366 (grub_arch_dl_check_header): Change return type to grub_err_t,
53367 remove size parameter and export function. Update all callers.
53368 * kern/dl.c (grub_dl_check_header): New function.
53369 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53370 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53371 are inside the core.
53372 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53373 independent ELF header checks.
53374 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53375 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53376 `grub_dl_check_header' instead of explicit checks. Check for the
53377 ELF type.
53378 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53379 `grub_dl_check_header' instead of explicit checks. Remove arch
53380 specific ELF header checks.
53381
53382 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53383 argument SIZE.
53384
53385 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53386
53387 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53388 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53389
53390 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53391
53392 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53393 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53394 (part_map_iterate): Clear `grub_errno' and return 0 if
53395 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53396 * partmap/amiga.c (amiga_partition_map_iterate): Return
53397 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53398 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53399
53400 2005-02-01 Guillem Jover <guillem@hadrons.org>
53401
53402 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53403 help info.
53404
53405 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53406
53407 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53408 Removed prototype.
53409 (grub_rescue_cmd_linux): New prototype.
53410 (grub_rescue_cmd_initrd): Likewise.
53411 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53412 `bi_rec'.
53413 (grub_linux_release_mem): Release the memory for the initrd.
53414 (grub_load_linux): Renamed from this...
53415 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53416 Changed `entry' not to be static. Loop over memory regions to
53417 find another one when the default fails.
53418 (grub_rescue_cmd_initrd): New function.
53419 (grub_linux_init): Remove function.
53420 (grub_linux_fini): Likewise.
53421 (GRUB_MOD_INIT): Register `initrd'.
53422 (GRUB_MOD_FINI): Unregister `initrd'.
53423 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53424 Function removed.
53425 (grub_linux_normal_fini): Likewise.
53426 (GRUB_MOD_INIT): Register `initrd'.
53427 (GRUB_MOD_FINI): Unregister `initrd'.
53428
53429 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53430
53431 * commands/help.c: New file.
53432 * normal/arg.c (show_help): Renamed to...
53433 (grub_arg_show_help): ... this.
53434 * commands/i386/pc/halt.c: New file.
53435 * commands/i386/pc/reboot.c: Likewise.
53436 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53437 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53438 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53439 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53440 variables.
53441 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53442 `commands/help.c'.
53443 (pkgdata_MODULES): Add `help.mod'.
53444 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53445 * grub/i386/pc/init.h (grub_reboot): New prototype.
53446 (grub_halt): Likewise.
53447 * include/grub/normal.h (grub_arg_show_help): New prototype.
53448 (grub_help_init): Likewise.
53449 (grub_help_fini): Likewise.
53450 * util/grub-emu.c (main): Initialize and deinitialize the help
53451 command.
53452
53453 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53454
53455 * normal/command.c (grub_command_init): Fixed the description of
53456 the `set' and `unset' commands.
53457
53458 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53459
53460 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53461 function.
53462 * commands/ieee1275/halt.c: New file.
53463 * commands/ieee1275/reboot.c: Likewise.
53464 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53465 `__attribute__ ((unused))'. Some GCS related fixed.
53466 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53467 (grub_suspend_fini): Likewise.
53468 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53469 and `halt.mod'.
53470 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53471 (halt_mod_CFLAGS): New variables.
53472 * include/grub/powerpc/ieee1275/ieee1275.h
53473 (grub_ieee1275_interpret): New prototype.
53474
53475 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53476
53477 * include/grub/misc.h (memmove): New prototype.
53478 (memcpy): Likewise.
53479
53480 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53481
53482 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53483 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53484
53485 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53486
53487 * kern/misc.c (grub_strndup): Function rewritten.
53488
53489 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53490
53491 * normal/menu.c (TERM_WIDTH): Macro redefined.
53492 (TERM_TOP_BORDER_Y): Likewise.
53493 (draw_border): Replaced while-loop by a for-loop. Make the number
53494 of lines consistent with the number of lines displayed in
53495 print_entries. Added a margin below the rectangle.
53496 (print_entry): Make the entry fit in the rectangle.
53497 (print_entries): Display the scroll arrows next to the right
53498 border.
53499
53500 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53501
53502 * fs/minix.c (grub_minix_find_file): Reserve more space for
53503 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53504 `grub_strncpy' to copy `path' into it.
53505
53506 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53507
53508 Add the loopback device, a device via which files can be accessed
53509 as devices.
53510
53511 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53512 (pkgdata_MODULES): Add loopback.mod.
53513 (loopback_mod_SOURCES): New variable.
53514 (loopback_mod_CFLAGS): Likewise.
53515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53516 `disk/loopback.c'.
53517 (pkgdata_MODULES): Add loopback.mod.
53518 (loopback_mod_SOURCES): New variable.
53519 (loopback_mod_CFLAGS): Likewise.
53520 * disk/loopback.c: new file.
53521 * include/grub/normal.h (grub_loop_init): New prototype.
53522 (grub_loop_fini): New prototype.
53523 * util/grub-emu.c (main): Initialize and de-initialize loopback
53524 support.
53525 * include/grub/disk.h (grub_disk_dev_id): Add
53526 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53527
53528 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53529
53530 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53531 function.
53532 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53533 (suspend_mod_SOURCES): New variable.
53534 (suspend_mod_CFLAGS): Likewise.
53535 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53536 New prototype.
53537 * commands/ieee1275/suspend.c: New file.
53538
53539 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53540
53541 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53542 ((unused))' to `__attribute__ ((used))'.
53543 (GRUB_MOD_FINI): Likewise.
53544 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53545 * genmk.rb (PModule): Assign space to common symbols when linking
53546 modules.
53547
53548 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53549
53550 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53551 `unsigned' arguments to `grub_size_t'.
53552 (grub_malloc): Likewise.
53553 (grub_realloc): Likewise.
53554 (grub_memalign): Likewise.
53555 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53556 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53557 * util/misc.c (grub_malloc): Likewise.
53558 (grub_realloc): Likewise.
53559 * kern/mm.c (get_header_from_pointer): Change the casts to
53560 `unsigned' into a cast to `grub_size_t'.
53561
53562 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53563 point to `currnode' when `currnode' is changed.
53564
53565 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53566 Schottelius <nico-linux@schottelius.org>.
53567
53568 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53569
53570 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53571 (note_path): Remove variable.
53572 (GRUB_IEEE1275_NOTE_NAME): New macro.
53573 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53574 (grub_ieee1275_note_hdr): New structure.
53575 (grub_ieee1275_note_desc): Likewise.
53576 (grub_ieee1275_note): Likewise.
53577 (load_note): Remove `dir' argument. All callers updated. Remove
53578 `note_img' and `path'. Do not load a file from `note_path'.
53579 Initialize a struct grub_ieee1275_note and write that to `out'.
53580 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53581
53582 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53583
53584 * util/misc.c (grub_util_read_image): Revert last change. It
53585 called `grub_util_read_at', which seeks from the beginning of the
53586 file.
53587
53588 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53589
53590 * TODO: Add note about endianness in grub-mkimage.
53591 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53592 section.
53593 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53594 (grub_mkimage_SOURCES): New target.
53595 * include/grub/kernel.h (grub_start_addr): Remove variable.
53596 (grub_end_addr): Likewise.
53597 (grub_total_module_size): Likewise.
53598 (grub_kernel_image_size): Likewise.
53599 (GRUB_MODULE_MAGIC): New constant.
53600 (grub_module_info): New structure.
53601 (grub_arch_modules_addr): New prototype.
53602 (grub_get_end_addr): Remove prototype.
53603 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53604 * include/grub/powerpc/ieee1275/kernel.h: New file.
53605 * include/grub/util/misc.h (grub_util_get_fp_size): New
53606 prototype.
53607 (grub_util_read_at): Likewise.
53608 (grub_util_write_image_at): Likewise.
53609 * kern/main.c (grub_get_end_addr): Remove function.
53610 (grub_load_modules): Call grub_arch_modules_addr instead of using
53611 grub_end_addr. Look for a grub_module_info struct in memory. Use
53612 the grub_module_info fields instead of calling grub_get_end_addr
53613 as loop conditions. Move grub_add_unused_region code here.
53614 (grub_add_unused_region): Remove function.
53615 * kern/i386/pc/init.c: Include grub/cache.h.
53616 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53617 one call to add_mem_region.
53618 (grub_arch_modules_addr): New function.
53619 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53620 (grub_total_module_size): Likewise.
53621 Include grub/machine/kernel.h.
53622 (grub_arch_modules_addr): New function.
53623 * util/grub-emu.c (grub_end_addr): Remove variable.
53624 (grub_total_module_size): Likewise.
53625 (grub_arch_modules_addr): New function.
53626 * util/misc.c: Include unistd.h.
53627 (grub_util_get_fp_size): New function.
53628 (grub_util_read_at): Likewise.
53629 (grub_util_write_image_at): Likewise.
53630 (grub_util_read_image): Call grub_util_read_at.
53631 (grub_util_write_image): Call grub_util_write_image_at.
53632 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53633 additional memory in kernel_img for a struct grub_module_info.
53634 Fill in that grub_module_info.
53635 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53636
53637 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53638
53639 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53640 New function.
53641 * include/grub/powerpc/ieee1275/ieee1275.h
53642 (grub_ieee1275_milliseconds): New prototype.
53643 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53644 Change to 1000.
53645 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53646 grub_ieee1275_milliseconds.
53647
53648 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53649
53650 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53651 variable.
53652 (find_options): New function.
53653 (cmain): Call find_options.
53654 * include/grub/powerpc/ieee1275/ieee1275.h
53655 (grub_ieee1275_realmode): New extern variable.
53656 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53657 grub_map if grub_ieee1275_realmode is false.
53658
53659 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53660
53661 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53662 lines are inserted and make it work like readline. Reported by
53663 Vincent Pelletier <subdino2004@yahoo.fr>.
53664
53665 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53666
53667 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53668
53669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53670 `kern/powerpc/cache.S'.
53671
53672 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53673
53674 * genmk.rb: Handle the `Program' class in the main loop. Written
53675 by Johan Rydberg <jrydberg@gnu.org>.
53676 (Program): New class.
53677 (programs): New variable.
53678 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53679 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53680 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53681 (help_arch): Function removed.
53682 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53683 `powerpc/libgcc.h' and `loader.h'.
53684 (pkgdata_PROGRAMS): New variable.
53685 (sbin_UTILITIES): Variable removed.
53686 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53687 (grubof_SOURCES): Variable re-defined so it only includes the
53688 core functionality.
53689 (grubof_CFLAGS): Remove `-DGRUBOF'.
53690 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53691 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53692 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53693 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53694 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53695 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53696 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53697 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53698 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53699 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53700 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53701 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53702 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53703 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53704 (pc_mod_CFLAGS): New variables.
53705 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53706 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53707 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53708 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53709 Moved from here...
53710 * include/grub/i386/pc/init.h (grub_os_area_addr)
53711 (rub_os_area_size): ... to here.
53712 * include/grub/powerpc/ieee1275/ieee1275.h
53713 (grub_ieee1275_entry_fn): Export symbol.
53714 * include/grub/powerpc/ieee1275/init.h: New file.
53715 * include/grub/powerpc/libgcc.h: Likewise.
53716 * include/grub/cache.h: Likewise.
53717 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53718 <hollis@penguinppc.org>.
53719 * kern/dl.c: Include <grub/cache.h>.
53720 (grub_dl_flush_cache): New function.
53721 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53722 for this module.
53723 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53724 (grub_console_init): Removed prototypes.
53725 (grub_machine_init): Don't initialize the modules anymore.
53726 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53727 static.
53728 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53729 Macro undef removed.
53730 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53731 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53732 relocation `R_PPC_REL32'. Return an error when the relocation is
53733 unknown.
53734 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53735 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53736 * util/misc.c (grub_arch_sync_caches): Likewise.
53737
53738 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53739
53740 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53741 `symlist.c', add `grubof_symlist.c'.
53742 (symlist.c): Variable removed.
53743 (grubof_HEADERS): Variable added.
53744 (grubof_symlist.c): New target.
53745 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53746 `kernel_img_HEADERS'.
53747 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53748 * kern/powerpc/dl.c: New file.
53749 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53750 Function removed.
53751 (grub_arch_dl_relocate_symbols): Likewise.
53752 (grub_register_exported_symbols): Likewise.
53753
53754 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53755
53756 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53757 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53758 to fail instead. Reported by Vincent Pelletier
53759 <subdino2004@yahoo.fr>.
53760
53761 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53762 it is not allocated. Reported by Vincent Pelletier
53763 <subdino2004@yahoo.fr>.
53764
53765 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53766 output so the output looks better.
53767
53768 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53769
53770 Modulize the partition map support and add support for the amiga
53771 partition map.
53772
53773 * commands/ls.c: Include <grub/partition.h> instead of
53774 <grub/machine/partition.h>.
53775 * kern/disk.c: Likewise.
53776 * kern/rescue.c: Likewise.
53777 * loader/i386/pc/chainloader.c: Likewise.
53778 * normal/cmdline.c: Likewise.
53779 * kern/powerpc/ieee1275/init.c: Likewise.
53780 (grub_machine_init): Call `grub_pc_partition_map_init',
53781 `grub_amiga_partition_map_init' and
53782 `grub_apple_partition_map_init'.
53783 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53784 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53785 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53786 `partition.h' and `pc_partition.h'.
53787 (grub_setup_SOURCES): Remove
53788 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53789 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53790 (grub_emu_SOURCES): Likewise.
53791 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53792 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53793 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53794 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53795 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53796 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53797 (grubof_SOURCES): Likewise.
53798 * disk/i386/pc/partition.c: File removed.
53799 * disk/powerpc/ieee1275/partition.c: Likewise.
53800 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53801 * include/grub/i386/pc/partition.h: Likewise.
53802 * kern/partition.c: New file.
53803 * partmap/amiga.c: Likewise.
53804 * partmap/apple.c: Likewise.
53805 * partmap/pc.c: Likewise.
53806 * include/grub/partition.h: Likewise..
53807 * include/grub/pc_partition.h: Likewise.
53808 * util/grub-emu.c: Include <grub/partition.h> instead of
53809 <grub/machine/partition.h>.
53810 (main): Call `grub_pc_partition_map_init',
53811 `grub_amiga_partition_map_init' and
53812 `grub_apple_partition_map_init' and deinitialize afterwards.
53813 * util/i386/pc/biosdisk.c: Include `#include
53814 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53815 `<grub/machine/partition.h>'.
53816 * util/i386/pc/grub-setup.c: Likewise.
53817 * util/i386/pc/biosdisk.c: Likewise.
53818 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53819 partition information in case of a PC partition.
53820 * util/i386/pc/grub-setup.c: Include `#include
53821 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53822 `<grub/machine/partition.h>'.
53823 (setup): Only access the PC specific partition information in case
53824 of a PC partition.
53825
53826 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53827
53828 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53829 (grub_longjmp): Likewise.
53830 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53831 20.
53832 * normal/powerpc/setjmp.S: New file.
53833 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53834 `normal/powerpc/setjmp.S'.
53835 (grubof_CFLAGS): Add `-DGRUBOF'.
53836 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53837 [GRUB_UTIL && !GRUBOF].
53838
53839 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53840
53841 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53842 property named `name'. Correctly handle the error returned by
53843 `grub_ieee1275_finddevice' if a device can not be opened.
53844
53845 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53846
53847 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53848 `actual' for negativity.
53849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53850 kern/fshelp.c.
53851
53852 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53853
53854 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53855 (PAGE_OFFSET): New macro.
53856 (CRTC_ADDR_PORT): Likewise.
53857 (CRTC_DATA_PORT): Likewise.
53858 (START_ADDR_HIGH_REGISTER): Likewise.
53859 (START_ADDR_LOW_REGISTER): Likewise.
53860 (GRAPHICS_ADDR_PORT): Likewise.
53861 (GRAPHICS_DATA_PORT): Likewise.
53862 (READ_MAP_REGISTER): Likewise.
53863 (INPUT_STATUS1_REGISTER): Likewise.
53864 (INPUT_STATUS1_VERTR_BIT): Likewise.
53865 (page): New variable.
53866 (wait_vretrace): New function.
53867 (set_read_map): Likewise.
53868 (set_start_address): Likewise.
53869 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53870 the right page.
53871 (check_vga_mem): Take the page into account.
53872 (write_char): Likewise.
53873 (write_cursor): Likewise.
53874 (scroll_up): Likewise. Copy the page to the page that is not
53875 shown and switch between both pages.
53876 (grub_vga_putchar): Fix off by one error.
53877 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53878 account.
53879
53880 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53881
53882 Add support for iso9660 (including rockridge).
53883
53884 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53885 (iso9660_mod_SOURCES): New variable.
53886 (iso9660_mod_CFLAGS): Likewise.
53887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53888 * include/grub/fs.h (grub_iso9660_init): New prototype.
53889 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53890 * fs/iso9660.c: New file.
53891
53892 * include/grub/misc.h (grub_strncat): New prototype.
53893 * kern/misc.c (grub_strncat): New function.
53894
53895 * fs/hfs.c (grub_hfs_mount): Translate the error
53896 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53897 * fs/jfs.c (grub_jfs_mount): Likewise.
53898 * fs/ufs.c (grub_ufs_mount): Likewise.
53899
53900 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53901
53902 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53903 which initialized BAT registers.
53904 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53905 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53906 Move from here...
53907 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53908 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53909 ... to here.
53910 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53911 (grub_mapclaim): Likewise.
53912 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53913 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53914 hand.
53915
53916 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53917
53918 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53919 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53920 -ffreestanding and -msoft-float.
53921
53922 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53923
53924 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53925 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53926 set in grub_ieee1275_flags.
53927
53928 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53929
53930 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53931 prototype.
53932 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53933 grub_console_init first.
53934 Change the memory range used for grub_ieee1275_claim and
53935 grub_mm_init_region.
53936 Print an error message if the claim fails.
53937 Include <grub/misc.h>.
53938
53939 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53940
53941 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53942 Call grub_children_iterate for device nodes of type `scsi',
53943 `ide', or `ata'.
53944 (grub_ofdisk_open): Remove manual device alias resolution.
53945 Fix memory leak when device cannot be opened.
53946 * include/grub/powerpc/ieee1275/ieee1275.h
53947 (grub_children_iterate): New prototype.
53948 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53949 New function.
53950 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53951 Return -1 if args.size was -1.
53952
53953 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53954
53955 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53956 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53957 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53958 Open Firmware's memory for it; claim memory from _start to _end.
53959 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53960 (_end): New extern.
53961 (_start): Zero BSS from __bss_start to _end.
53962 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53963 New extern.
53964 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53965
53966 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53967
53968 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53969 -1 if args.base was -1.
53970
53971 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53972
53973 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53974 escape sequence instead of a literal ^L. Also call
53975 grub_ofconsole_gotoxy.
53976
53977 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53978
53979 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53980 void * arguments to grub_addr_t. All callers updated. Also make
53981 the `result' argument optional.
53982 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53983 All callers updated.
53984
53985 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53986
53987 * commands/ls.c (grub_ls_list_files): Use the string following the
53988 initial ')', if present, as the filesystem path.
53989 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53990
53991 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53992
53993 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53994
53995 Make the source code of the menu interface more readable.
53996
53997 * normal/menu.c: Include grub/mm.h.
53998 (TERM_WIDTH): New macro.
53999 (TERM_HEIGHT): Likewise.
54000 (TERM_INFO_HEIGHT): Likewise.
54001 (TERM_MARGIN): Likewise.
54002 (TERM_SCROLL_WIDTH): Likewise.
54003 (TERM_TOP_BORDER_Y): Likewise.
54004 (TERM_LEFT_BORDER_X): Likewise.
54005 (TERM_BORDER_WIDTH): Likewise.
54006 (TERM_MESSAGE_HEIGHT): Likewise.
54007 (TERM_BORDER_HEIGHT): Likewise.
54008 (TERM_NUM_ENTRIES): Likewise.
54009 (TERM_FIRST_ENTRY_Y): Likewise.
54010 (TERM_ENTRY_WIDTH): Likewise.
54011 (TERM_CURSOR_X): Likewise.
54012 (draw_border): Use macros instead of magic numbers.
54013 (print_entry): Likewise.
54014 (print_entries): Likewise.
54015 (run_menu): Likewise. Also, handle the key 'e'.
54016 (run_menu_entry): Ignore empty command lines.
54017 (print_message): Added a new argument EDIT. If EDIT is true,
54018 print a different message.
54019 (init_page): Likewise.
54020 (edit_menu_entry): New function. Not implemented yet.
54021
54022 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54023
54024 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54025 can be loaded from normal mode.
54026
54027 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54028 `multiboot.mod'.
54029 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54030 (multiboot_mod_CFLAGS): New variables.
54031 * loader/i386/pc/linux_normal.c: New file.
54032 * loader/i386/pc/multiboot_normal.c: Likewise.
54033
54034 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54035 attribute `unused'.
54036
54037 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54038 `fdiro' to read the mode information from instead of `diro'.
54039
54040 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54041 looking up a symlink.
54042
54043 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54044 macro.
54045 * normal/command.c (grub_command_execute): Don't parse the
54046 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54047 flags of the command.
54048
54049 * normal/menu.c (grub_menu_run): Fix typo.
54050
54051 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54052
54053 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54054
54055 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54056 `y + 1' instead of `y - 1'.
54057
54058 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54059
54060 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54061
54062 From Hollis Blanchard <hollis@penguinppc.org>:
54063 * kern/misc.c (memmove): New alias for grub_memmove.
54064 (memcmp): New alias for grub_memcmp.
54065 (memset): New alias for grub_memset.
54066 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54067 Change "int handle" to "grub_ieee1275_phandle_t handle".
54068 * include/grub/powerpc/ieee1275/ieee1275.h
54069 (grub_ieee1275_get_property): Likewise.
54070
54071 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54072
54073 Added normal mode command `chainloader' as module chain.mod, which
54074 depends on normal.mod and _chain.mod.
54075
54076 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54077 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54078 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54079 Deleted prototype.
54080 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54081 but arguments parsing moved to ...
54082 (grub_chainloader_cmd): ... here. New function.
54083 * include/grub/i386/pc/chainloader.h: New file.
54084 * loader/i386/pc/chainloader_normal.c: Likewise.
54085
54086 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54087
54088 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54089 (grub_mkimage_LDFLAGS): Likewise.
54090 (grub_emu_SOURCES): Likewise.
54091 (kernel_img_HEADERS): Added fshelp.h.
54092 * fs/ext2.c: Include <grub/fshelp.h>.
54093 (FILETYPE_REG): New macro.
54094 (FILETYPE_INO_REG): Likewise.
54095 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54096 Changed all users.
54097 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54098 all users.
54099 (grub_fshelp_node): New struct.
54100 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54101 to a pointer.
54102 (grub_ext2_get_file_block): Removed function.
54103 (grub_ext2_read_block): New function.
54104 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54105 This function was written.
54106 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54107 (grub_ext2_find_file): Removed function.
54108 (grub_ext2_read_symlink): New function.
54109 (grub_ext2_iterate_dir): Likewise.
54110 (grub_ext2_open): Rewritten.
54111 (grub_ext2_dir): Rewritten.
54112 * include/grub/fshelp.h: New file.
54113 * fs/fshelp.c: Likewise.
54114
54115 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54116
54117 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54118 (print_message): Add a missing newline.
54119 (run_menu): Added timeout support.
54120 (run_menu_entry): New local function.
54121 (grub_menu_run): Added support for booting.
54122
54123 * kern/loader.c (grub_loader_is_loaded): New function.
54124
54125 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54126 (grub_get_rtc): Exported.
54127
54128 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54129 (grub_get_rtc): Exported.
54130
54131 * include/grub/normal.h (struct grub_command_list): Remove
54132 constant from the member `command'.
54133
54134 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54135
54136 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54137
54138 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54139
54140 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54141
54142 Add support for the JFS filesystem.
54143
54144 * fs/jfs.c: New file.
54145 * include/grub/fs.h (grub_jfs_init): New prototype.
54146 (grub_jfs_fini): New prototype.
54147 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54148 (grub_emu_SOURCES): Likewise.
54149 (pkgdata_MODULES): Add jfs.mod.
54150 (jfs_mod_SOURCES): New variable.
54151 (jfs_mod_CFLAGS): Likewise.
54152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54153 (grubof_SOURCES): Likewise.
54154 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54155
54156 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54157 endian to the host endian.
54158 (grub_fat_utf16_to_utf8): Move function from there...
54159 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54160 the endianness of the source string anymore.
54161 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54162
54163 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54164
54165 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54166 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54167 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54168 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54169
54170 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54171 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54172 for `node_found' and `it_dir'.
54173 (grub_hfs_dir): Add prototype for `dir_hook'.
54174
54175 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54176 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54177 and `indir32' to silence a gcc warning.
54178
54179 * include/grub/fs.h (grub_hfs_init): New prototype.
54180 (grub_hfs_fini): Likewise.
54181
54182
54183 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54184
54185 Each disk device has its own id now. This is useful to make use
54186 of multiple disk devices.
54187
54188 * include/grub/disk.h (grub_disk_dev_id): New enum.
54189 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54190 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54191
54192 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54193 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54194
54195 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54196 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54197
54198 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54199 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54200
54201 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54202 "id" which is used by the cache manager.
54203
54204 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54205 of just "GRUB".
54206
54207 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54208
54209 * fs/hfs.c: New file.
54210 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54211 (grub_emu_SOURCES): Likewise.
54212 (pkgdata_MODULES): Add hfs.mod.
54213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54214 (grubof_SOURCES): Likewise.
54215 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54216
54217 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54218 * kern/misc.c (grub_strncasecmp): Add function.
54219
54220 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54221
54222 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54223 with parentheses.
54224
54225 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54226 (grub_ext2_dir): In case the directory entry type is unknown, read
54227 it from the inode.
54228
54229 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54230
54231 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54232 grub_load_linux instead of grub_rescue_cmd_linux as second
54233 argument of grub_rescue_register_command.
54234
54235 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54236
54237 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54238
54239 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54240 function.
54241 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54242 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54243 `loader/powerpc/ieee1275/linux.c',
54244 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54245 * include/grub/powerpc/ieee1275/ieee1275.h
54246 (grub_ieee1275_release): New prototype.
54247 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54248 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54249 normal, boot, linux and linux_normal.
54250 * loader/powerpc/ieee1275/linux.c: New file.
54251 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54252
54253 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54254
54255 * normal/arg.c (grub_arg_parse): Correct error handling after
54256 reallocating the argumentlist (check if `argl' is not null instead
54257 of checking if `args' is not null).
54258 * kern/mm.c (grub_realloc): Return the same pointer when using the
54259 same region, instead of returning the header address.
54260
54261 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54262
54263 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54264 one block instead of two when looking for the initial partition.
54265 (grub_partition_probe): Initialize the local variable `p' with 0.
54266 Use base 10 for the grub_strtoul call.
54267 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54268 need for one local variable.
54269 (grub_strtoul): Don't add the new value to `num', instead of that
54270 just assign it.
54271
54272 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54273
54274 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54275 (pxeboot_img_SOURCES): New variable.
54276 (pxeboot_img_ASFLAGS): Likewise.
54277 (pxeboot_img_LDFLAGS): Likewise.
54278 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54279 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54280 <lode_leroy@hotmail.com>.
54281
54282 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54283
54284 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54285 there was no input.
54286
54287 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54288
54289 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54290 the history buffer logic.
54291
54292 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54293
54294 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54295 (FILETYPE_INO_SYMLINK): New macros.
54296 (grub_ext2_find_file): Check if the node is a directory using the
54297 inode stat information instead of using the filetype in the
54298 dirent. Exclude the first character of an absolute symlink.
54299 (grub_ext2_dir): Mask out the filetype part of the mode member of
54300 the inode.
54301
54302 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54303
54304 Add support for UFS version 1 and 2. Add support for the minix
54305 filesystem version 1 and 2, both the variants with 14 and 30 long
54306 filenames.
54307
54308 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54309 fs/minix.c.
54310 (grub_emu_SOURCES): Likewise.
54311 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54312 (ufs_mod_SOURCES): New variable.
54313 (ufs_mod_CFLAGS): Likewise.
54314 (minix_mod_SOURCES): Likewise.
54315 (minix_mod_CFLAGS): Likewise.
54316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54317 fs/minix.c.
54318 (grubof_SOURCES): Likewise.
54319 * fs/ufs.c: New file.
54320 * fs/minix.c: New file.
54321 * include/grub/fs.h (grub_ufs_init): New prototype.
54322 (grub_ufs_fini): Likewise.
54323 (grub_minix_init): Likewise.
54324 (grub_minix_fini): Likewise.
54325 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54326 minix fs.
54327
54328 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54329
54330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54331 commands/ls.c, commands/terminal.c, commands/boot.c,
54332 commands/cmp.c and commands/cat.c.
54333 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54334
54335 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54336 "env.h"
54337
54338 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54339
54340 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54341 and grub_, respectively. Because the conversion is trivial and
54342 mechanical, I omit the details here. Please refer to the CVS
54343 if you need more information.
54344
54345 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54346
54347 * include/pupa: Renamed to ...
54348 * include/grub: ... this.
54349 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54350 * util/i386/pc/grub-mkimage.c: ... this.
54351 * util/i386/pc/pupa-setup.c: Renamed to ...
54352 * util/i386/pc/grub-setup.c: ... this.
54353 * util/pupa-emu.c: Renamed to ...
54354 * util/grub-emu.c: ... this.
54355
54356 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54357
54358 Add support for the newworld apple macintosh (PPC). This has been
54359 tested on the powerbook 2000 only. It only adds support for
54360 generic ieee1275 functions, console and disk support. This should
54361 be easy to port to other architectures with support for Open
54362 Firmware.
54363
54364 * configure.ac: Accept the powerpc as host_cpu. In the case of
54365 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54366 specific tests are only executed while building for the i386.
54367 Inverse test for crosscompile.
54368 * genmk.rb (Utility): Allow assembler files.
54369 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54370 * conf/powerpc-ieee1275.rmk: New file.
54371 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54372 * disk/powerpc/ieee1275/partition.c: Likewise.
54373 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54374 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54375 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54376 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54377 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54378 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54379 * include/pupa/powerpc/ieee1275/loader.h
54380 * include/pupa/powerpc/setjmp.h: Likewise.
54381 * include/pupa/powerpc/types.h: Likewise.
54382 * kern/powerpc/ieee1275/init.c: Likewise.
54383 * kern/powerpc/ieee1275/openfw.c: Likewise.
54384 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54385
54386 These files were written by Johan Rydberg
54387 (jrydberg@night.trouble.net) and I only modified them slightly.
54388
54389 * boot/powerpc/ieee1275/cmain.c: New file.
54390 * boot/powerpc/ieee1275/crt0.S: Likewise.
54391 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54392 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54393
54394 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54395
54396 * Makefile.in: Update copyright.
54397 * genmodsrc.sh: Likewise.
54398 * gensymlist.sh: Likewise.
54399 * term/i386/pc/vga.c: Indent correctly.
54400
54401 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54402 bugreporting address.
54403 * util/i386/pc/pupa-setup.c (usage): Likewise,
54404 (main): Call pupa_ext2_init and pupa_ext2_fini.
54405
54406 * fs/fat.c (log2): Renamed to ...
54407 (fat_log2): ... this.
54408 All callers changed.
54409 * kern/misc.c (memcpy): Alias to pupa_memmove.
54410 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54411 lvalue cast.
54412 * util/console.c (pupa_ncurses_fini): Return 0.
54413
54414 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54415 Move fail label here.
54416 [__GNU__]: Don't warn when using stat.
54417 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54418 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54419 long int. Use strtol instead of strtoul.
54420
54421 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54422
54423 * commands/boot.c: New file.
54424 * commands/cat.c: Likewise.
54425 * commands/cmp.c: Likewise.
54426 * commands/ls.c: Likewise.
54427 * commands/terminal.c: Likewise.
54428 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54429 (pupa_register_command): Changed interface to match the new
54430 argument parser.
54431 (pupa_command_execute): Changed (almost rewritten) so it uses
54432 pupa_split_command. Added support for setting variables using the
54433 syntax `foo=bar'.
54434 (rescue_command): Changed to work with the new argument parser.
54435 (terminal_command): Moved from here to commands/terminal.c.
54436 (set_command): New function.
54437 (unset_command): New function.
54438 (insmod_command): New function.
54439 (rmmod_command): New function.
54440 (lsmod_command): New function.
54441 (pupa_command_init): Don't initialize the command terminal
54442 anymore. Initialize the commands set, unset, insmod, rmmod and
54443 lsmod.
54444 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54445 (kernel_img_HEADERS): Add arg.h and env.h.
54446 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54447 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54448 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54449 normal/arg.c.
54450 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54451 terminal.mod.
54452 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54453 (boot_mod_SOURCES): New variable.
54454 (terminal_mod_SOURCES): Likewise.
54455 (ls_mod_SOURCES): Likewise.
54456 (cmp_mod_SOURCES): Likewise.
54457 (cat_mod_SOURCES): Likewise.
54458
54459 * normal/arg.c: New file.
54460 * kern/env.c: Likewise.
54461 * include/pupa/arg.h: Likewise.
54462 * include/pupa/env.h: Likewise.
54463 * font/manager.c (font_command): Changed to match argument parsing
54464 interface changes.
54465 (PUPA_MOD_INIT): Likewise.
54466 * hello/hello.c (pupa_cmd_hello): Likewise.
54467 (PUPA_MOD_INIT): Likewise.
54468 * include/pupa/disk.h: Include <pupa/device.h>.
54469 (pupa_print_partinfo): New prototype.
54470 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54471 (pupa_dl_get_prefix): Likewise.
54472 * include/pupa/misc.h: Include <pupa/err.h>.
54473 (pupa_isgraph): New prototype.
54474 (pupa_isdigit): Likewise.
54475 (pupa_split_cmdline): Likewise.
54476 * include/pupa/normal.h: Include <pupa/arg.h>.
54477 (pupa_command): Changed the prototype of the member `func' to
54478 match the argument parsing interface. Added member `options'.
54479 (pupa_register_command): Updated to match function.
54480 (pupa_arg_parse): New prototype.
54481 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54482 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54483 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54484 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54485 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54486 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54487 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54488 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54489 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54490 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54491 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54492 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54493 * kern/disk.c: Include <pupa/file.h>.
54494 (pupa_print_partinfo): New function.
54495 * kern/dl.c: Include <pupa/env.h>.
54496 (pupa_dl_dir): Variable removed.
54497 (pupa_dl_load): Use the environment variable `prefix' instead of
54498 the variable pupa_dl_dir.
54499 (pupa_dl_set_prefix): Function removed.
54500 (pupa_dl_get_prefix): Likewise.
54501 * kern/i386/pc/init.c: Include <pupa/env.h>.
54502 (pupa_machine_init): Use the environment variable `prefix' instead of
54503 using pupa_dl_set_prefix to set the prefix.
54504 * kern/main.c: Include <pupa/env.h>.
54505 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54506 using pupa_dl_get_prefix to get the prefix.
54507 * kern/misc.c: Include <pupa/env.h>.
54508 (pupa_isdigit): New function.
54509 (pupa_isgraph): Likewise.
54510 (pupa_ftoa): Likewise.
54511 (pupa_vsprintf): Added support for printing values of the type
54512 `double'. Make it possible to format variable output when using
54513 formatting like `%1.2%f'.
54514 (pupa_split_cmdline): New function.
54515 * kern/rescue.c: Include <pupa/env.h>.
54516 (next_word): Removed function.
54517 (pupa_rescue_cmd_prefix): Likewise.
54518 (pupa_rescue_cmd_set): New function.
54519 (pupa_rescue_cmd_unset): New function.
54520 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54521 split the command line instead of splitting it here. Added
54522 support for setting variables using the syntax `foo=bar'. Don't
54523 initialize the prefix command anymore. Initialized the set and
54524 unset commands.
54525 * normal/cmdline.c: Include <pupa/env.h>.
54526 (pupa_tab_complete): Added prototypes for print_simple_completion,
54527 print_partition_completion, add_completion, iterate_commands,
54528 iterate_dev, iterate_part and iterate_dir. Moved code to print
54529 partition information from here to kern/disk.c.
54530 (pupa_cmdline_run): Don't check if the function exists anymore.
54531 * normal/main.c: Include <pupa/env.h>.
54532 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54533 instead of using pupa_dl_get_prefix to get the prefix.
54534 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54535 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54536 warning.
54537 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54538 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54539 ((unused))' to silence a gcc warning.
54540 (pupa_vga_setcolor): Likewise.
54541 (debug_command): Changed to match argument parsing
54542 interface changes.
54543 * util/pupa-emu.c: Include <pupa/env.h>.
54544 (options): Added 0's for unused fields to silence a gcc warning.
54545 (argp): Likewise.
54546 (main): Use the environment variable `prefix' instead of using
54547 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54548 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54549 and terminal.
54550
54551 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54552 * util/misc.c: Include <malloc.h>.
54553 (pupa_malloc): Rewritten so errors are correctly reported.
54554 (pupa_realloc): Likewise.
54555 (pupa_memalign): Likewise.
54556 (pupa_mm_init_region): Declare unused variables with
54557 `__attribute__ ((unused))' to silence a gcc warning.
54558 * normal/i386/setjmp.S: Remove tab at the end of the file to
54559 silence a gcc warning.
54560 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54561 variables with `__attribute__ ((unused))' to silence a gcc
54562 warning.
54563 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54564 local variable i unsigned to silence a gcc warning.
54565
54566 * kern/term.c: Include <pupa/misc.h>.
54567 (pupa_more_lines): New variable.
54568 (pupa_more): Likewise.
54569 (pupa_putcode): When the pager is active pause at the end of every
54570 screen.
54571 (pupa_set_more): New function.
54572 * include/pupa/term.h (pupa_set_more): New prototype.
54573
54574
54575 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54576
54577 Now this project is GRUB 2 rather than PUPA. The location of
54578 the CVS repository was moved to GRUB's.
54579
54580 * configure.ac: Use bug-grub as the reporting address.
54581 Use GRUB instead of PUPA.
54582 Change the version number to 1.90.
54583
54584 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54585
54586 * genkernsyms.sh: Updated copyright information.
54587 * genmk.rb: Likewise.
54588 * genmodsrc.sh: Likewise.
54589 * gensymlist.sh: Likewise.
54590 * boot/i386/pc/boot.S: Likewise.
54591 * boot/i386/pc/diskboot.S: Likewise.
54592 * disk/i386/pc/biosdisk.c: Likewise.
54593 * disk/i386/pc/partition.c: Likewise.
54594 * font/manager.c: Likewise.
54595 * fs/ext2.c: Likewise.
54596 * fs/fat.c: Likewise.
54597 * include/pupa/boot.h: Likewise.
54598 * include/pupa/device.h: Likewise.
54599 * include/pupa/disk.h: Likewise.
54600 * include/pupa/dl.h: Likewise.
54601 * include/pupa/elf.h: Likewise.
54602 * include/pupa/err.h: Likewise.
54603 * include/pupa/file.h: Likewise.
54604 * include/pupa/font.h: Likewise.
54605 * include/pupa/fs.h: Likewise.
54606 * include/pupa/kernel.h: Likewise.
54607 * include/pupa/loader.h: Likewise.
54608 * include/pupa/misc.h: Likewise.
54609 * include/pupa/mm.h: Likewise.
54610 * include/pupa/net.h: Likewise.
54611 * include/pupa/normal.h: Likewise.
54612 * include/pupa/rescue.h: Likewise.
54613 * include/pupa/setjmp.h: Likewise.
54614 * include/pupa/symbol.h: Likewise.
54615 * include/pupa/term.h: Likewise.
54616 * include/pupa/types.h: Likewise.
54617 * include/pupa/i386/setjmp.h: Likewise.
54618 * include/pupa/i386/types.h: Likewise.
54619 * include/pupa/i386/pc/biosdisk.h: Likewise.
54620 * include/pupa/i386/pc/boot.h: Likewise.
54621 * include/pupa/i386/pc/console.h: Likewise.
54622 * include/pupa/i386/pc/init.h: Likewise.
54623 * include/pupa/i386/pc/kernel.h: Likewise.
54624 * include/pupa/i386/pc/linux.h: Likewise.
54625 * include/pupa/i386/pc/loader.h: Likewise.
54626 * include/pupa/i386/pc/memory.h: Likewise.
54627 * include/pupa/i386/pc/multiboot.h: Likewise.
54628 * include/pupa/i386/pc/partition.h: Likewise.
54629 * include/pupa/i386/pc/time.h: Likewise.
54630 * include/pupa/i386/pc/vga.h: Likewise.
54631 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54632 * include/pupa/util/getroot.h: Likewise.
54633 * include/pupa/util/misc.h: Likewise.
54634 * include/pupa/util/resolve.h: Likewise.
54635 * kern/device.c: Likewise.
54636 * kern/disk.c: Likewise.
54637 * kern/dl.c: Likewise.
54638 * kern/err.c: Likewise.
54639 * kern/file.c: Likewise.
54640 * kern/fs.c: Likewise.
54641 * kern/loader.c: Likewise.
54642 * kern/main.c: Likewise.
54643 * kern/misc.c: Likewise.
54644 * kern/mm.c: Likewise.
54645 * kern/rescue.c: Likewise.
54646 * kern/term.c: Likewise.
54647 * kern/i386/dl.c: Likewise.
54648 * kern/i386/pc/init.c: Likewise.
54649 * kern/i386/pc/lzo1x.S: Likewise.
54650 * kern/i386/pc/startup.S: Likewise.
54651 * loader/i386/pc/chainloader.c: Likewise.
54652 * loader/i386/pc/linux.c: Likewise.
54653 * loader/i386/pc/multiboot.c: Likewise.
54654 * normal/cmdline.c: Likewise.
54655 * normal/command.c: Likewise.
54656 * normal/main.c: Likewise.
54657 * normal/menu.c: Likewise.
54658 * normal/i386/setjmp.S: Likewise.
54659 * term/i386/pc/console.c: Likewise.
54660 * term/i386/pc/vga.c: Likewise.
54661 * util/console.c: Likewise.
54662 * util/genmoddep.c: Likewise.
54663 * util/misc.c: Likewise.
54664 * util/pupa-emu.c: Likewise.
54665 * util/resolve.c: Likewise.
54666 * util/unifont2pff.rb: Likewise.
54667 * util/i386/pc/biosdisk.c: Likewise.
54668 * util/i386/pc/getroot.c: Likewise.
54669 * util/i386/pc/pupa-mkimage.c: Likewise.
54670 * util/i386/pc/pupa-setup.c: Likewise.
54671
54672 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54673
54674 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54675 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54676 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54677 reading and reset it after reading.
54678 (pupa_ext2_close): Return PUPA_ERR_NONE.
54679
54680 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54681 Correct value.
54682 (struct linux_kernel_header): Add kernel_version and
54683 initrd_addr_max.
54684 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54685 pupa_file_read succeeds.
54686 (pupa_rescue_cmd_initrd): Implement.
54687
54688 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54689
54690 * fs/ext2.c (pupa_ext2_label): New function.
54691 (pupa_ext2_fs): Added label.
54692 * fs/fat.c (pupa_fat_label): New function.
54693 (pupa_fat_fs): Added label.
54694 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54695
54696 * kern/misc.c (pupa_strndup): New function.
54697 * include/pupa/misc.h (pupa_strndup): New prototype.
54698
54699 * include/pupa/normal.h: Include <pupa/err.h>.
54700 (pupa_set_history): New prototype.
54701 (pupa_iterate_commands): New prototype.
54702 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54703 <pupa/disk.h>, <pupa/file.h>.
54704 (hist_size): New variable.
54705 (hist_lines): Likewise.
54706 (hist_end): Likewise.
54707 (hist_used): Likewise.
54708 (pupa_set_history): New function.
54709 (pupa_history_get): Likewise.
54710 (pupa_history_add): Likewise.
54711 (pupa_history_replace): Likewise.
54712 (pupa_tab_complete): Likewise.
54713 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54714 completion shows partitionnames while completing partitions, this
54715 feature was suggested by Jeff Bailey.
54716 * normal/command.c (pupa_iterate_commands): New function.
54717 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54718 (pupa_normal_init): Initialize history buffer.
54719 (PUPA_MOD_INIT): Likewise.
54720 (pupa_normal_fini): Free the history buffer.
54721 (PUPA_MOD_FINI): Likewise.
54722
54723 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54724 key.
54725
54726 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54727 * configure.ac [i386]: Check for regparam bug.
54728 (NESTED_FUNC_ATTR) [! i386]: Defined.
54729
54730 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54731
54732 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54733 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54734 (pupa_emu_SOURCES): New variable.
54735 (pupa_emu_LDFLAGS): Likewise.
54736 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54737 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54738 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54739 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54740 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54741 (pupa_jmp_buf): New typedef.
54742 (pupa_setjmp) [PUPA_UTIL]: New macro.
54743 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54744 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54745 (pupa_refresh): New prototype.
54746 * include/pupa/util/getroot.h: New file.
54747 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54748 it.
54749 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54750 (pupa_rescue_cmd_cat): Likewise.
54751 (pupa_rescue_cmd_ls): Likewise.
54752 (pupa_rescue_cmd_testload): Likewise.
54753 (pupa_rescue_cmd_lsmod): Likewise.
54754 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54755 * normal/menu.c (run_menu): Likewise.
54756 * kern/term.c (pupa_cls): Likewise.
54757 (pupa_refresh): New function.
54758 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54759 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54760 * util/console.c: New file.
54761
54762 * util/i386/pc/getroot.c: New file.
54763 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54764 (pupa_putchar): New function.
54765 (pupa_refresh): Likewise.
54766 (xgetcwd): Function moved to ...
54767 (strip_extra_slashes): Likewise.
54768 (get_prefix): Likewise.
54769 * util/i386/pc/getroot.c: ... here.
54770 (find_root_device): Function moved and renamed to...
54771 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54772 Changed all callers.
54773 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54774 and renamed to...
54775 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54776 Changed all callers.
54777 * util/misc.c (pupa_memalign): New function.
54778 (pupa_mm_init_region): Likewise.
54779 (pupa_register_exported_symbols): Likewise.
54780 (pupa_putchar): Function removed.
54781 * util/pupa-emu.c: New file.
54782
54783 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54784
54785 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54786 (_multiboot_mod_SOURCES): New variable.
54787 (_multiboot_mod_CFLAGS): Likewise.
54788 * loader/i386/pc/multiboot.c: New file.
54789 * include/pupa/i386/pc/multiboot.h: Likewise.
54790 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54791 (pupa_multiboot_real_boot): New function.
54792 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54793 (pupa_multiboot_real_boot): New prototype.
54794 (pupa_rescue_cmd_multiboot): Likewise
54795 (pupa_rescue_cmd_module): Likewise.
54796
54797 * kern/loader.c (pupa_loader_set): Continue when
54798 pupa_loader_unload_func() fails.
54799 (pupa_loader_unset): New function.
54800 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54801
54802 * kern/misc.c (pupa_stpcpy): New function.
54803 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54804
54805 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54806
54807 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54808 for available extensions.
54809
54810 * include/pupa/i386/pc/time.h: New file.
54811 * kern/disk.c: Include <pupa/machine/time.h>.
54812 (PUPA_CACHE_TIMEOUT): New macro.
54813 (pupa_last_time): New variable.
54814 (pupa_disk_open): Flush the cache when there was a timeout.
54815 (pupa_disk_close): Reset the timer.
54816 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54817 pupa_currticks.
54818 * util/misc.c: Include <sys/times.h>
54819 (pupa_get_rtc): New function.
54820
54821 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54822
54823 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54824 as blocks.
54825 (pupa_ext2_get_file_block): Use blocks member.
54826
54827 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54828 first block. Return -1 instead of pupa_errno on error.
54829
54830 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54831
54832 * README: In the pupa-mkimage example use _chain instead of chain
54833 and ext2 instead of fat.
54834 * TODO: Replace ext2fs with jfs as an example. Add an item for
54835 adding journal playback for ext2fs.
54836 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54837 (pkgdata_MODULES): Added ext2.mod.
54838 (ext2_mod_SOURCES): New variable.
54839 (ext2_mod_CFLAGS): Likewise.
54840 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54841 * include/pupa/misc.h (pupa_strncpy): New prototype.
54842 (pupa_strcat): Likewise.
54843 (pupa_strncmp): Likewise.
54844 * kern/misc.c (pupa_strcat): Enable function.
54845 (pupa_strncpy): New function.
54846 (pupa_strncmp): Likewise.
54847 * fs/ext2.c: New file.
54848
54849 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54850 when the read failed before retrying.
54851 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54852 (_FILE_OFFSET_BITS): Likewise.
54853 * configure.ac: Added AC_SYS_LARGEFILE.
54854
54855 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54856
54857 * genmk.rb (PModule#rule): Make sure to get only symbol names
54858 from the output of nm.
54859 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54860
54861 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54862
54863 I forgot to check in these changes for a long time. This adds
54864 incomplete support for VGA console, and this is still very
54865 buggy. Also, a lot of consideration is required for I18N,
54866 UNICODE, and VGA font issues. Therefore, assume that this is
54867 such that "better than nothing".
54868
54869 * font/manager.c: New file.
54870 * include/pupa/font.h: Likewise.
54871 * include/pupa/i386/pc/vga.h: Likewise.
54872 * term/i386/pc/vga.c: Likewise.
54873 * util/unifont2pff.rb: Likewise.
54874
54875 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54876 (pkgdata_MODULES): Added vga.mod and font.mod.
54877 (vga_mod_SOURCES): New variables.
54878 (vga_mod_CFLAGS): Likewise.
54879 (font_mod_SOURCES): Likewise.
54880 (font_mod_CFLAGS): Likewise.
54881
54882 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54883
54884 * include/pupa/term.h: Include pupa/err.h.
54885 (struct pupa_term): Added init and fini.
54886 Changed the argument of putchar to pupa_uint32_t.
54887
54888 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54889 (pupa_console_real_putchar): New prototype.
54890 (pupa_console_putchar): Removed.
54891 (pupa_console_checkkey): Exported.
54892 (pupa_console_getkey): Likewise.
54893
54894 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54895 characters.
54896
54897 * kern/term.c (pupa_term_set_current): Rewritten.
54898 (pupa_putchar): Likewise.
54899 (pupa_putcode): New function.
54900
54901 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54902 (pupa_console_real_putchar): ... this.
54903 (pupa_vga_set_mode): New function.
54904 (pupa_vga_get_font): Likewise.
54905
54906 * normal/command.c: Include pupa/term.h.
54907 (terminal_command): New function.
54908 (pupa_command_init): Register the command "terminal".
54909
54910 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54911 (DISP_UP): Likewise.
54912 (DISP_RIGHT): Likewise.
54913 (DISP_DOWN): Likewise.
54914 (DISP_HLINE): Likewise.
54915 (DISP_VLINE): Likewise.
54916 (DISP_UL): Likewise.
54917 (DISP_UR): Likewise.
54918 (DISP_LL): Likewise.
54919 (DISP_LR): Likewise.
54920
54921 * term/i386/pc/console.c (pupa_console_putchar): New function.
54922
54923 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54924
54925 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54926 FIX. Reverse the path_list.
54927
54928 * include/pupa/normal.h: Export pupa_register_command and
54929 pupa_unregister_command.
54930
54931 * hello/hello.c (pupa_cmd_hello): New module.
54932 * conf/i386-pc.rmk: Added hello.mod.
54933
54934 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54935
54936 * kern/i386/pc/lzo1x.S: New file.
54937
54938 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54939 (compress_kernel): New variable.
54940 (generate_image): Heavily modified to support compressing a
54941 large part of the core image.
54942
54943 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54944 leak.
54945 (pupa_util_load_image): New function.
54946
54947 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54948 (pupa_compressed_size): New variable.
54949 (codestart): Enable Gate A20 here.
54950 Decompress the compressed part of the core image.
54951 Rearrange the code to put functions and variables which are
54952 required for initialization in the non-compressed part.
54953 Include lzo1x.S.
54954
54955 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54956 here.
54957
54958 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54959
54960 * include/pupa/i386/pc/kernel.h
54961 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54962 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54963 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54964 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54965 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54966
54967 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54968
54969 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54970 (Utility#rule): Likewise.
54971
54972 * configure.ac: Check if LZO is available.
54973
54974 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54975
54976 * include/pupa/normal.h: New file.
54977 * include/pupa/setjmp.h: Likewise.
54978 * include/pupa/i386/setjmp.h: Likewise.
54979 * normal/cmdline.c: Likewise.
54980 * normal/command.c: Likewise.
54981 * normal/main.c: Likewise.
54982 * normal/menu.c: Likewise.
54983 * normal/i386/setjmp.S: Likewise.
54984
54985 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54986 (pupa_rescue_cmd_initrd): Likewise.
54987
54988 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54989 Likewise.
54990
54991 * kern/i386/pc/startup.S (translation_table): New variable.
54992 (translate_keycode): New function.
54993 (pupa_console_getkey): Call translate_keycode.
54994
54995 * kern/rescue.c (attempt_normal_mode): New function.
54996 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54997 it failed, print a message.
54998
54999 * kern/mm.c (pupa_real_malloc): Print more information when a
55000 free magic is broken.
55001 (pupa_free): If the first free header is not free actually, set
55002 it to P.
55003
55004 * kern/main.c (pupa_load_normal_mode): Just load the module
55005 "normal".
55006 (pupa_main): Don't print the message
55007 "Entering into rescue mode..." here.
55008
55009 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55010 Declared.
55011 (pupa_rescue_cmd_initrd): Likewise.
55012 (pupa_rescue_cmd_initrd): Likewise.
55013
55014 * include/pupa/symbol.h (FUNCTION): Specify the type.
55015 (VARIABLE): Likewise.
55016
55017 * include/pupa/err.h (pupa_err_t): Added
55018 PUPA_ERR_UNKNOWN_COMMAND.
55019
55020 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55021 (pupa_dl_get_prefix): Likewise.
55022
55023 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55024 Added _chain.mod and _linux.mod instead of chain.mod and
55025 linux.mod.
55026 (chain_mod_SOURCES): Renamed to ...
55027 (_chain_mod_SOURCES): ... this.
55028 (chain_mod_CFLAGS): Renamed to ...
55029 (_chain_mod_CFLAGS): ... this.
55030 (linux_mod_SOURCES): Renamed to ...
55031 (_linux_mod_SOURCES): ... this.
55032 (linux_mod_CFLAGS): Renamed to ...
55033 (_linux_mod_CFLAGS): ... this.
55034 (normal_mod_SOURCES): New variable.
55035 (normal_mod_CFLAGS): Likewise.
55036 (normal_mod_ASFLAGS): Likewise.
55037
55038 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55039
55040 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55041 possible.
55042
55043 * kern/dl.c (pupa_dl_ref): Refer depending modules
55044 recursively.
55045 (pupa_dl_unref): Unrefer depending modules recursively.
55046 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55047 a module is unloaded before one depending on that module is
55048 unloaded.
55049 (pupa_dl_unload): Unload depending modules explicitly,
55050 if possible.
55051
55052 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55053
55054 * include/pupa/i386/pc/linux.h: New file.
55055 * loader/i386/pc/linux.c: Likewise.
55056
55057 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55058 Removed.
55059 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55060 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55061 of PUPA_CHAINLOADER_BOOT_SECTOR.
55062
55063 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55064 (pupa_linux_prot_size): New variable.
55065 (pupa_linux_tmp_addr): Likewise.
55066 (pupa_linux_real_addr): Likewise.
55067 (pupa_linux_boot_zimage): New function.
55068 (pupa_linux_boot_bzimage): Likewise.
55069
55070 * kern/i386/pc/init.c (struct mem_region): New structure.
55071 (MAX_REGIONS): New macro.
55072 (mem_regions): New variable.
55073 (num_regions): Likewise.
55074 (pupa_os_area_addr): Likewise.
55075 (pupa_os_area_size): Likewise.
55076 (pupa_lower_mem): Likewise.
55077 (pupa_upper_mem): Likewise.
55078 (add_mem_region): New function.
55079 (compact_mem_regions): Likewise.
55080 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55081 the size of the conventional memory and that of so-called upper
55082 memory (before the first memory hole).
55083 Instead of adding each found region to free memory, use
55084 add_mem_region and add them after removing overlaps.
55085 Also, add only 1/4 of the upper memory to free memory. The rest
55086 is used for loading OS images. Maybe this is ad hoc, but this
55087 makes it much easier to relocate OS images when booting.
55088
55089 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55090 (pupa_enter_rescue_mode): Don't register initrd and module.
55091
55092 * kern/mm.c: Include pupa/dl.h.
55093
55094 * kern/main.c: Include pupa/file.h and pupa/device.h.
55095
55096 * kern/loader.c (pupa_loader_load_module_func): Removed.
55097 (pupa_loader_load_module): Likewise.
55098
55099 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55100 ``.o''.
55101
55102 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55103 (pupa_linux_tmp_addr): Likewise.
55104 (pupa_linux_real_addr): Likewise.
55105 (pupa_linux_boot_zimage): Likewise.
55106 (pupa_linux_boot_bzimage): Likewise.
55107
55108 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55109 (pupa_upper_mem): Likewise.
55110 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55111 module is too dangerous.
55112
55113 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55114 (pupa_os_area_size): Likewise.
55115 (pupa_loader_set): Remove the first argument. Loader doesn't
55116 manage modules or initrd any longer.
55117 (pupa_loader_load_module): Removed.
55118
55119 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55120 (linux_mod_SOURCES): New variable.
55121 (linux_mod_CFLAGS): Likewise.
55122
55123 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55124
55125 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55126 the length of a blocklist correctly.
55127
55128 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55129 Use ioctl only if the OS file is a block device.
55130 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55131 not very useful for normal files.
55132
55133 * kern/main.c (pupa_set_root_dev): New function.
55134 (pupa_load_normal_mode): Likewise.
55135 (pupa_main): Call those above.
55136
55137 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55138 pupa_uint16_t.
55139
55140 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55141
55142 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55143
55144 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55145 (setup): Configure the installed partition information and the
55146 dl prefix.
55147
55148 * loader/i386/pc/chainloader.c (my_mod): New variable.
55149 (pupa_chainloader_unload): New function.
55150 (pupa_rescue_cmd_chainloader): Refer itself.
55151 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55152
55153 * kern/i386/pc/startup.S (install_partition): Removed.
55154 (version_string): Likewise.
55155 (config_file): Likewise.
55156 (pupa_install_dos_part): New variable.
55157 (pupa_install_bsd_part): Likewise.
55158 (pupa_prefix): Likewise.
55159 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55160
55161 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55162 and pupa/misc.h.
55163 (make_install_device): New function.
55164 (pupa_machine_init): Set the dl prefix.
55165
55166 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55167 (buf): Renamed to ...
55168 (linebuf): ... this.
55169 (pupa_rescue_cmd_prefix): New function.
55170 (pupa_rescue_cmd_insmod): Likewise.
55171 (pupa_rescue_cmd_rmmod): Likewise.
55172 (pupa_rescue_cmd_lsmod): Likewise.
55173 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55174 rmmod and lsmod.
55175
55176 * kern/mm.c (pupa_memalign): If failed even after invalidating
55177 disk caches, unload unneeded modules and retry.
55178
55179 * kern/misc.c (pupa_memmove): New function.
55180 (pupa_memcpy): Removed.
55181 (pupa_strcpy): New function.
55182 (pupa_itoa): Made static.
55183
55184 * kern/dl.c (pupa_dl_iterate): New function.
55185 (pupa_dl_ref): Likewise.
55186 (pupa_dl_unref): Likewise.
55187 (pupa_dl_unload): Return if succeeded or not.
55188 (pupa_dl_unload_unneeded): New function.
55189 (pupa_dl_unload_all): Likewise.
55190 (pupa_dl_init): Renamed to ...
55191 (pupa_dl_set_prefix): ... this.
55192 (pupa_dl_get_prefix): New function.
55193
55194 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55195 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55196 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55197 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55198 (pupa_install_dos_part): Declared.
55199 (pupa_install_bsd_part): Likewise.
55200 (pupa_prefix): Likewise.
55201 (pupa_boot_drive): Likewise.
55202
55203 * include/pupa/types.h: Fix a typo.
55204
55205 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55206 pupa_memmove.
55207 (pupa_memmove): Declared.
55208 (pupa_strcpy): Likewise.
55209
55210 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55211 pupa_mod_init takes one argument, its own module.
55212 (pupa_dl_unload_unneeded): Declared.
55213 (pupa_dl_unload_all): Likewise.
55214 (pupa_dl_ref): Likewise.
55215 (pupa_dl_unref): Likewise.
55216 (pupa_dl_iterate): Likewise.
55217 (pupa_dl_init): Renamed to ...
55218 (pupa_dl_set_prefix): ... this.
55219 (pupa_dl_get_prefix): Declared.
55220
55221 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55222 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55223 unloaded.
55224 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55225 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55226
55227 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55228 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55229
55230 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55231
55232 * util/i386/pc/pupa-setup.c (setup): Define the internal
55233 function find_first_partition_start at the top level, because GCC
55234 3.0.x cannot compile internal functions in deeper scopes
55235 correctly.
55236 (find_root_device): Use lstat instead of stat.
55237 Don't follow symbolic links.
55238 Fix the path-constructing code.
55239
55240 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55241 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55242 by a BLKGETSIZE ioctl first, because block devices don't fill
55243 the member st_mode of the structure stat on Linux.
55244 [__linux__] (linux_find_partition): Use a temporary buffer
55245 REAL_DEV for the working space. Copy it to DEV before returning.
55246 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55247 buffer cache consistent.
55248 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55249 strncmp. The previous value was merely wrong.
55250 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55251
55252 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55253 FAT size is 12. The previous value was merely wrong.
55254
55255 * kern/main.c (pupa_main): Don't split the starting message from
55256 newlines.
55257
55258 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55259 LF, because BIOS goes crazy about character attributes in this
55260 case.
55261
55262 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55263
55264 * include/i386/pc/util/biosdisk.h: New file.
55265 * util/i386/pc/biosdisk.c: Likewise.
55266 * util/i386/pc/pupa-setup.c: Likewise.
55267
55268 * Makefile.in (INCLUDE_DISTFILES): Added
55269 include/pupa/i386/pc/util/biosdisk.h.
55270 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55271 directory util/i386/pc.
55272 (install-local): Added a rule for sbin_UTILITIES.
55273 (uninstall): Likewise.
55274
55275 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55276
55277 * util/misc.c (xrealloc): New function.
55278 (pupa_malloc): Likewise.
55279 (pupa_free): Likewise.
55280 (pupa_realloc): Likewise.
55281 (pupa_stop): Likewise.
55282 (pupa_putchar): Likewise.
55283
55284 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55285
55286 * include/pupa/util/misc.h (xrealloc): Declared.
55287
55288 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55289 macro.
55290 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55291 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55292
55293 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55294 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55295
55296 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55297 way should be implemented.
55298 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55299
55300 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55301 the size of NAME for safety.
55302 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55303 0x88.
55304
55305 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55306 (pupa_setup_SOURCES): Likewise.
55307
55308 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55309
55310 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55311
55312 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55313 bunch of pushl's from pusha, because this destroys the return
55314 value.
55315
55316 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55317
55318 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55319 This means that any missing prototypes could be fatal. Also, you
55320 must take care when writing assembly code. See the comments at
55321 the beginning of startup.S, for more details.
55322
55323 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55324 compilation mechanism.
55325 (pupa_chainloader_real_boot): Likewise.
55326 (pupa_biosdisk_rw_int13_extensions): Likewise.
55327 (pupa_biosdisk_rw_standard): Likewise.
55328 (pupa_biosdisk_check_int13_extensions): Likewise.
55329 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55330 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55331 (pupa_get_memsize): Likewise.
55332 (pupa_get_mmap_entry): Likewise.
55333 (pupa_console_putchar): Likewise.
55334 (pupa_console_setcursor): Likewise.
55335 (pupa_getrtsecs): Use pushl instead of push.
55336
55337 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55338 memory instead of the stack for a mmap entry, because some
55339 BIOSes may ignore the maximum size and overflow.
55340
55341 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55342
55343 * genmk.rb (PModule#rule): Compile automatically generated
55344 sources with module-specific CFLAGS as well as other sources.
55345
55346 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55347
55348 * configure.ac: Check ld.
55349 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55350 respectively, before checking endianness and sizes.
55351
55352 * Makefile.in (LD): New variable.
55353
55354 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55355
55356 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55357
55358 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55359
55360 * Changelog: New file.
55361