]> git.proxmox.com Git - grub2.git/blob - ChangeLog
grub-core/kern/arm/misc.S: fix unaligned grub_uint64_t local variable
[grub2.git] / ChangeLog
1 2014-12-07 David Kozub <zub.272@gmail.com>
2
3 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
4 in __aeabi_uidivmod
5 Fixes Savannah bug #43632.
6
7 2014-12-07 Peter Nelson <peterdn>
8
9 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
10 chunks.
11
12 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
13
14 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
15 non-portable '-n' echo option.
16 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
17 non-portable 'echo -n.
18 * util/grub.d/10_linux.in: Likewise (closes 43668).
19 * util/grub.d/20_linux_xen.in: Likewise.
20 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
21 non-portable 'echo -n'.
22
23 2014-12-07 Curtis Larsen <larsen@dixie.edu>
24
25 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
26 free when multiple empty segments were received (closes 42765).
27
28 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
29
30 * tests/util/grub-shell.in: Support --files also for netboot.
31 * tests/file_filter_test.in: New file with file filters tests.
32 * Makefile.util.def: Add file_filter_test.
33 * conf/Makefile.extra-dist: ... and here.
34 * tests/file_filter/file.gz: Test file for file_filter_test.
35 * tests/file_filter/file.gz.sig: Likewise.
36 * tests/file_filter/file.lzop: Likewise.
37 * tests/file_filter/file.lzop.sig: Likewise.
38 * tests/file_filter/file.xz: Likewise.
39 * tests/file_filter/file.xz.sig: Likewise.
40 * tests/file_filter/keys: Likewise.
41 * tests/file_filter/keys.pub: Likewise.
42 * tests/file_filter/test.cfg: Likewise.
43 * grub-core/commands/verify.c: Fix memory corruption doing
44 signature check for network files (closes 43601).
45
46 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
47
48 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
49 memory leak (CID 73645, 73782).
50 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
51 (CID 73635).
52
53 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
54
55 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
56 inline array (CID 73610).
57
58 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
59
60 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
61 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
62 (Coverity CID 73813, 73710)
63 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
64 and use after free (Coverity CID 73813, 73710, 73730)
65 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
66 CID 73854)
67 * util/grub-install-common.c (grub_install_get_target): Check return
68 value of grub_util_fd_read (Coverity CID 73819).
69 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
70 to hd.magic (Coverity CID 73587, 73888, bug 43690).
71
72 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
73
74 * tests/util/grub-fs-tester.in: Consistently print output
75 of grub ls if test fails.
76
77 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
78
79 * grub-core/kern/efi/init.c: check value of *path before
80 dereferencing.
81
82 2014-11-03 Michael Chang <mchang@suse.com>
83
84 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
85 of neighbor solicitation packet in grub_netbuff_pull.
86
87 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
88
89 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
90 avoid fatal warnings with older gcc (probably before 4.7).
91 * grub-core/loader/arm64/linux.c: Likewise.
92 * grub-core/loader/i386/linux.c: Likewise.
93 * grub-core/loader/i386/pc/linux.c: Likewise.
94 * grub-core/loader/ia64/efi/linux.c: Likewise.
95 * grub-core/loader/mips/linux.c: Likewise.
96 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
97 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
98
99 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
100
101 Fix in-tree --platform=none
102
103 * configure.ac: Only remove include/grub/cpu and
104 include/grub/machine in the --platform=none case, not all of
105 include/grub.
106
107 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
108
109 Add a new "none" platform that only builds utilities
110
111 * configure.ac: Add "none" platform. Default to it for unsupported
112 CPUs rather than stopping with a fatal error. Don't downgrade
113 x86_64-none to i386. Define COND_real_platform Automake conditional
114 if the platform is anything other than "none". Don't do any include
115 directory linking for "none".
116 * Makefile.am: Skip building grub-core and all bootcheck targets if
117 !COND_real_platform.
118 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
119 is defined.
120
121 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
122
123 Use grub_cpu_to_XXX_compile_time for constants.
124
125 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
126
127 The AML parser implements only a small subset of possible AML
128 opcodes. On the Fujitsu Lifebook E744 this and another bug in
129 the parser (incorrect handling of TermArg data types) would lead
130 to the laptop not turning off (_S5 not found).
131
132 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
133 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
134 aren't always simply strings!); Add function to skip TermArgs
135 * include/grub/acpi.h: Add new opcodes
136
137 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
138
139 * grub-core/normal/main.c: Don't drop to rescue console in
140 case of password-protected prompt and no menu entries.
141
142 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
143
144 * grub-core/commands/keylayouts.c: Ignore unknown keys.
145
146 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
147
148 * grub-core/gmodule.pl.in: Accept newer binutils which output
149 empty column rather than 0x0.
150
151 2014-09-21 Michael Chang <mchang@suse.com>
152
153 * grub-core/osdep/unix/config.c: Remove extraneous comma.
154
155 2014-09-21 Peter Jones <pjones@redhat.com>
156
157 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
158 we don't free a random pointer from the stack.
159 * grub-core/loader/arm64/linux.c: Likewise.
160 * grub-core/loader/i386/linux.c: Likewise.
161 * grub-core/loader/i386/pc/linux.c: Likewise.
162 * grub-core/loader/ia64/efi/linux.c: Likewise.
163 * grub-core/loader/mips/linux.c: Likewise.
164 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
165 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
166
167 2014-09-15 Khem Raj <raj.khem@gmail.com>
168
169 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
170 _BSD_SOURCE to avoid warnings under glibc 2.20+.
171
172 2014-09-08 Michael Chang <mchang@suse.com>
173
174 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
175 check; comparing &data->extent against addresses in the region it
176 points to is unpredictable.
177
178 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
179
180 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
181
182 * configure.ac: Remove -m64 from checks for -mcmodel=large and
183 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
184 already in TARGET_CFLAGS at this point, and they produce incorrect
185 results when building for x32.
186 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
187 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
188 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
189 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
190
191 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
192
193 * configure.ac: Remove several unnecessary semicolons.
194
195 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
196
197 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
198 Initialise pend to pacify GCC.
199
200 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
201
202 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
203 gettext_printf).
204
205 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * grub-core/term/at_keyboard.c: Retry probing keyboard if
208 scancode setup failed.
209
210 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
213
214 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
215
216 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
217 safety to avoid triggerring VirtualBox bug.
218
219 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
220
221 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
222
223 Fixes hang on virtualbox.
224
225 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
226
227 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
228 kernels whose paths contain regex metacharacters.
229 * util/grub.d/10_kfreebsd.in: Likewise.
230 * util/grub.d/10_linux.in: Likewise.
231 * util/grub.d/20_linux_xen.in: Likewise.
232
233 Reported by: Heimo Stranner.
234
235 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
236
237 * docs/grub-dev.texi (Finding your way around): The build system no
238 longer uses AutoGen directly.
239
240 2014-06-21 Роман Пехов <roman_pekhov>
241
242 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
243
244 2014-06-21 Glenn Washburn <development@efficientek.com>
245
246 * util/grub-install.c: Fix handling of --disk-module.
247
248 2014-06-21 Stephane Rochoy <sheda>
249
250 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
251 EFI system table.
252
253 2014-06-21 Stephane Rochoy <sheda>
254
255 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
256 EFI system table physical address.
257
258 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
259
260 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
261
262 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
263
264 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
265
266 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
267
268 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
269 check.
270
271 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
272
273 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
274
275 Reported by: Yves Blusseau <blusseau@zetam.org>.
276
277 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
278
279 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
280 GDT in conventional memory.
281
282 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
283
284 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
285 UUID. Other parts of grub-mkconfig tolerate these, they were
286 previously allowed here up to commit
287 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
288 practice when the system has active LVM snapshots.
289 Fixes Ubuntu bug #1287436.
290
291 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
292
293 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
294 "logical_volumes" block a little more accurately.
295
296 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
297
298 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
299
300 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
301
302 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
303 pulled from libgcc.
304
305 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
306
307 Replace few instances of memcmp/memcpy in the code that should be
308 grub_memcmp/grub_memcpy.
309
310 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
313 device names.
314
315 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
316
317 btrfs: fix get_root key comparison failures due to endianness
318
319 * grub-core/fs/btrfs.c (get_root): Convert
320 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
321
322 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
323
324 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
325
326 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
327 no longer to be forgiving of trailing spaces on grub-probe output
328 lines, which among other things means that util/grub.d/10_linux.in
329 no longer detects LVM. To fix this, make grub-probe's output
330 delimiting more consistent. As a bonus, this improves the coverage
331 of the -0 option.
332
333 Fixes Debian bug #735935.
334
335 * grub-core/disk/cryptodisk.c
336 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
337 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
338 Likewise.
339 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
340 Update prototype.
341 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
342 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
343 probe_mods): Adjust for extra user-data arguments.
344 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
345 probe_abstraction): Use configured delimiter. Update callers.
346
347 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
348
349 * util/grub-probe,c (options): Make -0 work again (broken by
350 conversion to argp).
351 (main): Simplify logic.
352
353 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
354
355 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
356
357 2014-03-26 Fu Wei <fu.wei@linaro.org>
358
359 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
360
361 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
364 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
365
366 Suggested by: Markus Müller.
367
368 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
369
370 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
371 if E820 failed to return any regions.
372
373 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
374
375 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
376 tables for low memory calculations.
377
378 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
379
380 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
381 location to 640K.
382
383 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
386 region.
387
388 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
389
390 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
391 exclusively.
392
393 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
394
395 Add bootpath parser for open firmware.
396
397 It enables net boot even when there is no bootp/dhcp server.
398
399 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
400 and call it at grub_ieee1275_net_config_real.
401 * grub-core/kern/ieee1275/init.c: Add bootpath to
402 grub_ieee1275_net_config.
403 * include/grub/ieee1275/ieee1275.h: Likewise.
404
405
406 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
407
408 Add grub_env_set_net_property function.
409
410 * grub-core/net/bootp.c: Remove set_env_limn_ro.
411 * grub-core/net/net.c: Add grub_env_set_net_property.
412 * include/grub/net.h: Likewise.
413
414 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
415
416 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
417
418 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
419
420 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
421
422 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
423
424 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
425 7 seconds to recover if last poweroff was bad.
426
427 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * grub-core/disk/ahci.c: Properly handle transactions with no
430 transferred data.
431
432 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * grub-core/disk/ahci.c: Add safety cleanups.
435
436 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
437
438 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
439 slots to avoid pointing to uninited area.
440
441 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
442
443 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
444 enabling busmaster for the end.
445
446 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
447
448 * util/grub-mkfont.c: Downgrade warnings about unhandled features
449 to debug.
450
451 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
452
453 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
454
455 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
456
457 * .gitignore: add missing files and .exe variants.
458
459 2014-01-26 Mike Gilbert <floppym@gentoo.org>
460
461 grub-install: support for partitioned partx loop devices.
462
463 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
464 /dev/loopX as being the parent of /dev/loopXpY.
465
466 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
467
468 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
469 Ensure that pointers are inited to NULL and that pointers are not
470 accessed after free.
471
472 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
473
474 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
475 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
476 * include/grub/emu/misc.h: ... and here.
477 * include/grub/err.h: ... and here.
478 * util/import_gcry.py: ... and here (in files g10lib.h).
479
480 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
481
482 * util/grub-mkimage.c: Make prefix argument mandatory.
483
484 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
485
486 Fix several translatable strings.
487
488 Suggested by: D. Prévot.
489
490 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
491
492 * util/grub-install.c: List available targets.
493
494 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
495
496 * util/grub-install.c (write_to_disk): Add an info message.
497
498 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
499
500 * Makefile.am: Allow adding extra files to generated Windows ZIP
501 archive by setting GRUB_WINDOWS_EXTRA_DIST.
502
503 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
504
505 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
506 Show detected font path in summary.
507
508 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
509
510 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
511 interval gradually.
512 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
513 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
514 * grub-core/net/tftp.c (tftp_open): Likewise.
515 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
516
517 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
518
519 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
520 infinite loops.
521
522 In net/net.c there is a while (1) that only exits if there is a stop
523 condition and more then 10 packages or if there is no package received.
524
525 If GRUB is idle and enter in this loop, the only condition to leave is
526 if it doesn't have incoming packages. In a network with heavy traffic
527 this never happens.
528
529 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
530
531 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
532 EPERM when modifying kern.geom.debugflags. It is only a problem for
533 such things as installing GRUB to the MBR, in which case there'll be
534 an error later anyway, not for opening files during tests.
535
536 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
537
538 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
539 instead of MOD_FILES.
540 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
541 both with and without .exe.
542 * grub-core/genemuinitheader.sh: Same.
543
544 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * util/grub-install.c: Fix a typo.
547
548 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
549
550 * grub-core/normal/main.c (read_config_file): Buffer config file.
551 Reduces boot time.
552
553 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
554
555 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
556 symbolic link to directory. It fails in Msys shell on Windows 2003.
557
558 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
559
560 * Makefile.am (default_payload.elf): Add modules
561 multiboot cbmemc linux16 gzio echo help.
562
563 2014-01-18 Mike Gilbert <floppym@gentoo.org>
564
565 * Makefile.util.def: Link grub-ofpathname with zfs libs.
566
567 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
570 conflicts.
571
572 Reported by: Andrey Borzenkov.
573
574 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
575
576 * include/grub/misc.h: Move macros for compiler features to ...
577 * include/grub/compiler.h: ... new file.
578 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
579 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
580 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
581 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
582 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
583 * grub-core/video/capture.c: Include <grub/misc.h>.
584 * include/grub/command.h: Include <grub/misc.h>.
585 * include/grub/dl.h: Include <grub/misc.h>.
586 * include/grub/procfs.h: Include <grub/misc.h>.
587
588 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
589
590 * configure.ac: Add support for BUILD_EXEEXT and use it ...
591 * Makefile.am: ... here.
592 * Makefile.util.def: ... and here.
593 * grub-core/Makefile.am: ... and here.
594
595 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
596
597 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
598 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
599
600 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/term/terminfo.c: Recognize keys F1-F12.
603
604 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
605
606 * configure.ac: Add support for BUILD_LDFLAGS.
607 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
608 * grub-core/Makefile.am: ... and here.
609 * INSTALL: Mention BUILD_LDFLAGS.
610
611 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
612
613 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
614
615 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
618 and has no //.
619
620 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * NEWS: Add few missing entries.
623
624 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
625
626 * util/grub.d/00_header.in (make_timeout): Use && rather than test
627 -a.
628 * util/grub.d/10_windows.in: Likewise.
629 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
630 than test -o.
631 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
632 rather than test -o.
633
634 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
635
636 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
637 redundant preprocessor conditional.
638
639 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
640
641 * Makefile.util.def (grub-macbless): Change mansection to 8.
642
643 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
644
645 * grub-core/loader/arm64/linux.c: correctly set device path end length.
646
647 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
648
649 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
650 arm64 to comply with EFI specification. Also use grubaa64.efi for
651 consistency.
652 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
653
654 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
655
656 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
657 on MinGW-64 when compiling for 32 bits.
658
659 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
660
661 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
662
663 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
664
665 * NEWS: Add few missing entries. Correct existing ones.
666
667 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
668
669 Don't abort() on unavailable coreboot tables if not running on coreboot.
670
671 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
672
673 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
674 on mingw.
675
676 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
677
678 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
679 mention of it from 2.02.
680
681 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
682
683 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
684
685 As these functions are used on pre-ARMv6 CPUs as well we don't want
686 to make assembler assume that architecture is higher than default one.
687
688 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
689
690 * NEWS: First draft of 2.02 entry.
691
692 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
693
694 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
695 * docs/grub.texi (Getting the source code): Likewise.
696
697 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
698
699 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
700 detection.
701
702 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
703
704 * configure.ac: Set version to 2.02~beta2.
705
706 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
707
708 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
709
710 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
711
712 * util/grub-probe.c: Improve help message and simplify list handling.
713
714 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
715
716 Fix buffer overflow in grub_efi_print_device_path.
717
718 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
719
720 Show SATA device path.
721
722 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
723
724 Revert grub-file usage in grub-mkconfig.
725
726 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
727
728 Make newly-created files other than grub.cfg world-readable.
729
730 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
731
732 * util/grub.d/00_header.in: Improve compatibility with old config.
733
734 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
735
736 Make rijndael.c respect aliasing rules.
737
738 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
739
740 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
741
742 Make grub_util_device_is_mapped_stat available in grub-emu core.
743
744 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Add -Qn to TARGET_CFLAGS if it's supported.
747 Fixes compilation on cygwin.
748
749 Reported by: Andrey Borzenkov.
750 Suggested by: Andrey Borzenkov.
751
752 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
753
754 Save TARGET_CC version in modinfo.sh.
755
756 Suggested by: Andrey Borzenkov.
757
758 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
759
760 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
761 follow the same algorithm to avoid method mismatch. Don't assume
762 DMRAID- UUID to mean full disk but instead check that mapping is linear.
763
764 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
765
766 Declare GRUB_EFI_VENDOR_APPLE_GUID.
767
768 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
769
770 Dump type and vendor specific data when printing device path.
771
772 2013-12-23 Colin Watson <cjwatson@debian.org>
773
774 Update some documentation to refer to Git rather than Bazaar.
775
776 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
777 than Bazaar.
778 * po/README: Likewise. Fix spelling mistake.
779
780 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
781
782 Don't distribute config.h.
783
784 * Makefile.am (platform_HEADERS): Move to ...
785 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
786 failure when building from a distributed tarball.
787
788 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
789
790 * configure.ac: Fix spelling.
791 * grub-core/commands/parttool.c: Fix grammar.
792 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
793 Embedding Partition".
794
795 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
796
797 ARM64 support for grub-mkrescue.
798
799 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
800
801 Install modinfo.sh to keep build information around.
802
803 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * grub-core/modinfo.sh.in: Add build config information.
806
807 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
808
809 ARM64 grub-file and grub-mkconfig support.
810
811 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
812
813 Remove leftover options defines.
814
815 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
816
817 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
818
819 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
820
821 * grub-core/loader/arm64/linux.c: Add missing bracket.
822
823 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
824
825 Add arm64-efi recognition to grub-file.
826
827 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
828
829 Fix ia64-efi recognition in grub-file.
830
831 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
832
833 Recognize raspberry pi kernel in grub-file.
834
835 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
836
837 Enable cache on ARM U-Boot port.
838
839 Without it the port is reidiculously slow.
840
841 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
842
843 Fix ARM cache maintainance.
844
845 More code was converted from ASM to C for easier handling.
846
847 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
848
849 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
850 algorithm on v5.
851
852 Suggested by: Leif Lindholm.
853
854 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
855
856 * util/grub-mkconfig.in: Fix Xen platform conditions.
857
858 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
859
860 * util/grub-mkrescue.c: Split single help message string in several
861 strings used in previous shell version.
862
863 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
864
865 Add arm64 Linux loader.
866
867 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
868
869 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
870
871 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
872
873 Add module loading and parsing boot time checkpoints.
874
875 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
878 platforms.
879
880 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
881
882 * util/grub-mkconfig.in: Skip non-executable files.
883
884 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
885
886 Workaround buggy timer in raspberry pie by using our own timer
887 implementation.
888
889 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
892 Increase to 16 MiB to allow loading the whole memdisk.
893
894 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
895
896 Fix ARM Linux Loader on non-FDT platforms.
897
898 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * configure.ac: Choose link format based on host_os on emu.
901
902 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
905
906 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
907
908 * grub-core/kern/emu/main.c: Build fix for emu.
909
910 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
911
912 Build fixes for argp.h with older gcc.
913
914 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
917 in strings.
918
919 Suggested by: David Prévot.
920
921 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
924
925 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
926
927 Enable -Wformat=2 if it's supported.
928
929 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
932 -Wmissing-declarations if supported.
933
934 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
937 u32 as both HFS and HFS+ have 32-bit inodes.
938
939 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
940
941 * include/grub/misc.h (grub_strtol): Fix overflow.
942
943 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
944
945 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
946 as return type in both conditionals.
947
948 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
951 to use uint8_t for color.
952
953 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * util/misc.c (grub_util_get_image_size): Check for overflow.
956
957 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
958
959 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
960 for size.
961
962 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
963
964 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
965 for pointer difference.
966
967 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
968
969 * util/import_gcry.py: Skip sample keys.
970
971 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
972
973 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
974
975 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * configure.ac: Remove duplicate warning arguments.
978
979 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
980
981 Add missing static qualifiers.
982
983 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
984
985 Add missing includes.
986
987 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
988
989 Inline printf templates when possible to enable format checking.
990
991 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
992
993 * include/grub/crypto.h: Don't discard const attribute.
994
995 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
996
997 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
998 was intended.
999
1000 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * grub-core/lib/crypto.c: Don't discard const attribute.
1003
1004 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * grub-core/lib/disk.c: Fix potential overflow.
1007
1008 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * grub-core/lib/arg.c: Don't discard const attribute.
1011
1012 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1013
1014 * grub-core/kern/dl.c: Don't discard const attribute.
1015
1016 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * grub-core/kern/disk.c: Fix potential overflow.
1019
1020 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 * conf/Makefile.common: Don't include non-existing directory
1023 grub-core/lib/libgcrypt-grub/include.
1024
1025 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 Clarify several translatable messages.
1028
1029 2013-12-21 David Prévot <david@tilapin.org>
1030
1031 Correct some translatable strings.
1032
1033 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1034
1035 * util/grub-mkrescue.c: Rephrase mkrescue description.
1036
1037 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1038 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1039
1040 Clarify several translatable messages.
1041
1042 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1043
1044 Be more verbose about some configure failures.
1045
1046 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1047
1048 Fix various build problems on GNU/Hurd.
1049
1050 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1051 !defined (__GNU__).
1052 (xgetcwd): Likewise.
1053 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1054 [__GNU__]: Add prototype.
1055 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1056 long int using %ld rather than %d.
1057
1058 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 * util/grub-install.c: Inform user about install platform.
1061
1062 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * configure.ac: Set version to 2.02~beta1.
1065
1066 2013-12-18 Allen Pais <allen.pais@oracle.com>
1067 2013-12-18 Bob Picco <bob.picco@oracle.com>
1068
1069 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1070
1071 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 Make grub_zlib_decompress handle incomplete chunks.
1074
1075 Fixes squash4.
1076
1077 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1080 on i386-multiboot.
1081
1082 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1083
1084 * grub-core/disk/usbms.c: Retry on unknown errors.
1085 Reuse the same tag on retries.
1086
1087 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1088
1089 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1090
1091 Avoid confusing them with already completed transfers.
1092
1093 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 Remove xen VFB.
1096
1097 Due to XEN bug it prevents Linux boot. Remove it at least, until
1098 workaround is found.
1099
1100 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * po/exclude.pot: Add 2 missing excludes.
1103
1104 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 Add missing license section in macbless.mod and macho.mod.
1107
1108 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 Allow compilation without thumb-interwork as long as no thumb is
1111 involved or only thumb2 is used.
1112
1113 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1116
1117 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 Add __attribute__ ((sysv_abi)) only if it's really needed.
1120
1121 Some compilers don't support it.
1122
1123 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1126
1127 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1128
1129 Remove -Wold-style-definition.
1130
1131 Not very useful and interaction of it with regexp depends on GCC
1132 version.
1133
1134 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 Make grub_util_get_windows_path_real static.
1137
1138 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/commands/fileXX.c: Silence cast-align.
1141 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1142
1143 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1146 rather than LL suffix.
1147
1148 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1149
1150 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1151
1152 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 * grub-core/loader/arm/linux.c: Use common initrd functions.
1155
1156 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 Decrease number of strings to translate.
1159
1160 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1163
1164 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 Mark strings for translation and add remaining ones to exclude list.
1167
1168 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 * util/grub-file.c (main): Fix sizeof usage.
1171
1172 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 Silence spurious warning.
1175
1176 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 Remove check_nt_hiberfil as it's been superseeded by file command.
1179
1180 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1183
1184 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 Implement syslinux parser.
1187
1188 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1191
1192 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 Support cpuid --pae.
1195
1196 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 Use AT keyboard on Yeeloong 3A.
1199
1200 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 Add Yeeloong 3A reboot and halt.
1203
1204 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1205
1206 Add Radeon Yeeloong 3A support.
1207
1208 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1209
1210 Add bonito 3A support.
1211
1212 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1215
1216 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1217
1218 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1219
1220 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 * grub-core/loader/macho.c: Fix compilation on non-i386.
1223
1224 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 Add missing format_arg attribute to check that printf with translated
1227 messages has proper arguments.
1228
1229 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 Use grub_xasprintf to format translated error messages containing
1232 64-bit quantity.
1233
1234 2013-12-17 Jon McCune <jonmccune@google.com>
1235
1236 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1237
1238 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 Unify message for unsupported relocation.
1241
1242 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 Mark miscompile error for translation.
1245
1246 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 Use %I64 and not %ll when using OS printf if compiling for windows.
1249
1250 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 Update Mac code to match new register_efi prototype.
1253
1254 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 Implement better integration with Mac firmware.
1257
1258 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1259
1260 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1261 load_addr.
1262
1263 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1264
1265 Include serial module in default_payload.elf.
1266
1267 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 Add explicit thumb interwork bx in asm files.
1270
1271 Shouldn't matter for armv >= 5 but let's be safe.
1272
1273 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 Implement Truecrypt ISO loader.
1276
1277 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1280
1281 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 Implement grub_file tool and use it to implement generating of config
1284 in separate root.
1285
1286 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 Change to v1 xen grants.
1289
1290 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1293
1294 GRUB relied on %ebx being preserved across hypercall which isn't true.
1295
1296 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1299
1300 GRUB relied on %rdi being preserved across hypercall which isn't true.
1301
1302 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1303
1304 Implement XEN VFB support.
1305
1306 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 Remove grub_bios_interrupt on coreboot.
1309
1310 It's not used currently and cannot be used safely currently.
1311
1312 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1313
1314 Update exclude.pot and mark few strings for translation.
1315
1316 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1319
1320 Reported by: Jon McCune
1321
1322 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1323
1324 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1325 Add verbose information which firmware directories were tried.
1326
1327 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1328
1329 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1330 function to optionally redirect all three standard descriptors.
1331 Redefine grub_util_exec, grub_util_exec_redirect and
1332 grub_util_exec_redirect_null to use it.
1333 * include/grub/emu/exec.h: Define it.
1334 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1335 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1336 Use grub_util_exec_redirect_all to redirect error to NULL.
1337
1338 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 * grub-core/tests/sleep_test.c: Silence spurious warning.
1341
1342 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1345 linker trying to "fixup" the code.
1346
1347 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1350
1351 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 Add support for converting PE+ to Elf64.
1354
1355 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1358
1359 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Remove practice of assigning random const pointers to device id.
1362
1363 This is not required as cache code already checks driver id as well.
1364
1365 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1368 with mingw.
1369
1370 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1371
1372 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1373 mingw or cygwin as API already matches.
1374
1375 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1378
1379 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1382 not on long.
1383
1384 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1385
1386 Handle X86_64_PC64 relocation.
1387
1388 Those are generated by some cygwin compilers.
1389
1390 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 Determine the need for mingw-related stubs at compile time rather than
1393 using not very significant $target_os.
1394
1395 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1398 may not work with ELF.
1399
1400 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 Use unix functions for temporary files and special files on cygwin.
1403
1404 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 Define functions explicitly rather than using --defsym in tests
1407 whenever possible. Respect locality in remaining cases.
1408
1409 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1412
1413 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1414
1415 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1416 unlikely errors when getting EFI variables and make exhaustive search
1417 for all BootNNNN variables to find matching one.
1418
1419 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1420
1421 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1422
1423 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 New functional test for sleep function.
1426
1427 This test allows to check sleep without qemu. Keep qemu version as
1428 well as functional test won't notice if all clocks are going too fast
1429 or too slow.
1430
1431 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1432
1433 Add explicit sysv_abi on amd64 asm routines.
1434
1435 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1438 num_table_entries.
1439
1440 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1443 functions.
1444
1445 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1448 appropriate.
1449
1450 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1453
1454 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1457 appropriate.
1458
1459 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1462
1463 In case of quick removal of loopback and adding another one it may
1464 get same ID, confusing the cache system.
1465
1466 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1469 appropriate.
1470
1471 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1474 than converting to long.
1475
1476 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1479
1480 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1483 than almost useless pointer.
1484
1485 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 Add gcc_struct to all packed structures when compiling with mingw.
1488
1489 Just "packed" doesn't always pack the way we expect.
1490
1491 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1494
1495 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1496
1497 * util/grub-pe2elf.c: Fix handling of .bss.
1498
1499 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 Implement windows flavour of EFI install routines.
1502
1503 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1504
1505 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1506
1507 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 Change grub_install_register_efi interface to pass GRUB device.
1510
1511 This allows grub_install_register_efi to request partition info
1512 directly.
1513
1514 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1517
1518 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 Do not use TCHAR string functions as they are not available on cygwin.
1521
1522 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 Workaround windows bug when querying EFI system partition parameters.
1525
1526 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1529 by using bitfields.
1530
1531 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1532
1533 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1534
1535 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 Make i386-* other than i386-pc compileable under cygwin.
1538
1539 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 Fix definition of grub_efi_hard_drive_device_path. Take care that
1542 existing code would work even if by some reason bogus definition is
1543 used by EFI implementations.
1544
1545 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1548
1549 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1552 invocation.
1553
1554 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 * util/config.c: Remove trailing newline from distributor in simple
1557 parsing.
1558
1559 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 * include/grub/efi/api.h: Rename protocol and interface to avoid
1562 conflict.
1563
1564 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 * .gitignore: add .exe variants. add missing files. remove few outdated
1567 entries.
1568
1569 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/osdep/exec.c: Use unix version on cygwin.
1572
1573 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 Implement multiboot2 EFI BS specification.
1576
1577 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1580 Crash happened only in some cases like a string starting at the
1581 half of the screen of same length.
1582
1583 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1586 with EFI counterpart.
1587
1588 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 Propagate the EFI commits to x86-efi specific parts.
1591
1592 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1595
1596 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 Introduce grub_efi_packed_guid and use it where alignment is not
1599 guaranteed.
1600
1601 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1604 unaligned u16 rather than u8[2].
1605
1606 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1609 for relocation range.
1610
1611 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1614 non-function pcrel21b relocation. It happens with .text.unlikely
1615 section.
1616
1617 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1618
1619 * make MAX_USABLE_ADDRESS platform-specific
1620 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1621
1622 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1623
1624 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1625
1626 2013-12-09 Jon McCune <jonmccune@google.com>
1627
1628 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1629 in grub-install and grub-bios-setup for x86 BIOS targets.
1630
1631 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 Add missing compile and link options for sparc64-emu.
1634
1635 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 Implement sparc64 trampolines (needed for sparc64-emu).
1638
1639 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1642 range of R_SPARC_HI22.
1643 Implement R_SPARC_LM22.
1644
1645 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1648 Do not explicitly check for symbol table as it's already checked in
1649 platform-independent layer.
1650
1651 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1654 on ia64 as __clear_cache is a dummy on ia64.
1655
1656 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1659 Do not explicitly check for symbol table as it's already checked in
1660 platform-independent layer.
1661
1662 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1663
1664 * util/grub-mkconfig.in: Add missing newline to output.
1665
1666 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1669 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1670
1671 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1674 compilation with GCC <= 4.2.
1675 * grub-core/kern/emu/argp_common.c: Likewise.
1676
1677 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1680 right platform rather than leaking to sparc64-emu.
1681
1682 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1685 But ensure that the variables in question are indeed unsigned.
1686
1687 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1688
1689 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1690
1691 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 Remove grub_memalign on emu.
1694
1695 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1698 truncate incomplete lines but instead flushes them.
1699
1700 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1701
1702 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1703 and implement windows variant.
1704
1705 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 Fix mips-emu compilation.
1708
1709 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * configure.ac: Check for freetype library usability.
1712
1713 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 Make arm-emu work.
1716
1717 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1720
1721 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1722
1723 * docs/grub.texi (Environment): Update color_normal and color_highlight
1724 defaults (light-gray instead of white).
1725
1726 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1727
1728 * grub-core/normal/main.c (INIT): Set default color to light-gray
1729 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1730 and apparently BIOS defaults.
1731
1732 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 Transform -C option to grub-mkstandalone to --core-compress available
1735 in all grub-install flavours.
1736
1737 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 Merge GRUBFS and GRUB_FS variables.
1740
1741 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1742
1743 Revert commit 69ca97c820, it caused failures when using OS device name
1744 in grub-install. Instead just strip off parenthesis in grub-install
1745 if (hdX) was passed.
1746
1747 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1748
1749 * util/grub-install.c (push_partmap_module): Add helper to convert
1750 partmap names to module names and use it in probe_mods(). Fixes
1751 failure to find partmap modules in diskfilter case.
1752
1753 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * configure.ac: Make unifont mandatory on coreboot.
1756
1757 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1758
1759 * configure.ac: Skip unifont 6.3 pcf and bdf.
1760
1761 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1762
1763 * Makefile.am: Remove partial font files if generation failed.
1764
1765 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1766
1767 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1768 strings.
1769 * include/grub/util/misc.h: Define it ...
1770 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1771
1772 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1773
1774 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1775 ${grub_probe}.
1776
1777 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1778
1779 Don't add -mlong-calls when compiling with clang.
1780
1781 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 * configure.ac: Fix a typo.
1784
1785 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 Revamp relocation handling.
1788
1789 Move more code to common dl.c. Add missing veneers for arm and arm64.
1790 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1791
1792 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1793
1794 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1795
1796 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1797
1798 * INSTALL: Raise minimum python version to 2.6.
1799 * gentpl.py: Use python3-style print function.
1800
1801 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * util/grub-install.c: Mention Boot* variable.
1804
1805 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1806
1807 * grub-core/osdep/linux/hostdisk.c
1808 (grub_util_find_partition_start_os): Initialise start to avoid
1809 spurious compiler warning.
1810
1811 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1812
1813 On Linux, read partition start offsets from sysfs if possible, to
1814 cope with block device drivers that don't implement HDIO_GETGEO.
1815 Fixes Ubuntu bug #1237519.
1816
1817 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1818 function.
1819 (sysfs_partition_start): Likewise.
1820 (grub_util_find_partition_start_os): Try sysfs_partition_start
1821 before HDIO_GETGEO.
1822
1823 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1824
1825 * grub-core/kern/fdt.c: Update struct size when adding node.
1826
1827 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 Handle unaligned .bss on sparc64.
1830
1831 Current code improperly assumes that both __bss_start and _end are
1832 aligned to 8-bytes. Eliminating this assumption and explicitly align
1833 modules.
1834
1835 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1838 so it doesn't land in the middle of loaded image.
1839
1840 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 * configure.ac: Move all warning options that may be absent in
1843 gcc >= 3.1 to optional.
1844
1845 Note: while this allows to compile with older GCC, official requirements
1846 remain the same and no support for older GCC.
1847
1848 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1849
1850 Copying the themes directory in grub-shell isn't
1851 parallel-test-friendly and breaks on the second test when the source
1852 directory is read-only (as in "make distcheck"). Instead, add a
1853 hidden --themes-directory option to grub-mkrescue et al, and use it
1854 in grub-shell.
1855
1856 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1857
1858 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1859 as it's no longer necessarry.
1860
1861 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1862
1863 * configure.ac: Allow compilation with older GCC for ARM.
1864
1865 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1868 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1869 ppc.
1870
1871 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1874
1875 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 Pass font config to config.h and not by TARGET_CFLAGS as adding
1878 arguments doesn't work if TARGET_CFLAGS is specified on command
1879 line.
1880
1881 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 * configure.ac: Add -Wvla if compiler supports it.
1884
1885 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1888 Remove variable length arrays.
1889 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1890
1891 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1894
1895 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 * include/grub/types.h: Declare all byteswaps as inline functions
1898 except compile-time ones.
1899
1900 Solves variable shadowing in constructions like
1901 cpu_to_le (le_to_cpu(x) + 1).
1902
1903 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1906
1907 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1910 minutes.
1911
1912 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1915 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1916
1917 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1918
1919 * grub-core/Makefile.core.def (setjmp): Distribute
1920 lib/arm64/setjmp.S.
1921
1922 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1923
1924 Add a new timeout_style environment variable and a corresponding
1925 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1926 controls hidden-timeout handling more simply than the previous
1927 arrangements, and pressing any hotkeys associated with menu entries
1928 during the hidden timeout will now boot the corresponding menu entry
1929 immediately.
1930
1931 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1932 generates a warning, and if it shows the menu it will do so as if
1933 the second timeout were not present. Other combinations are
1934 translated into reasonable equivalents.
1935
1936 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1937
1938 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * util/config.c: Add missing pointer adjustment.
1941 Reported by: qwertial
1942
1943 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1944
1945 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1946 directly, not via `cpu' link, to fix libgrub.pp generation.
1947
1948 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1949
1950 New port arm64-efi.
1951
1952 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1953
1954 * docs/grub.texi (sleep): Document exit codes.
1955
1956 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1957
1958 Ensure that -mno-unaligned-access or some equivalent option is used.
1959
1960 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1961
1962 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1963 -march=armv3.
1964
1965 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1968
1969 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1970
1971 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1972 builds, since we don't have an EPS version of font_char_metrics.png.
1973 Add leading dot to image extension per the Texinfo documentation.
1974
1975 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1976
1977 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1978 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1979 * util/grub-gen-widthspec.c: Likewise.
1980 * util/grub-mkfont.c: Likewise.
1981
1982 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1983
1984 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1985 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1986 failed to install on (hdX).
1987 * util/grub-setup.c (get_device_name): Remove, not needed after
1988 above change.
1989
1990 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1993
1994 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * util/grub-fstest.c: Remove variable length arrays.
1997
1998 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2001
2002 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2003
2004 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2005 computing crc32 rather than handling with md fundtions directly.
2006
2007 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2010 checking fwstart.img rather than md fundtions directly.
2011
2012 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2013
2014 * util/grub-mkrescue.c (main): Check that fread succeeded.
2015
2016 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * conf/Makefile.common: Remove -mexplicit-relocs and
2019 -DUSE_ASCII_FALLBACK on yeeloong.
2020
2021 -DUSE_ASCII_FALLBACK is already added by font snippets.
2022 -mexplicit-relocs isn't needed is compiler/assemblera are
2023 configured properly.
2024 If they're not we shouldn't attempt to fix it by ourselves.
2025 Binary compare between before and after shows no difference.
2026
2027 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2028
2029 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2030 sources in dependencies directly.
2031
2032 This was the only instance of "library" in core config. A bug was
2033 reported that -fno-stack-protector wasn't passed to it. Instead of
2034 figuring out why it failed just remove this construction used
2035 needlessly.
2036
2037 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2040 fgets succeeded.
2041
2042 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2043
2044 * docs/grub.texi (ls): Fix command description in case of a device name
2045 passed as argument.
2046
2047 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 Eliminate variable length arrays in grub_vsnprintf_real.
2050
2051 A bit tricky because this function has to continue to work without
2052 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2053 but make all stack references use 32-bit offset rather than 8-bit one.
2054 So split va_args preparsing to separate function and put the prealloc
2055 into the caller.
2056
2057 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2060 Fixes build for windows.
2061
2062 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * gentpl.py: Don't generate platform-dependent conditionals for
2065 platform-independent targets.
2066
2067 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2068
2069 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2070 references to mdadm from otherwise generic code.
2071 (grub_util_exec_pipe): Likewise.
2072 (grub_util_exec_pipe_stderr): Likewise.
2073 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2074 This function calls vgs, not mdadm; adjust variable names
2075 accordingly.
2076
2077 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2078
2079 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2080 of Autogen. The Autogen definitions files remain intact as they
2081 offer a useful abstraction.
2082
2083 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2084
2085 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2086 into no-ops, and use it in programs that copy files but do not need
2087 to take special care to sync writes (grub-mknetdir, grub-rescue,
2088 grub-mkstandalone).
2089
2090 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2091
2092 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2093 than hardcoding /usr/local/bin/xorriso.
2094
2095 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 Add PCI command activation to all PCI drivers as required for coreboot
2098 and maybe some other firmwares.
2099
2100 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2103 and non-Apple variants of efiemu compile.
2104
2105 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2106
2107 * configure.ac: Add explicit check for linking format of
2108 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2109 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2110 hardcoding linking format.
2111
2112 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2115 and not pkgdatadir.
2116
2117 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2118 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 Add a --locale-directory option to grub-install and related tools.
2121
2122 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2123 --locale-directory option.
2124 (enum grub_install_options): Add
2125 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2126 * util/grub-install-common.c (grub_install_help_filter): Handle
2127 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2128 (grub_install_parse): Likewise.
2129 (get_localedir): New function to check for a user-provided option
2130 before trying grub_util_get_localedir.
2131 (copy_locales): Use get_localedir rather than
2132 grub_util_get_localedir. Handle differing locale directory layouts.
2133 (grub_install_copy_files): Likewise.
2134
2135 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2138 Don't rely on PATH_MAX.
2139
2140 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/genmoddep.awk: Use more portable && rather than and.
2143
2144 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2147 an object after data. While it doesn't seem right solution, it
2148 works well enough and OSX isn't main compilation platform.
2149
2150 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2153 While it doesn't seem right solution, it works well enough and
2154 OSX isn't main compilation platform.
2155
2156 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 * configure.ac: Add -static to LDFLAGS when using apple linker to
2159 prevent it from pulling in dynamic linker.
2160
2161 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 Apple assembly doesn't handle symbol arithmetic well. So define an
2164 offset symbol in boot.S and use it.
2165
2166 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 Apple assembly doesn't handle symbol arithmetic well. So instead
2169 of getting addres of kernel_sector + 4 define kernel_sector_high.
2170 It also makes code more readable.
2171
2172 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 With Apple assembly in .macro environvemnt you have to use $$ instead
2175 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2176 to $$x on Apple and to $x on everything else.
2177
2178 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2179
2180 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2181 OBJCONV.
2182
2183 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2186 and non-Apple. This instruction is shorter and faster,
2187 so no reason not to use it on both.
2188
2189 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2192 .text when compiling for Apple.
2193
2194 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2197
2198 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2201 %dx restore the probe worked on non-existant drive. Reorganize the
2202 code a little bit to free 2 bytes necessary for push/pop.
2203
2204 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2207 Add missing cast to silence warning.
2208
2209 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2210
2211 * util/grub-install.c (update_nvram): Support --no-nvram flag
2212 for EFI targets.
2213
2214 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2215
2216 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2217
2218 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * util/garbage-gen.c: Add missing include of sys/time.h.
2221
2222 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2223
2224 Don't add -mflush-func if it's not supported by compiler.
2225
2226 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 Move common BIOS/coreboot memory map declarations to
2229 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2230
2231 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2232
2233 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2234
2235 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 * INSTALL: Document why older clang versions aren't appropriate.
2238
2239 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 * INSTALL: Document about clang for mips.
2242
2243 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2246 clang.
2247
2248 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 Add *-xen to the list of grub-install-common platforms.
2251
2252 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2255 3 last commits.
2256
2257 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2260
2261 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2264 with -mcmodel=large.
2265
2266 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2269 range-checking for 32-bit quantities.
2270
2271 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * configure.ac: Compile with -fPIC when compiling with clang on
2274 mips.
2275
2276 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2279 when compiling with clang.
2280
2281 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 clang emits calls to abort () under some unknown conditions.
2284 Export abort () when compiling with clang.
2285
2286 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 * docs/grub-dev.texi: Document stack and heap sizes.
2289
2290 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * include/grub/i386/pc/memory.h: Decrease
2293 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2294 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2295 The binary doesn't change (checked). It's more to better reflect actual
2296 usage.
2297
2298 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2301 at compile time that enough of scratch size is available.
2302
2303 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2306 Previously we misaligned stack by 8 in startup.S and compensated
2307 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2308 right behaviour is to align stack in startup.S and keep it aligned
2309 in callwrap.S. startup.S part was committed few commits before. This
2310 takes care of callwrap.S.
2311 Reported by: Gary Lin.
2312
2313 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2316 .data and .bss. May happen if compiler and assembly use different
2317 alignment.
2318
2319 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2322 way.
2323
2324 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 Add support for a new magic symbol _gp_disp on mips to handle PIC
2327 binaries.
2328
2329 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2332
2333 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2334
2335 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2336 when rest of GRUB is compiled for hisher stepping. Instead use
2337 .set mips3/.set mips1 around cache and sync opcodes.
2338
2339 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2342 do essentially the same thing, do it in similar way.
2343
2344 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2345
2346 * util/grub-mkrescue.c (main): If a source directory is not
2347 specified, read platform-specific files from subdirectories of
2348 pkglibdir, not pkgdatadir.
2349
2350 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2351
2352 * grub-core/normal/progress.c: Remove unused file.
2353
2354 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2357 array.
2358
2359 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2360
2361 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2362 than grub.cfg.
2363
2364 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 * coreboot.cfg: Add missing file.
2367
2368 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2371
2372 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2373
2374 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2375 selectively skipping systems.
2376
2377 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2378
2379 * Makefile.util.def (grub-mkimage): Add
2380 grub-core/osdep/aros/config.c to extra_dist.
2381 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2382 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2383 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2384 grub-core/gnulib-no-gets.diff.
2385
2386 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 Add automated filesystem checking based on scripts I've used now for
2389 quite some time locally. Most of the test require root so they are
2390 skipped when run without necessarry privelegies.
2391
2392 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2393
2394 * util/grub-install.c (main): Adjust info messages to match
2395 installed paths of grub-bios-setup and grub-sparc64-setup.
2396
2397 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2398
2399 * util/grub-install-common.c (copy_locales): Consistently use
2400 grub_util_get_localedir () rather than LOCALEDIR.
2401 (grub_install_copy_files): Likewise.
2402
2403 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2404
2405 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2406 16-byte boundary, as required by the x86-64 ABI, before calling
2407 grub_main. In some cases, GCC emits code that assumes this
2408 alignment, which crashes if not aligned. The EFI firmware is also
2409 entitled to assume that stack alignment without checking.
2410
2411 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2412
2413 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2414 4k page boundaries as expected by firmware rather than 1k
2415 boundaries.
2416 (grub_mmap_malign_and_register): Likewise.
2417
2418 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2421 fragmentation 512M is enough.
2422
2423 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2426 pointer to 32K. This is the size of cache element which is the most
2427 common allocation >1K. This way the pointer is always around blocks
2428 of 32K and so we keep performance while decreasing fragmentation.
2429
2430 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2431
2432 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2433 current memory when allocating large chunks. This significantly
2434 decreases memory fragmentation.
2435
2436 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2437
2438 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2439 but for symmetry).
2440 * tests/lzocompress_test.in: Skip if lzop is not installed.
2441 * tests/xzcompress_test.in: Skip if xz is not installed.
2442
2443 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2444
2445 * util/grub-mkrescue.c (main): Fix typo.
2446
2447 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2450 clock frequency to 200 MHz,
2451
2452 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2455
2456 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2459 Load config file from (cbfsdisk)/etc/grub.cfg.
2460
2461 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * util/grub-install-common.c (grub_install_copy_files): Fix module
2464 destination directory.
2465
2466 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2467
2468 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2469 files have not been built.
2470
2471 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2472
2473 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2474 Handle errors from mkstemp.
2475 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2476
2477 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2480 on primary master on pseries.
2481
2482 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2485 already loaded. This saves memory needed for tests,
2486
2487 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2490 work again.
2491
2492 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2493
2494 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2495 work again.
2496
2497 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2498
2499 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2500 master since with some combinations of qemu and firmware only primary
2501 IDE channel is available.
2502
2503 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2506 low-memory platforms where we don't have enough memory for them.
2507 * grub-core/tests/videotest_checksum.c: Likewise.
2508
2509 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2510
2511 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2512 already loaded. This saves memory needed for tests,
2513
2514 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 Fix handling of install lists.
2517
2518 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2521
2522 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2525 the devices before accessing them.
2526
2527 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2530 as file argument.
2531
2532 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2533
2534 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2535
2536 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2537
2538 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2539 (grub_file_close): Free file->name.
2540
2541 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2544 (grub_load_public_key): Likewise.
2545 (grub_verify_signature_real): Likewise.
2546 (grub_cmd_verify_signature): Likewise.
2547
2548 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2551 memory leak.
2552
2553 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2556 (grub_longjmp): Restore r31.
2557 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2558
2559 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2560
2561 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2562 modules to be in line with make_image_abs.
2563
2564 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2567
2568 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2569
2570 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2571
2572 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2573
2574 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2577 to leave some memory to firmware.
2578
2579 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2582 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2583 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2584 Load gfxmenu.
2585
2586 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2589 now needs full arguments.
2590
2591 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * util/grub-mkrescue.c (main): Add trailing \n in
2594 .disk_label.contentDetails to be in line with previous shell script.
2595
2596 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2597
2598 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2599
2600 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2601
2602 * util/grub-install-common.c (grub_install_parse): Recognize
2603 --compress=none like shell script did.
2604
2605 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2606
2607 * include/grub/misc.h: Replace check for __sparc64__ with one for
2608 __sparc__ as __sparc64__ isn't actually defined.
2609
2610 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2611
2612 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2613 counterpart of fixing the naming of escc ports.
2614
2615 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 * util/grub-install-common.c (platforms): Fix the order of entries and
2618 remove useless field val.
2619
2620 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2621
2622 * util/grub-install.c: Add new option --no-bootsector to skip
2623 installing of bootsector. Accept --grub-setup=/bin/true as
2624 backwards-compatible synonym.
2625
2626 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2627
2628 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2629 order of qsort arguments (number of elements vs. element size).
2630
2631 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2634 the function of these files exceeds what can be sanely handled in shell
2635 in posix-comaptible way. Also writing it in C extends the functionality
2636 to non-UNIX-like OS and minimal environments.
2637
2638 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2641 compiling to thumb2.
2642 * grub-core/kern/arm/cache_armv7.S: Likewise.
2643 * grub-core/lib/arm/setjmp.S: Likewise.
2644
2645 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2646
2647 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2648 in grub_uboot_syscall
2649
2650 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 Decrease stack usage in lexer.
2653
2654 We have only 92K of stack and using over 4K per frame is wasteful
2655
2656 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2657 as macros so that compiler would remove useless structure on stack.
2658 Better solution would be to fix flex not to put this structure on
2659 the stack but flex is external program.
2660
2661 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2662
2663 Decrease stack usage in signature verification.
2664
2665 We have only 92K of stack and using over 4K per frame is wasteful
2666
2667 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2668 rather than stack.
2669 (grub_verify_signature_real): Likewise.
2670
2671 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 Decrease stack usage in mdraid 0.9x.
2674
2675 We have only 92K of stack and using over 4K per frame is wasteful
2676
2677 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2678 rather than stack.
2679
2680 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 Decrease stack usage in BtrFS.
2683
2684 We have only 92K of stack and using over 4K per frame is wasteful
2685
2686 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2687 rather than stack.
2688
2689 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 Decrease stack usage in JFS.
2692
2693 We have only 92K of stack and using over 4K per frame is wasteful
2694
2695 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2696 stack. Note: this function is recursive.
2697 (grub_jfs_read_inode): Read only part we care about.
2698
2699 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2700
2701 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2702 handling
2703
2704 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2705
2706 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2707
2708 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2709
2710 * docs/grub.texi (Environment): Document cmdpath.
2711
2712 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2713
2714 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2715 Remove "unused" attribute from arguments, they are used.
2716
2717 2013-11-15 Colin Watson <cjwatson@debian.org>
2718
2719 * .gitignore: Only ignore grub-mk* at the top level.
2720
2721 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2722
2723 * util/grub-reboot.in (usage): Fix a typo.
2724
2725 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 Replace libgcc version of ctz with our own.
2728
2729 On upcoming arm64 port libgcc ctz* are not usable in standalone
2730 environment. Since we need ctz* for this case and implementation is
2731 in C we may as well use it on all concerned platforms.
2732
2733 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * configure.ac: Probe for linking format rather than guessing it based
2736 on target_os.
2737
2738 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2739
2740 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2741 "1" prior to handoff.
2742
2743 Reported by: M A Young.
2744
2745 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2748 \0 to all files.
2749
2750 Reported by: M A Young.
2751
2752 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2753
2754 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2755 compilation on NetBSD.
2756
2757 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * acinclude.m4: Don't add -P on initial nm test.
2760
2761 Note: even though this patch postdates Andrey's it bears 14 Nov as
2762 date due to timezone difference.
2763
2764 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2765
2766 * grub-core/Makefile.core.def (signature_test): Add missing
2767 tests/signatures.h.
2768
2769 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2770
2771 * util/grub-install_header: Set localedir here, since this file is
2772 where it's used.
2773 * util/grub-install.in: Remove setting of localedir.
2774 * util/grub-mkrescue.in: Likewise.
2775
2776 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2779
2780 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 * configure.ac: Move nm checks to the end.
2783 Call grub_PROG_NM_WORKS.
2784 * acinclude.m4: New check grub_PROG_NM_WORKS.
2785 Use $TARGET_CFLAGS -c when compiling test binary.
2786
2787 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2788
2789 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2790 unused variables.
2791
2792 2013-11-14 Matthew Garrett <mjg@redhat.com>
2793
2794 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2795 cmdpath to firmware directory.
2796
2797 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2800 at the start of second iteration.
2801
2802 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2805
2806 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2807
2808 * Makefile.am (default_payload.elf): New target for easier coreboot
2809 build.
2810
2811 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2814 clang (not necessarry with -no-integrated-as).
2815 * include/grub/symbol.h [__arm__]: Likewise.
2816
2817 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * configure.ac: Use -no-integrated-as on arm with clang.
2820 * INSTALL: Mention ARM compilation with clang.
2821
2822 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2825 -mthumb-interwork.
2826
2827 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2828
2829 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2830 code for indirect block handling.
2831
2832 Saves 185 bytes on compressed image.
2833
2834 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2835
2836 Fix make clean.
2837
2838 * Makefile.am: Remove build-grub-* in make clean.
2839
2840 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2841
2842 New files to gitignore.
2843
2844 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2845 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2846
2847 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2848
2849 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2850
2851 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2852
2853 * .gitignore: fix rules for .dep* and add *.a post git migration
2854
2855 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2856
2857 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2858 to match INSTALL.
2859
2860 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2861
2862 * grub-core/kern/misc.c: Don't redirect divisions in the
2863 GRUB_UTIL case.
2864 * include/grub/misc.h: Likewise.
2865
2866 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2867
2868 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2869 systems that require checking the return value of write.
2870
2871 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2872
2873 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2874 efibootmgr quiet when --debug is not used, rather than when it is.
2875
2876 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2877
2878 * gentpl.py (define_macro_for_platform_dependencies): Remove
2879 first (and thus unused) of two definitions for this function.
2880 (platform_dependencies): Likewise.
2881
2882 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2883
2884 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2885 functions, we only need to check this for the target, not the host.
2886 * configure.ac (grub_apple_cc): Likewise.
2887
2888 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2891 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2892 asm to stay in arm even if surrounding is thumb.
2893
2894 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2897 helper functions are needed for thumb.
2898
2899 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2902 level / 3 division explicitly unsigned. Saves few bytes.
2903
2904 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2905
2906 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2907
2908 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2909
2910 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2911 division.
2912
2913 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2916 grub_uboot_boot_data to asm part.
2917
2918 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2921 literal load.
2922 (grub_uboot_syscall): Save/restore r9 and align stack.
2923
2924 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2927
2928 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2931 occurencies with END.
2932
2933 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2934
2935 * util/grub-editenv.c (help_filter, argp): Document how to delete
2936 the whole environment block.
2937 Reported by Dan Jacobson. Fixes Debian bug #726265.
2938
2939 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2940
2941 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2942 sectioning.
2943
2944 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2945
2946 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2947 increment/decrement.
2948
2949 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2952 compiling with clang.
2953
2954 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2957 ".".
2958
2959 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2960
2961 Redirect all divisions to grub_divmod64.
2962
2963 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2964
2965 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2966
2967 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 Add missing includes of loader.h.
2970
2971 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2972
2973 * configure.ac: Allow disabling themes.
2974
2975 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2976
2977 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2978
2979 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2982 until it becomes operational.
2983
2984 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * grub-core/Makefile.core.def (legacy_password_test): Disable
2987 on platforms where no legacycfg is compiled.
2988 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2989 load legacy_password_test.
2990
2991 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2994
2995 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2998
2999 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3002 strict-aliasing warning.
3003 (fsync): Silence cast warning.
3004
3005 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 * grub-core/commands/verify.c: Remove variable length arrays.
3008 Load gcry_dsa/gcry_rsa automatically.
3009
3010 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 * grub-core/tests/signature_test.c: New test.
3013
3014 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3017 API.
3018
3019 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3022 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3023
3024 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3025
3026 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3027
3028 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 * grub-core/fs/proc.c: Allow \0 in proc files.
3031
3032 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3035
3036 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3039
3040 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3041
3042 * grub-core/fs/ext2.c: Remove variable length arrays.
3043
3044 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3045
3046 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3047 length arrays.
3048
3049 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3052 * grub-core/disk/cryptodisk.c: Likewise.
3053 * grub-core/disk/geli.c: Likewise.
3054 * grub-core/disk/luks.c: Likewise.
3055
3056 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * grub-core/tests/legacy_password_test.c: New test.
3059 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3060
3061 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3064
3065 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * grub-core/tests/pbkdf2_test.c: New test.
3068
3069 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3072
3073 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/io/lzopio.c: Remove variable length arrays.
3076
3077 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * include/grub/crypto.h: Add maximums on hash size and cipher block
3080 size.
3081
3082 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3085
3086 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * grub-core/tests/xnu_uuid_test.c: New test.
3089
3090 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3093 covers it).
3094
3095 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * grub-core/commands/hashsum.c: Remove variable length arrays.
3098
3099 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3102 condition.
3103 * tests/grub_func_test.in: Increase memory allocation.
3104
3105 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3108 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3109 sys/mount.h.
3110
3111 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3114 (grub_util_get_fd_size_os): ...this.
3115 (grub_hostdisk_flush_initial_buffer): New empty function.
3116
3117 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3120 without --defined-only.
3121
3122 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3125 rip-relative addressing in prologue.
3126
3127 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3130 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3131
3132 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3133
3134 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3135 Add missing semicolon.
3136
3137 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3140
3141 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 * configure.ac: Check for lzma.h for enabling liblzma and allow
3144 manual disabling.
3145
3146 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 Add missing includes of loader.h.
3149
3150 2013-11-11 Fam Zheng <famcool@gmail.com>
3151
3152 * util/grub.d/30_os-prober.in: Add minix entry.
3153
3154 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3157 right buffer for temporary load.
3158
3159 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3160
3161 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3162
3163 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3166 payload.
3167
3168 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3171 not Types.h.
3172 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3173 environment.
3174 (LzmaDec_InitDicAndState): Make static.
3175
3176 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3179
3180 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3181
3182 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3183
3184 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3185
3186 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 * docs/grub-dev.texi: Replace bzr references with git ones.
3189
3190 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3191
3192 * docs/grub.texi (Simple configuration): Remove reference to
3193 grub-reboot from saved default entry description - grub-default
3194 does not use it anymore.
3195
3196 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3199 compiled with.
3200
3201 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3202
3203 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3204
3205 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 Fix grub_machine_fini bitrot.
3208
3209 Reported by: Glenn Washburn.
3210
3211 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3214
3215 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3218 -DELF.
3219 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3220 instead of ELF*.
3221
3222 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3225 Add -march=core2 when testing compile of efiemu64.
3226
3227 Thanks Andrey Borzenkov for spotting this.
3228
3229 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3232 XEN PV environment and load kernels.
3233
3234 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3237 * grub-core/loader/multiboot_mbi2.c: Likewise.
3238
3239 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3242 handling.
3243
3244 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3245
3246 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3247
3248 Tested by: Denis 'GNUtoo' Carikli.
3249
3250 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3251
3252 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3253
3254 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3257 Use to get rounded angle rather than truncated.
3258
3259 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * grub-core/term/serial.c: Add option for enabling/disabling
3262 RTS/CTS flow control.
3263
3264 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3267 divisions.
3268
3269 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3270
3271 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3272 Use grub_fatal rather than divide by zero.
3273 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3274
3275 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3278 truncate.
3279 (grub_fixed_fsf_divide): Likewise.
3280
3281 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3284 division by-zero and senseless negative divisions.
3285
3286 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3289 division by-zero and senseless negative divisions.
3290 (circprog_set_property): Don't accept negative num_ticks.
3291
3292 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3295 division by-zero and senseless negative divisions.
3296
3297 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 * configure.ac: Use elf_*_fbsd on kfreebsd.
3300
3301 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * grub-core/tests/div_test.c: New test.
3304
3305 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3306
3307 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3308 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3309 * grub-core/gfxmenu/view.c: Likewise.
3310 * grub-core/video/fb/video_fb.c: Introduce new functions:
3311 grub_video_set_area_status, grub_video_get_area_status,
3312 grub_video_set_region, grub_video_get_region.
3313 * grub-core/video/bochs.c: Likewise.
3314 * grub-core/video/capture.c: Likewise.
3315 * grub-core/video/video.c: Likewise.
3316 * grub-core/video/cirrus.c: Likewise.
3317 * grub-core/video/efi_gop.c: Likewise.
3318 * grub-core/video/efi_uga.c: Likewise.
3319 * grub-core/video/emu/sdl.c: Likewise.
3320 * grub-core/video/radeon_fuloong2e.c: Likewise.
3321 * grub-core/video/sis315pro.c: Likewise.
3322 * grub-core/video/sm712.c: Likewise.
3323 * grub-core/video/i386/pc/vbe.c: Likewise.
3324 * grub-core/video/i386/pc/vga.c: Likewise.
3325 * grub-core/video/ieee1275.c: Likewise.
3326 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3327 * include/grub/video.h: Likewise.
3328 * include/grub/video_fb.h: Likewise.
3329 * include/grub/fbfill.h: Updated render_target structure.
3330 grub_video_rect_t viewport, region, area
3331 int area_offset_x, area_offset_y, area_enabled
3332 * include/grub/gui.h: New helper function
3333 grub_video_bounds_inside_region.
3334 * docs/grub-dev.texi: Added information about new functions.
3335
3336 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3337
3338 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3339 for alignment.
3340
3341 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3344 missing attribute.
3345 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3346
3347 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3348
3349 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3350 simple division on arm and ia64.
3351
3352 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3353
3354 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3355 link with libgcc.
3356
3357 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3360
3361 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3362
3363 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3364 prefix symbol, not @.
3365
3366 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 * INSTALL: Add note about older gcc and clang.
3369
3370 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3373
3374 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3377 NULL pointer dereference.
3378
3379 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3382 clang.
3383
3384 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3387 warnings.
3388
3389 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3392 function.
3393 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3394 * grub-core/disk/geli.c (ascii2hex): Likewise.
3395
3396 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * configure.ac: Run linker tests without -Werror.
3399 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3400 Change all occurences of -static-libgcc resp -lgcc to
3401 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3402
3403 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3406
3407 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 Allow compiling with clang (not really supported though).
3410
3411 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3412 unconditionally.
3413 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3414 Add -mrtd -mregparm=3 on i386 when not using clang.
3415 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3416
3417 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3420 bindings.
3421 * grub-core/lib/reed_solomon.c: Likewise.
3422 * include/grub/i386/gdb.h: Likewise.
3423 * include/grub/i386/pc/int.h: Likewise.
3424 * include/grub/i386/pc/pxe.h: Likewise.
3425 * include/grub/ieee1275/ieee1275.h: Likewise.
3426
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 Import libgcrypt 1.5.3.
3430
3431 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * configure.ac: Don't add -Wcast-align on x86.
3434
3435 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * configure.ac: Add -freg-struct-return on all platforms that
3438 support it.
3439
3440 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * acinclude.m4: Use -Werror on parameter tests.
3443 * configure.ac: Likewise.
3444
3445 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3448
3449 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * configure.ac: Check that -malign-loops works rather than assuming that
3452 either -falign-loops or -malign-loops work.
3453
3454 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3457
3458 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * configure.ac: Prevent cflags leaking to subsequent tests by always
3461 resetting cflags to target_cflags in target tests.
3462
3463 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3466 function.
3467
3468 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3471
3472 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3475
3476 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * grub-core/normal/cmdline.c (grub_cmdline_get):
3479 Remove nested functions.
3480
3481 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * tests/test_sha512sum.in: Make it work on emu.
3484
3485 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3488 functions.
3489 (grub_bidi_line_logical_to_visual): Likewise.
3490
3491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 Remove vestiges of -Wunsafe-loop-optimisations.
3494
3495 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3496 -Wno-unsafe-loop-optimisations.
3497 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3498 pragma.
3499 * grub-core/io/gzio.c: Likewise.
3500 * grub-core/script/parser.y: Likewise.
3501 * grub-core/script/yylex.l: Likewise.
3502 * util/grub-mkfont.c: Likewise.
3503
3504 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * util/grub-mkfont.c (process_cursive): Remove nested function.
3507
3508 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3511 (grub_boot_time): Likewise.
3512
3513 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 * include/grub/symbol.h (FUNCTION): Use @function rather than
3516 "function".
3517 (VARIABLE): Likewise.
3518
3519 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3522
3523 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3526 (parse_dhcp_vendor): Likewise.
3527
3528 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3531
3532 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3535 Define after defining type and not before.
3536
3537 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3540 type.
3541 (grub_gcm_decrypt): Likewise.
3542 (algo_decrypt): Likewise.
3543 (grub_zfs_decrypt_real): Transform error type.
3544
3545 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3548
3549 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3552 (grub_usbms_cbi_reset): Likewise.
3553 (grub_usbms_bo_reset): Likewise.
3554 (grub_usbms_reset): Likewise.
3555 (grub_usbms_attach): Likewise.
3556 (grub_usbms_transfer_cbi): Likewise.
3557
3558 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3561 "checksum = checksum;".
3562
3563 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3564
3565 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3566 entry_type.
3567
3568 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3569
3570 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3571 BIOS disk check.
3572
3573 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3576 type.
3577 (grub_ehci_fini_hw): Likewise.
3578 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3579
3580 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3581
3582 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3583 return grub_usb_err_t for cosistency. All users updated.
3584
3585 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3586
3587 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3588 assigning to itself.
3589
3590 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3591 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3592
3593 Issue separate DNS queries for ipv4 and ipv6
3594
3595 Adding multiple questions on a single DNS query is not supportted by
3596 most DNS servers. This patch issues two separate DNS queries
3597 sequentially for ipv4 and then for ipv6.
3598
3599 Fixes: https://savannah.gnu.org/bugs/?39710
3600
3601 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3602 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3603 * (grub_net_dns_lookup): Now using separated dns packages.
3604 * (grub_cmd_nslookup): Add error condition.
3605 * (grub_cmd_list_dns): Print DNS option.
3606 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3607 --prefer-ipv4, and --prefer-ipv6.
3608 * include/grub/net.h (grub_dns_option_t): New enum.
3609 * (grub_net_network_level_address): option added.
3610
3611 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3612
3613 * grub-core/video/fb/video_fb.c: Merge two blit functions
3614 into one.
3615
3616 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 * grub-core/term/terminfo.c: Add sequences for home and end.
3619
3620 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3623 graphics console.
3624
3625 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3628 add mode 0x12.
3629
3630 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3633 e-mail by Per Öberg.
3634
3635 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3638 name.
3639
3640 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3641
3642 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3643 emu platforms.
3644 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3645
3646 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * docs/grub.texi: Document usage of menuentry id.
3649
3650 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3653
3654 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3655
3656 * grub-core/commands/i386/nthibr.c: New command.
3657
3658 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3661
3662 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3663
3664 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3665 coordinate.
3666
3667 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 Support GRUB_DISABLE_SUBMENU config.
3670
3671 Inspired by patch from Prarit Bhargava.
3672
3673 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * docs/grub.texi: Mention RSA support.
3676
3677 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/commands/verify.c: Add RSA support.
3680
3681 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3684 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3685 device is known to be ATAPI.
3686
3687 2013-11-03 Mike Frysinger <vapier>
3688
3689 * configure.ac: Don't add target-prefix.
3690
3691 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3694 variables.
3695
3696 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3699 if language is English.
3700
3701 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3702
3703 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3704
3705 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 * configure.ac: Don't add -m32/-m64 on emu.
3708
3709 2013-11-02 neil
3710
3711 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3712 broken linux headers.
3713
3714 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3717
3718 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3721 Reed-Solomon recovery if more than half of redundancy info is 0.
3722
3723 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 * util/grub-mount.c: Handle symlinks to directories.
3726
3727 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3730 find_file recursively for symlink.
3731
3732 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * tests/util/grub-shell.in: Copy themes.
3735
3736 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3739
3740 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * configure.ac: Use 0x8000 for address instead of 8000.
3743
3744 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3745
3746 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3747 signature.
3748
3749 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3752 variable.
3753
3754 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3757
3758 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3761 file_progress_read_hook.
3762 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3763
3764 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3767 and double.
3768
3769 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3770
3771 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3772
3773 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 Rewrite blocklist functions in order to get progress when
3776 reading large extents and decrease amount of blocklist hook calls.
3777
3778 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3781 of SI suffixes.
3782
3783 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 Support --base-clock for serial command to handle weird cards with
3786 non-standard base clock.
3787
3788 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3791 strncpy.
3792 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3793 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3794 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3795 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3796 + strcpy rather than strncpy.
3797
3798 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3799
3800 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3801 (check_pool_label): Likewise. Fixes overflow.
3802 (nvlist_find_value): Fix comparison.
3803
3804 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3807 more appropriate functions.
3808
3809 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3812 realloc.
3813
3814 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3817
3818 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3821 on core size.
3822
3823 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3826
3827 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3830 (initialize_tables): reset tl and td to NULL after freeing.
3831
3832 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3835
3836 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3839 of supported tags.
3840
3841 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3844
3845 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3848 quirks.
3849
3850 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3853 a page in protected space.
3854
3855 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3858 allocate space for zero-sized modules.
3859
3860 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3863
3864 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3865
3866 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3867
3868 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3871 safeguards. Fixes a crash with i386/pc/console.c.
3872
3873 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3876 and grub_hostfs_init.
3877
3878 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3879
3880 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3881 windows method on other platforms without good stat as well.
3882
3883 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3886
3887 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 Make / in btrfs refer to real root, not the default volume.
3890 Modify mkrelpath to work even if device is mounted with subvolid option.
3891
3892 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3893
3894 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3895 extra_dist.
3896 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3897 extra_dist.
3898
3899 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3902 fails.
3903
3904 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3905
3906 * docs/autoiso.cfg: New file.
3907
3908 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3911 COND_GRUB_PE2ELF conditions.
3912
3913 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3916 "vnd", "rd" and "fd" disks.
3917
3918 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 Move grub_disk_write out of kernel into disk.mod.
3921
3922 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3925 handling.
3926
3927 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * grub-core/kern/misc.c (grub_abort): Make static
3930
3931 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3934 transform invalid unicode codepoints.
3935
3936 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3939 \0 checking.
3940
3941 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3944
3945 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3946
3947 Consolidate cpuid code.
3948
3949 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 Move cpuid code to cpuid.h and TSC code to tsc.c.
3952
3953 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3954
3955 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3956
3957 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3958
3959 * util/grub-mkconfig.in: Replace $0 with $self.
3960 * util/grub-reboot.in: Likewise.
3961 * util/grub-set-default.in: Likewise.
3962
3963 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3964
3965 * docs/osdetect.cfg: New file.
3966
3967 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3968
3969 * tests/util/grub-shell.in: Add new --debug option.
3970
3971 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3972
3973 * tests/test_unset.in: New test.
3974
3975 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3976
3977 * tests/test_sha512sum.in: New test.
3978
3979 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3982 * include/grub/misc.h: Remove strncat.
3983 * grub-core/lib/posix_wrap/string.h: Likewise.
3984
3985 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3988 Try to handle more than 0xFFFF packets.
3989 Reported by: Bernhard Übelacker <bernhardu>.
3990 He also spotted few overflows in first version of this patch.
3991
3992 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3993
3994 * tests/date_unit_test.c: New test.
3995
3996 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3997
3998 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3999 of first three years after start of validity of unixtime.
4000
4001 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4002
4003 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4004 division as the one making more sense.
4005 (update_screen): Likewise.
4006 (complete): Likewise.
4007
4008 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4009
4010 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4011
4012 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 Make char and string width grub_size_t rather than grub_ssize_t.
4015
4016 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4019 unsigned.
4020 (grub_history_replace): Likewise.
4021
4022 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4025 appropriate.
4026
4027 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4028
4029 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4030 appropriate.
4031
4032 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4033
4034 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4035 Use unsigned divisions rather than signed variants.
4036
4037 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4038
4039 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4040 unsigned arithmetics.
4041 Add missing break.
4042
4043 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4044
4045 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4046
4047 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4050 rather than signed one.
4051 (recovery): Likewise.
4052
4053 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4054
4055 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4056
4057 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4060 than signed.
4061
4062 2013-10-25 Jon McCune <jonmccune@google.com>
4063
4064 * docs/grub.texi: Cleanup security documentation around signatures.
4065
4066 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4069
4070 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4071
4072 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4073 than int.
4074
4075 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4078 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4079 functions when compiling for kernel.
4080
4081 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4082
4083 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4084 unsigned long long when using %llu.
4085
4086 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4089 terminal after updating progress.
4090
4091 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4094 argument. We don't disable Gate A20 in this code.
4095
4096 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4099 Conceptually based on change in branch "vbe-on-coreboot".
4100
4101 2013-10-24 Robert Millan <rmh@gnu.org>
4102
4103 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4104 numeric constants with their symbolic equivalent.
4105 Taken from branch "vbe-on-coreboot".
4106
4107 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4110
4111 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4114 divmod64 for offset division.
4115
4116 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4117
4118 Rename .bzrignore to .gitignore. Add "*.o" rule.
4119
4120 * .bzrignore: Renamed to...
4121 * .gitignore: ...this.
4122
4123 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4124
4125 Add new progress module that displays the load progress of files.
4126
4127 * grub-core/lib/progress.c: New file.
4128 * grub-core/Makefile.core.def (progress): New module.
4129 * grub-core/kern/file.c (grub_file_open): File name added.
4130 * (grub_file_read): Progress hook added.
4131 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4132 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4133 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4134 * include/grub/file.h (struct grub_file): Add progress module members.
4135 * include/grub/term.h (struct grub_term_output): Likewise.
4136 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4137 Terminal velocity added.
4138 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4139 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4140 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4141 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4142 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4143 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4144 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4145 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4146 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4147 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4148 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4149 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4150
4151 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4152
4153 Verify signatures of signatures unless --skip-sig is specified.
4154
4155 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4156
4157 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4158 \0 checking.
4159
4160 Saves 70 bytes on compressed image.
4161
4162 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4165 check.
4166
4167 Saves 10 bytes on compressed image.
4168
4169 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 * grub-core/kern/misc.c (grub_isprint): Move to ...
4172 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4173
4174 Saves 20 bytes on compressed image due to remving exporting.
4175
4176 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4179
4180 Saves 5 bytes on compressed image.
4181
4182 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4185 function get_utf8.
4186
4187 Saves 379 bytes on compressed image.
4188
4189 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4190
4191 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4192
4193 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4194
4195 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4196
4197 Saves 40 bytes on compressed image.
4198
4199 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4200
4201 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4202 mask rather than 64-bit type.
4203
4204 Saves 20 bytes on compressed image.
4205
4206 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4209 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4210
4211 Saves 273 bytes on compressed image.
4212
4213 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4214
4215 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4216 variable length arrays.
4217
4218 Saves 50 bytes on compressed image.
4219
4220 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4223
4224 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 * grub-core/fs/ufs.c: Remove variable length arrays.
4227
4228 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4231
4232 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 * grub-core/fs/zfs.c: Remove variable length arrays.
4235 Reduces zfs.mod by 160 bytes (208 compressed).
4236
4237 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4240
4241 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * grub-core/net/arp.c: Remove variable length arrays.
4244 * grub-core/net/bootp.c: Likewise.
4245 * grub-core/net/dns.c: Likewise.
4246 * grub-core/net/icmp6.c: Likewise.
4247 * grub-core/net/net.c: Likewise.
4248
4249 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * grub-core/fs/ntfs.c: Remove variable length arrays.
4252 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4253 compressed).
4254
4255 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4256
4257 * grub-core/fs/hfs.c: Remove variable length arrays.
4258 Reduces hfs.mod by 8 bytes (52 compressed).
4259
4260 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4261
4262 * grub-core/fs/udf.c: Remove variable length arrays.
4263 Increases udf.mod by 128 bytes (but decreases by 13 when
4264 compressed).
4265
4266 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4267
4268 * grub-core/fs/iso9660.c: Remove variable length arrays.
4269 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4270 compressed).
4271
4272 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4275 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4276 compressed).
4277
4278 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4279
4280 * grub-core/fs/xfs.c: Remove variable length arrays.
4281 Reduces xfs.mod by 40 bytes (43 compressed).
4282
4283 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 * grub-core/fs/fshelp.c: Remove variable length arrays.
4286 Reduces fshelp.mod by 116 bytes (23 compressed).
4287
4288 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4289
4290 * grub-core/normal/completion.c: Remove variable length arrays.
4291 * grub-core/normal/menu_entry.c: Likewise.
4292
4293 Reduces normal.mod by 496 bytes.
4294
4295 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4296
4297 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4298 by 356 bytes (158 compressed).
4299
4300 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4303 by 364 bytes (169 compressed).
4304
4305 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4308 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4309 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4310
4311 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4314 bitmasks to small structures of size chosen to fit in registers.
4315
4316 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * conf/Makefile.common: Use -freg-struct-return on i386. This
4319 decreases code size and improves performance.
4320
4321 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4322
4323 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4324
4325 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4328 "(null)" string.
4329 Simplify expressions to save around 256 bytes in kernel.img.
4330 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4331
4332 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4335 Use GRUB_UTIL_FD_O_* rather than O_*.
4336
4337 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 Add haiku-specific functions.
4340
4341 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4344
4345 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 Move stat () and device mode checking into OS-dependent files as
4348 long as performance doesn't suffer.
4349
4350 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 Split make_system_path_relative_to_its_root into separate file
4353 relpath.c from getroot.c as it's common between unix and haiku
4354 but otherwise haiku doesn't use any functions from unix getroot.c.
4355
4356 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4357
4358 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4359 New function.
4360 (grub_util_is_special_file): Likewise.
4361
4362 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4365 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4366
4367 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4370 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4371
4372 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4375 (load_image): Likewise.
4376
4377 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * util/grub-render-label.c: Move backend part to ...
4380 * util/render-label.c: ... here.
4381
4382 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4385 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4386
4387 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4390
4391 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4394 CD-ROM in case when it's declared as having subpartitions.
4395
4396 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 Don't add -lm on haiku.
4399
4400 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4401 and empty on haiku.
4402 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4403 -lm.
4404
4405 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * configure.ac: Use -melf_*_haiku as target on haiku.
4408
4409 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 * Makefile.util.def: Add util/setup.c to extra_dist.
4412
4413 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4414
4415 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4416 unknown types through.
4417
4418 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4421 (grub_util_check_char_device): Likewise.
4422 * include/grub/emu/getroot.h: Likewise.
4423
4424 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4427 memset rather than inline static function.
4428
4429 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4432 not doing embedded decompressor.
4433
4434 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4437 shadowing.
4438 * grub-core/kern/disk.c: Likewise.
4439 * grub-core/kern/misc.c: Likewise.
4440 * include/grub/parser.h: Likewise.
4441 * include/grub/script_sh.h: Likewise.
4442 * include/grub/zfs/zfs.h: Likewise.
4443
4444 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4447
4448 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4449
4450 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4451 defined before trying to use it.
4452
4453 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4456 warning.
4457
4458 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4461 Use __unused__ rather than __used__ on gcc < 3.2.
4462
4463 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4464
4465 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4466 gcc < 4.0.
4467 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4468
4469 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4470
4471 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4472
4473 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4474
4475 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4476 * include/grub/emu/misc.h: Likewise.
4477
4478 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4479
4480 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4481 cur_color.
4482
4483 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4484
4485 * grub-core/tests/checksums.h: Regenerated due to progress bar
4486 get_minimal_size changes.
4487
4488 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4489
4490 Added `tr' command support.
4491
4492 * grub-core/commands/tr.c: New file.
4493 * grub-core/Makefile.core.def: Build rules for new module.
4494
4495 * tests/grub_cmd_tr.in: New test.
4496 * Makefile.util.def: Build rules for new test.
4497
4498 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4499
4500 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4501
4502 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4503
4504 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4505 * docs/gurb.texi: Likewise.
4506
4507 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4508
4509 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4510 Pixmap highlighted section with east and west slices was displayed
4511 incorrectly due to negative width of the central slice.
4512
4513 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4514
4515 * docs/grub.texi: Graphical options information update.
4516 Removed outdated. Updated current. Inserted missed.
4517
4518 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4519
4520 * docs/grub.texi: Mention few new platform-specific commands.
4521
4522 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4523
4524 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4525 currently used so this doesn't really have any effect.
4526 Reported by: Douglas Ray <dougray>
4527
4528 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4531 compilation but prevents gcc from displaying messages in non-Latin
4532 alphabets.
4533 * conf/Makefile.common: Likewise.
4534
4535 2013-10-16 Hiroyuki YAMAMORI
4536
4537 Handle Japanese special keys.
4538 Reported by: Hiroyuki YAMAMORI.
4539 Codes supplied by: Hiroyuki YAMAMORI.
4540
4541 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4542
4543 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4544
4545 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4546
4547 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4548 * docs/grub.texi: Likewise.
4549
4550 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4551
4552 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4553 value in case of incomplete read.
4554 (grub_util_fd_write): Likewise.
4555
4556 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4557
4558 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4559
4560 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4561
4562 * util/grub-editenv.c (create_envblk_file): More from here ...
4563 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4564
4565 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4568 canonicalize file name before doing the rest.
4569
4570 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4571
4572 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4573 mingw32.
4574
4575 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4576
4577 Define grub_util_is_directory/regular/special_file and
4578 use OS-dependent versions rather than to rely on stat().
4579
4580 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4581
4582 * util/grub-mkimage.c: Move backend part to ...
4583 * util/mkimage.c: ... here.
4584
4585 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 Allow compilation with mingw64 albeit with warnings due to lack of
4588 %llx/%llu.
4589
4590 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4591 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4592 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4593 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4594 on mingw64.
4595 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4596
4597 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 Remove leftover references to some of the system headers.
4600
4601 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4602
4603 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4604 read.
4605
4606 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4609 of strerror.
4610
4611 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4612
4613 Split out blocklist retrieving from setup.c to
4614 grub-core/osdep/blocklist.c and add windows implementation since
4615 generic version doesn't work on NTFS on Windows due to aggressive
4616 unflushable cache.
4617
4618 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4621 files.
4622
4623 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4626 Cut tailing newline. Remove arbitrary limitation. Always use
4627 grub_util_tchar_to_utf8.
4628
4629 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4630
4631 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4632 * tests/printf_unit_test.c (printf_test): Add %% tests.
4633 Reported by: Paulo Flabiano Smorigo.
4634
4635 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4638 implement fsync.
4639
4640 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4643 use nvlist_lookup_string and don't use nvlist_print.
4644
4645 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4648 closedir to handle filename charset translation.
4649
4650 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4651
4652 * include/grub/emu/hostdisk.h: Move file operations to
4653 * include/grub/emu/hostfile.h: ... here.
4654
4655 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4656
4657 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4658 unicode path.
4659
4660 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4663
4664 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4667 and remove export.h.
4668
4669 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4670
4671 * grub-core/kern/emu/error.c: Removed.
4672 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4673 explicitly as it's already in libgnu.a.
4674
4675 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4676
4677 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4678 config-util.h include.
4679
4680 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4681
4682 Split emunet into platform-dependent and GRUB-binding parts. Keep
4683 platform-dependent part in kernel for easy access to OS functions.
4684
4685 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4688 open/read/write.
4689
4690 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 * grub-core/osdep/windows/emuconsole.c: New file.
4693
4694 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4695
4696 * conf/Makefile.extra-dist: Add osdep/*/init.c
4697
4698 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4701
4702 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 * util/grub-probe.c (probe): Separate different drives in hint-str
4705 by spaces and not newlines.
4706 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4707
4708 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4709
4710 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4711 Handle CD-ROMs.
4712
4713 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4714
4715 Pass-through unknown E820 types. It required reorganisation of mmap
4716 module.
4717
4718 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4719
4720 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4721
4722 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4725 fseeko.
4726
4727 2013-10-14 qwertial <qwertial>
4728
4729 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4730
4731 2013-10-14 Jon McCune <jonmccune@google.com>
4732
4733 * docs/grub.texi: Document new signatures possibility.
4734
4735 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4738
4739 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4740
4741 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4742 missing prototype.
4743 (grub_util_tchar_to_utf8): Likewise.
4744
4745 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4748 * grub-core/kern/emu/main.c: Add missing include.
4749 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4750 Don't call grub_util_init_nls.
4751 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4752 Likewise.
4753
4754 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4757 stat.
4758
4759 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4762
4763 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4766
4767 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 Add a wrapper for fopen. On unix-like systems just pass-through. On
4770 windows use unicode version.
4771
4772 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 Move set_program_name and init_nls to host_init. On windows
4775 fix in this fuction console and argument charset as well.
4776
4777 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4778
4779 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4780 GRUB_ENABLE_CRYPTODISK.
4781
4782 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4783 GRUB_ENABLE_CRYPTODISK.
4784 * util/grub-mkconfig_lib.in: Likewise.
4785
4786 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4787
4788 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4789
4790 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4791
4792 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4793 error when enabling debug.
4794
4795 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4796
4797 * configure.ac: Use -melf_*_obsd on openbsd.
4798
4799 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4802
4803 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * include/grub/misc.h: Use gnu_printf rather than printf as format
4806 template since our functions are independent of libc.
4807
4808 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * util/grub-setup.c (setup): Move copying of partition table as
4811 futher up as possible to avoid possible overwrite by floppy routines.
4812
4813 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4816
4817 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4818
4819 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4820 * docs/grub.texi: Likewise.
4821
4822 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4823
4824 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4825 it's mostly unused. Move vestiges to the callers.
4826
4827 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4830 version of salt and hash. Use grub_snprintf rather than snprintf.
4831
4832 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 * docs/grub.texi: Fix problem with braces.
4835
4836 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4837
4838 * conf/Makefile.extra-dist: Fix extra-dist list.
4839 * grub-core/Makefile.core.def: Likewise.
4840
4841 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * docs/grub.texi: Document disk names used on Windows and AROS.
4844
4845 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4848 with AROS devs.
4849 * grub-core/osdep/aros/hostdisk.c: Likewise.
4850
4851 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4852
4853 Avoid including hostfile.h when not necessarry as it pulls
4854 in OS-specific headers which may redefine generic names
4855 like "far".
4856
4857 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4858
4859 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4860 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4861 scrollbar_bottom_pad
4862 * docs/grub.texi: Likewise.
4863
4864 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4865
4866 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4867
4868 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4871
4872 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4875 Removed.
4876 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4877 Made static.
4878
4879 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4880
4881 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4882 leftover.
4883
4884 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 Move OS-specific driver configuration to grub_util_fd_open. This
4887 moves OS-dependent parts from kern/emu/hostdisk.c to
4888 grub-core/osdep/*/hostdisk.c.
4889
4890 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * util/grub-mkimage.c (generate_image): Use size_t instead of
4893 grub_size_t.
4894 * util/grub-mkimagexx.c (locate_sections): Likewise.
4895 (load_image): Likewise.
4896
4897 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4900 size_t.
4901 (grub_util_write_image): Likewise.
4902
4903 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4906 get random when no RNG is available.
4907 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4908
4909 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 * include/grub/util/lvm.h: Removed.
4912
4913 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4916 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4917
4918 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4921
4922 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4925
4926 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * grub-core/net/drivers/emu/emunet.c: Move to ..
4929 * grub-core/osdep/linux/emunet.c: ..here.
4930
4931 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 * util/ieee1275/ofpath.c: Move to ...
4934 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4935 * grub-core/osdep/basic/ofpath.c: ..here.
4936
4937 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4938
4939 Move password-querying (util-version) routines to grub-core/osdep.
4940
4941 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 Move sleep routines to grub-core/osdep.
4944
4945 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 Move OS-dependent files to grub-core/osdep and document it.
4948
4949 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4952 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4953
4954 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4957
4958 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4959
4960 * util/misc.c: Remove leftover inclusion of malloc.h.
4961
4962 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * include/grub/setjmp.h: Remove leftover GRUBOF.
4965
4966 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * util/raid.c: Fold into ...
4969 * util/getroot_linux.c: ... here. Make all functions static.
4970
4971 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4974 macros to GRUB ones.
4975
4976 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4977
4978 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4979 occasional bug. If there are too many boot entries or too low
4980 scrollbar height then we need to use another formula to calculate
4981 the position and size of the scrollbar thumb.
4982
4983 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4984
4985 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4986
4987 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4988
4989 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4990 * docs/grub.texi: Likewise.
4991
4992 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4993
4994 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4995 viewport.
4996
4997 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4998
4999 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5000 minimal width calculations.
5001
5002 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 * docs/grub.texi: Update note on colors on emu console.
5005
5006 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5009 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5010 it's FS and not GRUB limitation.
5011
5012 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5013
5014 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5015
5016 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5019
5020 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5021
5022 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5023 kernels by version order.
5024
5025 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5026
5027 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5028
5029 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5030
5031 Add AROS hostdisk and getroot routines.
5032
5033 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 Make cryptodisk and diskfilter probe data retrievable programmatically
5036 and not just printable.
5037
5038 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5039
5040 Split random retrieving code into separate files.
5041
5042 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5045 R_ARM_V4BX.
5046
5047 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5050 condition.
5051 * grub-core/tests/fake_input.c: Likewise.
5052 * grub-core/tests/cmdline_cat_test.c: Likewise.
5053
5054 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/video/capture.c: Do not do finalization when .fini
5057 is called as there is explicit capture_end.
5058
5059 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5060
5061 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5062 changing windows to avoid crash.
5063
5064 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5067
5068 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 * po/exclude.pot: Add several strings to exclude.
5071
5072 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5075
5076 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5077
5078 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5079 ./util/grub-gen-asciih.c to exclude list.
5080
5081 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5084 and don't mark error strings for translation.
5085
5086 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5087
5088 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5089 properly in case of missing block size.
5090
5091 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5092
5093 * grub-core/lib/arm/setjmp.S: Add missing license section.
5094
5095 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5096
5097 * po/swiss.sed: Add replacement for key names and for term computer.
5098
5099 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5100
5101 * grub-core/gfxmenu/theme_loader.c: New global options for the
5102 theme background image handling. desktop-image-scale-method,
5103 desktop-image-h-align, desktop-image-v-align.
5104 * grub-core/gfxmenu/view.c: Likewise.
5105 * include/gfxmenu_view.h: Likewise.
5106 * include/bitmap_scale.h: Proportional scale functions introduced.
5107 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5108 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5109 cases of unexpected input variables for scale functions.
5110 * docs/grub.texi: Updated documentation for new options.
5111
5112 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5113
5114 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5115
5116 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5117
5118 * grub-core/tests/checksums.h: Corrected due to changes in
5119 bilinear interpolation function.
5120
5121 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5122
5123 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5124 to eliminate artefacts in bilinear interpolation.
5125
5126 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5127
5128 * grub-core/video/readers/tga.c: Support paletted tga.
5129
5130 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5133 incorrect cbcr setting when in color mode.
5134
5135 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * grub-core/video/readers/png.c: Support paletted images and clean up
5138 greyscale support.
5139
5140 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5143 usage of wrong table which resulted in mishandling of 4-byte
5144 sequences.
5145
5146 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * grub-core/term/terminfo.c: Add Home and End key sequences.
5149
5150 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5153 Fix formula for computing total number of bytes.
5154
5155 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5158 image processing, fix big-endian and support grayscale.
5159
5160 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5163 Correctly will with maximum transparency when using index color.
5164
5165 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * grub-core/video/readers/png.c: Support grayscale
5168
5169 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * grub-core/video/readers/jpeg.c: Support grayscale.
5172
5173 2013-09-26 Jon McCune <jonmccune@google.com>
5174
5175 * grub-core/commands/loadenv.c: Support skipping signature check
5176 and variable names filtering.
5177
5178 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5181 * grub-core/kern/emu/hostfs.c: Likewise.
5182 * util/getroot_unix.c: Likewise.
5183
5184 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5187 Migrate all explicit defines to this new one.
5188
5189 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5192 grub_util_fd_strerror when using grub_util_fd_*.
5193 (grub_util_fd_open_device): Likewise.
5194 (grub_util_biosdisk_read): Likewise.
5195 (grub_util_biosdisk_write): Likewise.
5196 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5197 (grub_util_fd_strerror): Likewise.
5198 (grub_util_fd_sync): Likewise.
5199 (grub_util_fd_close): Likewise.
5200 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5201 (grub_util_fd_close): Likewise.
5202 (grub_util_fd_strerror): Likewise.
5203 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5204 function proto rather than macro.
5205 (grub_util_fd_sync): Likewise.
5206 (grub_util_fd_open): Likewise.
5207 (grub_util_fd_strerror): New proto.
5208
5209 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5212 platforms on which it doesn't work.
5213
5214 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5217 stat immediately to where it's used.
5218
5219 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5220
5221 * util/getroot.c (grub_util_check_block_device): Move to ...
5222 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5223 * util/getroot.c (grub_util_check_char_device): Move to ...
5224 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5225
5226 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5227
5228 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5229 disk closing logic.
5230
5231 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5232
5233 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5234
5235 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5236
5237 * docs/grub.texi (File name syntax): Document ZFS filenames
5238 (/volume@snapshot/...).
5239
5240 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5243 Always return full path. Fixes a problem with mkrelpath.
5244
5245 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5246
5247 * util/grub-install.in: Add GPT PReP support.
5248 * util/grub-probe.c (probe): Support GPT partition type.
5249 (main): Support -t gpt_parttype.
5250
5251 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5252
5253 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5254
5255 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5256
5257 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5258
5259 2013-09-23 Tim Hardeck <thardeck>
5260
5261 * util/grub.d/10_hurd.in: Filter out character for the class.
5262 * util/grub.d/10_kfreebsd.in: Likewise.
5263 * util/grub.d/10_linux.in: Likewise.
5264 * util/grub.d/20_linux_xen.in: Likewise.
5265
5266 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5267
5268 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5269 "changed".
5270
5271 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5272
5273 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5274 boot partition.
5275
5276 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5277
5278 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5279 doesn't use posix_wrap. Keep literal -fno-builtin however.
5280
5281 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5282
5283 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5284
5285 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5286 2013-09-23 neil
5287
5288 * configure.ac: Do not enable -Wmissing-noreturn as its
5289 usefulness is limited and creates problems on some OS notably with
5290 code generated by bison.
5291
5292 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5293 2013-09-23 neil
5294
5295 * configure.ac: Do not explicitly enable -Waddress as it's not
5296 supported by all gcc and when it is, it's already enabled by -Wall.
5297
5298 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5299
5300 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5301 desactivated use of EDID at all.
5302
5303 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5304 2013-09-23 neil
5305
5306 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5307 video if no text is available.
5308
5309 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5310 2013-09-23 neil
5311
5312 * configure.ac: Substitute TARGET_RANLIB.
5313
5314 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5315 2013-09-23 neil
5316
5317 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5318
5319 Based on patches from AROS.
5320
5321 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5322 2013-09-23 neil
5323
5324 * grub-core/Makefile.am: Override STRIP and RANLIB.
5325 * configure.ac: compute TARGET_RANLIB.
5326 * INSTALL: Document TARGET_RANLIB
5327
5328 Based on patches from AROS.
5329
5330 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5331
5332 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5333 that floppies are unpartitioned.
5334
5335 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5338 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5339
5340 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5343 less nice but more portable.
5344 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5345
5346 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5347
5348 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5349 for cheat_fd.
5350 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5351 functions.
5352 (grub_cryptodisk_cheat_insert): Likewise.
5353 (grub_cryptodisk_close): Likewise.
5354
5355 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5358 Use windows path for DEFAULT_DIRECTORY.
5359
5360 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5363 difference was likely just gcc version, not anything mingw-related.
5364
5365 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5366
5367 Use Winapi on both cygwin and mingw32 to share more code between both.
5368
5369 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5370
5371 * util/grub-install.in: Add --grub-editenv option.
5372 * util/grub-install_header (grub_compress_file): Explicitly check for
5373 plain file to avoid cp error.
5374
5375 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5376
5377 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5378 names; fix LVM driver name (lvm, not lv).
5379 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5380 names.
5381
5382 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5383
5384 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5385 files rather than one file with loads of #if's.
5386 * util/getroot.c: Likewise.
5387
5388 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5391
5392 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5395 GNU/Hurd to the list of checked PRNG.
5396
5397 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5400
5401 2013-09-21 Ales Nesrsta <starous@volny.cz>
5402
5403 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5404
5405 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5408 * grub-core/disk/lvm.c: Add LVM UUIDs.
5409 * util/getroot.c: Use LVM UUIDs whenever possible.
5410
5411 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5412
5413 * docs/grub.texi (Networking commands): Add documentation for
5414 network related commands.
5415
5416 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5417
5418 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5419 to determine if device is handled by devmapper.
5420 (convert_system_partition_to_system_disk): Likewise.
5421 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5422 already done in grub_util_open_dm.
5423
5424 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5425
5426 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5427 Clean up stack manipulation (sync_caches_armv*)
5428
5429 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5430
5431 * util/lvm.c: Remove since unused. Remove remaining references.
5432
5433 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 Handle the case of partitioned LVM properly.
5436
5437 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5438 Stop on meeting LVM, mpath or DMRAID.
5439 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5440 (read_device_map): Likewise.
5441 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5442 device is full disk rather than erroring out on LVM and similar cases.
5443
5444 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5445
5446 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5447
5448 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5451 4K before the end.
5452 Reported by: Leif Lindholm
5453
5454 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5455 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5456
5457 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5458 codes.
5459
5460 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5461
5462 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5463 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5464
5465 2013-09-18 Douglas Ray <dougray@cpan.org>
5466
5467 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5468 as secure.
5469
5470 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5471
5472 * docs/grub.texi: Fix broken link.
5473
5474 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5475
5476 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5477 to break endless loop.
5478
5479 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5480
5481 * util/grub-fstest.c: Fix several printf formats.
5482 * util/grub-mkimage.c: Likewise.
5483 * util/grub-mkimagexx.c: Likewise.
5484 * util/grub-script-check.c: Likewise.
5485
5486 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5489 error.
5490
5491 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5494
5495 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5498 removed in current versions cygwin_conv_*.
5499
5500 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5501
5502 * configure.ac: Disable efiemu runtime on cygwin.
5503
5504 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5507 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5508
5509 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5510
5511 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5512 error message.
5513
5514 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5515
5516 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5517 windows variant.
5518 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5519 data.
5520
5521 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5524 when on x86 and not cygwin.
5525 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5526 -Wl,-melf_x86_64.
5527
5528 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * configure.ac: Set CPP to build one when checkoing for freetype for
5531 build.
5532
5533 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5536 [!GRUB_BUILD]: Remove has_argument.
5537
5538 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5541 Replace with a dummy.
5542
5543 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5544
5545 * configure.ac: Don't change host_os from mingw to cygwin.
5546
5547 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5548
5549 * configure.ac: Change target_os from windows to cygwin.
5550
5551 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5554
5555 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5556 (build-grub-gen-asciih): Likewise.
5557 (build-grub-gen-widthspec): Likewise.
5558 * Makefile.util.def (grub-pe2elf): Remove.
5559 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5560 * configure.ac: Separate tests for build.
5561 Move ./build-grub-pe2elf to grub-core.
5562 Fix typo.
5563 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5564 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5565 defined.
5566 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5567 constants.
5568 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5569 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5570 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5571
5572 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5573
5574 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5575 mingw32 as well based on grub_util_get_disk_size.
5576 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5577 grub_util_get_fd_size.
5578 (sync): Removed.
5579 (fsync): Moved to ...
5580 * grub-core/kern/emu/misc.c (fsync): ... here.
5581
5582 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * include/grub/mm.h (grub_extend_alloc): Remove.
5585 * grub-core/loader/i386/pc/plan9.c: Use own version of
5586 grub_extend_alloc with appropriate types.
5587
5588 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5589
5590 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5591
5592 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5595
5596 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 Fix dependencies on cygwin.
5599
5600 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5601 dependencies when used and defined.
5602 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5603
5604 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5607 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5608
5609 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5612 implementation available to cause compile-time rather than runtime
5613 error.
5614
5615 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * util/grub-fstest.c: Don't check for symlinks on windows.
5618
5619 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * INSTALL: Mention unavailability of man pages when cross-compiling.
5622
5623 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5626 and gcry_log_bug.
5627 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5628
5629 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * INSTALL: Document cross-compilation.
5632 * acinclude.m4: Determine whether nm support -P and --defined-only.
5633 * configure.ac: Add TARGET_ to all variables pertaining to target
5634 that don't have it yet.
5635 * gentpl.py: Likewise.
5636 * grub-core/Makefile.am: Likewise.
5637 * grub-core/genmod.sh.in: Likewise.
5638 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5639 as well.
5640
5641 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5642
5643 * configure.ac: Remove -Wempty-body. It's not essential and needs
5644 recent gcc.
5645
5646 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5647
5648 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5649 * util/getroot.c: Likewise.
5650
5651 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5652
5653 * grub-core/disk/ahci.c: Add needed explicit cast.
5654 * grub-core/lib/backtrace.c: Likewise.
5655 * grub-core/net/ip.c: Likewise.
5656 * grub-core/net/tcp.c: Likewise.
5657 * grub-core/net/udp.c: Likewise.
5658
5659 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5662
5663 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 * util/import_gcry.py: Add final newline in visibility.h.
5666
5667 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 * conf/Makefile.common: Fix typo.
5670
5671 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5672
5673 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5674
5675 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5676
5677 * Makefile.am (widthspec.h): Fix typo.
5678 * util/grub-gen-widthspec.c: Likewise.
5679
5680 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5681
5682 Move ascii.h and widthspec.h generation to a separate build-time-only
5683 tool.
5684
5685 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5686
5687 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5688 Always fill bootdisk info and improve check for NetBSD disklabel.
5689
5690 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 * conf/Makefile.extra-dist: Add util/bin2h.c.
5693 Reported by: floppym.
5694
5695 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5696
5697 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5698
5699 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5700
5701 * configure.ac: Disable unifont and starfield if no freetype was found.
5702
5703 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5706 on NetBSD and OpenBSD.
5707
5708 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5709
5710 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5711
5712 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5713
5714 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5715 reduced. Inheritant options are processed during the theme loading.
5716
5717 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5718
5719 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5720
5721 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5722
5723 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5724
5725 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5726
5727 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5728 using qemu.
5729
5730 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5731
5732 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5733 remove-potcdate.sed.
5734
5735 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5736
5737 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5738 unused attribute from pull argument.
5739
5740 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5741
5742 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5743 memory leak.
5744
5745 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5746
5747 * util/getroot.c (pull_lvm_by_command): add --separator option
5748 to vgs call to disable padding of output to 10 characters.
5749
5750 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5751
5752 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5753 here ...
5754 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5755 here.
5756
5757 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5760 length.
5761
5762 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5763
5764 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5765 full Canadian cross. Tested with build=x86_64, host=arm,
5766 target=ppc-ieee1275.
5767
5768 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5769
5770 * configure.ac: Error if no $BUILD_CC could be found.
5771 Reported by: DevHC.
5772
5773 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5776 i386-multiboot.
5777
5778 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5779
5780 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5781 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5782
5783 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5784
5785 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5786 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5787 falling back to the partition device, otherwise a later call to this
5788 function may fail spuriously.
5789 Reported by Axel Beckert. Fixes Debian bug #708614.
5790
5791 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5792
5793 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5794
5795 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5796
5797 Prevent shadowing of stdlib's devname(3) on BSD.
5798
5799 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5800 and devlast to diskname and disklast, respectively.
5801
5802 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5803
5804 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5805
5806 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5807
5808 * docs/grub.texi: Introduce terminal window position options:
5809 terminal-left: terminal window's left position
5810 terminal-top: terminal window's top position
5811 terminal-width: terminal window's width
5812 terminal-height: terminal window's height
5813 terminal-border: terminal window's border width
5814 * grub-core/gfxmenu/theme-loader.c: Likewise.
5815 * include/grub/gfxmenu_view.h: Likewise.
5816 * po/exlude.pot: Likewise.
5817 * grub-core/gfxmenu/view.c: Likewise.
5818 Also updated minimal window size.
5819 Also terminal_sanity_check function has been introduced.
5820 * grub-core/tests/checksums.h: Update (terminal window height
5821 is adjusted now for low resolution screen)
5822
5823 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5824
5825 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5826 position).
5827
5828 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * po/exclude.pot: Add few recent exceptions.
5831
5832 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * tests/grub_func_test.in: Add unicode.pf2.
5835
5836 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5839 standard rather than noral color, in line with other terminals.
5840
5841 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5842
5843 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5844 analysis.
5845
5846 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5847
5848 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5849
5850 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5853 inappropriate printf.
5854
5855 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5856
5857 * .bzrignore: Remove grub-core/lib/dtc-grub,
5858 grub-core/Makefile.libfdt.def
5859 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5860
5861 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5862
5863 * include/grub/video.h (grub_video_register): Keep double-linked as
5864 well as single-linked invariants.
5865 Reported by: qwertial.
5866
5867 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 * grub-core/commands/nativedisk.c (get_uuid): Handle
5870 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5871
5872 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5873
5874 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5875 maximum of NW, N, NE heights instead of N's height and maximum of
5876 NW, W, SW widths instead of W's width. (So the box will be always
5877 correctly drawn)
5878
5879 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5880
5881 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5882 Fix misuse of variable count.
5883
5884 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5885 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5886 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5887
5888 New ports to arm-uboot and arm-efi.
5889 Mostly by Leif Lindholm with some additions from
5890 Francesco Lavra and cleanup by Vladimir Serbinenko.
5891
5892 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5893
5894 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5895 and not before.
5896 Reported by: Leon Drugi.
5897
5898 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5899
5900 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5901 Reported by: Paulo Flabiano Smorigo.
5902
5903 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5904
5905 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5906
5907 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5908
5909 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5910
5911 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5914
5915 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5916
5917 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5918
5919 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5920
5921 * grub-core/net/bootp.c: Export net_* variables.
5922 * grub-core/net/net.c: Likewise.
5923
5924 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5927
5928 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5931
5932 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5933
5934 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5935
5936 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5937
5938 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5939
5940 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5941
5942 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5943 <= 0.
5944
5945 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5946
5947 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5948 functions.
5949
5950 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5951
5952 * grub-core/fs/zfs/zfs_lz4.c: New file.
5953 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5954
5955 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5956
5957 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5958
5959 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5960
5961 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5962 (check_pool_label): Likewise.
5963 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5964
5965 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5966
5967 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5968
5969 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5970
5971 * docs/grub.texi (Commands): Document postition parameters
5972 for menuentry command.
5973
5974 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5975
5976 * util/grub-mknetdir.in: Remove stray line from help output.
5977
5978 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 Remove early sm712 init as there is no reason for it (the "watchdog"
5981 effect was due to wrong GPIO map).
5982
5983 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * grub-core/commands/pcidump.c: Remove static variables.
5986
5987 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5990
5991 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * configure.ac: Move delimiter after the infos.
5994
5995 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5998
5999 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6000
6001 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6002 not filling whole 8x16 space.
6003
6004 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6005
6006 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6007
6008 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * configure.ac: Indicate which liblzma is used if any.
6011
6012 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6013 2013-06-21 Craig Sanders <savannah@taz.net.au>
6014
6015 * util/grub-reboot.in: Document submenu usage.
6016
6017 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6018
6019 * .bzrignore: Update with a number of new test-related files.
6020
6021 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6022
6023 * util/grub-script-check.c: Fail on scripts containing no
6024 commands, to guard against corrupted grub-mkconfig setups that
6025 produce no useful output.
6026 * tests/grub_script_no_commands.in: New test.
6027 * Makefile.util.def (grub_script_no_commands): Add.
6028 Reported by Hans Putter. Fixes Debian bug #713886.
6029
6030 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6031
6032 * grub-core/disk/diskfilter.c: Forgot to remove comment
6033 from previous commit.
6034
6035 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6036
6037 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6038 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6039
6040 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6041
6042 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6043
6044 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6045
6046 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6047 rescan diskfilter devices until nothing new is found.
6048
6049 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6050
6051 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6052
6053 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 Don't try to detect cbfs on *-emu.
6056
6057 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6060
6061 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6062
6063 Add support for processed coreboot payload chainloading.
6064
6065 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 Enable coreboot information commands even when not loaded as
6068 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6069
6070 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 Support for cbfs. Also factor out the part which is common
6073 for all archives to a separate module. This splits tar from cpio
6074 as they are very different but keeps cpio, cpio_be, odc and newc
6075 together since they're very similar.
6076
6077 2013-06-15 David Michael <fedora.dm0@gmail.com>
6078
6079 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6080 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6081
6082 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 * tests/grub_script_eval.in: Really add the eval test.
6085
6086 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 Move flavour-specific parts out of common cpio.c file and
6089 rename remaining to cpio_common.c
6090
6091 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6092
6093 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6094 off new function grub_script_execute_new_scope. Change callers to use
6095 either of them as appropriate.
6096 * grub-core/commands/eval.c: New command eval.
6097 * docs/grub.texi (Commands): Document it.
6098
6099 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6100
6101 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6102 to fetch values when listing.
6103
6104 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6105
6106 Fix make dist on non-pc.
6107
6108 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6109
6110 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6111 without a device name.
6112
6113 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 Remove enable_executable_check as it's not needed anymore.
6116 Reported by: dougray.
6117
6118 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6119
6120 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6121 ambigouos RAID before discovering RAIDs on top of it.
6122 Reported by: bodom.
6123
6124 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 Fix typo (failback vs fallback).
6127
6128 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6129
6130 * util/grub.d/30_os-prober.in: Add support for probing EFI
6131 System Partition (as of os-prober 1.58).
6132
6133 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * configure.ac: Add yet another path to unifont. For parabola.
6136
6137 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6138
6139 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6140 handling to copy the killed characters to the kill buffer as
6141 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6142 stored as char. Eliminates UCS4 truncation and corruption
6143 observed when killing characters with Ctrl-u and yanking them
6144 back with Ctrl-y.
6145
6146 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 Detach optional parts of gfxterm and integrate in with coreboot init.
6149
6150 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 Move blit and fill dispatcher to appropriate files to decrease export
6153 and relocation overhead.
6154
6155 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6158 functions.
6159
6160 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6161
6162 * grub-core/Makefile.am: Fix compilation problem with some
6163 automake versions.
6164
6165 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6168
6169 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6170
6171 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6172 automake versions.
6173
6174 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6175
6176 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6177 SSDT.
6178
6179 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6180
6181 * grub-core/partmap/dfly.c: New partition map.
6182
6183 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6186 checking.
6187 Reported by: Francesco Lavra.
6188
6189 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6190
6191 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6192 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6193 false conditions.
6194 * conf/Makefile.common: define dist_grubconf_DATA
6195
6196 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6197
6198 Progressively skip menu elements on small terminals rather
6199 than crashing.
6200
6201 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6202
6203 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6204 to avoid losing last column.
6205
6206 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6207
6208 * po/exclude.pot: Add missing string "%C".
6209
6210 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6213 after the test.
6214
6215 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 * util/grub-install.in: Gettextize "Not found" message.
6218
6219 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6220
6221 Fix distfiles list.
6222 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6223
6224 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6225
6226 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6227 present.
6228 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6229
6230 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6233
6234 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6237 attribute since structure is not necessarily aligned.
6238
6239 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6240
6241 * docs/grub.texi (Device syntax): Clarify description of network
6242 drives.
6243
6244 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6245
6246 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6247 for vasprintf presence.
6248
6249 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6250
6251 * util/grub-install.in: Handle efibootmgr presence check.
6252 Reported by: Leif Lindholm.
6253
6254 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6257 new strings to translate.
6258
6259 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6262 yet another string (pun intended) to translate.
6263
6264 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 * po/POTFILES-shell.in: Autogenerate it.
6267
6268 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6269
6270 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6271
6272 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6273
6274 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6275 misnomer.
6276
6277 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6278
6279 * docs/grub.texi (Network): Add description of net_default_interface,
6280 net_default_ip and net_default_mac. Rewrite variables description
6281 to emphasize that they are per-interface.
6282
6283 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 New test: cmdline and cat.
6286
6287 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * grub-core/commands/cat.c: Show UTF-8 characters.
6290
6291 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6292
6293 * conf/Makefile.common: Poison float and double on non-emu.
6294
6295 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6296
6297 * configure.ac: Don't disable extended registers on emu.
6298
6299 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 * configure.ac: Don't use extended registers on x86_64.
6302 Reported by: Peter Jones.
6303
6304 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6305
6306 * grub-core/term/efi/console.c: Fix compile error.
6307
6308 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 Compressed HFS+ support.
6311
6312 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6315 pixel".
6316
6317 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6318
6319 Menu color test.
6320
6321 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 * grub-core/tests/setjmp_test.c: New test.
6324
6325 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 New variables 'net_default_*' to determine MAC/IP of default interface.
6328
6329 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * tests/gettext_strings_test.in: A test to check for strings not
6332 marked for translation.
6333
6334 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 * autogen.sh: Exclude unused libgcrypt files from translation.
6337
6338 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 Simplify few strings.
6341
6342 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 Mark few forgotten strings for translation.
6345
6346 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6349 rather than printf.
6350
6351 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6352
6353 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6354 rather than printf.
6355 * grub-core/video/readers/tga.c: Likewise.
6356
6357 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 * tests/priority_queue_unit_test.cc: New test.
6360
6361 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6364 than printf.
6365
6366 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6367
6368 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6369 variable for one time boot menu entry.
6370
6371 2013-05-05 Bean <bean123ch@gmail.com>
6372
6373 * grub-core/commands/testspeed.c: New command testspeed.
6374
6375 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6376
6377 Factor-out human-size printing.
6378
6379 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 Agglomerate more mallocs to speed-up gfxterm.
6382
6383 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 Speed-up gfxterm by slightly agglomerating mallocs.
6386
6387 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6388
6389 More video checks.
6390
6391 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6392
6393 Speed-up gfxterm by saving intermediate results in index+alpha
6394 format.
6395
6396 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6399 test.
6400
6401 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6402
6403 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6404 line of timeout as it may contain the rest of long line.
6405
6406 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * grub-core/normal/main.c: Fix freed memory dereference.
6409
6410 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 Fix several memory leaks.
6413
6414 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6417
6418 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6421
6422 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 Fix test -a and -o precedence.
6425 Reported by: adrian15.
6426
6427 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6430
6431 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6432
6433 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6434 and add it as source to functional_test module.
6435
6436 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6437
6438 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6439
6440 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 New series of tests for gfxterm and gfxmenu.
6443
6444 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6447 the theme path relative to $prefix/themes.
6448
6449 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6452 Fix order bug.
6453 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6454
6455 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6458 descriptor.
6459
6460 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6461
6462 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6463 grub_gfxmenu_timeout_notifications.
6464 (grub_gfxmenu_view_destroy): Likewise.
6465
6466 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6469
6470 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6471
6472 Several fixes to ieee1275 and big-endian video.
6473
6474 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 Add missing exports on mips.
6477
6478 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6479
6480 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6481 if no unifont is found.
6482 Restore original keyboard.
6483
6484 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6487 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6488
6489 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 First automated video test (running videotest and comparing results)
6492
6493 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6496 instead of 2 to have full RGB/CMY test pattern.
6497
6498 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 Add few more tests.
6501
6502 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6505 ARCS. All users updated.
6506
6507 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6510
6511 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6514
6515 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6518 Reported by: qwertial.
6519
6520 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6521
6522 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6523 with syntax "XXX deg"/"XXX °".
6524
6525 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 Make PCI init in i386-qemu port more robust.
6528
6529 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6530
6531 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6532 cached view is reused.
6533 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6534 open boot menus.
6535
6536 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 Unify more code in grub-install_header.
6539
6540 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 Add few new tests.
6543
6544 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 Enforce disabling of firmware disk drivers when native drivers kick in.
6547
6548 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * grub-core/commands/nativedisk.c: Customize the list of modules on
6551 platform. Don't try to search for disks already using native drivers.
6552
6553 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6554
6555 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6556 platforms.
6557
6558 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6559
6560 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6561 handling of variables containing backslash.
6562
6563 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6564
6565 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6566 dereference.
6567 Reported by: qwertial.
6568
6569 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6572
6573 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6576 dereference.
6577 Reported by: qwertial.
6578
6579 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6582
6583 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6586
6587 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6588
6589 New command `nativedisk'.
6590
6591 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6592
6593 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6594 * grub-core/loader/i386/bsd.c: Likewise.
6595
6596 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6599
6600 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6603 grub_get_unaligned16 rather than shifts.
6604
6605 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/kern/file.c: Use const char * rather than casting to
6608 non-const.
6609
6610 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * grub-core/commands/probe.c: Add missing grub_device_close.
6613
6614 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6615
6616 * INSTALL: Document linguas.sh.
6617
6618 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 Remove POTFILES.in and regenerate it in autogen.sh.
6621
6622 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 Move --directory/--override-directorry to grub-install_header and unify.
6625
6626 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * grub-core/term/morse.c: Macroify dih and dah.
6629
6630 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6631
6632 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6633
6634 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 * grub-core/term/ns8250.c: Systematically probe ports by writing
6637 to SR before using them.
6638
6639 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6640
6641 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6642 disks.
6643 (check_sas): Get sas_adress info.
6644
6645 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6648 ports.
6649
6650 2013-04-27 Leon Drugi <eyak>
6651
6652 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6653 BSS clearing.
6654
6655 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 Core compression test.
6658
6659 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 Implement grub_machine_get_bootlocation for ARC.
6662
6663 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 Improve AHCI detection and command issuing.
6666
6667 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 Fix pseries test.
6670
6671 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6672
6673 Make 'make check' work on emu.
6674
6675 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 Replace libcurses with our own vt100 handling for the ease of testing
6678 and decreasing prerequisites.
6679
6680 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6683
6684 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6687 compile when not needed.
6688
6689 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6690
6691 * tests/pseries_test.in: New test.
6692
6693 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 Add test to check that different boot mediums work.
6696
6697 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6700 ofw limited ISO support.
6701
6702 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * configure.ac: Fix loongson conditional.
6705
6706 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 Enable mipsel-arc.
6709
6710 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 Add serial on ARC platform.
6713
6714 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6715
6716 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6717 commit.
6718
6719 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6720
6721 * tests/partmap_test.in: Add missing double semicolon.
6722
6723 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6724
6725 * util/grub-mkrescue.in: Fix loongson filename.
6726
6727 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * util/grub-mkrescue.in: Move all files that don't have a location
6730 set in stone under /boot/grub. Use ISO hard links rather than copies
6731 to save some space.
6732
6733 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6736 bogus SLOF values.
6737
6738 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6739
6740 Make check work on mips-arc.
6741
6742 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6743
6744 * util/grub-mkrescue.in: Alias sashARCS as sash.
6745
6746 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6749 it's serial.
6750
6751 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * util/grub-install.in: Fix target fo qemu_mips.
6754 Fix extension on EFI.
6755
6756 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6759 in front of chosen entry to mark it even if highlighting is lost.
6760
6761 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6764 gfxpayload=keep if cbfb is active.
6765
6766 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6769
6770 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6771
6772 Add missing video ids to coreboot and ieee1275 video.
6773
6774 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * util/grub-mkrescue.in: Add mips-arc support.
6777
6778 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6781
6782 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 Move mips-arc link address. Previous link address was chosen
6785 in belief that RAM on SGI platforms grows down while in fact it
6786 grows up from an unusual base.
6787
6788 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6789
6790 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6791 Fix a type which prevented CD-ROM and floppy boot.
6792
6793 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 Support coreboot framebuffer.
6796
6797 * grub-core/video/i386/coreboot/cbfb.c: New file.
6798
6799 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6802 detecting too small regions.
6803
6804 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6807
6808 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6811 Remove dprintf.
6812 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6813
6814 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6815
6816 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6817 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6818 * grub-core/loader/powerpc/ieee1275/linux.c
6819 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6820
6821 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6824 Look for /boot-rom as well as /rom/boot-rom.
6825
6826 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6829 handling when creating text_layer failed.
6830 * grub-core/video/video.c (grub_video_create_render_target):
6831 Set result to 0 on error.
6832 (grub_video_delete_render_target): Do not dereference NULL.
6833
6834 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6837 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6838 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6839 (grub_linux_load64): Mask out 2 high bits.
6840
6841 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6842
6843 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6844 more place.
6845
6846 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6847
6848 Add support for pseries and other bootinfo machines to grub-mkrescue.
6849
6850 Tested by: Paulo Flabiano Smorigo.
6851
6852 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * util/grub-mkrescue.in: Add GPT for EFI boot.
6855
6856 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6857
6858 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6859 It improves performance in qemu.
6860
6861 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * build-aux/snippet: Add missing gnulib files.
6864
6865 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6866
6867 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6868
6869 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6870
6871 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6872
6873 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6874 2013-04-15 Peter Jones <pjones@redhat.com>
6875
6876 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6877 sectors.
6878 Based on patch by Peter Jones.
6879
6880 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 Fix DMRAID partition handling.
6883
6884 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 * tests/grub_cmd_date.in: Skip on sparc64.
6887
6888 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6891 firmware error messages.
6892
6893 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6896 source and destination differ.
6897
6898 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6901 detection.
6902
6903 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6904
6905 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6906 match config-util.h to avoid warnings and increase compatibility.
6907
6908 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6909 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6910
6911 Add option to compress files on install/image creation.
6912
6913 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 * docs/grub-dev.texi: Rearrange menu to match the section order.
6916 Reported by: Bryan Hundven.
6917
6918 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6921
6922 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 Move GRUB out of system area when using xorriso 1.2.9 or later.
6925
6926 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * tests/grub_cmd_date.in: Add missing exit 1.
6929
6930 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 * tests/partmap_test.in: Skip on sparc64.
6933
6934 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6935
6936 Support grub-shell on sparc64.
6937
6938 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 Support mkrescue on sparc64.
6941
6942 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6945 Needed on OpenBIOS due to incomplete device tree.
6946
6947 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6950 would be otherwise excluded.
6951
6952 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6955 Inline name defines used only once.
6956
6957 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 Fix memory leaks in ofnet.
6960 Reported by: Francesco Lavra.
6961
6962 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6963
6964 * docs/man/grub-glue-efi.h2m: Add missing file.
6965
6966 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6967
6968 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6969
6970 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 Better support Apple Intel Macs on CD.
6973
6974 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 Replace stpcpy with grub_stpcpy in tools.
6977
6978 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6979
6980 Handle Japanese special keys.
6981 Reported by: Hiroyuki YAMAMORI.
6982 Codes supplied by: Hiroyuki YAMAMORI.
6983
6984 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 * util/grub-mkimage.c: Document memdisk implying --prefix.
6987
6988 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6991 much we can do about it anyway.
6992
6993 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6994
6995 Fix handling of split transfers.
6996
6997 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 * grub-core/net/http.c: Fix bad free.
7000
7001 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7004 than buffer size.
7005
7006 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7007
7008 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7009
7010 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * tests/util/grub-shell.in: Fix it on powerpc.
7013
7014 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7015
7016 Turn off QEMU ACPI-way since new releases don't have shutdown port
7017 anymore.
7018
7019 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 * docs/grub.texi: Update coreboot status info.
7022
7023 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7024
7025 * tests/grub_cmd_date.in: New test for datetime.
7026
7027 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7028
7029 * tests/partmap_test.in: Fix missing qemudisk setting.
7030
7031 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7032
7033 Support i386-ieee1275 grub-mkrescue and make check on it.
7034
7035 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7038 feature for it.
7039
7040 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7041
7042 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7043 GRUB_CMDLINE_XEN_DEFAULT.
7044 Reported by: Marc Warne (GigaTux) <gigatux>
7045
7046 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 Import new gnulib.
7049
7050 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7051
7052 Use ACPI shutdown intests as traditional port was removed.
7053
7054 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7055
7056 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7057 distinction.
7058
7059 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7060
7061 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7062 Fix few warining messages and leaks while on it.
7063
7064 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7065
7066 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7067 links under grub-core/lib/libgcrypt-grub/mpi.
7068
7069 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 Fix ia64-efi image generation on big-endian machines. Deduplicate
7072 some code while on it.
7073 Reported by: Leif Lindholm.
7074
7075 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7076
7077 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7078 as extra_dist.
7079
7080 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7081
7082 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7083
7084 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7085
7086 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7087 texinfo-5.1.
7088
7089 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7090
7091 * grub-core/normal/term.c: Few more fixes for menu entry editor
7092 rendering.
7093 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7094
7095 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7096
7097 * grub-core/normal/term.c: Few more fixes for menu entry editor
7098 rendering.
7099 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7100
7101 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7102
7103 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7104 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7105
7106 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7107
7108 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7109 instead of hardcoding grub.mo.
7110
7111 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7112
7113 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7114
7115 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7118 grub-core/disk/geli.c.
7119
7120 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7121
7122 * util/grub-mkfont.c: Prefer enum to #define.
7123
7124 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7127
7128 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7131
7132 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7133
7134 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7135
7136 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7137
7138 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7139
7140 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 * include/grub/bsdlabel.h: Use enums.
7143
7144 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 Move GRUB_CHAR_BIT to types.h.
7147
7148 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7149
7150 * docs/grub.texi: Document more user commands.
7151
7152 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7153
7154 * docs/grub.texi: Document menuentry --id option.
7155
7156 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7157
7158 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7159
7160 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7161
7162 Unify file copying setup across different install scripts. Add
7163 options for performing partial install.
7164
7165 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7166 2013-04-04 Peter Jones <pjones@redhat.com>
7167
7168 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7169
7170 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 Use TSC as a possible time source on i386-ieee1275.
7173
7174 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7177 Init err.
7178
7179 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7180
7181 * util/grub-setup.c (setup): Handle some corner cases.
7182
7183 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7184
7185 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7186
7187 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7188
7189 * grub-core/commands/verify.c: Save verified file to avoid it being
7190 tampered with after verification was done.
7191
7192 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7195 reported width by one to compensate for curesor algorithm problem.
7196
7197 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7198
7199 Fix screen corruption in menu entry editor and simplify the code
7200 flow while on it.
7201
7202 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7203
7204 * util/grub-mount.c (fuse_init): Return error if fuse_main
7205 failed.
7206
7207 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7208
7209 * include/grub/elf.h: Add missing ARM relocation codes and fix
7210 existing ones.
7211
7212 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7213
7214 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7215
7216 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7217 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7220 into account when calculating radius.
7221
7222 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7223
7224 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7225
7226 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7227
7228 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7229
7230 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7231
7232 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7233 missing closing bracket.
7234
7235 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7236
7237 * INSTALL: Mention xorriso requirement.
7238
7239 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7240
7241 * grub-core/commands/verify.c: Fix hash algorithms values for
7242 the first three hashes - they start with 1, not with 0.
7243
7244 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7247 Try terminating EFI services several times due to quirks in some
7248 implementations.
7249
7250 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7251
7252 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7253 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7254 BankField extended opcodes.
7255 (get_sleep_type): Add minimal scope handling (just enough to
7256 handle setting the scope to the root path).
7257 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7258 * include/grub/acpi.h: Add enumeration values for Event, Device,
7259 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7260
7261 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7262
7263 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7264 memory leak.
7265
7266 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 * grub-core/disk/ahci.c: Give more time for AHCI request.
7269
7270 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7273 command.
7274
7275 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 Replace the region at 0 from coreboot tables to available in BSD
7278 memory map.
7279
7280 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7281
7282 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7283 non-BIOS platforms.
7284
7285 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7288 platforms.
7289
7290 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7293 handling of multi-device filesystems.
7294
7295 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7296
7297 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7298 platforms.
7299
7300 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7301
7302 Add new 'proc' filesystem framework and put luks_script into it.
7303
7304 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7307 and qemu.
7308
7309 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7312
7313 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 Add ability to generate newc additions on runtime.
7316
7317 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7320 description.
7321
7322 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * po/POTFILES.in: Regenerate.
7325
7326 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7327
7328 * grub-core/commands/verify.c (hashes): Add several hashes
7329 from the spec.
7330
7331 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 Slight improve in USB-related boot-time checkpoints.
7334
7335 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 * grub-core/commands/boottime.c: Fix copyright header.
7338
7339 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7342 coreboot tables content. Support for cbmemc.
7343
7344 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 Fix a conflict between ports structures with 2 controllers of
7347 same kind.
7348
7349 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * include/grub/boottime.h: Add missing file.
7352
7353 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 Initialize USB ports in parallel to speed-up boot.
7356
7357 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7358
7359 Fix USB devices not being detected when requested
7360 due to delayed attach.
7361
7362 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7363
7364 Implement boot time analysis framework.
7365
7366 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 Remove get_endpoint_descriptor and change all functions needing
7369 descriptor to just receive it as argument rather than endpoint
7370 address.
7371
7372 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7373
7374 Better estimate the maximum USB transfer size.
7375
7376 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7377
7378 Resend a packet if we got the wrong buffer in status.
7379
7380 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7381
7382 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7383 multiplication rather than division.
7384
7385 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7388 than divisions.
7389
7390 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7393 operations to have intended shifts and not divisions.
7394
7395 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7398 intended shifts rather than division.
7399
7400 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7403 computation for some years before epoch. Avode confusing division
7404 while on it.
7405
7406 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 * grub-core/video/i386/pc/vbe.c
7409 (grub_video_vbe_print_adapter_specific_info): Replace division by
7410 shifts.
7411
7412 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7413
7414 Adjust types in gdb module to have intended unsigned shifts rather than
7415 signed divisions.
7416
7417 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7420 maximum size is 4G - 1 on hfs
7421
7422 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7423
7424 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7425
7426 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7429 function.
7430
7431 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7432
7433 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7434 causing gcc error with gcc 4.7.1.
7435
7436 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7437
7438 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7439 dereference null pointer. While the code is technically correct, gcc
7440 may eliminate a null check if pointer is already dereferenced.
7441
7442 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7443
7444 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7445 OOM check.
7446 * grub-core/normal/term.c (read_terminal_list): Likewise.
7447
7448 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 Lift up core size limits on some platforms. Fix potential memory
7451 corruption with big core on small memory systems. Document remaining
7452 limits.
7453
7454 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7457 gotoxy to 0,0.
7458
7459 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 Remove all trampoline support. Add -Wtrampolines when
7462 present. Remove symbols used for trampolines to make
7463 link fail if trampolines are present.
7464
7465 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7468 append out of its parent.
7469
7470 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7471
7472 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7473 parent.
7474
7475 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7478 all vars to a macro. All users updated.
7479
7480 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7481
7482 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7483 i386-ieee1275.
7484
7485 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7488
7489 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7492
7493 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 Move to more hookless approach in IEEE1275 devices handling.
7496
7497 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 * grub-core/kern/term.c (grub_term_normal_color),
7500 (grub_term_highlight_color): Add back lost defaults.
7501
7502 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7503
7504 Make elfload not use hooks. Opt for flags and iterators instead.
7505
7506 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7507
7508 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7509 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7510
7511 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7512
7513 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7514
7515 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7516
7517 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7518 hook pass-through parameter. All users updated and unnested.
7519
7520 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7521
7522 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7523 out of its parent.
7524
7525 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * grub-core/fs/hfs.c: Remove nested functions.
7528
7529 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7532 the context through.
7533 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7534
7535 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * util/grub-editenv.c (list_variables): Move print_var out of its
7538 parent.
7539
7540 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7543 function.
7544
7545 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * grub-core/gentrigtables.c: Make tables const.
7548
7549 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 Remove nested functions from videoinfo iterators.
7552
7553 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7556 for 64-bit platforms.
7557
7558 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7561 a FOR_CHILDREN macro.
7562
7563 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7566 platform from firmware path.
7567
7568 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7569
7570 Enable linux16 on non-BIOS systems for i.a. memtest.
7571
7572 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7573 correctly.
7574 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7575
7576 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7579 Fix end of table condition.
7580
7581 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7584 out of its parent.
7585
7586 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7587
7588 * grub-core/fs/jfs.c: Remove nested functions.
7589
7590 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 * grub-core/fs/minix.c: Remove nested functions.
7593
7594 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * grub-core/fs/iso9660.c: Remove nested functions.
7597
7598 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7599
7600 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7601 of parent function.
7602
7603 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7604
7605 * util/grub-fstest.c: Remove nested functions.
7606
7607 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * grub-core/loader/machoXX.c: Remove nested functions.
7610
7611 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7612
7613 Remove nested functions from disk and file read hooks.
7614
7615 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7616 (struct grub_disk): Add read_hook_data member.
7617 * include/grub/file.h (struct grub_file): Likewise.
7618 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7619 argument.
7620
7621 Update all callers.
7622
7623 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7624
7625 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7626 Fix off by one error in enumerating extended partitions.
7627
7628 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7629
7630 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7631 memory leak if device name is not found.
7632
7633 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7634
7635 * grub-core/normal/menu_entry.c (update_screen): remove
7636 unused variable `off' which caused scroll down arrow to be always shown.
7637
7638 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7639
7640 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7641 access to unallocated memory.
7642
7643 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7644
7645 * Makefile.util.def: Add partmap/msdos.c to common library.
7646 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7647 * grub-core/disk/ldm.c: Check for existence of
7648 GRUB_PC_PARTITION_TYPE_LDM.
7649
7650 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7653 sizes and display sector size.
7654
7655 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 Implement new command cmosdump.
7658
7659 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7660
7661 Support Openfirmware disks with non-512B sectors.
7662
7663 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7664 size of the disk.
7665 * (grub_ofdisk_get_block_size): New function.
7666 * (grub_ofdisk_prepare): Use the correct block size.
7667 * (grub_ofdisk_read): Likewise.
7668 * (grub_ofdisk_write): Likewise.
7669 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7670 New proto.
7671
7672 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7675
7676 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7677
7678 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7679 on first error.
7680
7681 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7682
7683 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7684 freeing it.
7685
7686 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 Implement USBDebug (full USB stack variant).
7689
7690 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7693 unless they have unexpected values.
7694
7695 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7696
7697 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7698 grub_print_error.
7699
7700 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7701
7702 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7703 zero-out of port structure.
7704
7705 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7708 of extended attributes.
7709
7710 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7711
7712 * util/grub-install.in: change misleading comment about
7713 device.map creation
7714
7715 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7716
7717 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7718 when menu highlight color isn't set.
7719
7720 2013-01-27 C. Masloch <pushbx@38.de>
7721
7722 Improve FreeDOS direct loading support compatibility.
7723
7724 * include/grub/i386/relocator.h (grub_relocator16_state):
7725 New member ebp.
7726 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7727 variable.
7728 (grub_relocator16_boot): Handle %ebp.
7729 * grub-core/lib/i386/relocator16.S: Likewise.
7730 * grub-core/loader/i386/pc/freedos.c:
7731 Load BPB to pass kernel which partition to load from.
7732 Check that kernel file is not too large.
7733 Set register dl to BIOS unit number as well.
7734
7735 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7736
7737 * util/grub-reboot.in (usage): Document the need for
7738 GRUB_DEFAULT=saved.
7739 * util/grub-set-default.in (usage): Likewise.
7740 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7741
7742 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7743
7744 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7745 than defining WORDS_BIGENDIAN manually.
7746
7747 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7750 invariants.
7751
7752 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7753
7754 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7755 nested.
7756 (blit_comb: add_device_width): Likewise.
7757
7758 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7759
7760 Remove nested functions from USB iterators.
7761
7762 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7763 (grub_usb_controller_iterate_hook_t): Likewise.
7764 (grub_usb_iterate): Add hook_data argument.
7765 (grub_usb_controller_iterate): Likewise.
7766 (struct grub_usb_controller_dev.iterate): Likewise.
7767
7768 Update all implementations and callers.
7769
7770 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7771
7772 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7773 margin when not needed.
7774
7775 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 Make color variables global instead of it being per-terminal.
7778
7779 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7780
7781 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7782 asterisk.
7783
7784 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7785
7786 Fix powerpc and sparc64 build failures caused by un-nesting memory
7787 map iterators.
7788
7789 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7790
7791 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7792 parameter declarations.
7793
7794 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7795
7796 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7797
7798 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7799
7800 Improve spkmomdem reliability by adding a separator between bytes.
7801
7802 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7803
7804 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7805 an Acer registration utility with several sightings in the wild.
7806 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7807
7808 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7809
7810 Remove nested functions from filesystem directory iterators.
7811
7812 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7813 (struct grub_fs.dir): Add hook_data argument.
7814
7815 Update all implementations and callers.
7816
7817 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7818
7819 * docs/grub.texi (Multi-boot manual config): Fix typo for
7820 "recommended".
7821
7822 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7823
7824 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7825 until after its use in generate_image.
7826
7827 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7828
7829 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7830 initrd size to addr_min, since the initrd will be allocated after
7831 this address.
7832
7833 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7834
7835 * conf/Makefile.common: Fix autogen rules to pass definition
7836 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7837
7838 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7839
7840 * include/grub/elf.h: Update ARM definitions based on binutils.
7841
7842 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7843
7844 Split long USB transfers into short ones.
7845
7846 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7847
7848 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7849 is interrupted by ESC.
7850
7851 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7852
7853 * util/grub-script-check.c (main): Uniform the error message.
7854
7855 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7856
7857 Remove nested functions from ELF iterators.
7858
7859 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7860
7861 Remove nested functions from device iterators.
7862
7863 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7864 (grub_arc_iterate_devs): Add hook_data argument.
7865 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7866 (struct grub_ata_dev.iterate): Add hook_data argument.
7867 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7868 (grub_device_iterate): Add hook_data argument.
7869 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7870 (struct grub_disk_dev.iterate): Add hook_data argument.
7871 (grub_disk_dev_iterate): Likewise.
7872 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7873 Likewise.
7874 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7875 Likewise.
7876 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7877 type.
7878 (struct grub_partition_map.iterate): Add hook_data argument.
7879 (grub_partition_iterate): Likewise.
7880 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7881 (struct grub_scsi_dev.iterate): Add hook_data argument.
7882
7883 Update all callers.
7884
7885 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7886
7887 Fix typos for "developer" and "development".
7888
7889 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7890
7891 Add license header to spkmodem-recv.c.
7892
7893 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7894
7895 Rewrite spkmodem to use PIT for timing. Double the speed.
7896
7897 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7898
7899 Add new command pcidump.
7900
7901 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7902
7903 New terminal outputs using serial: morse and spkmodem.
7904
7905 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7906
7907 Improve bidi handling in entry editor.
7908
7909 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7910
7911 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7912 argument to prevent name collision.
7913
7914 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7915
7916 Remove nested functions from script reading and parsing.
7917
7918 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7919 getline_data argument, passed to getline.
7920 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7921 getline_data argument, passed to grub_parser_split_cmdline.
7922 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7923 lexerstate->getline_data to lexerstate->getline.
7924 (grub_script_lexer_init): Add getline_data argument, saved in
7925 lexerstate->getline_data.
7926 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7927 argument, passed to grub_script_parse.
7928 * grub-core/script/script.c (grub_script_parse): Add getline_data
7929 argument, passed to grub_script_lexer_init.
7930 * include/grub/parser.h (grub_parser_split_cmdline): Update
7931 prototype. Update all callers to pass appropriate getline data.
7932 (struct grub_parser.parse_line): Likewise.
7933 (grub_rescue_parse_line): Likewise.
7934 * include/grub/reader.h (grub_reader_getline_t): Add void *
7935 argument.
7936 * include/grub/script_sh.h (struct grub_lexer_param): Add
7937 getline_data member.
7938 (grub_script_parse): Update prototype. Update all callers to pass
7939 appropriate getline data.
7940 (grub_script_lexer_init): Likewise.
7941 (grub_normal_parse_line): Likewise.
7942
7943 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7944 data argument.
7945 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7946 static instead of nested. Rename to ...
7947 (grub_parser_execute_getline): ... this.
7948 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7949 data argument.
7950 * grub-core/normal/main.c (read_config_file: getline): Make static
7951 instead of nested. Rename to ...
7952 (read_config_file_getline): ... this.
7953 (grub_normal_read_line): Add unused data argument.
7954 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7955 getline): Make static instead of nested. Rename to ...
7956 (grub_script_execute_sourcecode_getline): ... this.
7957 * util/grub-script-check.c (main: get_config_line): Make static
7958 instead of nested.
7959
7960 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7961
7962 Remove nested functions from memory map iterators.
7963
7964 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7965 argument, passed to hook.
7966 * grub-core/kern/i386/coreboot/mmap.c
7967 (grub_linuxbios_table_iterate): Likewise.
7968 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7969 instead of nested.
7970 (grub_machine_mmap_iterate): Add hook_data argument.
7971 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7972 Add hook_data argument, passed to hook.
7973 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7974 Likewise.
7975 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7976 Likewise.
7977 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7978 Likewise.
7979 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7980 Likewise.
7981 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7982 Likewise.
7983 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7984 Likewise.
7985 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7986 (grub_machine_mmap_iterate): Likewise.
7987 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7988 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7989 prototype.
7990 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7991 Remove NESTED_FUNC_ATTR from here and from all users.
7992 (grub_mmap_iterate): Update prototype.
7993 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7994 pass appropriate hook data.
7995 (grub_machine_mmap_iterate): Likewise.
7996
7997 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7998 static instead of nested.
7999 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8000 Rename to ...
8001 (lsmmap_hook): ... this.
8002 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8003 Likewise.
8004 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8005 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8006 heap_init): Likewise.
8007 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8008 Rename to ...
8009 (mmap_iterate_hook): ... this.
8010 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8011 Likewise.
8012 * grub-core/lib/ieee1275/relocator.c
8013 (grub_relocator_firmware_get_max_events: count): Likewise.
8014 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8015 to ...
8016 (grub_relocator_firmware_fill_events_iter): ... this.
8017 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8018 hook): Likewise. Rename to ...
8019 (grub_relocator_alloc_chunk_align_iter): ... this.
8020 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8021 Rename to ...
8022 (generate_e820_mmap_iter): ... this.
8023 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8024 Rename to ...
8025 (count_hook): ... this.
8026 (grub_linux_boot: hook): Likewise. Rename to ...
8027 (grub_linux_boot_mmap_find): ... this.
8028 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8029 (grub_linux_boot_mmap_fill): ... this.
8030 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8031 hook): Likewise. Rename to ...
8032 (grub_fill_multiboot_mmap_iter): ... this.
8033 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8034 hook): Likewise. Rename to ...
8035 (count_hook): ... this.
8036 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8037 hook): Likewise. Rename to ...
8038 (grub_fill_multiboot_mmap_iter): ... this.
8039 * grub-core/loader/powerpc/ieee1275/linux.c
8040 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8041 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8042 Likewise. Rename to ...
8043 (alloc_phys_choose): ... this.
8044 (determine_phys_base: get_physbase): Likewise.
8045 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8046 find_hook): Likewise.
8047 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8048 (malloc_hook: count_hook): Likewise.
8049 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8050 Likewise. Rename to ...
8051 (lower_hook): ... this.
8052 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8053 (upper_hook): ... this.
8054 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8055 (post64_hook): ... this.
8056 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8057 Likewise. Rename to ...
8058 (lower_hook): ... this.
8059 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8060 (upper_hook): ... this.
8061 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8062 (grub_mmap_iterate: fill_hook): Likewise.
8063 (fill_mask): Pass addr and mask within a single struct.
8064 (grub_cmd_badram: hook): Make static instead of nested. Rename
8065 to ...
8066 (badram_iter): ... this.
8067 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8068 (cutmem_iter): ... this.
8069
8070 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8073 delimit path in strings using quotes.
8074 * util/getroot.c (grub_guess_root_devices): Likewise.
8075 (grub_make_system_path_relative_to_its_root): Likewise.
8076 * util/grub-probe.c (probe): Likewise.
8077 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8078 (xrealpath): Likewise.
8079
8080 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 Fix compilation with older compilers.
8083
8084 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8085 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8086 declarations.
8087 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8088 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8089 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8090 identifier with b.
8091 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8092 * include/grub/crypto.h: Add type defines.
8093 * util/import_gcrypth.sed: Remove duplicate type defines.
8094
8095 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8096
8097 New command list_trusted.
8098
8099 * grub-core/commands/verify.c (grub_cmd_list): New function.
8100
8101 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8102
8103 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8104 info message.
8105
8106 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8107
8108 Remove nested functions from PCI iterators.
8109
8110 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8111 passed to hook. Update all callers to pass appropriate hook data.
8112 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8113 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8114 Remove NESTED_FUNC_ATTR from here and from all users.
8115 (grub_pci_iterate): Update prototype.
8116 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8117 instead of nested. Rename to ...
8118 (grub_cs5536_find_iter): ... this.
8119 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8120 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8121 Likewise.
8122 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8123 Likewise.
8124 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8125 Likewise.
8126 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8127 Likewise.
8128 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8129 * grub-core/video/radeon_fuloong2e.c
8130 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8131 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8132 find_card): Likewise.
8133 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8134 Likewise.
8135
8136 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8137
8138 * grub-core/commands/verify.c: Mark messages for translating.
8139
8140 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8143 fatal.
8144
8145 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8146
8147 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8148 fatal.
8149
8150 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8151
8152 * autogen.sh: Do not try to delete nonexistant files.
8153 * util/import_gcrypth.sed: Add some missing header removals.
8154
8155 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8156
8157 Clean up dangling references to grub-setup.
8158 Fixes Ubuntu bug #1082045.
8159
8160 * docs/grub.texi (Images): Refer generally to grub-install rather
8161 than directly to grub-setup.
8162 (Installing GRUB using grub-install): Remove direct reference to
8163 grub-setup.
8164 (Device map) Likewise.
8165 (Invoking grub-install): Likewise.
8166 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8167 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8168 * util/grub-install.in (usage): Likewise.
8169
8170 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8171 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8172 grub-setup.
8173 * configure.ac: Remove grub_setup output variable.
8174
8175 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8176 to grub-bios-setup.
8177 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8178 grub-setup to grub-sparc64-setup.
8179
8180 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 Import gcrypt public-key cryptography and implement signature checking.
8183
8184 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 * grub-core/fs/ntfs.c: Ue more appropriate types.
8187 * grub-core/fs/ntfscomp.c: Likewise.
8188 * include/grub/ntfs.h: Likewise.
8189
8190 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8191
8192 Support Apple FAT binaries on non-Apple platforms.
8193
8194 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8195 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8196 Likewise.
8197 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8198 Apple FAT binaries.
8199
8200 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8203 sector devices.
8204
8205 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8206
8207 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8208 explicitly zeroing elements.
8209 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8210 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8211 of elements in a structure already allocated using grub_zalloc.
8212 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8213
8214 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8215
8216 * docs/grub.texi (grub_cpu): New subsection.
8217 (grub_platform): Likewise.
8218
8219 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8222
8223 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8224
8225 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8226 divisions.
8227
8228 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8229
8230 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8231 * grub-core/fs/ntfscomp.c: Likewise.
8232 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8233 (grub_ntfs_comp): Likewise.
8234
8235 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8236
8237 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8238 Rename to ...
8239 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8240 of groups_per_block. All users updated.
8241
8242 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8243
8244 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8245 grub_error properly.
8246 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8247 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8248
8249 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8250
8251 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8252 always in /boot/zfs.
8253 Reported by: Yuta Satoh.
8254
8255 2013-01-03 Yuta Satoh <nigoro>
8256
8257 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8258 ${grub_probe}
8259
8260 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * configure.ac: Extend -Wno-trampolines to host.
8263
8264 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8267 entry->len = 0.
8268
8269 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8270
8271 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8272 (Invoking grub-script-check): Likewise.
8273
8274 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8275
8276 * docs/grub.texi (Invoking grub-mount): New section.
8277 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8278
8279 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8280
8281 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8282 test failures, so that a failing unit test correctly causes 'make
8283 check' to fail.
8284
8285 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8286
8287 Fix failing printf test.
8288
8289 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8290 '$' in the correct order when collecting type information.
8291
8292 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8293
8294 * docs/grub.texi (configfile): Explain environment variable
8295 handling.
8296 (source): New section.
8297 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8298
8299 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8300
8301 Remove several trivially-unnecessary uses of nested functions.
8302
8303 * grub-core/commands/i386/pc/sendkey.c
8304 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8305 instead of nested.
8306 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8307 Rename to ...
8308 (legacy_file_getline): ... this.
8309 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8310 Likewise.
8311 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8312 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8313 to ...
8314 (probe_dummy_iter): ... this.
8315 * grub-core/kern/i386/coreboot/mmap.c
8316 (grub_linuxbios_table_iterate: check_signature): Likewise.
8317 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8318 check_varstate): Likewise. Mark inline.
8319 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8320 an additional parameter.
8321 (find_long: fnd_long): Likewise. Pass two additional parameters.
8322 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8323 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8324 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8325 Likewise. Rename to ...
8326 (grub_cmos_find_port_iter): ... this.
8327 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8328 Rename to ...
8329 (find_rtc_iter): ... this.
8330
8331 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8332 function directly into the function body, since it is only called
8333 once.
8334
8335 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8336
8337 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8338 __attribute__ ((unused)).
8339 * grub-core/video/bochs.c (find_card): Likewise.
8340 * grub-core/video/cirrus.c (find_card): Likewise.
8341 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8342 * grub-core/video/sis315pro.c (find_card): Likewise.
8343 * grub-core/video/sm712.c (find_card): Likewise.
8344
8345 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8346
8347 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8348 Fixes Savannah bug #37821.
8349
8350 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8351
8352 Apply program name transformations at build-time rather than at
8353 run-time. Fixes Debian bug #696465.
8354
8355 * acinclude.m4 (grub_TRANSFORM): New macro.
8356 * configure.ac: Create output variables with transformed names for
8357 most programs.
8358 * util/bash-completion.d/grub-completion.bash.in: Use
8359 pre-transformed variables for program names.
8360 * util/grub-install.in: Likewise.
8361 * util/grub-kbdcomp.in: Likewise.
8362 * util/grub-mkconfig.in: Likewise.
8363 * util/grub-mkconfig_lib.in: Likewise.
8364 * util/grub-mknetdir.in: Likewise.
8365 * util/grub-mkrescue.in: Likewise.
8366 * util/grub-mkstandalone.in: Likewise.
8367 * util/grub-reboot.in: Likewise.
8368 * util/grub-set-default.in: Likewise.
8369 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8370 * tests/util/grub-shell-tester.in: Remove unused assignment.
8371 * tests/util/grub-shell.in: Likewise.
8372 * util/grub.d/00_header.in: Likewise.
8373
8374 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8375
8376 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8377
8378 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8379 HAVE_RAW_DECL_GETS.
8380 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8381
8382 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8383
8384 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8385 Reported by: Eriks Latosheks <foresterlv>.
8386
8387 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8388
8389 * docs/grub.texi (Network): Update instructions on generating netboot
8390 image.
8391
8392 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8393
8394 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8395 around device name if necessarry.
8396
8397 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8398
8399 * util/grub-install.in: Follow the symbolic link parameter added
8400 to the file command.
8401
8402 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8403
8404 * util/grub-install.in: Remove stale TODO.
8405
8406 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8407
8408 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8409 dynamic allocation for the bootpath buffer.
8410
8411 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8412
8413 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8414 window too small.
8415
8416 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8419 argument rather than font name. All users updated.
8420 (grub_gfxterm_set_window): Likewise.
8421
8422 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8423
8424 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8425 from working.
8426
8427 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8428
8429 * util/getroot.c (convert_system_partition_to_system_disk): Support
8430 nbd disks.
8431
8432 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8435 infinite loop on corrupted FS.
8436
8437 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 Fix big-endian mtime.
8440
8441 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8442 together sec and usec.
8443 (grub_ufs_dir): Use correct byteswapping for UFS time.
8444
8445 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 Support big-endian UFS1.
8448
8449 * Makefile.util.def (libgrubmods): Add ufs_be.c
8450 * grub-core/Makefile.core.def (ufs1_be): New module.
8451 * grub-core/fs/ufs_be.c: New file.
8452 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8453 the file.
8454
8455 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8456
8457 * include/grub/types.h: Fix functionality unaffecting typo in
8458 GRUB_TARGET_WORDSIZE conditional macro.
8459
8460 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8461
8462 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8463
8464 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8465
8466 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8467 that /netbsd appears first (when it exists).
8468
8469 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8470
8471 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8472 Fixes Savannah bug #37558.
8473
8474 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8475
8476 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8477 description of extract_entries_configfile.
8478
8479 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8480
8481 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8482 preferred_address.
8483 (grub_cmd_linux): Likewise.
8484 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8485 preferred_lifetime. Update all users.
8486
8487 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8488
8489 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8490 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8491
8492 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8493
8494 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8495 errors from grub-probe to /dev/null, not stdout.
8496
8497 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8500 sector 1.
8501
8502 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8503
8504 * util/grub-install.in: Make the error message if $source_dir
8505 doesn't exist more useful.
8506
8507 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8508
8509 Fix grub-emu build on FreeBSD.
8510
8511 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8512 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8513 headers on Linux.
8514 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8515 implementation is currently Linux-specific.
8516 * util/getroot.c (exec_pipe): Define only on Linux or when either
8517 libzfs or libnvpair is unavailable.
8518 (find_root_devices_from_poolname): Remove unused path variable.
8519
8520 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8521
8522 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8523 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8524 should fit before end == 63.
8525
8526 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8527
8528 * util/grub-setup.c (write_rootdev): Remove unused core_img
8529 parameter. Update all callers.
8530 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8531 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8532 GRUB_SETUP_BIOS.
8533
8534 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8535
8536 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8537 (grub_add_tab): New function.
8538 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8539 * util/grub.d/10_illumos.in: Likewise.
8540 * util/grub.d/10_kfreebsd.in: Likewise.
8541 * util/grub.d/10_linux.in: Likewise.
8542 * util/grub.d/10_netbsd.in: Likewise.
8543 * util/grub.d/10_windows.in: Likewise.
8544 * util/grub.d/10_xnu.in: Likewise.
8545 * util/grub.d/20_linux_xen.in: Likewise.
8546 * util/grub.d/30_os-prober.in: Likewise.
8547
8548 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8551 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8552 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8553 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8554 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8555 ieee1275-nocursor.
8556 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8557 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8558
8559 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8562 le-conversion.
8563 Reported by: BURETTE, Bernard.
8564
8565 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8566
8567 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8568 from comment.
8569
8570 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8571
8572 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8573 IEEE1275 machines. Fixes powerpc-emu compilation.
8574 * include/grub/terminfo.h: Likewise.
8575
8576 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8577
8578 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8579 a const pointer.
8580 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8581 const pointer.
8582 (efiemu_set_variable): Make vendor_guid a const pointer.
8583
8584 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8585
8586 Don't require grub-mkconfig_lib to generate manpages for programs.
8587
8588 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8589 dependencies, don't add grub-mkconfig_lib.
8590 (program): Pass empty adddeps.
8591 (script): Pass grub-mkconfig_lib as adddeps.
8592
8593 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8596 * util/getroot.c (grub_find_device): Likewise.
8597 (get_mdadm_uuid): Likewise.
8598 (grub_util_is_imsm): Likewise.
8599 (grub_util_pull_device): Likewise.
8600 * util/grub-probe.c (probe): Likewise.
8601
8602 2012-09-10 Benoit Gschwind <gschwind>
8603
8604 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8605 (devs): Add devpath_8.
8606
8607 2012-09-08 Peter Jones <pjones@redhat.com>
8608
8609 * grub-core/Makefile.core.def (efifwsetup): New module.
8610 * grub-core/commands/efi/efifwsetup.c: New file.
8611 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8612 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8613 New define.
8614 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8615
8616 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8617
8618 * configure.ac: Add SuSe path.
8619
8620 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8621
8622 * NEWS: Fix typo.
8623
8624 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8625
8626 * util/import_gcry.py: Sort cipher_files, to make build system
8627 generation more deterministic.
8628
8629 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8632 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8633 (grub_set_datetime): Likewise.
8634
8635 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8636
8637 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8638 warnings.
8639
8640 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8641
8642 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8643
8644 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8647
8648 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8649
8650 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8651 required for checkouts from bzr, but it may be useful for users or
8652 distributors wishing to update translations against a tarball
8653 distribution, and it can be helpful for the tarball to be a superset
8654 of what's in bzr.
8655
8656 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8657
8658 * Makefile.am (EXTRA_DIST): Add
8659 grub-core/tests/boot/linux.init-mips.S,
8660 grub-core/tests/boot/linux.init-ppc.S, and
8661 grub-core/tests/boot/linux-ppc.cfg.
8662
8663 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8664
8665 * grub-core/mmap/mips/loongson: Remove empty directory.
8666
8667 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8668
8669 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8670 gone.
8671
8672 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8673
8674 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8675 grub-sparc64-setup.
8676
8677 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8678
8679 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8680
8681 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8682
8683 * po/POTFILES.in: Regenerated.
8684
8685 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8686
8687 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8688 (NetBSD): New subsection.
8689
8690 2012-07-22 Ales Nesrsta <starous@volny.cz>
8691
8692 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8693 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8694
8695 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8696
8697 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8698 * util/grub.d/10_hurd.in: Add missing quoting.
8699 * util/grub.d/10_illumos.in: Likewise.
8700 * util/grub.d/10_kfreebsd.in: Likewise.
8701 * util/grub.d/10_linux.in: Likewise.
8702 * util/grub.d/20_linux_xen.in: Likewise.
8703
8704 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 New command `lsefi'.
8707
8708 * grub-core/Makefile.core.def (lsefi): New module.
8709 * grub-core/commands/efi/lsefi.c: New file.
8710 * include/grub/efi/api.h: Add more GUIDs.
8711
8712 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8713
8714 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8715 (grub_bsd_elf32_hook): Likewise.
8716 (grub_bsd_elf64_size_hook): Likewise.
8717 (grub_bsd_elf64_hook): Likewise.
8718 (grub_bsd_load_elf): Likewise.
8719
8720 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8721
8722 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8723 if hash function is unavailable.
8724 (dec_stream_header): Likewise.
8725
8726 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8727
8728 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8729 filter state.
8730
8731 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8732
8733 Fix coreboot compilation.
8734
8735 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8736 (grub_vga_text_init_real): ... this.
8737 (grub_vga_text_fini): Rename to ...
8738 (grub_vga_text_fini_real): ... this.
8739
8740 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8741
8742 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8743
8744 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 * grub-core/lib/legacy_parse.c: Support clear and testload.
8747
8748 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8751
8752 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8753
8754 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8755
8756 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 * grub-core/net/tftp.c (ack): Fix endianness problem.
8759 (tftp_receive): Likewise.
8760 Reported by: Michael Davidsaver.
8761
8762 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8763
8764 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8765
8766 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8767
8768 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8769 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8770 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8771
8772 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8773
8774 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8775 efi_mmap_size.
8776 Reported by: Stuart Hayes.
8777
8778 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8781
8782 * grub-core/Makefile.core.def (mda_text): New module.
8783 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8784 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8785 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8786 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8787 here.
8788 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8789 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8790 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8791 here.
8792 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8793 to ..
8794 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8795 ... here
8796 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8797 here.
8798 * grub-core/term/i386/vga_common.c: Removed.
8799 * include/grub/i386/vga_common.h: Likewise.
8800 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8801 (grub_vga_cr_bw_read): Likewise.
8802 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8803 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8804 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8805 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8806 grub_vga_cr_read/grub_vga_cr_write.
8807 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8808
8809 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * configure.ac: Bump version to 2.00.
8812 * grub-core/normal/main.c (features): Add feature_200_final.
8813
8814 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8815 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8816
8817 * NEWS: Fix unclarity and language mistakes.
8818
8819 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8820
8821 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8822 additional size to 3 pages.
8823 Reported by: Stuart Hayes.
8824
8825 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * NEWS: Add 2.00 entry.
8828
8829 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8832 put explicit "/" for empty path.
8833 (wildcard_expand): Improve dprintf.
8834
8835 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8838 it's equal to currnode. This can happen with "" symlink.
8839
8840 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8841
8842 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8843 echo shell command by printf command.
8844
8845 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8848 the value returned by firmware is the maximal position, not diumension.
8849 (grub_terminfo_output_state): Use a more sane fallback.
8850
8851 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8852
8853 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8854
8855 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8858 frequency to 150 MHz.
8859
8860 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8861
8862 Apple fixes.
8863
8864 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8865 __APPLE_
8866 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8867 definition.
8868 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8869
8870 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 Handle slash in HFS label.
8873
8874 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8875 (grub_hfs_dir): Tanslate slash.
8876 (grub_hfs_label): Don't translate slash.
8877
8878 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8881 network protocol listing since it introduces problematic dependency on
8882 net module.
8883
8884 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8885
8886 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8887
8888 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8889
8890 Init video early on yeeloong to avoid being rebooted by watchdog.
8891
8892 * grub-core/Makefile.am (gensm712): New target.
8893 (sm712_start.S): Likewise.
8894 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8895 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8896 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8897 description.
8898 * include/grub/vga.h: Move registry definitions to...
8899 * include/grub/vgaregs.h: ... here.
8900
8901 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8904 signedness.
8905
8906 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8907
8908 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8909 platforms with firmware disk drivers in the core.
8910
8911 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8912
8913 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8914 informative verbose message.
8915 (read_lv): Handle 64-bit segment size.
8916
8917 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8920
8921 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8922
8923 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8924 character but still remove trainling spaces.
8925 (grub_fat_label): Ignore archive flag.
8926
8927 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8928
8929 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8930 cast between linux_kernel_header and linux_kernel_params.
8931
8932 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8933
8934 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8935 type for size.
8936 (grub_raid6_recover_func_t): Likewise.
8937 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8938 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8939
8940 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8943
8944 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8945
8946 Fix overflow.
8947
8948 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8949 [__NetBSD__]: Add explicit cast before bitshift.
8950
8951 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8952
8953 * configure.ac: Bump to 2.00~rc1.
8954
8955 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8958 half of $a0.
8959
8960 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8961 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8962
8963 * docs/grub.texi: Fix search syntax.
8964 (Multi-boot manual config): Put msdos rather than GPT example.
8965 Grammar corrections.
8966
8967 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8968
8969 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8970
8971 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8972
8973 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8974
8975 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8976
8977 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8978 message on double free. Put the value of magic in case of mismatch.
8979
8980 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 Speed-up video on yeeloong.
8983
8984 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8985 add cached_ptr.
8986 (grub_video_sm712_video_fini): Unmap cached_ptr.
8987 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8988 (grub_video_sm712_set_active_render_target): Removed.
8989 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8990 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8991 sync caches.
8992
8993 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 Avoid flushing the same line multiple times on loongson.
8996
8997 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8998 Step in 32 bytes and not 1 byte.
8999 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9000 Likewise.
9001
9002 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9003
9004 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9005 subvolumes.
9006
9007 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9008
9009 Implement flow control for http.
9010
9011 * grub-core/net/http.c (parse_line): Handle response 206.
9012 (http_receive): Stall if too many packets are in the queue.
9013 (http_establish): Fix range header.
9014 (http_seek): Fix double free.
9015 (http_close): Likewise.
9016 (http_packets_pulled): New function.
9017 (grub_http_protocol): Set http_seek
9018 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9019 (ack_real): Set window depending on i_stall.
9020 (grub_net_send_tcp_packet): Likewise.
9021 (grub_net_tcp_stall): New function.
9022 (grub_net_tcp_unstall): Likewise.
9023 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9024 (grub_net_tcp_unstall): Likewise.
9025
9026 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9029
9030 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9031
9032 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9033
9034 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 * tests/util/grub-shell.in: Fix a typo.
9037
9038 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9039
9040 Implement flow control for tftp.
9041
9042 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9043 packets but stop only if stop condition is satisfied.
9044 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9045 `stall' instead of `eof' as stop condition.
9046 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9047 (http_err): Likewise.
9048 * grub-core/net/tftp.c (ack): Replace the first argument with data
9049 instead of socket.
9050 (tftp_receive): Stall if too many packets are in wait queue.
9051 (tftp_packets_pulled): New function.
9052 (grub_tftp_protocol): Set packets_pulled.
9053 * include/grub/net.h (grub_net_packets): New field count.
9054 (grub_net_put_packet): Increment count.
9055 (grub_net_remove_packet): Likewise.
9056 (grub_net_app_protocol): New field `packets_pulled'.
9057 (grub_net): New field `stall'.
9058
9059 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9060
9061 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9062 sync part to handle them.
9063
9064 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9067 * grub-core/net/drivers/ieee1275/ofnet.c
9068 (grub_ieee1275_net_config_real): Likewise.
9069
9070 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9071
9072 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9073 the direct route for server/gateway.
9074
9075 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9076
9077 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9078 IP address to server name since we may not hame the DNS.
9079
9080 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9083 freeing random buffer on failure.
9084 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9085
9086 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9087
9088 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9089
9090 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9093 reserved bytes.
9094 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9095 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9096 Handle malloc error correctly.
9097
9098 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9099
9100 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9101 blocks.
9102
9103 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9106 increment.
9107
9108 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9111 none is explicitly specified.
9112
9113 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9116 while reallocating.
9117
9118 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 Respect netmask from bootp/dhcp.
9121
9122 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9123 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9124 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9125 into ...
9126 (grub_net_add_ipv4_local): ... this.
9127 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9128 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9129 (grub_net_add_ipv4_local): New proto.
9130
9131 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9132
9133 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9134 determining EFI memory map size.
9135
9136 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9137
9138 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9139
9140 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9141
9142 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9143 when looking for partition separator.
9144
9145 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9148 Escape commas.
9149
9150 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 Restructure FAT driver to avoid hook in label reading as it hits a
9153 GCC bug.
9154
9155 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9156 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9157 (grub_fat_iterate_dir): Split into ...
9158 (grub_fat_iterate_init): ... this, ...
9159 (grub_fat_iterate_fini): ... this, ...
9160 (grub_fat_iterate_dir_next): ... and this. All users updated.
9161
9162 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9163
9164 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9165 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9166 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9167 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9168 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9169 New fields last_key and last_key_time.
9170 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9171 extended key-esc into extended key-extended key.
9172
9173 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 Avoid unnecessary memcpy of whole video buffer.
9176
9177 * grub-core/video/fb/video_fb.c (dirty): New struct.
9178 (framebuffer): Add members current_dirty and previous_dirty.
9179 (dirty): New function.
9180 (grub_video_fb_fill_rect): Update dirty.
9181 (common_blitter): Likewise.
9182 (grub_video_fb_scroll): Likewise.
9183 (doublebuf_blit_update_screen): Copy only dirty part.
9184 (doublebuf_pageflipping_update_screen): Likewise.
9185 (grub_video_fb_doublebuf_blit_init): Init dirty.
9186 (doublebuf_pageflipping_init): Likewise.
9187 (grub_video_fb_setup): Likewise.
9188
9189 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9190
9191 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9192 poll rate.
9193
9194 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 Fix wildcard regexp dot and other special characters handling.
9197 Reported by: Robert Mabee.
9198
9199 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9200 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9201 (split_path): Trigger expansion on '?'.
9202 (unescape): New function.
9203 (wildcard_expand): Unescape parts copied without globbing.
9204 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9205 (grub_script_arglist_to_argv): Don't unescape expansions.
9206
9207 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9208
9209 * include/grub/net.h (grub_net_card): New member txbufsize.
9210 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9211 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9212 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9213 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9214 txbufsize.
9215 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9216 compatible property to check for macs. Set
9217 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9218 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9219 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9220 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9221 (send_card_buffer): Use txbuf.
9222 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9223 nested function out of the parent while on it.
9224
9225 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9228 presence check.
9229 (grub_ieee1275_net_config_real): Fix config pointer.
9230
9231 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9232
9233 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9234 filename parsing to non-block devices.
9235
9236 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9237
9238 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9239
9240 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9241
9242 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9243 All users updated.
9244
9245 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9246
9247 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9248 UUID search command even if hints probing failed.
9249
9250 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9251
9252 * po/POTFILES.in: Regenerated.
9253
9254 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9255
9256 Speed-up video on fuloong.
9257
9258 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9259 New function.
9260 (grub_pci_device_unmap_range): Handle non-cached address.
9261 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9262 add direct_ptr.
9263 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9264 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9265 (grub_video_sis315pro_set_active_render_target): Removed.
9266 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9267 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9268 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9269 sync caches.
9270 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9271 New proto.
9272
9273 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9274
9275 * docs/grub.texi (Multi-boot manual config): New section.
9276
9277 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 Avoid slow read-back from VRAM.
9280
9281 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9282 Move from here ...
9283 * grub-core/video/fb/video_fb.c
9284 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9285 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9286 (front_target): Remove front_target. Add pages.
9287 (grub_video_fb_init): Skip setting front_pages.
9288 (grub_video_fb_fini): Likewise.
9289 (doublebuf_blit_update_screen): Use pages.
9290 (grub_video_fb_doublebuf_blit_init): Likewise.
9291 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9292 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9293 (grub_video_fb_setup): Prefer doublebuffing.
9294
9295 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9296
9297 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9298 gzio.
9299
9300 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9301
9302 Add loongson tests.
9303
9304 * tests/util/grub-shell.in: Handle loongson.
9305 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9306 drivers.
9307 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9308 Reboot instead of shutdown if REBOOT is defined.
9309
9310 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9311
9312 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9313 sized ports since unlike on real hardware qemu supports only 32-bit
9314 regs.
9315
9316 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9317
9318 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9319 * util/grub-mkrescue.in: Handle loongson.
9320
9321 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9324 Set is_part appropriately.
9325 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9326 names. Canonicalize partition without full disk.
9327
9328 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 Revert usb-quiesce since it's wrong.
9331
9332 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9333 (grub_ofdisk_init): Don't do quiesce.
9334
9335 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9336
9337 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9338 PowerMac workaround to Xserves as well.
9339 Information supplied by: Benjamin Herrenschmidt.
9340
9341 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9342
9343 Don't assume that beginning address is also the entry point on ppc.
9344
9345 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9346 (grub_linux_boot): Use linux_entry.
9347 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9348 (grub_linux_load64): Likewise.
9349
9350 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9353
9354 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9357 needlessly lose the console.
9358
9359 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9362 space.
9363
9364 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9365
9366 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9367 than current grub_get_rtc() not implemented when booted with
9368 coreboot without TSC.
9369
9370 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9371 Add machine/time.h to kernel headers on loongson.
9372 * grub-core/Makefile.core.def (kernel): Remove
9373 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9374 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9375 (grub_get_rtc): Likewise.
9376 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9377 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9378 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9379 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9380 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9381 rather than installing known non-working time source.
9382 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9383 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9384 * include/grub/time.h: Don't include machine/time.h.
9385 * include/grub/efi/time.h: Removed.
9386 * include/grub/i386/efi/time.h: Likewise.
9387 * include/grub/i386/ieee1275/time.h: Likewise.
9388 * include/grub/powerpc/ieee1275/time.h: Likewise.
9389 * include/grub/sparc64/ieee1275/time.h: Likewise.
9390 * include/grub/x86_64/efi/time.h: Likewise.
9391
9392 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 Remove dot on i and j when combining with above diacritics.
9395
9396 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9397 value.
9398 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9399 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9400 with dotless variants when any combining above is present.
9401
9402 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9403
9404 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9405 text and not binary.
9406
9407 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 Stop polling as soon as we have the packet we were waiting for.
9410
9411 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9412 All users updated.
9413 * grub-core/net/arp.c (have_pending): New var.
9414 (pending_req): Likewise.
9415 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9416 stop indicator.
9417 (grub_net_arp_receive): Set have_pending.
9418 * grub-core/net/dns.c (recv_data): New field stop.
9419 (recv_hook): Set stop.
9420 (grub_net_dns_lookup): Init stop and use as stop condition.
9421 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9422 condition.
9423 * grub-core/net/net.c (grub_net_poll_cards): New argument
9424 stop_condition. Stop when it goes true.
9425 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9426 indicator.
9427 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9428
9429 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 Keep TX and RX buffers on EFI rather than always allocate new ones.
9432
9433 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9434 card. All users updated.
9435 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9436 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9437 (get_card_packet): Likewise.
9438 (grub_efinet_findcards): Init new fields.
9439
9440 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9443 compilation error on sparc64.
9444
9445 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 Use ITC on IA64 rather than broken routine based on daytime.
9448
9449 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9450 ia64.
9451 (grub_get_rtc) [__ia64__]: Likewise.
9452 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9453 (get_itc): New function.
9454 (grub_rtc_get_time_ms): Likewise.
9455 (grub_machine_init): Calibrate ITC.
9456 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9457 Keep only on non-ia64. Don't export since it's broken and used only
9458 if TSC is unavailable.
9459
9460 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9463 even if it's used.
9464 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9465 Skip if parent is unused.
9466
9467 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9468
9469 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9470
9471 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 Fix wildcard escaping.
9474
9475 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9476 * grub-core/script/execute.c (wildcard_escape): .. to here.
9477 Don't escape dot.
9478 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9479 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9480 Don't escape dot.
9481 * grub-core/script/execute.c (gettext_append): Always escape.
9482 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9483 * grub-core/script/yylex.l: Don't cut away the escaping.
9484 * tests/grub_script_echo1.in: Add tests with wildcard.
9485
9486 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9489 (ftdi_hw_configure): Likewise.
9490 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9491 define.
9492 (real_config): Handle 1.5 stop bits.
9493 (pl2303_hw_configure): Likewise.
9494
9495 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9496
9497 * Makefile.am: Add ppc linux bootcheck.
9498 * grub-core/tests/boot/linux-ppc.cfg: New file.
9499 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9500
9501 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9502
9503 * tests/grub_script_expansion.in: Skip network protocols.
9504
9505 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9506
9507 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9508
9509 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9512 --rom-directory.
9513 Add -graft-points.
9514
9515 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9516
9517 ESCC serial driver for conducting sautomated tests in qemu.
9518 Not tested on real hardware.
9519
9520 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9521 * grub-core/term/ieee1275/escc.c: New file.
9522 * grub-core/Makefile.core.def (escc): New module.
9523
9524 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9525
9526 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9527 invalid on error.
9528 (serial_hw_fetch): Don't read invalid handle.
9529 (serial_hw_put): Don't write into invalid handle.
9530
9531 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 Add a 1.5 stop bits value.
9534
9535 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9536 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9537 GRUB_SERIAL_STOP_BITS_1_5.
9538
9539 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9540
9541 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9542 value rather than let it uninited.
9543
9544 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9545
9546 * grub-core/commands/wildcard.c (+check_file): New function.
9547 (wildcard_expand): Don't expand to non-existing files, expand with
9548 suffix and not attempt to expand if not needed.
9549
9550 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9551
9552 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9553 out of partitions containing other partitions.
9554
9555 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9558 on some qemu versions with GRUB.
9559
9560 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9561 define.
9562 (grub_openbsd_bootarg_pcibios): New struct.
9563 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9564 Add PCIINFO.
9565
9566 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 * tests/util/grub-shell.in: Trim firmware output on EFI.
9569
9570 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9571
9572 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9573 and coreboot since it's already in kernel.
9574
9575 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9576
9577 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9578 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9579 to here. New return value start. All users updated.
9580 Recursively scan linear mappings.
9581 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9582 proto.
9583 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9584 Use grub_util_get_dm_node_linear_info.
9585 * util/getroot.c (convert_system_partition_to_system_disk): Use
9586 grub_util_info rather than grub_dprintf.
9587 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9588
9589 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9590
9591 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9592
9593 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9594 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9595
9596 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9597
9598 * include/grub/types.h (grub_set_unaligned64): New function.
9599 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9600 (setup): Likewise.
9601
9602 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9605 (grub_ofdisk_fini): Quiesce USB devices.
9606
9607 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9610 caches.
9611
9612 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9613
9614 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9615
9616 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 * grub-core/disk/pata.c (grub_pata_pio_read)
9619 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9620 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9621
9622 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9623
9624 Extend automated tests to qemu-mips.
9625
9626 * Makefile.am: reorganise tests and enable qemu-mips.
9627 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9628 * grub-core/tests/boot/linux.init-mips.S: New file.
9629 * tests/partmap_test.in: Handle ata0 disks.
9630 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9631 non-pc i386.
9632
9633 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9636 ia64.
9637 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9638 quotes while on it.
9639
9640 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9641
9642 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9643 (grub_halt): Likewise.
9644 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9645
9646 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 * grub-core/term/serial.c (grub_serial_register)
9649 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9650 the behaviour in line with x86 platforms.
9651
9652 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9653
9654 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9655 (grub_ata_strncpy): Likewise.
9656 (grub_ata_identify): Add missing byteswaps.
9657
9658 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9661 byte-swap.
9662 (screen_read_char): Likewise.
9663 (grub_vga_text_cls): Likewise.
9664
9665 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9668 filenames.
9669 (make_file_path): Likewise.
9670
9671 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9674 machines.
9675 Tested by: Paulo Flabiano Smorigo.
9676 Crucial information about API supplied by: Coleen <Last name unknown>.
9677 Reviewed by: Coleen <Last name unknown>.
9678
9679 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9680
9681 * util/grub-mkimage.c: Disable -Wcast-align.
9682
9683 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9684
9685 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9686 as they are fatal.
9687
9688 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9689
9690 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9691
9692 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9693
9694 * util/grub-probe.c (escape_of_path): Fix double free.
9695
9696 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * grub-core/commands/videoinfo.c (hook): Show pitch.
9699
9700 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9703
9704 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9705
9706 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9707 (probe): Add ieee1275 to OFW devices.
9708
9709 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9712
9713 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 Handle IBM OFW path.
9716
9717 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9718 available.
9719 (of_path_of_scsi): Handle vdevice.
9720
9721 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9724 Allocate in multiples of 16 to avoid adding a few bytes free region the
9725 windows bugs upon.
9726
9727 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9728
9729 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9730 Allocate in multiples of 16 to avoid adding a few bytes free region the
9731 windows bugs upon.
9732 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9733
9734 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9737 resolutions.
9738 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9739 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9740
9741 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9742
9743 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9744
9745 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9746
9747 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9748 resulted in \\ at the end of the line.
9749
9750 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9751
9752 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9753 (grub_parser_cmdline_state): Likewise.
9754 (grub_parser_split_cmdline): Likewise.
9755
9756 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9759 /dev/root and /dev/dm-*.
9760
9761 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9764 fix partially stale display.
9765
9766 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9767
9768 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9769 substraction.
9770
9771 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9774 Fix MBR remapping workaround.
9775 (grub_util_biosdisk_read) [__linux__]: Likewise.
9776
9777 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9778
9779 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9780
9781 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 * configure.ac: Bump to beta6.
9784
9785 2012-05-31 Christer Weinigel <christer@weinigel.se>
9786
9787 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9788
9789 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9790
9791 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9792 (grub_cmd_linux): Likewise.
9793
9794 2012-05-31 Christer Weinigel <christer@weinigel.se>
9795
9796 Fix EHCI low-speed.
9797
9798 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9799 (GRUB_EHCI_MULT_TWO): Likewise.
9800 (GRUB_EHCI_MULT_THREE): Likewise.
9801 (GRUB_EHCI_CMASK_MASK): New enum value.
9802 (GRUB_EHCI_SMASK_MASK): Likewise.
9803 (GRUB_EHCI_CMASK_OFF): Likewise.
9804 (GRUB_EHCI_SMASK_OFF): Likewise.
9805 (grub_ehci_pci_iter): Enable periodic schedule.
9806 (grub_ehci_parse_notrun): Likewise.
9807 (grub_ehci_restore_hw): Likewise.
9808 (grub_ehci_setup_qh): Set flags for low speed transfers.
9809 (grub_ehci_find_qh): Use periodic list for low speed.
9810 (grub_ehci_setup_transfer): Check periodic queue as well.
9811 (grub_ehci_check_transfer): Likewise.
9812 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9813
9814 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9815
9816 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9817 parameter is used.
9818
9819 2012-05-31 Peter Jones <pjones@redhat.com>
9820
9821 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9822 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9823 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9824
9825 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9828 uninited variable. Allocate at least setup_sects.
9829
9830 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 Fix handling of EFI with big memory maps.
9833
9834 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9835 (real_mode_mem): Likewise.
9836 (real_mode_target): Likewise.
9837 (real_mode_pages): Likewise.
9838 (prot_mode_pages): Likewise.
9839 (linux_params): New var.
9840 (linux_cmdline): Likewise.
9841 (free_pages): Don't set real mode variables.
9842 (allocate_pages): Don't allocate real mode memory.
9843 (grub_e820_add_region): Remove the limit.
9844 (grub_linux_boot): Allocate and copy real mode memory.
9845 (grub_linux_unload): Free linux_cmdline.
9846 (grub_cmd_linux): Use temporary storage for parameters.
9847 (grub_cmd_initrd): Likewise.
9848 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9849 (linux_kernel_params): Make it 1K big.
9850
9851 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9852
9853 * Makefile.util.def: Remove -Wno-format.
9854 * grub-core/Makefile.core.def: Likewise.
9855
9856 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * tests/cmp_unit_test.c: Add missing failure message.
9859 * tests/example_unit_test.c: Likewise.
9860 * tests/printf_unit_test.c: Likewise.
9861
9862 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9865 relaxation of protective MBR requirements.
9866
9867 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 * configure.ac: Add condition for COND_HOST_XNU.
9870 * Makefile.util.def (10_xnu): New script.
9871 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9872
9873 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9876 objconv bug.
9877
9878 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9879
9880 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9881 Binary on other platforms stays identical.
9882
9883 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9884
9885 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9886 Apple.
9887
9888 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9891
9892 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9893
9894 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9895 rather than defining size_t ourselves to avoid conflict.
9896
9897 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9898
9899 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9900 initialisation to avoid __bzero reference.
9901
9902 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9905 version.
9906 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9907 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9908 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9909 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9910 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9911
9912 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9915 * grub-core/kern/misc.c: Likewise.
9916 * grub-core/loader/i386/xnu.c: Likewise.
9917 * include/grub/i386/tsc.h: Likewise.
9918 * include/grub/symbol.h: Likewise.
9919
9920 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9923 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9924 on older compiler.
9925
9926 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9929 Implement Apple flavour.
9930 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9931
9932 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9933
9934 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9935 (memmove) [__APPLE__]: Likewise.
9936 (memcpy) [__APPLE__]: Likewise.
9937 (memset) [__APPLE__]: Likewise.
9938 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9939 (memmove) [__APPLE__]: Likewise.
9940 (memcpy) [__APPLE__]: Likewise.
9941 (memset) [__APPLE__]: Likewise.
9942
9943 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9944
9945 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9946 dependency discard.
9947
9948 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * grub-core/normal/main.c (read_config_file): Provide config_file and
9951 config_directory.
9952 * util/grub.d/41_custom.in: Use config_directoy when available.
9953
9954 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9957 (grub_bfs_dir): Likewise.
9958
9959 2012-05-27 Peter Jones <pjones@redhat.com>
9960
9961 The old code gives arguments to a printf function which can't work
9962 correctly, and the compiler complains.
9963
9964 * grub-core/tests/example_functional_test.c (example_test): Add
9965 missing text.
9966 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9967 * include/grub/test.h (grub_test_assert_helper): New declaration.
9968 (grub_test_assert): Use grub_test_assert_helper.
9969
9970 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9973 (exfctest): ... this to avoid overlong filenames.
9974 All users updated.
9975
9976 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 Handle "." and ".." on squashfs.
9979
9980 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9981 Make inode numbers into stack.
9982 (grub_squash_read_symlink): Use stack.
9983 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9984 (make_root_node): Fill stack.
9985 (grub_squash_open): Use stack.
9986
9987 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9988
9989 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9990 freeing.
9991
9992 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9995 stderr on test calls.
9996
9997 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10000
10001 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10002
10003 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10004
10005 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10006
10007 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10008 "..".
10009
10010 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10011
10012 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10013 (grub_hfsplus_iterate_dir): Add "." and "..".
10014
10015 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10018 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10019
10020 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10021
10022 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10023 (find_path): Handle "." and "..".
10024
10025 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10026
10027 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10028 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10029 (grub_affs_iterate_dir): Handle hardlinks.
10030
10031 2012-05-26 Matthew Garrett <mjg@redhat.com>
10032
10033 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10034 (grub_efi_console_fini): Likewise.
10035 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10036 (grub_video_gop_fill_mode_info): Rename to ...
10037 (grub_video_gop_fill_real_mode_info): ... this.
10038 (grub_video_gop_fill_mode_info): New function.
10039 (grub_video_gop_setup): Setup double framebuffer.
10040 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10041 Free offscreen.
10042 (grub_video_gop_swap_buffers): Copy framebuffer.
10043 (grub_video_gop_fini): Free offscreen buffer.
10044 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10045 New enum.
10046 (grub_efi_gop_blt_pixel): New struct.
10047
10048 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10049
10050 * gentpl.py: Remove error disabling for objconv.
10051
10052 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10053
10054 * configure.ac: Remove -Wunitialized as it's not available on older
10055 compilers.
10056
10057 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 Fix extent overflow comparator.
10060
10061 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10062 (grub_hfsplus_read_block): Set type.
10063 (grub_hfsplus_cmp_extkey): Compare type.
10064
10065 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10066
10067 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10068
10069 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10072 than 0.
10073
10074 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10077 (dejavu_bold_14.pf2): New target.
10078
10079 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10080
10081 * configure.ac: Fix djvu font detection.
10082
10083 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10084
10085 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10086 ext* instead of ext2.
10087
10088 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10089
10090 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10091 name with \0.
10092
10093 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10094
10095 * docs/grub-dev.texi: Remove dot from .png.
10096
10097 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10098
10099 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10100 protective entry in any slot.
10101 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10102 if protective entry is found in any slot.
10103
10104 Protective entry in non-first slot make no sense but is a widespread
10105 brain damage.
10106
10107 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10110
10111 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10114 with old reiserfs.
10115 (grub_reiserfs_open): Don't free root.
10116
10117 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10120 after freeing for safety.
10121
10122 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10123
10124 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10125 Reported by: Jordan Uggla.
10126
10127 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10128
10129 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10130 actual implementation. Specifically, clarify that the grub menu will
10131 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10132 passed.
10133
10134 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10135
10136 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10137 of r0.
10138
10139 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10140
10141 Remove unjustified hard dependency of normal.mod on gfxterm.
10142
10143 * include/grub/term.h (grub_term_output): New member fullscreen.
10144 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10145 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10146 (grub_gfxterm): Set .fullscreen.
10147 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10148 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10149
10150 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10153 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10154 Mention case-insensitive AFFS, SFS and JFS.
10155
10156 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10159
10160 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10161
10162 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10163 a bad FS.
10164
10165 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10166
10167 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10168 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10169
10170 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10173 (grub_jfs_mount): Fill caseins.
10174 (grub_jfs_find_file): Respect caseins.
10175
10176 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10179 through UTF-16.
10180
10181 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10184 New argument origpath. All users updated.
10185
10186 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10187
10188 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10189 (read_attr): Ensure that we read start of possibly compressed block.
10190
10191 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10194 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10195 All users updated.
10196
10197 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10198
10199 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10200 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10201 (dejavu.pf2): Replace with ...
10202 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10203 this.
10204
10205 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 * util/grub.d/20_linux_xen.in: Add missing line.
10208
10209 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10212 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10213 (grub_utf16_to_utf8): Likewise.
10214
10215 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10216
10217 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10218 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10219 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10220 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10221 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10222 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10223
10224 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10225
10226 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10227 a bad FS.
10228
10229 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10232 (grub_udf_read_symlink): Handle read_string failure.
10233
10234 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10235
10236 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10237 comment.
10238
10239 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10240
10241 Fix handling of UDF symlinks.
10242
10243 * grub-core/fs/udf.c (read_string): New argument outbuf.
10244 All users updated.
10245 (grub_ufs_read_symlink): Rename to ...
10246 (grub_udf_read_symlink): ... this. All users updated.
10247 Handle symlinks with more than one component.
10248
10249 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10250
10251 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10252 symlinks. Replace leading colon with a slash.
10253
10254 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10255
10256 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10257 filename.
10258
10259 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10260
10261 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10262 match in inner node.
10263
10264 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10265
10266 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10267 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10268 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10269 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10270 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10271 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10272 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10273 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10274 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10275
10276 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10277
10278 Use grub-probe and not cmp to check that disk is empty.
10279
10280 * util/grub-install.in: Use grub-probe for zero-check.
10281 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10282 (probe): Handle PRINT_ZERO_CHECK.
10283 (argp_parser): Handle -t zero_check.
10284
10285 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10286
10287 Flush block cache on adding disk to device map.
10288
10289 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10290 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10291 adding.
10292 (read_device_map): Likewise.
10293 (open_device): Flush on opening.
10294
10295 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10296
10297 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10298 (handle_symlink): Fix off-by-one error.
10299 Canonicalize the target.
10300 (grub_cpio_dir): Canonicalize the name.
10301 Fix memory leak.
10302 Set directory.
10303 (grub_cpio_open): Canonicalize the name.
10304
10305 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10306
10307 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10308 handling.
10309
10310 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10313 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10314
10315 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10318 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10319 All users updated.
10320
10321 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10324 counterpart.
10325
10326 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10327
10328 Fix UFS1 big file support.
10329
10330 * grub-core/fs/ufs.c (INODE): Removed.
10331 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10332 64-bit.
10333 (INODE_MODE): Simplify.
10334 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10335 (grub_ufs_lookup_symlink): Don't use INODE.
10336
10337 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10338
10339 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10340
10341 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10342 (grub_minix_data): Replace log_block_size with block_size.
10343 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10344 (grub_minix_mount): Fill block_size.
10345
10346 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * configure.ac: Bump to beta5.
10349
10350 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10351
10352 Fix wrapped HFS+ handling.
10353
10354 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10355 blocks_start. All users updated.
10356 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10357 wrapping offset.
10358 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10359
10360 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10361
10362 Fix long symlinks on reiserfs.
10363
10364 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10365 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10366 (grub_reiserfs_iterate_dir): Save size for non-directories.
10367 (grub_reiserfs_open): Don't reread stat block as we already know the
10368 size.
10369 (grub_reiserfs_read): Split into...
10370 (grub_reiserfs_read_real): ... and ...
10371 (grub_reiserfs_read): ...this.
10372
10373 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 Fix non-indexed JFS.
10376
10377 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10378 (grub_jfs_data): New field namecomponentlen.
10379 (grub_jfs_mount): Fill namecomponentlen.
10380 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10381
10382 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10383
10384 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10385 * tests/grub_script_echo1.in: Add tests.
10386
10387 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10388
10389 * util/grub-install.in: Ignore empty devicetree directory.
10390
10391 2012-05-08 Bean <bean123ch@gmail.com>
10392
10393 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10394 All users updated.
10395 (free_rsm): Free header as well.
10396 (free_old_fragments): Fix memory leak.
10397 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10398 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10399 (destroy_pq): Likewise.
10400 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10401
10402 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10403
10404 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10405 resulting hash as a precaution.
10406
10407 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10410 '_' in variable names.
10411 * grub-core/net/net.c (grub_net_network_level_interface_register):
10412 Likewise.
10413
10414 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10415
10416 Fix AFFS with non-512B blocks.
10417
10418 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10419 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10420 (grub_affs_data): Replace blocksize with log_blocksize.
10421 (grub_affs_read_block): Fix non-512B blocks.
10422 (grub_affs_read_symlink): Likewise.
10423 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10424 (grub_affs_read): Fix non-512B blocks.
10425 (grub_affs_label): Likewise.
10426 (grub_affs_mtime): Likewise.
10427 (grub_affs_mount): Fix block detection routine.
10428
10429 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 Add filesystem mtime to AFFS.
10432
10433 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10434 (aftime2ctime): New function.
10435 (grub_affs_dir): Use aftime2ctime.
10436 (grub_affs_label): Fix return value.
10437 (grub_affs_mtime): New function.
10438 (grub_affs_fs): Add mtime.
10439
10440 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10443 UTF-8.
10444
10445 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10446
10447 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10448 UTF-8.
10449
10450 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10451
10452 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10453
10454 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10455
10456 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10457 flags.
10458 (FLAGS_CASE_SENSITIVE): New enum value.
10459 (cache_entry): New struct.
10460 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10461 cache_size and cache.
10462 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10463 Add log_blocksize and fshelp_flags.
10464 (grub_sfs_read_extent): Handle non-512 blocks.
10465 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10466 (grub_sfs_read_file): Handle non-512 blocks.
10467 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10468 fshelp_flags.
10469 (grub_sfs_read_symlink): Handle non-512 blocks.
10470 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10471 (grub_sfs_dir): Free cache.
10472 (grub_sfs_close): Likewise.
10473
10474 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10475
10476 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10477 filesystems.
10478
10479 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10480
10481 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10482
10483 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10484
10485 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10486
10487 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10490 (grub_sfs_read_extent): Likewise.
10491 (grub_sfs_read_block): Likewise.
10492 (grub_sfs_mount): Likewise.
10493 (grub_sfs_iterate_dir): Likewise.
10494 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10495 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10496
10497 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10498
10499 Fix errors on compressed NTFS with 512B clusters.
10500
10501 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10502 types.
10503 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10504 not 0.
10505 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10506 Relax check for inline extents.
10507 (ntfscomp): Return correct -1 on error and not 0.
10508
10509 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10510
10511 * util/grub-install.in: Fix handling of prefix containing spaces.
10512
10513 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10514
10515 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10516 (grub_squash_read_data): Fix offset byte-swapping.
10517
10518 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10521 per common usage and preffered in several parts of code.
10522 (grub_memcmp): Likewise.
10523 (grub_strncmp): Likewise.
10524 * include/grub/misc.h (grub_strcasecmp): Likewise.
10525 (grub_strncasecmp): Likewise.
10526 * Makefile.util.def (cmp_test): New test.
10527 (grub_script_strcmp): Likewise.
10528 * tests/cmp_unit_test.c: New file.
10529 * tests/grub_script_strcmp.in: Likewise.
10530 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10531
10532 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10533
10534 * include/grub/pci.h: Move enums into no-asm part.
10535
10536 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10539
10540 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10541
10542 * util/getroot.c (find_hurd_root_device): Try to make error message
10543 and comments to translators clearer.
10544
10545 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10546
10547 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10548
10549 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10552 btrfs.
10553
10554 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10555
10556 * docs/grub.cfg: Update.
10557
10558 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10559
10560 * docs/grub.texi (PXE): Remove not present variables.
10561
10562 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10563
10564 * grub-core/net/net.c (defserver_set_env): New function.
10565 (defserver_get_env): Likewise.
10566 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10567
10568 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10569
10570 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10571 entries.
10572
10573 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10574
10575 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10576 * grub-core/kern/emu/hostdisk.c: Likewise.
10577
10578 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10579
10580 Handle hurd userspace partitions.
10581
10582 * util/getroot.c (find_hurd_root_device): New function.
10583 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10584
10585 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10588 names.
10589 Reported by: Bastian Blank.
10590
10591 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10592
10593 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10594 crossing page boundary.
10595
10596 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 Fix B-tree search in BFS, especially in presence of non-ASCII
10599 characters.
10600
10601 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10602 (find_in_b_tree): Use standard bsearch + btree algorithm.
10603
10604 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10607 and so on.
10608
10609 2012-05-03 Matthew Garrett <mjg@redhat.com>
10610 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10611
10612 Suspend broadcom cards in order to stop their DMA.
10613
10614 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10615 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10616 (pci): Don't build on x86 EFI.
10617 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10618 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10619 New function.
10620 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10621 stop_broadcom if running on EFI.
10622 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10623 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10624 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10625 (grub_pci_find_capability): New proto.
10626
10627 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 * docs/grub.texi: Remove dot from the extension as it apparently
10630 doesn't work with some makeinfo versions.
10631
10632 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10633
10634 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10635 with GRUB expectance.
10636
10637 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10638
10639 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10640
10641 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10642
10643 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10644 zero after directory block since last entry may be not 0-terminated if
10645 it ends on block boundary. Use continue instead of if spanning whole
10646 loop.
10647
10648 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10649
10650 Support 4K sectors UDF inline files.
10651
10652 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10653 (grub_udf_extended_file_entry): Likewise.
10654 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10655 All users updated.
10656 (get_fshelp_size): New function.
10657 (grub_udf_read_icb): Read whole block.
10658 (grub_udf_iterate_dir): Likewise.
10659 (grub_udf_dir): Likewise.
10660 (grub_udf_open): Likewise.
10661
10662 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10663
10664 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10665
10666 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10669 inline symlinks in addition to workaround.
10670
10671 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10672
10673 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10674
10675 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10678
10679 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10682
10683 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10684
10685 Fix reiserfs big seek times.
10686
10687 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10688 exact. All users updated.
10689 (grub_reiserfs_read): Use nearest btree search for seeking.
10690 Fix return value on error.
10691
10692 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10695 entries.
10696 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10697 * docs/grub.texi: Update menuentry description.
10698
10699 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10700
10701 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10702 crash when embedding onto filesystem.
10703
10704 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10705
10706 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10707 name.
10708
10709 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10712
10713 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10716 commit.
10717
10718 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10719 2012-05-01 Bean <bean123ch@gmail.com>
10720
10721 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10722
10723 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10726 Special behaviour for len = 0 to read whole file isn't used anywhere and
10727 can cause buffer ovewrflows in several places.
10728
10729 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10730
10731 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10732
10733 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10734
10735 Handle RAIDZ on non-512B sectors.
10736
10737 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10738 max_children_ashift.
10739 (fill_vdev_info_real): Fill max_children_ashift.
10740 (read_device): Use max_children_ashift.
10741
10742 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10745
10746 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10749 disk names.
10750 * docs/grub.texi: Update device.map parts.
10751
10752 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 Don't scan into non-diskfilter devices having diskfilter names.
10755
10756 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10757 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10758 handling.
10759 (scan_disk_hook): New function.
10760
10761 2012-04-29 Bean <bean123ch@gmail.com>
10762
10763 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10764 allocation.
10765
10766 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10767
10768 * configure.ac: Detect starfield theme font path
10769 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10770
10771 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10774 geometry on serial consoles.
10775
10776 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10777
10778 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10779 because of network consoles.
10780
10781 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10782
10783 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10784 handling.
10785
10786 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10787
10788 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10789 falls on Q syndrom.
10790
10791 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10792
10793 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10794 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10795
10796 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10799 Allocate at lest 8192 for temporary buffer as required for lzo.
10800
10801 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10802
10803 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10804 to cluster_bits, since it's already added in.
10805 (grub_fat_read_data): Likewise.
10806
10807 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10810 as long as cluster size is multiple of 512 bytes.
10811
10812 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10813
10814 * util/grub-mkrescue.in: Fix locale directory.
10815
10816 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10817
10818 * grub-core/kern/emu/hostdisk.c (map): Make static.
10819
10820 2012-04-23 Bean <bean123ch@gmail.com>
10821
10822 * util/grub-fstest.c (fstest): Add missing break.
10823
10824 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10825
10826 Fix hurd build.
10827
10828 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10829 not define nr variable.
10830 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10831 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10832 grub_find_device): Do not define.
10833
10834 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10835
10836 Fix kfreebsd compile and behaviour.
10837
10838 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10839 format-security.
10840 * util/getroot.c: Fix wait.h include.
10841 (grub_guess_root_devices): Error if grub_find_device fails.
10842 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10843 (grub_util_get_dev_abstraction): Likewise.
10844 (grub_util_pull_device): Likewise.
10845 (grub_util_get_grub_dev): Likewise.
10846 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10847
10848 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10849
10850 Fix and unify wholedisk detection.
10851
10852 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10853 is_part. All users updated.
10854 (device_is_wholedisk): Removed.
10855 (grub_util_biosdisk_get_grub_dev): Use is_part.
10856
10857 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10858
10859 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10860 mode.
10861
10862 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * configure.ac: Bump to beta4.
10865
10866 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10869 --fs-uuid --set UUID syntax.
10870
10871 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10874 disunification.
10875
10876 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10877
10878 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10879
10880 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10881
10882 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10883
10884 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10885
10886 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10887
10888 2012-04-18 Bean <bean123ch@gmail.com>
10889
10890 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10891 place.
10892
10893 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10896 users updated.
10897 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10898 corresponding to GRUB partitions.
10899 (grub_util_biosdisk_write): Likewise.
10900
10901 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 Scan mdraid before LVM.
10904
10905 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10906 (grub_diskfilter_register_front): ... this.
10907 (grub_diskfilter_register_back): New function.
10908 All users of grub_diskfilter_register updated.
10909
10910 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10911
10912 * util/grub-install.in: Fix an automatic target detection bug.
10913
10914 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10915
10916 * util/grub-install.in: New option --efi-directory.
10917
10918 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10919
10920 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10921 boot services if we have no other choice.
10922
10923 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10926 document it.
10927 * tests/util/grub-shell.in: Update to --directory.
10928
10929 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10930
10931 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10932
10933 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10934
10935 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10936 (grub_minix_read_file): Likewise.
10937 (grub_minix_read_inode): Likewise.
10938 (grub_minix_find_file): Likewise.
10939 (grub_minix_dir): Likewise.
10940
10941 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10942
10943 * util/grub-setup.c (setup): Fix partition handling and blocklist
10944 check.
10945
10946 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10947
10948 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10949 redundant buggy overlap check.
10950
10951 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10952
10953 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10954 and grub-mknetdir.
10955
10956 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10957
10958 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10959 kh.loadflags on pre-2.00 kernels.
10960
10961 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10962
10963 Terminate UNDI and PXE before launching the payload to avoid problems
10964 with DMA.
10965
10966 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10967 (grub_loader_flags): ... this. All users updated.
10968 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10969 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10970 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10971 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10972 function.
10973 (grub_pxe_restore): Likewise.
10974 (fini_hnd): New var.
10975 (GRUB_MOD_INIT): Register shutdown hook.
10976 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10977 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10978 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10979 (grub_loader_set): Rename second argument to flags.
10980
10981 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10982
10983 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10984 written bytes.
10985 (grub_get_num_of_utf8_bytes): New function.
10986 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10987 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10988 executing it.
10989 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10990 (grub_ucs4_to_utf8): Change return type.
10991
10992 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10995 warning.
10996 * grub-core/fs/bfs.c (hop_level): Likewise.
10997 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10998
10999 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11000
11001 * grub-core/lib/adler32.c: Recode due to license unclearness.
11002
11003 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11004
11005 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11006 (test_header): Likewise.
11007
11008 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11009
11010 Fix --help formatting.
11011
11012 * util/grub-mkconfig_lib.in (print_option_help): New function.
11013 (grub_fmt): Likewise.
11014 * util/grub-install.in: Use print_option_help and grub_fmt.
11015 * util/grub-kbdcomp.in: Likewise.
11016 * util/grub-mkconfig.in: Likewise.
11017 * util/grub-mknetdir.in: Likewise.
11018 * util/grub-mkrescue.in: Likewise.
11019 * util/grub-mkstandalone.in: Likewise.
11020 * util/grub-reboot.in: Likewise.
11021 * util/grub-set-default.in: Likewise.
11022 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11023
11024 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11025
11026 * linguas.sh: Remove autogenerated *.po.
11027
11028 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11029
11030 * po/README: Move language fetcing to ...
11031 * linguas.sh: ... here.
11032 * po/README: Point to linguas.sh.
11033
11034 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11035
11036 * po/README: Exclude ko.po due to disclaimer problems.
11037
11038 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11039
11040 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11041 len = 0.
11042 (grub_gettext_translate_real): Handle 0th string.
11043 (grub_gettext_translate): Ensure that "" isn't translated.
11044
11045 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11046
11047 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11048 TRANSLATORS comment.
11049 (grub_diskfilter_print_partmap): Propagate changing of error into
11050 warning.
11051
11052 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11053
11054 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11055 to uint64_t to prevent overflow.
11056 (grub_diskfilter_lv): Increase start_extent and extent_count
11057 to uint64_t to prevent overflow.
11058
11059 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11060
11061 * configure.ac: Increase version.
11062
11063 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11066
11067 * po/Rules-translit: New file.
11068 * po/arabic.sed: Likewise.
11069 * po/cyrillic.sed: Likewise.
11070 * po/greek.sed: Likewise.
11071 * po/hebrew.sed: Likewise.
11072 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11073 * po/Makefile.in.in: Add extra_dist4.
11074
11075 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11078
11079 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11080 modify names. Introduce MODE_BIGENDIAN.
11081 * grub-core/fs/minix_be.c: New file.
11082 * grub-core/fs/minix2_be.c: Likewise
11083 * grub-core/fs/minix3_be.c: Likewise.
11084 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11085 minix3_be.
11086 * grub-core/Makefile.core.def (minix_be): New module.
11087 (minix2_be): Likewise.
11088 (minix3_be): Likewise.
11089
11090 2012-04-01 Felix <email@hamburg.de>
11091
11092 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11093 (devs): Add MBP 2011.
11094
11095 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11096
11097 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11098
11099 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11100
11101 * grub-core/normal/cmdline.c (print_completion): New field
11102 prompt_len.
11103 (grub_cmdline_get): Handle width properly.
11104
11105 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11106
11107 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11108
11109 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11110
11111 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11112 after 29th of February.
11113
11114 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11115
11116 Fix exfat endianness handling.
11117
11118 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11119 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11120 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11121 Byte-swap utf16 when necessary.
11122 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11123
11124 2012-03-31 Anton Blanchard <anton@samba.org>
11125 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11126
11127 Fix btrfs endianness handling.
11128
11129 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11130 (lower_bound): Make root uint64_t. Use root in le.
11131 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11132 (find_path): Fix template key init.
11133 (grub_btrfs_dir): Fix mtime byteswap.
11134 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11135
11136 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11137
11138 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11139 recursion_depth. Break infinite resursions. All users updated.
11140
11141 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11142
11143 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11144 after free.
11145 Reported by: Peter Jones.
11146
11147 2012-03-31 Anton Blanchard <anton@samba.org>
11148
11149 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11150 8 bit values.
11151
11152 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11153
11154 * util/grub-install.in: Fix nvram call for PreP.
11155
11156 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11157
11158 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11159 the error when some elements are missing into a warning.
11160
11161 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11164
11165 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11166
11167 * docs/grub.texi (Invoking grub-probe): New section.
11168 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11169
11170 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 Fix tab and wide character handling in editor and menu.
11173
11174 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11175 agglomerate control characters with combining marks.
11176 (bidi_line_wrap): Allow break on tab.
11177 (grub_unicode_get_comb_start): New function.
11178 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11179 and tab correctly.
11180 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11181 with a space.
11182 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11183 fixed_tab_size. All users updated.
11184 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11185 (grub_term_getcharwidth): Handle \t.
11186 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11187 and copy.
11188
11189 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11190
11191 Handle big-endian mdraid.
11192
11193 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11194 * grub-core/Makefile.core.def (mdraid09_be): New module.
11195 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11196 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11197 * grub-core/disk/mdraid_linux_be.c: New file.
11198
11199 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11200
11201 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11202
11203 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11204
11205 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11206 missing quotes which caused confusion among translators.
11207
11208 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11209
11210 * util/grub-mkconfig_lib.in: Fix typo.
11211
11212 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11213
11214 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11215 spaces.
11216 * tests/grub_script_leading_whitespace.in: New file.
11217 * Makefile.util.def (grub_script_leading_whitespace): New test.
11218
11219 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11220
11221 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11222 to work.
11223
11224 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11227 starts with control character.
11228
11229 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11232 overflow.
11233 (grub_gdb_outbuf): Likewise.
11234
11235 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11236
11237 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11238 zero terminator. Fixes a crash.
11239
11240 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11241
11242 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11243 beyond 4 GiB.
11244 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11245 images independently of preffered adderss field.
11246
11247 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11250 * grub-core/commands/regexp.c: Likewise.
11251 * grub-core/loader/i386/linux.c: Likewise.
11252 * grub-core/partmap/msdos.c: Likewise.
11253 * grub-core/script/execute.c: Likewise.
11254 * grub-core/term/gfxterm.c: Likewise.
11255
11256 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 Add variable parsing in $"..." and fix several mismatches with bash.
11259
11260 * Makefile.util.def (grub_script_gettext): New test.
11261 * grub-core/script/execute.c (parse_string): New function.
11262 (gettext_append): Likewise.
11263 (grub_script_arglist_to_argv): Use gettext_append.
11264 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11265 * tests/grub_script_gettext.in: New file.
11266
11267 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 Fix handling of leading spaces in scripts.
11270
11271 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11272 spaces.
11273 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11274 other than skipping \r. All users updated.
11275 * tests/grub_script_echo1.in: Add space-related tests.
11276 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11277
11278 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11279
11280 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11281
11282 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 * configure.ac: Bump up the version to beta2.
11285
11286 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11287
11288 Fix gettext reload bugs (e.g. inability to disable gettext
11289 once enabled).
11290
11291 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11292 main_context and secondary_context. All functions updated.
11293 (grub_gettext_translate): Rename to ...
11294 (grub_gettext_translate_real): ... this. Return NULL on failed
11295 translate.
11296 (grub_gettext_translate): Handle secondary context.
11297 (grub_gettext_delete_list): Close file and zero-out the context.
11298 (grub_mofile_open): Don't call grub_gettext_delete_list.
11299 Don't close file.
11300 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11301 if locale="" to avoid pointless error message.
11302 (grub_gettext_env_write_lang): Update lang even if load fails.
11303 Handle secondary context.
11304 (grub_gettext_reread_prefix): New function.
11305 (read_main): Likewise.
11306 (read_secondary): Likewise.
11307 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11308 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11309 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11310 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11311
11312 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11313
11314 * configure.ac: Decrease warning level to avoid spurious warnings and
11315 to be able to compile with GCC 4.2.
11316 * Makefile.util.def: Remove -Wno-error=logical-op.
11317
11318 2012-03-10 William Bittner <william.bittner@gmail.com>
11319
11320 * util/import_unicode.py: Add missing brackets around string for
11321 python 3 support.
11322
11323 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11324
11325 Fix efi chainloader on network root.
11326
11327 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11328 network devices.
11329 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11330 New function.
11331
11332 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11333
11334 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11335 unused show_text member.
11336 * docs/grub.texi: Document "text" property.
11337
11338 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11341 in dprintf.
11342
11343 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11344
11345 Fix IMSM handling on Fedora.
11346
11347 * util/getroot.c (grub_util_is_imsm): New function.
11348 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11349
11350 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11351
11352 * Makefile.am: Strip gold section.
11353 * conf/Makefile.common: Likewise.
11354 * gentpl.py: Likewise.
11355 * grub-core/Makefile.core.def: Likewise.
11356 * grub-core/genmod.sh.in: Likewise.
11357
11358 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11361 * util/grub.d/20_linux_xen.in: Likewise.
11362 Based on Debian patch.
11363
11364 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 * util/grub.d/10_linux.in: Fix syntax error resulting in
11367 Richard Laager's patch.
11368 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11369
11370 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11371
11372 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11373 dependencies.
11374
11375 2012-03-10 Richard Laager <rlaager@wiktel.com>
11376
11377 * util/grub.d/10_linux.in: Fix ZFS root passing.
11378
11379 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11380
11381 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11382 * grub-core/commands/xnu_uuid.c: Likewise.
11383 * grub-core/loader/efi/appleloader.c: Likewise.
11384 * grub-core/script/execute.c: Likewise.
11385 * grub-core/script/main.c: Likewise.
11386 * util/grub-mkfont.c: Likewise.
11387
11388 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11389
11390 * util/grub-mkfont.c (options): Use more appropriate "select" that
11391 "set" for face index.
11392
11393 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11394
11395 * util/grub-editenv.c (options): Gettextize command summaries.
11396
11397 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11400 "out of memory" error messagge.
11401
11402 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11403
11404 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11405 of diskfilter for diskfilter on diskfilter support.
11406
11407 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11408
11409 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11410
11411 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11412
11413 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11414 themes/starfield.
11415
11416 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11417
11418 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11419
11420 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11421
11422 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11423
11424 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11425
11426 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11427 of error message.
11428
11429 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11432
11433 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11436 message.
11437 * util/grub-install.in: Fix and gettextize error message.
11438
11439 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11440
11441 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11442 Gettextize.
11443 * util/grub-mount.c (options): Likewise.
11444
11445 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11448 gettextize.
11449 * grub-core/commands/search_wrap.c (options): Likewise.
11450
11451 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11452
11453 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11454
11455 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11456
11457 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11458 size calculation.
11459 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11460 none is known.
11461
11462 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11463
11464 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11465 "temporary" since it's used in identifier and is limited in space.
11466
11467 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * po/POTFILES.in: Regenerate. Include *.h since they contain
11470 translatable strings as well.
11471
11472 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11475 byte-swap on big-endian.
11476 Reported by: Lennart Sorensen
11477
11478 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11479
11480 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11481 (allocate_pages): Improve dprintf.
11482 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11483 code32_start. Fill code32_start and kernel_alignment in params.
11484 (grub_cmd_initrd): Use prot_init_space.
11485
11486 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11487
11488 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11489
11490 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 * util/grub-install.in: Add missing dot at the end of sentence.
11493
11494 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11497 * grub-core/commands/videotest.c: Likewise.
11498 * grub-core/loader/i386/linux.c: Likewise.
11499
11500 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11503 sentence.
11504 Reported by: Milo Casagrande.
11505
11506 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11507
11508 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11509 * grub-core/commands/gptsync.c: Likewise.
11510 * grub-core/commands/hashsum.c: Likewise.
11511 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11512 * grub-core/commands/legacycfg.c: Likewise.
11513 * grub-core/io/gzio.c: Likewise.
11514 * grub-core/net/net.c: Likewise.
11515 * grub-core/term/gfxterm.c: Likewise.
11516 * grub-core/term/terminfo.c: Likewise.
11517 * grub-core/tests/test_blockarg.c: Likewise.
11518 * grub-core/video/video.c: Likewise.
11519 * util/grub-install.in: Likewise.
11520 * util/grub-mkfont.c: Likewise.
11521
11522 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11523
11524 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11525
11526 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 * grub-core/commands/search_wrap.c (options): Fix a typo.
11529 Reported by: David Prévot.
11530
11531 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11532
11533 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11534 description.
11535
11536 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11537
11538 * util/grub-script-check.c (main): Fix a syntax error message which was
11539 unclear.
11540
11541 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11542
11543 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11544
11545 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11546
11547 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11548 messages.
11549
11550 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11553 without argument.
11554 * util/grub-mount.c (options): Likewise.
11555
11556 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11557
11558 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11559
11560 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 * grub-core/net/http.c: Add TRANSLATORS comments.
11563 * grub-core/normal/cmdline.c: Likewise.
11564 * grub-core/normal/misc.c: Likewise.
11565 * grub-core/partmap/msdos.c: Likewise.
11566 * grub-core/parttool/msdospart.c: Likewise.
11567 * grub-core/script/execute.c: Likewise.
11568 * grub-core/script/main.c: Likewise.
11569 * grub-core/term/terminfo.c: Likewise.
11570 * grub-core/video/bitmap.c: Likewise.
11571 * util/grub-install.in: Likewise.
11572 * util/grub-mkimage.c: Likewise.
11573 * util/grub-mklayout.c: Likewise.
11574 * util/grub-setup.c: Likewise.
11575
11576 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11579 with similar messages in grub-fstest.
11580
11581 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11582
11583 * util/grub-install.in: Unify "option requires an argument" message
11584 with similar messages in other files.
11585 * util/grub-mkconfig.in: Likewise.
11586
11587 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11588
11589 * util/grub-set-default.in: Replace printf with gettext_printf (the
11590 string in in question is already translated from grub-reboot)
11591
11592 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11593
11594 * configure.ac: Bump up the version to beta1.
11595
11596 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11597
11598 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11599 case when min_align = 0.
11600
11601 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11602
11603 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11604 and fix a case when line_start overflows.
11605
11606 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11607
11608 * util/grub-reboot.in (usage): Mention id posibility.
11609 * util/grub-set-default.in (usage): Likewise.
11610
11611 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11612
11613 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11614 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11615 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11616 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11617 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11618 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11619 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11620
11621 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11622
11623 * grub-core/commands/menuentry.c (options): Remove
11624 GRUB_ARG_OPTION_REPEATABLE.
11625 Reported by: Andreas Vogel
11626
11627 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11628
11629 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11630
11631 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11632
11633 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11634 error.
11635
11636 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11637
11638 Use sort -V by the idea of Georgi Georgiev.
11639
11640 * util/grub-mkconfig_lib.in (version_sort): New function.
11641 (version_test_numeric): Use version_sort.
11642
11643 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11644
11645 Use submenus in grub-mkconfig.
11646
11647 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11648 * util/grub-mkconfig_lib.in (grub_quote): New function.
11649 (gettext_printf): Use gettext and not gettext_quoted to fix several
11650 messages.
11651 * util/grub.d/10_hurd.in: Use submenus.
11652 * util/grub.d/10_kfreebsd.in: Likewise.
11653 * util/grub.d/10_linux.in: Likewise.
11654 * util/grub.d/10_netbsd.in: Likewise.
11655 * util/grub.d/20_linux_xen.in: Likewise.
11656 * util/grub.d/30_os-prober.in: Likewise.
11657 * util/grub.d/10_illumos.in: Add missing quoting.
11658 * util/grub.d/10_windows.in: Likewise.
11659
11660 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11661
11662 Fix menu title instability bug.
11663
11664 * grub-core/commands/menuentry.c (options): New option --id.
11665 (grub_normal_add_menu_entry): New argument id. All users updated.
11666 (grub_cmd_menuentry): Handle --id.
11667 (grub_menu_init): Accept unknown arguments.
11668 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11669 feature_menuentry_options.
11670 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11671 saved_entry.
11672 (get_entry_number): Match with id as well.
11673 * include/grub/menu.h (grub_menu_entry): New member id.
11674 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11675 * util/grub.d/00_header.in: Define menuentry_id_option.
11676 * util/grub.d/10_hurd.in: Define id.
11677 * util/grub.d/10_illumos.in: Likewise.
11678 * util/grub.d/10_kfreebsd.in: Likewise.
11679 * util/grub.d/10_linux.in: Likewise.
11680 * util/grub.d/10_netbsd.in: Likewise.
11681 * util/grub.d/10_windows.in: Likewise.
11682 * util/grub.d/20_linux_xen.in: Likewise.
11683 * util/grub.d/30_os-prober.in: Likewise.
11684
11685 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11686
11687 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11688 "scope" with "body".
11689
11690 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11693 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11694 prot_size and prot_file_size.
11695
11696 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11697
11698 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11699 All users updated. If easily=1 require raid-5/-6 to be full.
11700 (is_node_readable): Likewise.
11701 (scan_devices): Scan incomplete but readable LVs at the end.
11702 (grub_diskfilter_memberlist): Pull missing devices.
11703 (insert_array): Skip scanning until device is complete or scan is
11704 done otherwise.
11705 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11706 check.
11707 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11708 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11709
11710 2012-03-03 Matthew Garrett <mjg@redhat.com>
11711 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 Avoid EFI boot services when loading Linux.
11714
11715 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11716 avoid_efi_bootservices. All users updated.
11717 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11718 argument avoid_efi_bootservices. All users updated.
11719 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11720 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11721 align, min_align, relocatable, prefered_address. All users updated.
11722 Allocate avoiding boot services if kernel is relocatable.
11723 (grub_cmd_linux): Check if kernel is relocatable.
11724 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11725 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11726 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11727 avoid_efi_boot_services.
11728 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11729 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11730 (linux_kernel_params): Likewise.
11731
11732 2012-03-03 Matthew Garrett <mjg@redhat.com>
11733 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11734
11735 Use EDID on EFI.
11736
11737 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11738 datasize_out.
11739 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11740 modes. Set gop_handle.
11741 (grub_video_gop_get_edid): New function.
11742 (grub_gop_get_preferred_mode): Likewise.
11743 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11744 (grub_video_efi_gop_adapter): Set .get_edid.
11745 * include/grub/efi/edid.h: New file.
11746 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11747
11748 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11749
11750 * util/grub-install.in: Load efivars unconditionally.
11751
11752 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11753
11754 * po/Rules-piglatin: Change suffix from .po-update-en to
11755 .po-update-en-piglatin.
11756
11757 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11758
11759 Add a pig farm.
11760
11761 * po/piglatin.sed: New file.
11762 * po/en@piglatin.header: Likewise.
11763 * po/Rules-piglatin: Likewise.
11764 * po/README: Add en@piglatin to autogenerated languages.
11765
11766 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11769 "Command for ...".
11770 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11771 "Check" since we don't check anything.
11772 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11773 is 64-bit one.
11774 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11775 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11776 (grub_md_sha512_real): Likewise.
11777
11778 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11779
11780 * grub-core/commands/gptsync.c: Fix typographic quoting.
11781 * grub-core/commands/ieee1275/suspend.c: Likewise.
11782 * grub-core/commands/parttool.c: Likewise.
11783 * grub-core/commands/search_wrap.c: Likewise.
11784 * grub-core/commands/videoinfo.c: Likewise.
11785 * grub-core/gfxmenu/gui_label.c: Likewise.
11786 * grub-core/hello/hello.c: Likewise.
11787 * grub-core/kern/emu/main.c: Likewise.
11788 * grub-core/net/net.c: Likewise.
11789 * grub-core/normal/menu.c: Likewise.
11790 * grub-core/normal/menu_text.c: Likewise.
11791 * grub-core/normal/misc.c: Likewise.
11792 * util/grub-editenv.c: Likewise.
11793 * util/grub-install.in: Likewise.
11794 * util/grub-kbdcomp.in: Likewise.
11795 * util/grub-mkconfig.in: Likewise.
11796 * util/grub-mknetdir.in: Likewise.
11797 * util/grub-mkrescue.in: Likewise.
11798 * util/grub-mkstandalone.in: Likewise.
11799 * util/grub-reboot.in: Likewise.
11800 * util/grub-set-default.in: Likewise.
11801 * util/grub-setup.c: Likewise.
11802 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11803
11804 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11805
11806 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11807 * grub-core/commands/keystatus.c: Likewise.
11808 * grub-core/commands/loadenv.c: Likewise.
11809 * grub-core/commands/probe.c: Likewise.
11810 * grub-core/commands/regexp.c: Likewise.
11811 * grub-core/commands/true.c: Likewise.
11812 * grub-core/commands/videoinfo.c: Likewise.
11813 * grub-core/disk/cryptodisk.c: Likewise.
11814 * grub-core/disk/ldm.c: Likewise.
11815 * grub-core/disk/loopback.c: Likewise.
11816 * grub-core/disk/luks.c: Likewise.
11817 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11818 * grub-core/kern/disk.c: Likewise.
11819 * grub-core/kern/emu/hostdisk.c: Likewise.
11820
11821 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11822
11823 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11824 * util/grub-install.in: Add missing quote in the comment.
11825
11826 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11827
11828 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11829 * grub-core/commands/lsmmap.c: Likewise.
11830 * grub-core/commands/minicmd.c: Likewise.
11831 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11832 * grub-core/commands/regexp.c: Likewise.
11833 * grub-core/gdb/gdb.c: Likewise.
11834 * grub-core/term/gfxterm.c: Likewise.
11835 * util/grub-mkconfig.in: Likewise.
11836 * util/grub-mkfont.c: Likewise.
11837 * util/grub-mklayout.c: Likewise.
11838 * util/grub-mknetdir.in: Likewise.
11839 * util/grub-mkrescue.in: Likewise.
11840 * util/grub.d/30_os-prober.in: Likewise.
11841
11842 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11843
11844 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11845 with "Direct color" and "Packed" with "Packed pixel".
11846 (grub_cmd_videoinfo): Simplify legend.
11847
11848 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11849
11850 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11851 absolutely unclear error message.
11852
11853 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 * util/grub-mkstandalone.in: Remove confusing leftover print.
11856
11857 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11858
11859 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11860 comments.
11861 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11862 (GRUB_MOD_INIT): Likewise.
11863 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11864 VGA mode.
11865 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11866 comments.
11867 * util/grub-install.in (usage): Likewise.
11868 Spell ID in whole letters.
11869 Add missing ending dot.
11870 Quote variables.
11871 * util/grub-reboot.in: Fix capitalisation.
11872 * util/grub-set-default.in: Likewise.
11873
11874 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11875
11876 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11877 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11878 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11879 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11880 Disable -Werror for -Wdeprecated-declarations.
11881 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11882 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11883 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11884 (grub_util_get_grub_dev): Make luks handling dependent on
11885 HAVE_DEVICE_MAPPER and not __linux__.
11886 (get_win32_path): Fix format security.
11887 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11888 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11889 Don't try grub_find_zpool_from_dir.
11890 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11891 #ifdef-out paresdir.
11892
11893 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11894
11895 * util/grub-pe2elf.c (usage): Add missing noreturn.
11896 (write_section_data): Rename name to shname to avoid shadowing.
11897 (write_symbol_table): Rename name to symname to avoid shadowing.
11898 Fix write_reloc_section call.
11899
11900 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11901
11902 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11903 to ensure that it's after the last byte of .text.
11904
11905 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11906
11907 * util/ieee1275/ofpath.c (my_isdigit): New function.
11908 (trailing_digits): Use my_isdigit.
11909 (strip_trailing_digits): Likewise.
11910
11911 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11914 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11915
11916 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11917
11918 * grub-core/kern/i386/pc/startup.S: Define __start.
11919
11920 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11921
11922 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11923 strip already transforms he format.
11924
11925 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11926
11927 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11928
11929 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11930
11931 * util/grub-install.in: Add missing gettext init.
11932 * util/grub-kbdcomp.in: Likewise.
11933 * util/grub-mkconfig.in: Likewise.
11934 * util/grub-mknetdir.in: Likewise.
11935 * util/grub-mkrescue.in: Likewise.
11936 * util/grub-mkstandalone.in: Likewise.
11937 * util/grub-reboot.in: Likewise.
11938 * util/grub-set-default.in: Likewise.
11939 * util/grub.d/00_header.in: Likewise.
11940 * util/grub.d/10_hurd.in: Likewise.
11941 * util/grub.d/10_windows.in: Likewise.
11942 * util/grub.d/30_os-prober.in: Likewise.
11943 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11944
11945 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 * po/Rules-swiss: Fix header comment.
11948
11949 2012-02-29 Andreas Vogel <anvoit>
11950
11951 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11952 resulted in leak of arguments.
11953
11954 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11955
11956 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11957 reed_solomon_size const definition instead of computing it since
11958 Apple assembler doesn't support the later.
11959
11960 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 * gentpl.py (kernel): Rewrite Apple part.
11963
11964 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11965
11966 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11967
11968 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11969
11970 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11971 ELF section gap.
11972 (load_image): Likewise.
11973
11974 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11975
11976 * configure.ac: Fix a typo in previous commit.
11977
11978 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11979
11980 Don't add -Wl,-N on Apple platform.
11981
11982 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11983 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11984
11985 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11986
11987 * grub-core/Makefile.core.def (lzma_decompress): Use
11988 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11989
11990 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11991
11992 * grub-core/genmod.sh.in: Rewrite the Apple part.
11993
11994 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11995
11996 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11997 comparison.
11998
11999 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12000
12001 * acinclude.m4 (grub_CHECK_PIC): New test.
12002 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12003
12004 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12005
12006 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12007 to avoid the warning.
12008
12009 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12010
12011 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12012 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12013 after. All users updated.
12014
12015 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12016
12017 Use the common size routine in hostfs so we can read disks as well.
12018
12019 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12020 (grub_util_get_fd_size): ... this. Return size in bytes.
12021 All users updated.
12022 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12023 grub_util_get_fd_size.
12024
12025 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12028 Add blocksize retrieval.
12029
12030 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * configure.ac: Restore CFLAGS after efiemu check.
12033
12034 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12035
12036 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12037 Apple bug.
12038
12039 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12040
12041 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12042
12043 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12046 (grub_cmd_halt): Likewise.
12047
12048 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12049
12050 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12051 for local arithmetics.
12052 Break %sp init into 2 instructions.
12053 Add 0 byte at the end.
12054
12055 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12056
12057 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12058 before loops.
12059
12060 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12061
12062 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12063 for context.
12064
12065 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12066
12067 * grub-core/disk/ldm.c (make_vg): Init part.name.
12068 (grub_ldm_detect): Silence spurious warning.
12069 (grub_util_is_ldm): Likewise.
12070
12071 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12072
12073 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12074 sane value to avoid a spurious warning.
12075
12076 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12077
12078 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12079 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12080
12081 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12082
12083 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12084 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12085
12086 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12087
12088 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12089 hardcoding the relevant info.
12090
12091 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12094 missing const qualifiers.
12095 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12096
12097 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12098
12099 * util/getroot.c [__APPLE__]: Add missing includes.
12100 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12101
12102 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12103
12104 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12105
12106 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12107
12108 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12109 avoid conflicts.
12110
12111 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12112
12113 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12114
12115 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12116
12117 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12118 and grub_file_close call.
12119
12120 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12121
12122 Add LZSS Mach-O support (needed for new xnu kernelcache).
12123
12124 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12125 * grub-core/loader/lzss.c: New file.
12126 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12127 on Mach-O open failure.
12128 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12129 Don't free cmdsXX in uncompressedXX is set.
12130 (grub_macho_file): Init new fields.
12131 New argument is_64bit. All users updated.
12132 Handle compressed. Error out if no suitable architecture is found.
12133 Don't close file.
12134 (grub_macho_open): New argument is_64bit. All users updated.
12135 * grub-core/loader/macho32.c: Add defines for new fields.
12136 * grub-core/loader/macho64.c: Likewise.
12137 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12138 (grub_macho_parse): Handle compressed.
12139 Defer actual processing if compressed.
12140 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12141 "filename". All users updated.
12142 (grub_macho_size): New argument "filename". All users updated.
12143 (grub_macho_get_entry_point): Likewise.
12144 (grub_macho_load): Handle compressed.
12145 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12146 (GRUB_MACHO_LZSS_OFFSET): New define.
12147 (grub_decompress_lzss): New proto.
12148 * include/grub/machoload.h (grub_macho_file): New fields to handle
12149 compressed.
12150 (grub_macho_contains_macho64): Remove proto.
12151 (grub_macho_contains_macho32): Likewise.
12152 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12153
12154 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12155
12156 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12157
12158 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12159
12160 Fix make dist.
12161
12162 * Makefile.am (starfield_theme_files): New var.
12163 (starfield_DATA): Use starfield_theme_files.
12164 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12165 Add bootcheck-related files.
12166 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12167 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12168 and font_char_metrics.txt.
12169 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12170 (setjmp): Add lib/ia64/longjmp.S.
12171 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12172 * po/POTFILES.in: Regenerate.
12173 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12174 DISTFILES.common.extra1.
12175 * util/devicemap.c: Removed.
12176 * grub-core/lib/i386/relocator_backward.S: Likewise.
12177 * util/import_gcry.py: Remove unused files. Add extra_dist for
12178 ChangeLog.
12179
12180 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12181
12182 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12183 grub_gettext_delete_list before changing grub_gettext_max to avoid
12184 running out of array bounds.
12185
12186 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12187
12188 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12189 grub_vga_text_init/grub_vga_text_fini.
12190
12191 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12192
12193 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12194
12195 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * configure.ac: Bump to 2.00~beta0.
12198
12199 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12200
12201 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12202 missing initialisation.
12203
12204 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12205
12206 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12207
12208 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 Support v2 xnu boot arguments.
12211
12212 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12213 New argument fsbfreq_out.
12214 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12215 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12216 be used.
12217 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12218 darwin_version.
12219 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12220 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12221 (grub_xnu_boot_params): Rename to ...
12222 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12223 (grub_xnu_boot_params_v2): New struct.
12224
12225 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12226
12227 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12228 zeroing of CRC field before computing CRC.
12229
12230 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12231
12232 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12233 Change order of allocations to decrease fragmentation.
12234
12235 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12238
12239 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12240
12241 Use write-combining MTRR to speed up video with buggy BIOSes.
12242
12243 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12244 (cpuid): New define.
12245 (rdmsr): Likewise.
12246 (wrmsr): Likewise.
12247 (mtrr_base): Likewise.
12248 (mtrr_mask): Likewise.
12249 (grub_vbe_enable_mtrr_entry): New function.
12250 (grub_vbe_enable_mtrr): Likewise.
12251 (grub_vbe_disable_mtrr): Likewise.
12252 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12253 control off to BIOS.
12254 (grub_video_vbe_init): Fill mtrr.
12255 (grub_video_vbe_fini): Disable mtrr.
12256 (grub_video_vbe_get_info_and_fini): Likewise.
12257 (grub_video_vbe_setup): Enable mtrr.
12258
12259 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12260
12261 * include/grub/partition.h (grub_partition_map): Change prototype of
12262 embed to take a maximum value for nsectors.
12263 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12264 * include/grub/fs.h (grub_fs): Likewise.
12265 * grub-core/partmap/msdos.c (embed_signatures): New array.
12266 (pc_partition_map_embed): Check for and avoid sectors matching any
12267 of the signatures in embed_signatures, up to max_nsectors.
12268 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12269 returned sector map to max_nsectors.
12270 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12271 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12272 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12273 * util/grub-setup.c (setup): Allow for the embedding area being
12274 split into multiple blocklists. Tell dest_partmap->embed the
12275 maximum number of sectors we care about.
12276
12277 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12278
12279 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12280 Specify blocklist_install and reserver_first_sector for all fs.
12281 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12282 blocklists.
12283
12284 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 * util/grub-install.in: Clarify strings.
12287 Fix source dir check.
12288
12289 2012-02-27 Richard Laager <rlaager@wiktel.com>
12290
12291 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12292 "zfs" and "fuse.zfs" as synonyms.
12293
12294 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12295
12296 * configure.ac: Put platform and target_cpu substitutions back since
12297 they are used for directories.
12298
12299 2012-02-27 Richard Laager <rlaager@wiktel.com>
12300 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12303 * util/grub.d/20_linux_xen.in: Likewise.
12304
12305 2012-02-27 Richard Laager <rlaager@wiktel.com>
12306
12307 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12308 with full paths.
12309
12310 2012-02-27 Richard Laager <rlaager@wiktel.com>
12311
12312 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12313 unescape.
12314
12315 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12316
12317 Don't use insecure popen in getroot.
12318
12319 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12320 (exec_pipe): ... here.
12321 (find_root_devices_from_poolname): Use exec_pipe.
12322
12323 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12324
12325 Remove platform and target_cpu replacement.
12326
12327 * configure.ac: Remove platform and target_cpu substitutions.
12328 * tests/util/grub-shell.in: Use modinfo.
12329 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12330 explicitly.
12331
12332 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 Autodetect platform in grub-install but allow override.
12335
12336 * util/grub-install.in: Autodetect platform. Support --target and
12337 --directory. Read platform from modinfo.sh.
12338
12339 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12340
12341 Support btrfs multi-volume probe.
12342
12343 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12344 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12345 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12346 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12347 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12348 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12349 grub_find_root_devices_from_btrfs if on btrfs.
12350
12351 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12352
12353 Remove any awareness of *.c util files about target.
12354
12355 * Makefile.util.def (grub-setup): Split to ...
12356 (grub-bios-setup): ... and this.
12357 (grub-sparc64-setup): ... and this.
12358 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12359 * docs/man/grub-setup.h2m: Split into ...
12360 * docs/man/grub-sparc64-setup.h2m: ... this.
12361 * docs/man/grub-bios-setup.h2m: ... and this.
12362 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12363 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12364 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12365 (grub_target_addr_t): Remove.
12366 (grub_target_size_t): Remove.
12367 (grub_target_ssize_t): Remove.
12368 * util/grub-install.in: Use new grub-*-setup.
12369 * util/grub-mkimagexx.c (Elf_Word): New define.
12370 (Elf_Half): Likewise.
12371 (Elf_Section): Likewise.
12372 (ELF_ST_TYPE): Likewise.
12373 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12374 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12375
12376 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12377
12378 Replace grub_target_addr with more appropriate types.
12379
12380 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12381 grub_target_addr with grub_addr.
12382 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12383 grub_target_addr with grub_port.
12384 (grub_cmd_write): Likewise.
12385 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12386 grub_target_addr with grub_addr.
12387 (grub_cmd_write): Likewise.
12388 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12389
12390 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12391
12392 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12393 const qualifier for vendor_guid.
12394
12395 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12396
12397 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12398 const qualifier.
12399 (efiemu_memequal): Likewise.
12400 (find_variable): Likewise.
12401
12402 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12403
12404 Fix missing console prototype on qemu-mips.
12405
12406 * include/grub/mips/qemu_mips/console.h: New file.
12407
12408 2012-02-27 Matthew Garrett <mjg@redhat.com>
12409 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12410
12411 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12412 * include/grub/efi/efi.h: Likewise.
12413 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12414 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12415 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12416 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12417 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12418 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12419
12420 2012-02-27 Matthew Garrett <mjg@redhat.com>
12421
12422 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12423
12424 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12425
12426 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12427 error.
12428
12429 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12430
12431 * configure.ac: Remove inappropriate use of program_transform_name
12432 on grubdir and bootdir but allow explicit specification of those
12433 variables.
12434
12435 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 * util/grub-mknetdir.in (grub_prefix): Removed.
12438 (subdir): Use @bootdirname@ and @grubdirname@.
12439
12440 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12441
12442 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12443
12444 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12445
12446 * po/POTFILES.in: Regenerated.
12447
12448 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12449
12450 Remove improper use of program_transform_name on pkglibrootdir.
12451
12452 * configure.ac (pkglibrootdir): Removed.
12453 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12454 * util/grub-mkimage.c: Likewise.
12455
12456 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12457
12458 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12459 warning.
12460
12461 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 * util/grub-install.in: Use file identifier if no UUID is available
12464 or user explicitly prompted for it.
12465
12466 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12467
12468 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12469 (freebsd_get_zfs): New function.
12470 (grub_freebsd_boot): Pass zfs UUID.
12471 (grub_cmd_freebsd): Set zfs UUID.
12472
12473 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12474
12475 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12476 pkglibrootdir.
12477
12478 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12479
12480 Add configure flag to control libzfs integration.
12481
12482 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12483
12484 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12485
12486 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12487 device.
12488 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12489 small devices.
12490
12491 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12492
12493 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12494 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12495 be used on non-modules.
12496
12497 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12498 Rename to grub_boot_init.
12499 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12500 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12501 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12502 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12503 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12504 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12505 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12506 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12507 includes.
12508 (grub_machine_init): Remove empty inits.
12509 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12510 includes.
12511 (grub_machine_init): Remove empty inits.
12512 * grub-core/term/arc/console.c: Remove explicit proto.
12513 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12514 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12515 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12516 grub_at_keyboard_fini.
12517 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12518 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12519 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12520 grub_gfxterm_fini.
12521 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12522 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12523 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12524 grub_vgatext_fini.
12525 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12526 * grub-core/term/serial.c (GRUB_MOD_INIT)
12527 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12528 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12529 grub_serial_fini.
12530 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12531 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12532 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12533 grub_terminfo_fini.
12534 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12535 (GRUB_MOD_FINI): Likewise.
12536 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12537 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12538 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12539 grub_video_radeon_fuloong2e_fini.
12540 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12541 [LOONGSON]: Rename to grub_video_sis315pro_init.
12542 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12543 grub_video_sis315pro_fini.
12544 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12545 [LOONGSON]: Rename to grub_video_sm712_init.
12546 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12547 grub_video_sm712_fini.
12548 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12549 (grub_at_keyboard_fini): Likewise.
12550 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12551 Don't declare grub_{modname}_init.
12552 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12553 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12554 New proto.
12555 (grub_keylayouts_fini) [!EMU]: Likewise.
12556 * include/grub/serial.h (grub_serial_init) [!EMU]:
12557 New proto.
12558 (grub_serial_fini) [!EMU]: Likewise.
12559 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12560 New proto.
12561 (grub_terminfo_fini) [!EMU]: Likewise.
12562 * include/grub/video.h (grub_font_init) [!EMU]:
12563 New proto.
12564 (grub_font_fini) [!EMU]: Likewise.
12565 (grub_gfxterm_init) [!EMU]: Likewise.
12566 (grub_gfxterm_fini) [!EMU]: Likewise.
12567 (grub_video_sm712_init) [!EMU]: Likewise.
12568 (grub_video_sm712_fini) [!EMU]: Likewise.
12569 (grub_video_sis315pro_init) [!EMU]: Likewise.
12570 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12571 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12572 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12573
12574 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12575
12576 Make nand a prefix for nand devices.
12577
12578 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12579
12580 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12581
12582 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12583 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12584
12585 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12586
12587 * include/grub/env.h (grub_env_find): Remove prototype.
12588 * grub-core/kern/env.c (grub_env_find): Make static.
12589 (grub_env_set): Remove useless set.
12590
12591 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12592
12593 * grub-core/kern/i386/realmode.S: Remove useless align.
12594
12595 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * include/grub/dl.h (grub_dl_load_file): Don't export.
12598
12599 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12600
12601 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12602 grub_dprintf.
12603
12604 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12605
12606 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12607 grub_errors.
12608 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12609 not reloading whole superblock but only the part which is really needed.
12610 Remove useless grub_errors.
12611 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12612 grub_errors.
12613
12614 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12615
12616 Don't export grub_get_rtc.
12617
12618 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12619 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12620
12621 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12622
12623 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12624
12625 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12626
12627 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12628 argument since it can be deduced from diskfilter. All users updated.
12629
12630 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12631
12632 Remove prio_list.
12633
12634 * include/grub/list.h (grub_prio_list): Removed.
12635 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12636 GRUB_COMMAND_PRIO_MASK.
12637 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12638 GRUB_COMMAND_FLAG_ACTIVE.
12639 (grub_prio_list_insert): Removed.
12640 (grub_prio_list_remove): Likewise.
12641 (GRUB_AS_PRIO_LIST): Likewise.
12642 (GRUB_AS_PRIO_LIST_P): Likewise.
12643 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12644 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12645 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12646 * grub-core/kern/command.c (grub_register_command_prio): Inline
12647 the prio_list code.
12648 (grub_unregister_command): Likewise.
12649
12650 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12651
12652 Fix interrupt mixup from previous commit.
12653
12654 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12655 (grub_realidt): New var.
12656 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12657 Load idt.
12658 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12659 New declaration.
12660 (grub_relocator16_boot): Set grub_relocator16_idt.
12661 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12662 (LOCAL(realidt)): ... this.
12663 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12664 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12665 (grub_realidt): New variable.
12666
12667 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12668
12669 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12670 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12671 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12672 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12673 Gettextize.
12674 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12675 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12676 * po/POTFILES.in: Regenerate.
12677
12678 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12679
12680 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12681 errors.
12682
12683 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12684
12685 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12686 \0.
12687 (add_length): Likewise.
12688
12689 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12690 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12691
12692 GDB serial and backtrace support.
12693
12694 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12695 (prot_to_real): Likewise.
12696 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12697 * grub-core/Makefile.core.def (backtrace): New module.
12698 (gdb): Likewise.
12699 * grub-core/gdb/cstub.c: New file.
12700 * grub-core/gdb/gdb.c: Likewise.
12701 * grub-core/gdb/i386/idt.c: Likewise.
12702 * grub-core/gdb/i386/machdep.S: Likewise.
12703 * grub-core/gdb/i386/signal.c: Likewise.
12704 * grub-core/lib/i386/backtrace.c: Likewise.
12705 * grub-core/lib/backtrace.c: Likewise.
12706 * include/grub/backtrace.h: Likewise.
12707 * include/grub/gdb.h: Likewise.
12708 * include/grub/i386/gdb.h: Likewise.
12709
12710 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12713 New function.
12714 (add_length): Likewise.
12715 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12716 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12717 proto.
12718 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12719 __argp_get_display_len.
12720
12721 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12722
12723 $"..." support in scripts.
12724
12725 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12726 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12727 * grub-core/script/yylex.l: Likewise.
12728 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12729 value.
12730
12731 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12732
12733 * gentpl.py: Remove obsolete pkglib_DATA handling.
12734
12735 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12736
12737 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12738 mailing list.
12739
12740 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12741 * util/grub-kbdcomp.in: Likewise.
12742 * util/grub-mkconfig.in: Likewise.
12743 * util/grub-mkconfig_lib.in: Likewise.
12744 * util/grub-mknetdir.in: Likewise.
12745 * util/grub-mkrescue.in: Likewise.
12746 * util/grub-mkstandalone.in: Likewise.
12747 * util/grub-reboot.in: Likewise.
12748 * util/grub-set-default.in: Likewise.
12749 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12750
12751 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12752
12753 Remove GRUB_PREFIX.
12754
12755 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12756 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12757 used for backward compatibility.
12758
12759 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 Add new all_video module.
12762
12763 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12764 * grub-core/Makefile.core.def (all_video): New module.
12765 * grub-core/genmoddep.awk: Generate dependency of all_video from
12766 video.lst.
12767 * grub-core/lib/fake_module.c: New file.
12768 * grub-core/normal/main.c (features): Add feature_all_video_module.
12769 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12770 don't do explicit search again.
12771 insmod all_video in load_video if available.
12772
12773 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12774
12775 Another round of string clarification and adding TRANSLATORS comments.
12776
12777 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12778
12779 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12780
12781 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12782
12783 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12784 to grub_ssize_t.
12785 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12786 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12787
12788 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12789
12790 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12791 trailing newline implicitly. All users updated.
12792
12793 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12794
12795 Implement serial on IEEE1275 and EFI.
12796
12797 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12798 on emu. Mention arc and emu as the only platforms without serial
12799 support.
12800 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12801 ieee1275 platforms.
12802 * grub-core/term/efi/serial.c: New file.
12803 * grub-core/term/ieee1275/serial.c: Likewise.
12804 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12805 specification if no ns8250 driver is available.
12806 (grub_cmd_serial): Likewise.
12807 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12808 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12809 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12810 (grub_efi_parity_type_t): New type.
12811 (grub_efi_stop_bits_t): Likewise.
12812 (grub_efi_serial_io_interface): New struct.
12813 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12814 available for all interfaces.
12815 Add EFI and IEEE1275 fields.
12816 (grub_ofserial_init): New proto.
12817 (grub_efiserial_init): Likeiwse.
12818 * util/grub.d/00_header.in: Don't check for the presence of serial
12819 module.
12820
12821 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12822
12823 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12824 name as if it was an alias.
12825
12826 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12827
12828 * grub-core/commands/lsacpi.c (options): Fix typo.
12829
12830 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12831
12832 Convert grub-emu to argp.
12833
12834 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12835 emu.
12836 * util/argp_common.c: Rename to ...
12837 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12838 Add missing includes.
12839 * grub-core/kern/emu/main.c: Convert to argp.
12840 * po/POTFILES.in: Regenerate.
12841 * util/grub-install.in (usage): Make first letter lowcase in messages
12842 for uniformity.
12843 * util/grub-setup.c (options): Likewise.
12844
12845 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12846
12847 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12848 Put back accidently commented-out code.
12849
12850 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12851
12852 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12853 loop check using Brent algorithm.
12854 (grub_hfsplus_btree_search): Likewise.
12855
12856 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12857
12858 * util/grub-install.in: Fix usage of wrong device for PreP install.
12859
12860 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12861
12862 * conf/Makefile.common (CFLAGS_GNULIB): Add
12863 -Wno-unsafe-loop-optimizations.
12864 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12865 on tools.
12866 * grub-core/commands/legacycfg.c: Add pragma to skip
12867 -Wunsafe-loop-optimizations.
12868 (check_password_md5_real): Fix loop counter type.
12869 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12870 reading.
12871 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12872 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12873 loop condition.
12874 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12875 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12876 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12877 condition.
12878 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12879 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12880 avoid possible infinite loops.
12881 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12882 and -Wunsafe-loop-optimizations.
12883 * grub-core/script/yylex.l: Likewise.
12884 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12885 (print_glyphs): Avoid infinite loops.
12886 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12887
12888 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12889
12890 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12891 to avoid infinite loop.
12892 (disp_acpi_rsdt_table): Likewise.
12893
12894 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12895
12896 * grub-core/font/font.c (grub_font_load): Add support for default
12897 path for fonts ($prefix/fonts).
12898 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12899 for checking if string is a path.
12900 * grub-core/normal/main.c (features): Add feature_default_font_path.
12901 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12902 * util/grub.d/00_header.in: Use default directory if possible.
12903 * util/grub-install.in: Install unicode.pf2.
12904
12905 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12906
12907 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12908 * po/Rules-swiss: New file.
12909 * po/swiss.sed: Likewise.
12910
12911 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12912
12913 * grub-core/fs/btrfs.c (find_device): Fix typos.
12914 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12915 * util/grub-mkrelpath.c (argp_parser): Likewise.
12916 Reported by: Yuri Chornoivan.
12917
12918 2012-02-23 Dalet Omega <daletomega@gmail.com>
12919
12920 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12921 for usual informative messages.
12922
12923 2012-02-23 Dalet Omega <daletomega@gmail.com>
12924
12925 Starfield theme.
12926
12927 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12928 * conf/Makefile.common: Define starfielddir.
12929 * configure.ac: Configure starfield.
12930 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12931 * themes/starfield/README: Likewise.
12932 * themes/starfield/blob_w.png: Likewise.
12933 * themes/starfield/boot_menu_c.png: Likewise.
12934 * themes/starfield/boot_menu_e.png: Likewise.
12935 * themes/starfield/boot_menu_n.png: Likewise.
12936 * themes/starfield/boot_menu_ne.png: Likewise.
12937 * themes/starfield/boot_menu_nw.png: Likewise.
12938 * themes/starfield/boot_menu_s.png: Likewise.
12939 * themes/starfield/boot_menu_se.png: Likewise.
12940 * themes/starfield/boot_menu_sw.png: Likewise.
12941 * themes/starfield/boot_menu_w.png: Likewise.
12942 * themes/starfield/slider_c.png: Likewise.
12943 * themes/starfield/slider_n.png: Likewise.
12944 * themes/starfield/slider_s.png: Likewise.
12945 * themes/starfield/src/blob_nw.xcf: Likewise.
12946 * themes/starfield/src/bootmenu/: Likewise.
12947 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12948 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12949 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12950 * themes/starfield/src/slider_c.xcf: Likewise.
12951 * themes/starfield/src/slider_n.xcf: Likewise.
12952 * themes/starfield/src/slider_s.xcf: Likewise.
12953 * themes/starfield/src/terminalbox/: Likewise.
12954 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12955 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12956 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12957 * themes/starfield/starfield.png: Likewise.
12958 * themes/starfield/terminal_box_c.png: Likewise.
12959 * themes/starfield/terminal_box_e.png: Likewise.
12960 * themes/starfield/terminal_box_n.png: Likewise.
12961 * themes/starfield/terminal_box_ne.png: Likewise.
12962 * themes/starfield/terminal_box_nw.png: Likewise.
12963 * themes/starfield/terminal_box_s.png: Likewise.
12964 * themes/starfield/terminal_box_se.png: Likewise.
12965 * themes/starfield/terminal_box_sw.png: Likewise.
12966 * themes/starfield/terminal_box_w.png: Likewise.
12967 * themes/starfield/theme.txt: Likewise.
12968
12969 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * util/grub.d/00_header.in: Add missing export theme.
12972
12973 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12974
12975 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12976 already included.
12977 Reported by: Eren D.
12978
12979 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * conf/Makefile.common (grubdatadir): Removed.
12982 (Makefile.am): Move eveything grubdata to pkgdata.
12983
12984 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * grub-core/commands/acpihalt.c (get_sleep_type):
12987 Remove unused variable.
12988
12989 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12990
12991 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12992 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12993 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12994 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12995 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12996 i18n with gettext no-op.
12997 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12998 GRUB_ACPI_OPCODE_STRING_CONST.
12999 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13000 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13001
13002 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 * po/POTFILES.in: Regenerate.
13005
13006 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13007
13008 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13009 -Wno-error=missing-noreturn.
13010
13011 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13012
13013 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13014 condition to avoid possibly infinite loops.
13015 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13016 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13017
13018 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13019
13020 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13021 condition to avoid possibly infinite loops.
13022
13023 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13024
13025 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13026 on show_error.
13027
13028 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13029
13030 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13031
13032 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13033
13034 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13035
13036 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13037
13038 * util/bin2h.c (usage): Add missing attribute noreturn.
13039
13040 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13043 if the size isn't divisible by 512.
13044
13045 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 Make list_push and list_remove functions rather than inline functions
13048 to decrease size and avoid aliasing violations.
13049
13050 * include/grub/list.h (grub_list_push): Move to ...
13051 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13052 * include/grub/list.h (grub_list_remove): Move to ...
13053 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13054
13055 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13056
13057 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13058 and -Wunused-result.
13059
13060 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13061
13062 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13063 Reported by: Seth Goldberg
13064
13065 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13066
13067 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13068
13069 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13070
13071 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13072 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13073 command line.
13074 * docs/grub.texi (Simple configuration): Document
13075 GRUB_CMDLINE_GNUMACH.
13076
13077 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 * conf/Makefile.common (platform_SCRIPTS): New variable.
13080 (platform_PROGRAMS): Likewise.
13081 * gentpl.py: Mark *,module and *.image for install.
13082 * grub-core/gdb_grub.in: Add a notice of expected environment.
13083 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13084 (gmodule.pl): Likewise.
13085
13086 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13087
13088 Replace grub_checkkey with grub_getkey_noblock.
13089
13090 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13091 (grub_getkey_noblock): ... this. All users updated.
13092
13093 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13094
13095 * grub-core/kern/emu/console.c: Move to ...
13096 * grub-core/term/emu/console.c: ...here.
13097 (grub_ncurses_getkey): Fix return value if no key is detected.
13098
13099 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13102 (grub_unit_test_fini): Likewise.
13103 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13104
13105 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13106
13107 * include/grub/test.h (GRUB_UNIT_TEST)
13108
13109 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13110
13111 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13112 Better error handling.
13113 (grub_script_return): Likewise.
13114 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13115
13116 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13117
13118 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13119 rimplicit redifinition.
13120
13121 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13122
13123 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13124 GRUB.
13125
13126 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13127
13128 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13129 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13130 prompt here.
13131
13132 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13133
13134 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13135 as GRUB_ERR_BUG. Don't malloc if no device is available.
13136
13137 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13138
13139 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13140 Mark calling with invalid term as GRUB_ERR_BUG.
13141
13142 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13143
13144 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13145 packets rather than raising an error.
13146
13147 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13148
13149 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13150 in if.
13151
13152 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13155 diagnostic to dprintf.
13156 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13157
13158 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13161 device name.
13162
13163 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13166 (grub_ntfs_iterate_dir): Likewise.
13167
13168 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13169
13170 Efiemu stylistic fixes and gettext.
13171
13172 * grub-core/efiemu/i386/loadcore32.c
13173 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13174 * grub-core/efiemu/i386/loadcore64.c
13175 (grub_arch_efiemu_relocate_symbols64): Likewise.
13176 * grub-core/efiemu/i386/pc/cfgtables.c
13177 (grub_machine_efiemu_init_tables): Likewise.
13178 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13179 (grub_efiemu_loadcore_initXX): Add a filename argument.
13180 All users updated.
13181 Improved error message.
13182 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13183 Add a filename argument.
13184 All users updated.
13185 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13186 Reclassify double relocation as GRUB_ERR_BUG.
13187
13188 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13189
13190 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13191 handling.
13192
13193 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13194
13195 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13196 on partition.
13197
13198 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13199
13200 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13201
13202 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 Improve string. Gettextize.
13205
13206 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13209 utils.
13210 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13211
13212 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13213
13214 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13215 [GRUB_UTIL]: New function.
13216 (insert_array) [GRUB_UTIL]: Store partmaps.
13217 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13218 partmaps.
13219 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13220 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13221 (probe_abstraction): Print diskfilter and not raid.
13222 Reported by: Lennart Sorensen
13223
13224 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13225
13226 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13227 * util/grub-mkimagexx.c (MASK3): New define.
13228 (add_value_to_slot_20b): Use MASK3.
13229 (add_value_to_slot_21): Likewise.
13230 (relocate_addresses): Fix format specification.
13231 (load_image): Explicitly init symtab_section.
13232
13233 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13234
13235 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13236 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13237
13238 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13239
13240 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13241 on powerpc.
13242 Reported by: Lennart Sorensen
13243
13244 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13245
13246 * gentpl.py: Add missing license header.
13247 * docs/grub.texi: Update copyright year.
13248
13249 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13250
13251 Source grub-mkconfig_lib from the build directory at build time.
13252 Suggested by: Vladimir Serbinenko.
13253
13254 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13255 * util/grub-install.in: Define pkgdatadir if not already set, and source
13256 grub-mkconfig_lib from there.
13257 * util/grub-kbdcomp.in: Likewise.
13258 * util/grub-mkconfig.in: Likewise.
13259 * util/grub-mknetdir.in: Likewise.
13260 * util/grub-mkrescue.in: Likewise.
13261 * util/grub-mkstandalone.in: Likewise.
13262 * util/grub-reboot.in: Likewise.
13263 * util/grub-set-default.in: Likewise.
13264 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13265
13266 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 Increase warning level.
13269
13270 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13271 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13272 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13273 (TARGET_CFLAGS): Likewise.
13274 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13275 * grub-core/Makefile.core.def (decompressor_xz): Add
13276 -Wno-unreachable-code.
13277 (normal): Add -Wno-redundant-decls.
13278 (xzio): Add -Wno-unreachable-code.
13279 (lzopio): Add -Wno-redundant-decls -Wno-error.
13280 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13281 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13282 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13283 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13284 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13285 * grub-core/kern/i386/coreboot/init.c: Add exception to
13286 -Wsuggest-attribute=noreturn.
13287 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13288 * grub-core/kern/ia64/dl_helper.c: Likewise.
13289 * grub-core/kern/mips/dl.c: Likewise.
13290 * grub-core/kern/sparc64/dl.c: Likewise.
13291 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13292 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13293 (memcmp): Likewise.
13294 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13295 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13296 * grub-core/loader/mips/linux.c: Likewise.
13297 * grub-core/loader/multiboot_elfxx.c: Likewise.
13298 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13299 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13300 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13301 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13302 fixme.
13303 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13304 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13305 Fix prototype.
13306
13307 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13308
13309 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13310 address.
13311
13312 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13313
13314 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13315 Avoid improper use of strings.
13316 (grub_cmd_legacy_initrdnounzip): Likewise.
13317
13318 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13319
13320 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13321 attribute.
13322 (grub_util_info): Likewise.
13323 (grub_util_error): Likewise.
13324
13325 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13326
13327 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13328 * util/grub-fstest.c (fstest): Likewise.
13329
13330 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13331
13332 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13333 (grub_md_sha512_real): Likewise.
13334 (grub_util_get_geli_uuid): Likewise.
13335 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13336 (grub_util_biosdisk_open): Fix format specification.
13337 Respect format security.
13338 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13339 (xrealloc): Likewise.
13340 (xasprintf): Likewise.
13341
13342 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13343
13344 * util/import_gcry.py: Include grub/crypto.h in init.c.
13345
13346 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13349 (generate_image): Make prefix a const char *.
13350 Fix format specifications. Respect format security.
13351 Avoid void * arithmetics.
13352 Avoid shadowing.
13353 (argp_parser): Remove unused variable. Respect format security.
13354 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13355 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13356 (count_funcs): Remove unused variable.
13357 (relocate_addresses): Fix format specification.
13358 Disable x86-64 with elf32. Remove unused variables.
13359 (add_fixup_entry): Avoid shadowing.
13360 (make_reloc_section): Fix format specification.
13361 Use assert.
13362 (locate_sections): Fix format specifications.
13363 (load_image): Avoid shadowing.
13364
13365 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13366
13367 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13368 Fix format specifications. Respect format security.
13369 Don't translate already translated grub_errmsg.
13370 (argp_parser): Remove unused variable
13371
13372 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13375
13376 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13377
13378 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13379 (main): Likewise. Use xmalloc. Respect format security.
13380
13381 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13382
13383 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13384 a const char *.
13385 (argp_parser): Remove unused variable.
13386
13387 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13390 (add_pixel): Make static.
13391 (add_font): Likewise.
13392 (write_string_section): Make name and str a const char *.
13393 (write_be16_section): Make name a const char *.
13394 (print_glyphs): Make static.
13395 (write_font_ascii_bitmap): Likewise.
13396 (write_font_width_spec): Likewise.
13397 (write_font_pf2): Likewise.
13398 (argp_parser): Remove unused variable.
13399 Respect format security.
13400 (main): Avoid shadowing. Respect format security.
13401
13402 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13403
13404 * util/grub-editenv.c (argp_parser): Make static.
13405 (create_envblk_file): Use xmalloc.
13406 (open_envblk_file): Likewise.
13407 Resepect format security.
13408 (set_variables): Respect format security.
13409
13410 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13411
13412 * util/getroot.c (grub_find_device): Respect format security.
13413 (get_mdadm_uuid): Remove unused variable.
13414 (grub_util_pull_device): Dont call gettext on already translated
13415 grub_errmsg.
13416 (find_system_device): Remove unused variable.
13417 (grub_util_get_grub_dev): Likewise.
13418 (grub_make_system_path_relative_to_its_root): Respect format security.
13419
13420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13421
13422 * util/grub-fstest.c (execute_command): Make first argument
13423 a const char *.
13424 (read_file): Avoid shadowing.
13425 Reuse underlying error message if device open fails.
13426 (cmd_cmp): Respect format security.
13427 (root): Make const char *.
13428 (fstest): Remove args argument and use global copy.
13429 Respect format security.
13430 (argp_parser): Make static.
13431 (main): Make default_root const char *.
13432
13433 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * util/grub-mount.c (root): Make const char *.
13436 (execute_command): Make first argument a const char *.
13437 (fuse_init): Respect format security.
13438 (argp_parser): Make static. Remove unused variable.
13439 (main): Make default_root a const char *.
13440 Respect format security.
13441
13442 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13443
13444 * util/grub-probe.c (probe): Don't call gettext on already translated
13445 grub_errmsg.
13446 Remove unused variables.
13447 (argp_parser): Remove unused variable.
13448
13449 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13450
13451 * util/grub-script-check.c (argp_parser): Remove unused variable.
13452 (main): Rename read to curread to avoid shadowing.
13453
13454 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 * util/misc.c (grub_util_write_image_at): Fix format specification.
13457 (grub_util_write_image): Likewise.
13458 (grub_script_execute_argument_to_string): Removed (unused).
13459 (grub_script_execute_menuentry): Likewise.
13460 (grub_putchar): Likewise.
13461
13462 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13463
13464 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13465 (FUNCTION) [GRUB_UTIL]: Likewise.
13466 (VARIABLE) [GRUB_UTIL]: Likewise.
13467
13468 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13469
13470 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13471 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13472
13473 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13474
13475 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13476 buffer.
13477
13478 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13479
13480 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13481 (LzmaEnc_SaveState): Removed (unused).
13482 (LzmaEnc_RestoreState): Likewise.
13483 (LzmaEnc_InitPriceTables): Made static.
13484 (LzmaEnc_Construct): Likewise.
13485 (LzmaEnc_FreeLits): Likewise.
13486 (LzmaEnc_Destruct): Likewise.
13487 (LzmaEnc_Init): Likewise.
13488 (LzmaEnc_InitPrices): Likewise.
13489 (LzmaEnc_Finish): Likewise.
13490 (LzmaEnc_PrepareForLzma2): Removed (unused).
13491 (LzmaEnc_MemPrepare): Likewise.
13492 (LzmaEnc_GetNumAvailableBytes): Likewise.
13493 (LzmaEnc_GetCurBuf): Likewise.
13494 (LzmaEnc_CodeOneMemBlock): Likewise.
13495
13496 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13497
13498 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13499 (grub_util_ldm_embed): Likewise.
13500
13501 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * util/grub-editenv.c (print_var): Rename name to varname to
13504 avoid shadowing.
13505 (main): Rename index to curindex to avoid shadowing.
13506 Make filename a const char *.
13507
13508 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13511 to arg_getline to avoid shadowing.
13512
13513 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13516 disk_ to avoid shadowing.
13517
13518 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13519
13520 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13521 curindex to avoid shadowing.
13522 Make static.
13523 (MatchFinder_GetNumAvailableBytes): Make static.
13524
13525 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13528 avoid shadowing.
13529
13530 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13531
13532 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13533 argument from encrypt to do_encrypt to avoid shadowing.
13534
13535 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13536
13537 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13538 incorrect nesting of #if's.
13539
13540 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13541
13542 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13543 checks which are always false on some platforms.
13544 (grub_cmd_lsacpi): Likewise.
13545 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13546 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13547 Likewise.
13548
13549 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13550
13551 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13552 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13553
13554 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13555
13556 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13557 re_dfa_t to avoid breaking alignment invariants.
13558 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13559 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13560
13561 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13562
13563 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13564 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13565
13566 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13567
13568 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13569 Fix declaration.
13570
13571 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13572
13573 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13574 conserve alignment invariants.
13575 (grub_ehci_ehcc_read16): Likewise.
13576 (grub_ehci_oper_read32): Likewise.
13577 (grub_ehci_oper_write32): Likewise.
13578 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13579 Conserve alignment invariants.
13580
13581 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13582
13583 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13584 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13585 declarations.
13586
13587 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13588
13589 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13590 Remove unused variable.
13591
13592 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13593
13594 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13595 Remove set in if.
13596
13597 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13598
13599 * include/grub/net.h: Remove double declarations.
13600
13601 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13602
13603 Remove "payload" command in ia64 Linux loader since I couldn't
13604 find any evidence of it being used for anything.
13605 Replace "relocate" command with an environment variable
13606
13607 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13608 fields.
13609 (ia64_boot_payload): Removed.
13610 (last_payload): Likewise.
13611 (RELOCATE_OFF): Likewise.
13612 (RELOCATE_ON): Likewise.
13613 (RELOCATE_FORCE): Likewise.
13614 (relocate): Likewise.
13615 (free_pages): Don't free payloads.
13616 (grub_load_elf64): Use common error messages.
13617 Use "linux_relocate" variable.
13618 Increase the space after boot_params.
13619 (grub_cmd_payload): Removed.
13620 (grub_cmd_relocate): Likewise.
13621 (grub_cmd_fpswa): Improve messages.
13622 (cmd_payload): Removed.
13623 (cmd_relocate): Likewise.
13624 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13625 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13626
13627 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13628
13629 Convert UHCI to DMA framework.
13630
13631 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13632 (grub_uhci_pci_iter): Fill new members
13633 (grub_alloc_td): Use P2V and V2P functions.
13634 (grub_free_queue): Likewise.
13635 (grub_alloc_qh): Likewise.
13636 (grub_uhci_setup_transfer): Likewise.
13637 (grub_uhci_check_transfer): Likewise.
13638
13639 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13640
13641 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13642 Remove assignment in if while on it.
13643
13644 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13645
13646 * util/grub-mkstandalone.in: Fix modules directory.
13647
13648 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13649
13650 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13651 on i386-pc target.
13652 (argp_parser): Accept "auto" as compression specification.
13653
13654 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 Fix `help' with unloaded modules.
13657
13658 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13659 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13660 (grub_dyncmd_dispatcher): Small stylistic fix.
13661 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13662 explicit help is requested.
13663
13664 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13665
13666 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13667 Explicitly init restart while on it.
13668
13669 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13670
13671 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13672 uninited variable.
13673
13674 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13675
13676 * util/grub-mknetdir.in: Use . rather than source for POSIX
13677 compatibility.
13678
13679 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13680
13681 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13682
13683 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13684
13685 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13686 variable.
13687
13688 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13689
13690 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13691 without quotes.
13692
13693 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13694
13695 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13696
13697 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13700 iteration of partitions.
13701
13702 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 Improve gettext support. Stylistic fixes and error handling fixes while
13705 on it.
13706
13707 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13708
13709 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13710 part. Instead setup the correct stack in RM.
13711 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13712 for stack.
13713 * include/grub/i386/relocator_private.h: New file.
13714
13715 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13716
13717 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13718 argument.
13719 * util/grub-fstest.c (options): Add missing DEVICE part.
13720
13721 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 Clarify and unify messages.
13724
13725 * grub-core/commands/hashsum.c (options): Unify messages.
13726 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13727 literal-only message as translatable.
13728 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13729 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13730 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13731 commands.
13732 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13733 key, not the key used to unlock. Clarify what it's used for.
13734 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13735 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13736 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13737 * util/grub-editenv.c (options): Unify "verbose" message.
13738 * util/grub-fstest.c (read_file): Unify error message.
13739 (fstest): Add quotes around commands.
13740 (options): Unify "verbose" message.
13741 * util/grub-install.in: Add quotes around variable name.
13742 * util/grub-kbdcomp.in: Unify error message.
13743 * util/grub-mkfont.c (main): Likewise.
13744 * util/grub-mkrescue.in: Likewise.
13745 * util/grub-mklayout.c (options): Unify "verbose" message.
13746 * util/grub-mkstandalone.in: Unify help and verbose messages.
13747 * util/grub-mount.c (options): Unify "verbose" message.
13748 * util/grub-probe.c (options): Likewise.
13749 * util/grub-script-check.c (options): Likewise.
13750 * util/grub-setup.c (setup): Unify no-terminator message.
13751 (options): Use DEVICE and not DEV.
13752 Unify "verbose" message.
13753 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13754
13755 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13756
13757 Improve and unify messages.
13758
13759 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13760 name. All users updated.
13761 Print filename in error.
13762 (read_device_map): Print filename in error.
13763 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13764 (grub_util_get_os_disk): Likewise.
13765 (grub_util_biosdisk_get_grub_dev): Likewise.
13766 (grub_util_check_block_device): Likewise.
13767 (grub_util_check_char_device): Likewise.
13768 (grub_make_system_path_relative_to_its_root): Likewise.
13769 * util/grub-editenv.c (create_envblk_file): Likewise.
13770 (open_envblk_file): Likewise.
13771 (write_envblk): Likewise.
13772 * util/grub-fstest.c (cmd_cp): Likewise.
13773 (cmd_cat): Likewise.
13774 (cmd_cmp): Likewise.
13775 * util/grub-menulst2cfg.c (main): Likewise.
13776 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13777 (write_font_width_spec): Likewise.
13778 (write_font_pf2): Likewise.
13779 * util/grub-mkimage.c (generate_image): New argument outname.
13780 All users updated.
13781 Remove unreacheable message.
13782 (options): Unify messages.
13783 (help_filter): Likewise.
13784 * util/grub-mklayout.c (usage): Removed (unused).
13785 (main): Print filename in error.
13786 * util/grub-mkrescue.in: Fix wrong quoting.
13787 * util/grub-setup.c (setup): Print filename in error.
13788 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13789 (check_sas): Likewise.
13790 * util/misc.c (grub_util_get_fp_size): Removed.
13791 (grub_util_get_image_size): Print filename in error.
13792 (grub_util_read_at): Removed.
13793 (grub_util_read_image): Print filename in error.
13794 (grub_util_load_image): Likewise.
13795 (grub_util_write_image_at): New argument filename. All users updated.
13796 Print filename in error.
13797 (grub_util_write_image): New argument filename. All users updated.
13798 Print filename in error.
13799 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13800 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13801
13802 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13803
13804 * grub-core/Makefile.core.def (pxechain): New module.
13805 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13806 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13807 function.
13808 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13809 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13810
13811 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13812
13813 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13814 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13815 * include/grub/err.h (grub_error_saved): New struct.
13816 (grub_errmsg): Make array size explicit.
13817 * include/grub/misc.h (grub_error_save): New function.
13818 (grub_error_load): Likewise.
13819 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13820 (grub_error_push): Update `errno' member name.
13821 (grub_error_pop): Likewise
13822 * grub-core/net/tftp.c (tftp_data): New member save_err.
13823 (tftp_receive): Save error.
13824 (tftp_open): Restore error.
13825
13826 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13827
13828 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13829 to real mode down to execute A20-related code in protected mode as
13830 intended.
13831
13832 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13833
13834 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13835 NULL when the argument `level' has an unexpected value.
13836
13837 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13838
13839 Move platform-dependent files from $prefix to $prefix/$platform.
13840
13841 * config.h.in (GRUB_TARGET_CPU): New definition.
13842 (GRUB_PLATFORM): Likewise.
13843 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13844 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13845 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13846 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13847 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13848 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13849 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13850 * grub-core/normal/term.c (read_terminal_list): Likewise.
13851 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13852 $prefix/locale.
13853 (grub_gettext_init_ext): Likewise.
13854 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13855 grub_platform.
13856 * util/grub-install.in: Update directories.
13857 * util/grub-mknetdir.in: Likewise.
13858 * util/grub-mkrescue.in: Likewise.
13859
13860 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13863 grub_error framework. All users updated.
13864
13865 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13866
13867 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13868 lists (by always binsearching), improve caching (cache strings
13869 used for binsearch, not only results), improve
13870 maintainability (by using more structured binary search) and correct
13871 error handling.
13872
13873 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13874
13875 * grub-core/script/execute.c (grub_script_return): Fix warning.
13876
13877 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 * grub-core/script/execute.c (grub_script_return): Fix potential
13880 NULL-dereference.
13881 Reported by: Jim Meyering.
13882
13883 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13884
13885 * po/POTFILES.in: Regenerate.
13886 * util/grub-install.in: Gettextize the strings missed in first pass.
13887
13888 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13889
13890 * Makefile.util.def (grub-mkdevicemap): Removed.
13891 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13892 * include/grub/util/deviceiter.h: Removed.
13893 * util/deviceiter.c: Likewise.
13894 * util/getroot.c (grub_util_get_os_disk): New function.
13895 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13896 replacement for EFI.
13897 * util/grub-mkdevicemap.c: Removed.
13898 * util/grub-probe.c (probe): Handle PRINT_DISK.
13899 (argp_parser): Handle -t disk.
13900
13901 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 * util/grub-mkfont.c: Migrate to argp.
13904 * util/grub-mklayout.c: Likewise.
13905 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13906 * util/grub-mkrelpath.c: Likewise.
13907 * util/grub-probe.c: Likewise.
13908 * util/grub-script-check.c: Likewise.
13909
13910 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13911
13912 * util/grub-reboot.in: Add missing datarootdir.
13913 Add missing newline.
13914 * util/grub-set-default.in: Add missing datarootdir.
13915 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13916 * util/grub-mkrescue.in: Likewise.
13917
13918 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13919
13920 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13921
13922 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13923
13924 * util/grub-kbdcomp.in: Add decent help and gettextize.
13925 * docs/man/grub-kbdcomp.h2m: New file.
13926
13927 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13928
13929 Migrate grub-mkimage.c to argp.
13930
13931 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13932 (grub-setup): Likewise.
13933 * util/grub-setup.c (print_version): Move to ...
13934 * util/argp_common.c (print_version): ... here.
13935 * util/grub-setup.c (argp_program_version_hook): Move to ...
13936 * util/argp_common.c (argp_program_version_hook): ... here.
13937 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13938 safety.
13939 * util/grub-mkimage.c (main): Migrate to argp.
13940
13941 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 * util/grub-mkrescue.in: Use same message as
13944 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13945 for better translations.
13946
13947 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13948
13949 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13950 options with generic grub-mkrescue.in with the goal of future
13951 merge.
13952
13953 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13954
13955 * grub-core/kern/mm.c: Add missing include of i18n.h
13956 * grub-core/lib/relocator.c: Likewise.
13957
13958 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13959
13960 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13961 error.
13962 (allocate_pages): Check return value.
13963 Replace fatal with error.
13964 (grub_linux_boot): Replace printf with dprintf.
13965 Check find_mmap_size return value.
13966 Replace fatal with error.
13967 Don't call grub_machine_fini.
13968 (grub_load_elf64): Replace printf with dprintf.
13969 (grub_cmd_linux): Likewise.
13970 (grub_cmd_initrd): Likewise.
13971 (grub_cmd_payload): Likewise.
13972
13973 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13974
13975 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13976 message.
13977 * grub-core/video/radeon_fuloong2e.c
13978 (grub_video_radeon_fuloong2e_setup): Likewise.
13979 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13980 * grub-core/video/video.c (grub_video_set_mode): Don't override
13981 standard out of memory message.
13982
13983 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13984
13985 NetBSD disk wedge support.
13986
13987 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13988 [__NetBSD__]: Handle NetBSD disk wedges.
13989 * util/getroot.c (convert_system_partition_to_system_disk)
13990 [__NetBSD__]: Likewise.
13991
13992 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13993
13994 * util/grub-mkconfig.in: Use umask rather than chmod to create
13995 grub.cfg.new to avoid insecure grub.cfg.
13996
13997 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13998
13999 * grub-core/commands/ls.c: Gettextize.
14000 * grub-core/commands/setpci.c: Likewise.
14001 * grub-core/commands/videotest.c: Likewise.
14002 * grub-core/disk/geli.c: Likewise.
14003 * grub-core/kern/mm.c: Likewise.
14004 * grub-core/lib/relocator.c: Likewise.
14005 * grub-core/loader/efi/appleloader.c: Likewise.
14006 * grub-core/loader/i386/xnu.c: Likewise.
14007 * grub-core/loader/ia64/efi/linux.c: Likewise.
14008 * grub-core/loader/xnu.c: Likewise.
14009 * grub-core/net/dns.c: Likewise.
14010 * grub-core/net/net.c: Likewise.
14011 * grub-core/script/lexer.c: Likewise.
14012 * grub-core/script/parser.y: Likewise.
14013 * grub-core/script/yylex.l: Likewise.
14014 * util/getroot.c: Likewise.
14015 * util/grub-setup.c: Likewise.
14016
14017 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14020 number.
14021
14022 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14023
14024 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14025
14026 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14029 macro.
14030 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14031 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14032
14033 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14034
14035 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14036 * util/grub-install.in: Gettextize.
14037 * util/grub-mkconfig.in: Likewise.
14038 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14039 if not available.
14040 (grub_warn): Gettextize.
14041 * util/grub-mknetdir.in: Gettextize.
14042 * util/grub-mkrescue.in: Likewise.
14043 * util/grub-mkstandalone.in: Likewise.
14044 * util/grub-reboot.in: Likewise.
14045 * util/grub-set-default.in: Likewise.
14046 * util/grub.d/00_header.in: Likewise.
14047 * util/grub.d/10_hurd.in: Likewise.
14048 * util/grub.d/10_kfreebsd.in: Likewise.
14049 * util/grub.d/10_linux.in: Likewise.
14050 * util/grub.d/10_netbsd.in: Likewise.
14051 * util/grub.d/10_windows.in: Likewise.
14052 * util/grub.d/20_linux_xen.in: Likewise.
14053 * util/grub.d/30_os-prober.in: Likewise.
14054 * po/POTFILES-shell.in: Regenerate.
14055
14056 2012-02-03 Richard Laager <rlaager@wiktel.com>
14057
14058 * util/grub-mkimage.c (main): Fix format-security warning.
14059 * util/grub-mkrelpath.c (main): Likewise.
14060 * util/grub-probe.c (main): Likewise.
14061
14062 2012-02-03 Richard Laager <rlaager@wiktel.com>
14063
14064 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14065 failure.
14066 Put back lost PRINT_DRIVE.
14067
14068 2012-02-03 Richard Laager <rlaager@wiktel.com>
14069
14070 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14071 (grub_guess_root_devices): Replace strlen with sizeof.
14072 Avoid crash.
14073 (find_root_devices_from_poolname): Remove unused variable.
14074 Handle raidzN.
14075
14076 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14077
14078 Support install on multi-device filesystems.
14079
14080 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14081 (grub_guess_root_devices): ...this. Return char **. All users updated.
14082 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14083 Removed.
14084 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14085 (find_root_devices_from_poolname): ... here.
14086 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14087 Support zfs-fuse.
14088 (grub_guess_root_device): Rename to ...
14089 (grub_guess_root_devices): ... this. Return char **. All users updated.
14090 * util/grub-install.in: Handle multi-device filesystems.
14091 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14092 argument. All users updated.
14093 Handle multi-device filesystems.
14094 Use 'delim' as separator.
14095 Remove device check to allow filesystems on file.
14096 (main): Support -0 argument. Handle multi-device.
14097 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14098 Fix a cross-device check while on it.
14099 (arguments): Remove root_dev.
14100 (argp_parser): Remove -r.
14101 (main): Remove root_dev.
14102
14103 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14106
14107 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14110 symbol.
14111 Reported by: NODA, Kai <nodakai>.
14112
14113 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14114
14115 Fix ehci on amd64.
14116
14117 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14118 pointers.
14119 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14120 (grub_ehci_setup_qh): Likewise.
14121 (grub_ehci_find_qh): Likewise.
14122 (grub_ehci_transaction): Likewise.
14123 (grub_ehci_setup_transfer): Likewise.
14124 (grub_ehci_check_transfer): Likewise.
14125 (grub_ehci_portstatus): Likewise.
14126 (grub_ehci_detect_dev): Likewise.
14127 (grub_ehci_transfer_controller_data): New field td_last_phys.
14128 (grub_ehci_setup_transfer): Fill td_last_phys.
14129 (grub_ehci_check_transfer): Use td_last_phys.
14130
14131 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14132
14133 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14134 if no submenu is present.
14135
14136 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14137
14138 CBI support.
14139
14140 * include/grub/usb.h (grub_usbms_protocol_t): New values
14141 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14142 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14143 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14144 (grub_usbms_dev): Add subclass, protocol and intrpt.
14145 Remove in_maxsz and out_maxsz.
14146 (grub_usbms_reset): Rename to ...
14147 (grub_usbms_bo_reset): .. this.
14148 (grub_usbms_cbi_cmd): New function.
14149 (grub_usbms_cbi_reset): Likewise.
14150 (grub_usbms_reset): Likewise.
14151 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14152 (grub_usbms_transfer): Rename to ...
14153 (grub_usbms_transfer_bo): ... this.
14154 (grub_usbms_transfer_cbi): Likewise.
14155 (grub_usbms_transfer): Likewise.
14156
14157 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14158 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14159
14160 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14161 the support for the CS5536 modification thereos and few bugfixes.
14162
14163 * grub-core/Makefile.core.def (ehci): New module.
14164 * grub-core/bus/usb/ehci.c: New file.
14165 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14166 port and hubaddr. All users updated.
14167 Save port and hubaddr into dev structure.
14168 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14169 define.
14170 * include/grub/pci.h (grub_dma_phys2virt): New function.
14171 (grub_dma_virt2phys): Likewise.
14172 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14173
14174 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14175
14176 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14177 check as some mkfs implementations omit it.
14178
14179 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14180
14181 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14182
14183 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14184
14185 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14186 Add new member volname2.
14187 (grub_jfs_label): Use volname2 if available.
14188
14189 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14190
14191 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14192 over last_mounted as seen in image generated by mkfs.nilfs2.
14193 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14194
14195 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14196
14197 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14198 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14199 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14200
14201 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14202
14203 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14204 over the sector.
14205
14206 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14207
14208 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14209 subvolume name (by removing a bogus and useless check).
14210
14211 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14212
14213 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14214 sizeof while on it.
14215
14216 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14217
14218 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14219 (grub_scsi_read_capacity10): ... this.
14220 (grub_scsi_read_capacity16): New function.
14221 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14222 0xffffffff.
14223 Fix off-by-one error.
14224 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14225 64-bit unsigned.
14226 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14227 (grub_scsi_read_capacity10): ... this.
14228 (grub_scsi_read_capacity_data): Rename to ...
14229 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14230 (grub_scsi_read_capacity16): New struct.
14231 (grub_scsi_read_capacity16_data): Likewise.
14232 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14233 grub_scsi_cmd_read_capacity10.
14234 New command grub_scsi_cmd_read_capacity16.
14235
14236 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14237
14238 SCSI >2TiB support.
14239
14240 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14241 (grub_scsi_write16): Likewise.
14242 (grub_scsi_read): Use read16 when necessary.
14243 (grub_scsi_write): Likewise.
14244 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14245 (grub_scsi_write16): Likewise.
14246 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14247
14248 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 SCSI write support (for usbms mainly).
14251
14252 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14253 a const pointer.
14254 (grub_scsi_write): Implement.
14255 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14256
14257 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14258
14259 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14260 variable.
14261
14262 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14263
14264 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14265
14266 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14267
14268 * po/POTFILES.in: Regenerate.
14269
14270 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14273 with grub_printf to avoid unnecessary fatal failure.
14274
14275 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14276
14277 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14278 (INT_MAX): Likewise.
14279 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14280 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14281 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14282 (strcpy): Likewise.
14283 (strstr): Likewise.
14284 (strchr): Likewise.
14285 (strncpy): Likewise.
14286 (strcat): Likewise.
14287 (strncat): Likewise.
14288 (strcoll): Likewise.
14289 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14290 (GRUB_INT_MAX): Likewise.
14291
14292 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14293
14294 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14295 unexpected error.
14296 (optimize_utf8): Likewise.
14297 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14298
14299 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14300
14301 * grub-core/boot/i386/pc/lnxboot.S: Use
14302 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14303 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14304 location.
14305 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14306 definition.
14307 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14308
14309 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14310
14311 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14312 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14313 now to avoid double free.
14314 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14315 hostdisk.
14316 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14317 * util/grub-probe.c (escape_of_path): Always return a new copy.
14318 (print_full_name): Escape path.
14319 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14320 Fix hints on abstractions.
14321
14322 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14323
14324 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14325 Don't add "root" line if no compatibility hont is available.
14326 Suggested by: Seth Goldberg.
14327
14328 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14329
14330 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14331 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14332 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14333 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14334
14335 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14336
14337 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14338
14339 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14340
14341 * util/grub-pe2elf.c (ehdr): Make static.
14342 (shdr): Likewise.
14343 (num_sections): Likewise.
14344 (offset): Likewise.
14345
14346 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14347
14348 Eliminate ofpath limits and possible overflows.
14349
14350 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14351 (OF_PATH_MAX): Removed.
14352 (MAX_DISK_CAT): New const.
14353 (find_obppath): Use allocated rather than preallocated buffer.
14354 Return result. Argument of_path removed. All users updated.
14355 Add missing fdstat.
14356 (xrealpath): New function.
14357 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14358 Allocate rather than use preallocated buffer. All users updated.
14359 (__of_path_common): Use allocated rather than preallocatecd buffer.
14360 Return result. Argument of_path removed. All users updated.
14361 (vendor_is_ATA): Read only needed part form the file.
14362 (check_sas): Allocate depending on contents rather than fixed.
14363 (main) [STANDALONE]: Handle NULL result.
14364
14365 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14366
14367 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14368
14369 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14370
14371 Cryptodisk write support.
14372
14373 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14374 (grub_cryptodisk_decrypt): Moved logic to ...
14375 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14376 (grub_cryptodisk_write): Implement.
14377 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14378 (grub_util_fd_write): ... this. Make global.
14379 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14380
14381 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14382
14383 * include/grub/list.h (grub_list_remove): Don't crash if element is
14384 removed twice.
14385
14386 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14387
14388 Rename ofconsole to console.
14389
14390 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14391 as sysnonym to console.
14392 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14393 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14394 Rename grub_ofconsole_ to grub_console_. All users updated
14395 (grub_console_term_output): Rename "ofconsole" to "console".
14396 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14397 as "console".
14398
14399 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14400
14401 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14402 handling.
14403 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14404 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14405 GRUB_DISK_DEVICE_FILE_ID.
14406
14407 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14408
14409 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14410 and improve performance.
14411
14412 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14413
14414 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14415 missing ieee1275/ prefix on whole disk.
14416
14417 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14418
14419 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14420 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14421
14422 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14423
14424 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14425
14426 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14427
14428 Merge common RAID and LVM logic to an abstract diskfilter.
14429 Add LDM support using the same framework.
14430
14431 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14432 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14433 (libgrubmods): Remove grub-core/disk/raid.c and
14434 grub-core/partmap/gpt.c.
14435 * grub-core/Makefile.core.def (ldm): New module.
14436 (raid): Renamed to diskfilter. All users updated.
14437 * grub-core/disk/raid.c: Moved to ...
14438 * grub-core/disk/diskfilter.c: ... here.
14439 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14440 (lv_num): New var.
14441 (find_array): Renamed to ...
14442 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14443 (grub_is_array_readable): Renamed to ...
14444 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14445 (insert_array): New argument id.
14446 (is_node_readable): New function.
14447 (scan_device): Rename to ...
14448 (scan_disk): .. this. Restrict to one disk.
14449 (scan_devices): New function.
14450 (grub_diskfilter_iterate): Support multi-LV.
14451 Skip invisible and nameless LVs.
14452 (grub_diskfilter_memberlist): Support multi-LV.
14453 (grub_diskfilter_read_node): New function.
14454 (grub_raid_read): Most of logic moved to ...
14455 (read_segment): ... here
14456 (read_lv): New function.
14457 (grub_diskfilter_get_vg_by_uuid): New function.
14458 (grub_diskfilter_make_raid): Likewise.
14459 * grub-core/disk/ldm.c: New file.
14460 * grub-core/disk/lvm.c (vg_list): Removed.
14461 (lv_count): Likewise.
14462 (scan_depth): Likewise.
14463 (is_lv_readable): Likewise.
14464 (grub_lvm_getvalue): Advance pointer past the number.
14465 (find_lv): Removed.
14466 (do_lvm_scan): Refactored into ...
14467 (grub_lvm_detect): ... this. Support raid.
14468 (grub_lvm_iterate): Removed.
14469 (grub_lvm_memberlist): Likewise.
14470 (grub_lvm_open): Likewise.
14471 (grub_lvm_close): Likewise.
14472 (read_lv): Likewise.
14473 (read_node): Likewise.
14474 (is_node_readable): Likewise.
14475 (is_lv_readable): Likewise.
14476 (grub_lvm_read): Likewise.
14477 (grub_lvm_write): Likewise.
14478 (grub_lvm_dev): Use diskfilter
14479 (GRUB_MOD_INIT): Likewise.
14480 (GRUB_MOD_FINI): Likewise.
14481 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14482 new interface.
14483 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14484 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14485 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14486 grub_diskfilter_read_node.
14487 Fix a bug with xor.
14488 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14489 grub_diskfilter_read_node.
14490 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14491 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14492 (grub_disk_dev_iterate): Move from here...
14493 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14494 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14495 Make global.
14496 (grub_hostdisk_find_partition_start): Likewise.
14497 (grub_hostdisk_os_dev_to_grub_drive): New function.
14498 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14499 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14500 * util/getroot.c (make_device_name): ... here.
14501 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14502 Move to ...
14503 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14504 * grub-core/kern/emu/hostdisk.c
14505 (convert_system_partition_to_system_disk): Move to ...
14506 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14507 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14508 * util/getroot.c (device_is_wholedisk): ... here.
14509 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14510 * util/getroot.c (find_system_device): ... here.
14511 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14512 Move to ...
14513 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14514 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14515 Move to ...
14516 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14517 Handle LDM.
14518 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14519 Move to ...
14520 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14521 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14522 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14523 DISKFILTER.
14524 * include/grub/raid.h: Renamed to ...
14525 * include/grub/diskfilter.h: ... this.
14526 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14527 (GRUB_RAID_LAYOUT_*): Make into array.
14528 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14529 (grub_diskfilter_vg): New struct.
14530 (grub_diskfilter_pv_id): Likewise.
14531 (grub_raid_member): Removed.
14532 (grub_raid_array): Likewise.
14533 (grub_diskfilter_pv): New struct.
14534 (grub_diskfilter_lv): Likewise.
14535 (grub_diskfilter_segment): Likewise.
14536 (grub_diskfilter_node): Likewise.
14537 (grub_diskfilter_get_vg_by_uuid): New proto.
14538 (grub_raid_register): Inline.
14539 (grub_diskfilter_unregister): Likewise.
14540 (grub_diskfilter_make_raid): New proto.
14541 (grub_diskfilter_vg_register): Likewise.
14542 (grub_diskfilter_read_node): Likewise.
14543 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14544 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14545 (grub_util_is_ldm): Likewise.
14546 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14547 (grub_hostdisk_find_partition_start): Likewise.
14548 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14549 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14550 New definition.
14551 (grub_gpt_partition_map_iterate): New proto.
14552 * include/grub/lvm.h (grub_lvm_vg): Removed.
14553 (grub_lvm_pv): Likewise.
14554 (grub_lvm_lv): Likewise.
14555 (grub_lvm_segment): Likewise.
14556 (grub_lvm_node): Likewise.
14557 * util/getroot.c [...]
14558 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14559 (probe_abstraction): Likewise.
14560 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14561 (main): Remove dead logic.
14562
14563 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14564
14565 Simplify root device discover and don't fail when trying to open
14566 incorrect devices.
14567
14568 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14569 function.
14570 (get_diskname_from_path): Likewise.
14571 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14572 of iterating.
14573
14574 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14575
14576 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14577
14578 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14579
14580 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14581 pastthe end.
14582
14583 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14584
14585 * util/grub-install.in: Add missing \.
14586 Reported by: gentoofan
14587
14588 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14589
14590 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14591 (direct_read): Use correct compressed size.
14592 (grub_squash_read_data): Likewise.
14593
14594 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14595
14596 * docs/grub.texi (Platform limitations): New section.
14597 (Platform-specific operations): Likewise.
14598 * docs/grub-dev.texi (Porting): Likewise.
14599
14600 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14601
14602 IEEE1275 disk write support.
14603
14604 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14605 const void *.
14606 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14607 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14608 and seek loginc to ...
14609 (grub_ofdisk_prepare): ... here.
14610 (grub_ofdisk_write): Implement.
14611
14612 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14613
14614 ARC disk write support.
14615
14616 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14617 (reopen): New argument writable. All users updated.
14618 Handle required access mode.
14619 (grub_arcdisk_write): Implement.
14620 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14621 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14622
14623 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14624
14625 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14626 (read_sblock): Don't attempt to read superblocks outside the disk size.
14627
14628 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14629
14630 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14631 first superblock to find the second one when possible.
14632
14633 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 * util/grub-install.in: Fix an ARC bug.
14636 Print a warning if no platform-specific setup is available.
14637
14638 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14639
14640 Use static allocation rather than scratch pointer in reed_solomon.
14641 It decreases its size significantly and avoids a variable in .text.
14642
14643 * grub-core/lib/reed_solomon.c (scratch): Removed.
14644 (chosenstat): New const or static array.
14645 (sigma): Likewise.
14646 (errpot): Likewise.
14647 (errpos): Likewise.
14648 (sy): Likewise.
14649 (mstat): Likewise.
14650 (errvals): Likewise.
14651 (eqstat): Likewise.
14652 (pol_evaluate): Replace x with log_x argument. All users updated.
14653 (syndroms): Removed.
14654 (gauss_solve): Use statically allocated arrays.
14655 (rs_recover): Likewise.
14656 Calculate syndroms directly.
14657 (decode_block): Use statically allocated arrays.
14658 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14659 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14660
14661 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14662
14663 Eliminate fixed limit on reed solomon decoder length.
14664
14665 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14666 rather than hardcoding the address.
14667 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14668 no_reed_solomon_length.
14669 Move gate_a20 to no-reed-solomon part.
14670 Don't force a particular size of no reed-solomon part.
14671 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14672 Removed.
14673 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14674 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14675
14676 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 * grub-core/commands/wildcard.c (match_files): Handle filenames
14679 without explicit device.
14680 (wildcard_expand): Don't add explicit device if not already present.
14681 * tests/grub_script_echo1.in: Add a new expansion test.
14682
14683 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14684
14685 Replace single-linked with double-linked lists. It results in more
14686 compact and more efficient code.
14687
14688 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14689 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14690 (grub_list_remove): Moved from here ...
14691 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14692 (grub_prio_list_insert): Set prev.
14693 * include/grub/list.h (grub_list): Add prev. All users updated.
14694
14695 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 Handle newer autotools. Add some missing quotes while on it.
14698
14699 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14700 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14701 (pkgdata_DATA): ... here.
14702 * Makefile.util.def (update-grub_lib): Removed.
14703 * conf/Makefile.common (pkglib_DATA): Removed.
14704 (pkglib_SCRIPTS): Likewise.
14705 (pkgdata_DATA): New variable.
14706 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14707 needed.
14708 Add missing quotes.
14709 Remove unused variable while on it.
14710 * tests/util/grub-shell.in: Likewise.
14711 * util/grub-install.in: Likewise.
14712 * util/grub-mkconfig.in: Likewise.
14713 * util/grub-mknetdir.in: Likewise.
14714 * util/grub-mkrescue.in: Likewise.
14715 * util/grub-mkstandalone.in: Likewise.
14716 * util/grub.d/00_header.in: Likewise.
14717 * util/grub.d/10_hurd.in: Likewise.
14718 * util/grub.d/10_illumos.in: Likewise.
14719 * util/grub.d/10_kfreebsd.in: Likewise.
14720 * util/grub.d/10_linux.in: Likewise.
14721 * util/grub.d/10_netbsd.in: Likewise.
14722 * util/grub.d/10_windows.in: Likewise.
14723 * util/grub.d/20_linux_xen.in: Likewise.
14724 * util/grub.d/30_os-prober.in: Likewise.
14725 * util/update-grub_lib.in: Removed.
14726
14727 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14728
14729 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14730 a workaround for intel problem.
14731
14732 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14733 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14734 2012-01-23 pfsmorigo
14735
14736 * util/grub-install.in: Support dd'in into PreP partition.
14737 * util/grub-probe.c (probe): Support discovering partition type.
14738 (main): Support -t msdos_parttype.
14739
14740 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14741
14742 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14743 infinite recursion using counter.
14744 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14745 init to skip it if the magic check fails.
14746 (dec_stream_header): Init s->crc32.
14747
14748 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14749 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14750 2012-01-22 Richard Laager <rlaager@wiktel.com>
14751
14752 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14753 All users updated.
14754 (find_bestub): Determine correct size.
14755 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14756 (scan_disk): Align the size down.
14757 Call check pool before find_bestub to have ashift.
14758
14759 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14760
14761 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14762 dprintf in no-malloc zone.
14763
14764 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14765
14766 * configure.ac: Add back in test for limits.h.
14767
14768 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14769
14770 Support 4K-sector NTFS.
14771
14772 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14773 (grub_ntfs_data): Remove blocksize.
14774 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14775 Remove data argument. All users updated.
14776
14777 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14778
14779 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14780 being in .text to avoid dprel references.
14781 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14782 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14783 (grub_arch_highmemsize): Likewise.
14784 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14785 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14786 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14787
14788 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14789
14790 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14791
14792 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14793 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14794
14795 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14796
14797 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14798 GRUB_UTIL.
14799 (grub_set_datetime_cmos): Likewise.
14800
14801 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14802
14803 Make XZ compression parameters dependent on target and not host CPU.
14804
14805 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14806 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14807
14808 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14809
14810 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14811 set but not used variable.
14812
14813 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14816 created when no uuid support is compiled into mkfs.reiser.
14817
14818 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14819
14820 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14821 (utf8_to_macroman): Do the opposite.
14822 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14823
14824 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14825
14826 * configure.ac: Refise build qemu_mips w/o unifont.
14827
14828 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14829
14830 Eliminate grub_min/grub_max prone to overflow usage.
14831
14832 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14833 (poll_nonroot_hub): Likewise.
14834 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14835 (grub_affs_label): Likewise.
14836 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14837 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14838 (grub_hfs_label): Likewise.
14839 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14840 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14841 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14842 (zap_leaf_array_get): Likewise.
14843 (dnode_get_path): Likewise.
14844 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14845 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14846 * grub-core/script/execute.c (grub_script_break): Likewise.
14847 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14848 grub_max.
14849 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14850 * include/grub/misc.h (grub_min): Removed.
14851 (grub_max): Likewise.
14852
14853 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14854
14855 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14856 direct.inode = 0.
14857
14858 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14859
14860 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14861
14862 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14863
14864 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14865
14866 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14867
14868 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14869 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14870
14871 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14872
14873 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14874 rather than a hack for grub_strncasemap.
14875
14876 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14877
14878 Support multiple initrds
14879 Note: part of this was accidently committed in r3739.
14880
14881 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14882 initrd.
14883 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14884 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14885 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14886 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14887 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14888
14889 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14890
14891 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14892 disks with unknown size.
14893 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14894
14895 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14896
14897 Remove defines pertaining to arbitrary limits not affecting GRUB
14898 anymore.
14899
14900 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14901 (EXT2_MAX_SYMLINKCNT): Likewise.
14902 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14903 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14904 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14905 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14906 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14907 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14908 (DN_MAX_OBJECT_SHIFT): Likewise.
14909 (DN_MAX_OFFSET_SHIFT): Likewise.
14910 (DN_MAX_OBJECT): Likewise.
14911 (DNODES_PER_LEVEL_SHIFT): Likewise.
14912 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14913 (SPA_MAXBLOCKSIZE): Likewise.
14914 (SPA_BLOCKSIZES): Likewise.
14915 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14916 (MZAP_MAX_BLKSZ): Likewise.
14917
14918 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14919
14920 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14921 handle NULL appropriately.
14922 Remove MIN.
14923
14924 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14925
14926 Fix efiemu.
14927
14928 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14929 cpu/types.h.
14930 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14931 * configure.ac: Fix efiemu check.
14932
14933 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14936 grub_probe.
14937 Reported by: adamwill
14938
14939 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14940
14941 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14942
14943 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14944
14945 Fix handling of wide characters in gfxterm.
14946
14947 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14948 (clear_char): Likewise.
14949 (paint_char): Skip code == NULL chars.
14950 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14951
14952 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14953
14954 * grub-core/normal/charset.c: Move comment to right place.
14955
14956 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14957
14958 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14959 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14960 (grub_affs_mount): Revert the correct version checking.
14961
14962 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14963
14964 * docs/grub.texi (Unicode): Mention several other unsupported features.
14965
14966 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14967
14968 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14969 case statements as compile-time one.
14970 (direct_read): Prevent spurious warnings.
14971 (grub_squash_read_data): Likewise.
14972
14973 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14974
14975 Various squash4 fixes and LZO and XZ support.
14976
14977 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14978 Add xzembed source files.
14979 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14980 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14981 (grub_squash_inode): New subtype long_dir.
14982 (SQUASH_TYPE_LONG_DIR): New inode type.
14983 (COMPRESSION): New enum.
14984 (XZBUFSIZ): New const.
14985 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14986 (read_chunk): Use data->decompress.
14987 (zlib_decompress): New function.
14988 (lzo_decompress): Likewise.
14989 (xz_decompress): Likewise.
14990 (squash_mount): Set new data fields.
14991 (grub_squash_iterate_dir): Handle long dir.
14992 (squash_unmount): Free xzdec and xzbuf.
14993 (grub_squash_open): Check ino type.
14994 (direct_read): Stylistic fixes. Use data->decompress.
14995 (grub_squash_read_data): Likewise.
14996 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14997 (get_byte): Likewise.
14998 (grub_zlib_disk_read): Removed.
14999 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15000 (GRUB_POSIX_BOOL_DEFINED): New define.
15001 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15002 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15003 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15004 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15005
15006 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15007
15008 Don't override more informative errors.
15009
15010 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15011 * grub-core/font/font.c (open_section): Likewise.
15012 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15013 filename. Don't override errors.
15014 (grub_cmd_openbsd_ramdisk): Don't override errors.
15015 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15016 (grub_cmd_initrd): Likewise.
15017 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15018 (grub_cmd_initrd): Likewise.
15019 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15020 (grub_cmd_linux): Likewise.
15021 (grub_cmd_initrd): Likewise.
15022 (grub_cmd_payload): Likewise.
15023 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15024 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15025 (grub_cmd_module): Likewise.
15026 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15027 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15028 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15029 (grub_cmd_xnu_mkext): Likewise.
15030 (grub_cmd_xnu_ramdisk): Likewise.
15031 (grub_xnu_check_os_bundle_required): Likewise.
15032 (grub_xnu_load_kext_from_dir): Likewise.
15033 (grub_cmd_xnu_kextdir): Likewise.
15034 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15035
15036 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15037
15038 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15039 as 1024 in block size field. Found on one of my test images.
15040 Small optimisation while on it.
15041
15042 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15043
15044 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15045 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15046 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15047 performance fixes while on it.
15048 (grub_sfs_close): Fix memory leak while on it.
15049 (grub_sfs_label): Convert Latin1 to UTF-8.
15050
15051 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15052
15053 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15054 space to avoid overflows.
15055 (grub_hfs_label): Convert from macroman to UTF-8.
15056
15057 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15058
15059 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15060
15061 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15064
15065 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15066
15067 * unicode: Import Unicode 6.0 data.
15068
15069 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15070
15071 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15072 outside of range.
15073
15074 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15075
15076 Avoid cutting in the middle of UTF-8 character.
15077
15078 * include/grub/charset.h (grub_getend): New function.
15079 * grub-core/script/function.c (grub_script_function_find): Use
15080 grub_getend.
15081 * grub-core/normal/completion.c (add_completion): Likewise.
15082
15083 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15084
15085 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15086 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15087 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15088 (GRUB_UNICODE_TAG_END): Likewise.
15089 (GRUB_UNICODE_LAST_VALID): Likewise.
15090
15091 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15092
15093 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15094 len and make it smaller. All users updated.
15095 * util/import_unicode.py: Put length and not end character.
15096 Check length.
15097
15098 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15099
15100 Make better Unicode-compliant and unify some UTF-8 code pathes.
15101
15102 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15103 valid character.
15104 (grub_is_valid_utf8): Use grub_utf8_process.
15105 Check resulting code range.
15106 (grub_utf8_to_ucs4): Use grub_utf8_process.
15107 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15108 valid character.
15109
15110 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15111
15112 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15113
15114 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15115
15116 * docs/grub.texi (Filesystems): Mention AFS.
15117
15118 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15119
15120 * docs/grub.texi (Filesystems): Clarify restrictions.
15121 (Regexp): Mention non-Unicode regexp behaviour.
15122 (Other): Mention non-Unicode matching behaviour.
15123
15124 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15125
15126 Make HFS implementation use MacRoman.
15127
15128 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15129 (macroman): New const array.
15130 (macroman_to_utf8): New function.
15131 (utf8_to_macroman): Likewise.
15132 (grub_hfs_find_dir): Use utf8_to_macroman.
15133 (grub_hfs_dir): Use macroman_to_utf8.
15134 Set case_insensitive.
15135
15136 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15137
15138 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15139
15140 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15141
15142 Integrate hints into autogeneration scripts.
15143
15144 * docs/grub.texi (Filesystems): Add a hostdisk example.
15145 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15146 (grub-probe): Add ofpath.
15147 * gentpl.py: Remove group nosparc64.
15148 * grub-core/commands/search.c (cache_entry): New struct.
15149 (cache): New var.
15150 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15151 * grub-core/commands/search_wrap.c (options): Add platform-specific
15152 hint options.
15153 (grub_cmd_search): Handle platform-specific hints.
15154 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15155 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15156 (grub_util_biosdisk_data): Likewise.
15157 (grub_util_biosdisk_open): Set device_map.
15158 (read_device_map): Handle "" as indication of no map.
15159 Set device_map.
15160 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15161 (grub_util_biosdisk_get_compatibility_hint): New function.
15162 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15163 * include/grub/emu/hostdisk.h
15164 (grub_util_biosdisk_get_compatibility_hint): New proto.
15165 * util/grub-install.in: Don't call grub-mkdevicemap.
15166 Add platform-specific hint to load.cfg.
15167 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15168 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15169 hints. Set root preliminary to compatibility hint, not to OS name.
15170 * util/grub-probe.c (PRINT_*): Add hints.
15171 (print): Make static.
15172 (escape_of_path): New function.
15173 (guess_bios_drive): Likewise.
15174 (guess_efi_drive): Likewise.
15175 (guess_baremetal_drive): Likewise.
15176 (print_full_name): Likewise.
15177 (probe): Handle hints.
15178 (main): Likewise.
15179 * util/ieee1275/devicemap.c: Removed.
15180 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15181 updated.
15182 (grub_util_devname_to_ofpath): Return NULL on failure.
15183
15184 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15185 resource leak.
15186 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15187
15188 * po/POTFILES.in: Regenerated.
15189
15190 Allow purely long options
15191
15192 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15193 (SHORT_ARG_USAGE): Likewise.
15194 (grub_arg_show_help): Compare opt with help_options.
15195 (parse_option): Receive opt as argument. If makes big simplificatons.
15196 All users updated
15197
15198 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15199
15200 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15201 Restructure to avoid warning.
15202
15203 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15204
15205 * util/grub-install.in: Account for possible escaped comma in device
15206 name.
15207
15208 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15209
15210 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15211 channel.
15212
15213 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15214
15215 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15216 allocation and zero-setting.
15217 (grub_ieee1275_get_devname): Check that alias is complete.
15218
15219 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15220
15221 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15222 unaligned segments.
15223
15224 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15225
15226 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15227 prefix.
15228 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15229 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15230 Add ieee1275 prefix.
15231
15232 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15233
15234 * docs/grub.texi (Filesystems): Update.
15235
15236 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15237
15238 Support odc, newc and bigendian cpio formats.
15239
15240 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15241 * grub-core/Makefile.core.def (newc): New module.
15242 (odc): Likewise.
15243 (cpio_be): Likewise.
15244 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15245 (MAGIC): Likewise.
15246 (MAGIC2): Likewise.
15247 (head) [MODE_ODC]: Adapt for the format.
15248 (head) [MODE_NEWC]: Likewise.
15249 (head) [!MODE_*]: Write fields of interest as arrays.
15250 (MAGIC_USTAR): Removed.
15251 (read_number) [MODE_NEWC]: Change to hex.
15252 (read_number) [!MODE_*]: Parse binary arrays.
15253 (grub_cpio_find_file): Factor out the code for better structure and
15254 always use read_number.
15255 (grub_cpio_mount): Use MAGIC and MAGIC2.
15256 (grub_cpio_dir): Exit on first hook non-0 return.
15257 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15258 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15259 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15260 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15261 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15262 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15263 * grub-core/fs/newc.c: New file.
15264 * grub-core/fs/odc.c: Likewise.
15265 * grub-core/fs/cpio_be.c: Likewise.
15266
15267 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15268
15269 Fix handling of tar numbers occupying the whole field.
15270
15271 * grub-core/fs/cpio.c (read_number): New function.
15272 (grub_cpio_find_file): Use read_number instead of strtoull.
15273
15274 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15275
15276 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15277 occupying the whole field size.
15278
15279 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15280
15281 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15282
15283 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15284
15285 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15286
15287 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15288
15289 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15290 TARGET_IMG_LDFLAGS.
15291
15292 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15293
15294 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15295 (mountinfo_entry): Increase the field size to take escaping into
15296 account.
15297 (find_root_device_from_libzfs): Add one byte to size of strings for
15298 security.
15299
15300 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15301
15302 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15303 an assert.
15304 * util/grub-setup.c (setup): Likewise.
15305
15306 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15307
15308 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15309 _LzmaDecodeA.
15310
15311 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 * docs/grub.texi (Internationalisation): New section.
15314
15315 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15316
15317 * docs/grub.texi (Loopback booting): New section.
15318
15319 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15320
15321 * util/grub-mkstandalone.in: Fix minor typo errors.
15322
15323 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15324
15325 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15326
15327 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15328 net/icmp.c and net/icmp6.c.
15329 (http): New module.
15330 (priority_queue): Likewise.
15331 * grub-core/io/bufio.c: Rewritten.
15332 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15333 TYPE_WITH_CONFIGFILE_OPTION.
15334 (legacy_commands): Add bootp and dhcp.
15335 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15336 (grub_legacy_parse): Likewise.
15337 * grub-core/lib/priority_queue.c: New file.
15338 * grub-core/net/arp.c: Add missing license header.
15339 (arp_find_entry): Removed.
15340 (arp_find_entry): Likewise.
15341 (grub_net_arp_resolve): Rename to ...
15342 (grub_net_arp_send_request): ...this.
15343 (grub_net_arp_receive): New card argument.
15344 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15345 Set router and DNS server.
15346 (grub_net_configure_by_dhcp_ack): Handle routing information.
15347 (grub_cmd_bootp): Set checksum.
15348 (grub_bootp_init): Remove net_dhcp.
15349 * grub-core/net/dns.c: New file.
15350 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15351 completion.
15352 (get_card_packet): Handle allocation.
15353 (grub_efinet_findcards): Set mtu.
15354 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15355 (get_card_packet): Handle allocation.
15356 (emucard): Set mtu.
15357 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15358 (GRUB_MOD_INIT): Set mtu.
15359 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15360 mtu.
15361 (get_card_packet): Handle allocation.
15362 (grub_ofnet_findcards): Set mtu.
15363 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15364 assert.
15365 (grub_net_recv_ethernet_packet): Handle IPv6.
15366 * grub-core/net/http.c: New file.
15367 * grub-core/net/icmp.c: Likewise.
15368 * grub-core/net/icmp6.c: Likewise.
15369 * grub-core/net/ip.c (ip6addr): New type.
15370 (ip6hdr): Likewise.
15371 (reassemble): Likewise.
15372 (cmp): New function.
15373 (reassembles): New variable.
15374 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15375 (id): New variable.
15376 (send_fragmented): New function.
15377 (grub_net_send_ip_packet): Rename to ...
15378 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15379 Handle non-UDP.
15380 (grub_net_recv_ip_packets): Rename to ...
15381 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15382 (free_rsm): New function.
15383 (free_old_fragments): Likewise.
15384 (grub_net_recv_ip4_packets): New function.
15385 (grub_net_send_ip6_packet): Likewise.
15386 (grub_net_send_ip_packet): Likewise.
15387 (grub_net_recv_ip6_packets): Likewise.
15388 (grub_net_recv_ip_packets): Likewise.
15389 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15390 (LINK_LAYER_CACHE_SIZE): New const.
15391 (link_layer_find_entry): New function.
15392 (grub_net_link_layer_add_address): Likewise.
15393 (grub_net_link_layer_resolve_check): Likewise.
15394 (grub_net_link_layer_resolve): Likewise.
15395 (grub_net_ipv6_get_slaac): Likewise.
15396 (grub_net_ipv6_get_link_local): Likewise.
15397 (grub_cmd_ipv6_autoconf): Likewise.
15398 (parse_ip): Handle one number representation.
15399 (parse_ip6): New functoion.
15400 (match_net): Handle IPv6.
15401 (grub_net_resolve_address): Handle IPv6 and DNS.
15402 (grub_net_resolve_net_address): Handle IPv6.
15403 (route_cmp): New function.
15404 (grub_net_route_address): Find best route.
15405 (grub_net_addr_to_str): Handle IPv6.
15406 (grub_net_addr_cmp): New function.
15407 (grub_net_add_addr): Register local route.
15408 (print_net_address): Handle net address.
15409 (grub_net_poll_cards): Retransmit TCP.
15410 (grub_net_poll_cards_idle_real): Likewise.
15411 (have_ahead): New function.
15412 (grub_net_seek_real): Use underlying seek.
15413 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15414 * grub-core/net/tcp.c: New file.
15415 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15416 (cmp): New function.
15417 (ack): Likewise.
15418 (tftp_receive): Handle unordered input.
15419 (destroy_pq): New function.
15420 (tftp_close): Close pq.
15421 * grub-core/net/udp.c: Put missing license header.
15422 (grub_net_udp_socket): New function.
15423 (udp_socket_register): Likewise.
15424 (grub_net_udp_close): Likewise.
15425 (grub_net_recv_udp_packet): Check checksum.
15426 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15427 * include/grub/misc.h (grub_memchr): New function.
15428 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15429 (grub_net_card_driver): Return buf in recv.
15430 (grub_net_slaac_mac_list): New struct.
15431 (grub_network_level_protocol_id): Add ipv6.
15432 (grub_net_network_level_addr): Likewise.
15433 (grub_net_network_level_net_addr): Likewise.
15434 (grub_net_app_protocol): Add seek.
15435 (grub_net_socket): Removed.
15436 (grub_net_sockets): Likewise.
15437 (grub_net_socket_register): Likewise.
15438 (grub_net_socket_unregister): Likewise.
15439 (FOR_NET_SOCKETS): Likewise.
15440 (grub_net_add_addr): Add const.
15441 (GRUB_NET_BOOTP_*): New enum.
15442 (grub_net_addr_cmp): New proto.
15443 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15444 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15445 (grub_net_hwaddr_to_str): NEw proto.
15446 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15447 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15448 (grub_dns_init): New proto.
15449 (grub_dns_fini): Likewise.
15450 (grub_net_tcp_retransmit): Likewise.
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_dns_lookup): Likewise.
15455 (grub_net_add_dns_server): Likewise.
15456 (grub_net_remove_dns_server): Likewise.
15457 (GRUB_NET_TRIES): New const.
15458 (GRUB_NET_INTERVAL): Likewise.
15459 * include/grub/net/arp.h: Mostly rewritten.
15460 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15461 * include/grub/net/ip.h: Mostly rewritten.
15462 * include/grub/net/netbuff.h: Indent.
15463 * include/grub/net/tcp.h: New file.
15464 * include/grub/net/udp.h: Mostly rewritten.
15465 * include/grub/priority_queue.h: New file.
15466 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15467 (grub_swap_bytes64_compile_time): Likewise.
15468 (grub_cpu_to_be16_compile_time): Likewise.
15469 (grub_cpu_to_be32_compile_time): Likewise.
15470 (grub_cpu_to_be64_compile_time): Likewise.
15471 (grub_be_to_cpu64_compile_time): Likewise.
15472
15473 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15476 UINT_TO_PTR with cast.
15477
15478 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15479
15480 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15481 don't use them.
15482
15483 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15484
15485 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15486 already there.
15487
15488 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15489
15490 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15491 confusing ipxe.
15492
15493 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15494
15495 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15496 Add missing const attribute.
15497 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15498 Likewise.
15499 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15500 Likewise.
15501
15502 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15503
15504 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15505 misaligned access.
15506 (serpent_setkey): Likewise.
15507 (serpent_encrypt_internal): Likewise.
15508 (serpent_decrypt_internal): Likewise.
15509 (serpent_encrypt): Don't put an alignment-increasing cast.
15510 (serpent_decrypt): Likewise.
15511 (serpent_test): Likewise.
15512
15513 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15514
15515 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15516
15517 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15518
15519 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15520
15521 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15522 grub_addr_t casts.
15523 (PTR_TO_UINT64): Likewise.
15524 (PTR_TO_UINT32): Likewise.
15525
15526 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15529 because of stack.
15530 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15531 limit.
15532
15533 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15534
15535 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15536 text_width > available width a bit more gracefully.
15537
15538 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15539
15540 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15541 current address calculation.
15542
15543 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15544
15545 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15546 stack.
15547 (encode_block): Likewise.
15548
15549 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15550
15551 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15552 certainety.
15553
15554 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15555
15556 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15557 non-RS part to avoid RS messing with GDT.
15558 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15559 Increase to suit in realmode routines.
15560
15561 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15562
15563 * grub-core/kern/i386/realmode.S: Increase alignment.
15564 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15565
15566 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15567
15568 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15569 be deterministic.
15570 (syndroms): Compute 0 syndrom.
15571 (rs_recover): Use 0 syndrom.
15572
15573 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15574
15575 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15576
15577 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15578
15579 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15580 brackets.
15581
15582 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15585 account.
15586 (get_top_pad): Likewise.
15587 (get_right_pad): Likewise.
15588 (get_bottom_pad): Likewise.
15589
15590 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15591
15592 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15593
15594 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15595
15596 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15597 attribute as the structure isn't guaranteed to be properly aligned.
15598 (grub_efi_pci_device_path): Likewise.
15599 (grub_efi_pccard_device_path): Likewise.
15600 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15601 specify the size of `memory_type'.
15602 (grub_efi_vendor_device_path): Likewise.
15603 (grub_efi_controller_device_path): Likewise.
15604 (grub_efi_acpi_device_path): Likewise.
15605 (grub_efi_expanded_acpi_device_path): Likewise.
15606 (grub_efi_atapi_device_path): Likewise.
15607 (grub_efi_scsi_device_path): Likewise.
15608 (grub_efi_fibre_channel_device_path): Likewise.
15609 (grub_efi_1394_device_path): Likewise.
15610 (grub_efi_usb_device_path): Likewise.
15611 (grub_efi_usb_class_device_path): Likewise.
15612 (grub_efi_i2o_device_path): Likewise.
15613 (grub_efi_mac_address_device_path): Likewise.
15614 (grub_efi_ipv4_device_path): Likewise.
15615 (grub_efi_ipv6_device_path): Likewise.
15616 (grub_efi_infiniband_device_path): Likewise.
15617 (grub_efi_uart_device_path): Likewise.
15618 (grub_efi_vendor_messaging_device_path): Likewise.
15619 (grub_efi_hard_drive_device_path): Likewise.
15620 (grub_efi_cdrom_device_path): Likewise.
15621 (grub_efi_vendor_media_device_path): Likewise.
15622 (grub_efi_file_path_device_path): Likewise.
15623 (grub_efi_protocol_device_path): Likewise.
15624 (grub_efi_piwg_device_path): Likewise.
15625 (grub_efi_bios_device_path): Likewise.
15626
15627 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15628
15629 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15630 (grub_ucs4_to_utf8_alloc): Likewise.
15631 (grub_ucs4_to_utf8): Likewise.
15632 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15633 (grub_ucs4_to_utf8_alloc): Likewise.
15634
15635 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15636
15637 AFFS never uses unicode.
15638
15639 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15640 (grub_latin1_to_utf8): New inline function.
15641 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15642
15643 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15646 overflow.
15647
15648 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15651 (grub_squash_dirent_header): Likewise.
15652 (read_chunk): Don't double swap.
15653 (grub_squash_iterate_dir): Fix swap sizes.
15654
15655 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15656
15657 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15658
15659 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15660
15661 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15662 (grub_hfs_iterate_dir): Likewise.
15663
15664 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15665
15666 Fix video on platforms where unaligned access is forbidden.
15667 Make several optimisations while on it.
15668
15669 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15670 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15671 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15672 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15673 Disable.
15674 (grub_video_fbblit_replace_16bit_1bit):
15675 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15676 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15677 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15678 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15679 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15680 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15681 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15682 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15683 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15684 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15685 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15686 (grub_video_fbblit_replace_index_RGB888): Likewise.
15687 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15688 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15689 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15690 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15691 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15692 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15693 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15694 Disable.
15695 (grub_video_fbblit_blend_XXX565_1bit):
15696 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15697 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15698 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15699 void *.
15700 * grub-core/video/fb/video_fb.c (common_blitter)
15701 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15702 (grub_video_fb_create_render_target_from_pointer)
15703 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15704 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15705 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15706 definition.
15707 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15708
15709 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15710
15711 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15712 HH22 and HM10 relocations.
15713
15714 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15715
15716 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15717
15718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15721 allocation succeeded.
15722
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15724
15725 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15726 argument a u8 pointer. All users updated.
15727 Handle unaligned buffers.
15728
15729 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15730
15731 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15732 add_part to workaround compiler bug.
15733
15734 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15735
15736 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15737
15738 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15739
15740 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15741 Reserve alignment invariants.
15742 (grub_multiboot_load): Likewise.
15743 (retrieve_video_parameters): Likewise.
15744 (grub_multiboot_make_mbi): Likewise.
15745
15746 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15749 incorrect pointer.
15750
15751 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15752
15753 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15754 (grub_pata_pio_write): Likewise.
15755
15756 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15757
15758 Add noreturn attributes and remove unreachable code.
15759
15760 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15761 code.
15762 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15763 code. Mark as noreturn.
15764 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15765 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15766 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15767 unreachable code.
15768 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15769 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15770 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15771 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15772 * include/grub/kernel.h (grub_main): Mark as noreturn.
15773 * include/grub/reader.h (grub_rescue_run): Likewise.
15774
15775 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15776
15777 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15778 redundant declaration.
15779
15780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15781
15782 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15783 redundant declaration.
15784 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15785
15786 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15787
15788 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15789 to ensure alignment.
15790 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15791 alignment. Ensure tmp alignment.
15792 (grub_cmd_hdparm): Ensure buf alignment.
15793 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15794 to ensure alignment.
15795 (grub_ata_dumpinfo): Ensure text alignment.
15796 (grub_atapi_identify): Preserve alignment invariant.
15797 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15798
15799 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15800
15801 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15802 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15803 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15804 * include/grub/misc.h (grub_reboot)
15805 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15806 (grub_halt) [__mips__]: Likewise.
15807
15808 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15809
15810 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15811 Remove redundant declaration.
15812 (grub_mmap_get_post64): Likewise.
15813 (grub_mmap_get_upper): Likewise.
15814 (grub_mmap_get_lower): Likewise.
15815
15816 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15817
15818 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15819 uint32_t * to ensure alignment.
15820 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15821
15822 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15823
15824 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15825 uint16_t * to ensure alignment.
15826 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15827 alignment.
15828
15829 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15830
15831 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15832 to ensure alignment.
15833 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15834
15835 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15836
15837 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15838 Handle unaligned pointers.
15839 (u32at): Likewise.
15840 (u64at): Likewise.
15841 (fixup): Use byte access instead of v16at.
15842 (find_attr): Fix imporper usage of v32at.
15843 (read_data): Likewise.
15844 (list_file): Handle byte-swapping and unaligned strings.
15845 (grub_ntfs_label): Likewise.
15846
15847 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15848
15849 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15850 as it's not necessarily aligned.
15851
15852 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15855 redundant declaration.
15856 (grub_serial_init): Likewise.
15857 (grub_terminfo_init): Likewise.
15858
15859 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15860
15861 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15862 function.
15863 (ZAP_HASH_IDX): Likewise.
15864 (ZAP_LEAF_HASH_SHIFT): Likewise.
15865 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15866 (LEAF_HASH): Likewise.
15867 (ZAP_LEAF_NUMCHUNKS): Likewise.
15868 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15869 alignment invariants. Return pointer. All users updated.
15870 (ZAP_LEAF_ENTRY): Make into inline function.
15871 (NBBY): Removed.
15872 (xor): LIkewise.
15873 (xor_out): Use grub_crypto_xor.
15874 (dnode_get_path): Use grub_get_unaligned.
15875 (nvlist_find_value): Likewise.
15876 (grub_zfs_nvlist_lookup_uint64): Likewise.
15877 (grub_zfs_nvlist_lookup_string): Likewise.
15878 (get_nvlist_size): Likewise.
15879 (grub_zfs_open): Likewise.
15880 (fill_fs_info): Likewise.
15881 (grub_zfs_dir): Likewise.
15882 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15883 alignment invariants.
15884 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15885 necessarily aligned.
15886
15887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15890
15891 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15892
15893 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15894 arithmetic to conserve alignment invariants.
15895
15896 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15899 redundant declaration.
15900 (grub_efiemu_mm_obtain_request): Likewise.
15901 (grub_efiemu_prepare): Likewise.
15902
15903 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15904
15905 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15906 to match types.
15907
15908 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15909
15910 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15911 case of aunaligned recptr.
15912 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15913 alignment.
15914 (grub_hfsplus_btree_search): Handle unaligned index.
15915
15916 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15917
15918 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15919 to get freetag and skip.
15920
15921 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15924 array.
15925 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15926 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15927
15928 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15929
15930 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15931 name for checksum and fix allocation algorithm.
15932
15933 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15934
15935 * include/grub/types.h (grub_properly_aligned_t): New type.
15936 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15937 (grub_get_unaligned16): Add explicit casts.
15938 (grub_get_unaligned32): Likewise.
15939 (grub_get_unaligned64): Likewise.
15940 (grub_set_unaligned16): New function.
15941 (grub_set_unaligned32): Likewise.
15942
15943 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15944
15945 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15946
15947 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15948
15949 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15950 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15951 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15952
15953 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15954
15955 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15956 conditionals.
15957
15958 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15959
15960 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15961 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15962
15963 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15964
15965 Unify and improve RAID and crypto xor.
15966
15967 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15968 changed to grub_crypto_xor
15969 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15970 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15971 Use bigger types when possible.
15972
15973 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15974
15975 * grub-core/disk/raid.c (scan_devices): Fix condition.
15976
15977 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15978
15979 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15980 Make name a const ptr.
15981
15982 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15983
15984 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15985 first argument a const pointer.
15986 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15987 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15988 proto.
15989 (grub_children_iterate): Likewise.
15990 (grub_machine_mmap_iterate): Remove redundant declaration.
15991
15992 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15993
15994 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15995 (grub_cmd_acpi) [!x86]: Disable EBDA.
15996
15997 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15998
15999 Enable UTF8 in gnulib regexp.
16000
16001 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16002 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16003 (isupper): Use grub_isupper.
16004 (isascii): New inline function.
16005 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16006 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16007 * grub-core/normal/charset.c (grub_utf8_process): New function.
16008 (grub_utf8_to_utf16): Use grub_utf8_process.
16009 (grub_encode_utf8_character): New function.
16010 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16011 * include/grub/charset.h (grub_utf8_process): New declaration.
16012 (grub_encode_utf8_character): Likewise.
16013 * include/grub/misc.h (grub_islower): New inline function.
16014 (grub_isupper): Likewise.
16015 (grub_strchrsub): Moved down to fix the definitions.
16016
16017 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16018
16019 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16020 specification.
16021
16022 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 * include/grub/loader.h (grub_loader_register_preboot_hook):
16025 Use struct preboot * and not void * for handle. All users updated.
16026 (grub_loader_unregister_preboot_hook): Likewise.
16027
16028 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16029
16030 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16031 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16032 UTF-16-BE. All users updated.
16033 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16034 (grub_hfsplus_iterate_dir): Likewise.
16035 (grub_hfsplus_label): Likewise.
16036
16037 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16038
16039 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16040
16041 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16042
16043 Add missing const qualifiers.
16044
16045 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16046 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16047 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16048 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16049 (grub_lvm_check_flag): Likewise.
16050 * grub-core/efiemu/i386/coredetect.c
16051 (grub_efiemu_get_default_core_name): Likewise
16052 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16053 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16054 * grub-core/fs/ntfs.c (fixup): Likewise.
16055 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16056 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16057 (fzap_lookup): Likewise.
16058 (zap_lookup): Likewise.
16059 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16060 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16061 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16062 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16063 (grub_freebsd_add_meta_module): Likewise.
16064 (grub_cmd_freebsd_module): Likewise.
16065 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16066 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16067 (grub_xnu_writetree_get_size): Likewise.
16068 (grub_xnu_writetree_toheap_real): Likewise.
16069 (grub_xnu_find_key): Likewise.
16070 (grub_xnu_create_key): Likewise.
16071 (grub_xnu_create_value): Likewise.
16072 (grub_xnu_register_memory): Likewise.
16073 (grub_xnu_check_os_bundle_required): Likewise.
16074 (grub_xnu_scan_dir_for_kexts): Likewise.
16075 (grub_xnu_load_kext_from_dir): Likewise.
16076 * grub-core/normal/color.c (color_list): Likewise.
16077 * grub-core/normal/completion.c (current_word): Likewise.
16078 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16079 * grub-core/term/serial.c (grub_serial_find): Likewise.
16080 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16081 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16082 Likewise.
16083 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16084 (grub_freebsd_add_meta_module): Likewise.
16085 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16086 * include/grub/net.h (grub_net_card_driver): Likewise.
16087 (grub_net_card): Likewise.
16088 (grub_net_app_protocol): Likewise.
16089 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16090 * include/grub/serial.h (grub_serial_find): Likewise.
16091 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16092 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16093 (grub_xnu_create_value): Likewise.
16094 (grub_xnu_find_key): Likewise.
16095 (grub_xnu_scan_dir_for_kexts): Likewise.
16096 (grub_xnu_load_kext_from_dir): Likewise.
16097
16098 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16099 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16100 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16101 Moved from here ...
16102 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16103
16104 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16105
16106 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16107
16108 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16109
16110 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16111 (read_device): Fix size calculation.
16112
16113 2011-11-25 Robert Millan <rmh@gnu.org>
16114
16115 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16116 (find_root_device_from_libzfs): Add zpool output parser to be used
16117 as fallback when libzfs isn't available.
16118
16119 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16120
16121 * po/Makefile.in.in: Add missing escape-continuation.
16122
16123 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16124
16125 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16126
16127 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16128
16129 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16130
16131 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16132
16133 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16134
16135 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16136
16137 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16138
16139 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16140
16141 * grub-core/lib/adler32.c: Add missing license specification.
16142 * grub-core/lib/crc64.c: Likewise.
16143 * grub-core/loader/i386/pc/plan9.c: Likewise.
16144 * grub-core/partmap/plan.c: Likewise.
16145
16146 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16147
16148 Add facility to debug GRUB with gdb under qemu.
16149
16150 * grub-core/gdb_grub.in: New file.
16151 * grub-core/gmodule.pl.in: Likewise.
16152 * grub-core/Makefile.core.def (gmodule.pl): New script.
16153 (gdb_grub): Likewise.
16154
16155 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16156
16157 * util/grub-mount.c (argp_parser): Accept relative pathes.
16158 * util/grub-fstest.c (argp_parser): Likewise.
16159
16160 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16161
16162 Plan9 support.
16163
16164 * Makefile.util.def (libgrubmods): Add
16165 grub-core/partmap/plan.c.
16166 * docs/grub.texi: Notice Plan9 support.
16167 * grub-core/Makefile.core.def (plan9): New module.
16168 (part_plan): Likewise.
16169 * grub-core/loader/i386/pc/plan9.c: New file.
16170 * grub-core/partmap/plan.c: Likewise.
16171 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16172 define.
16173 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16174 * include/grub/mm.h (grub_extend_alloc): New inline function.
16175
16176 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16177
16178 Make Reed-Solomon faster by using power of generator representation of
16179 GF(256)*.
16180
16181 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16182 (gf_double_t): Likewise.
16183 (gf_invert): Removed.
16184 (gf_powx): New array.
16185 (gf_powx_inv): Likewise.
16186 (scratch): Move higher.
16187 (gf_reduce): Removed.
16188 (gf_mul): Use powx.
16189 (gf_invert): Likewise.
16190 (init_inverts): Replaced with ...
16191 (init_powx): ...this. All users updated.
16192 (pol_evaluate): Replace multiplications with additions.
16193 (rs_encode): Likewise.
16194 (gauss_eliminate): Call gf_invert.
16195 (grub_reed_solomon_add_redundancy): Call init_powx.
16196 (grub_reed_solomon_recover): Call init_powx unconditionally.
16197
16198 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16201
16202 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16203
16204 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16205 disk->partiton for safety.
16206
16207 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16208
16209 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16210 Fix a memory leak.
16211 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16212
16213 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16214
16215 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16216
16217 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16220
16221 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16222
16223 Fix spaces handling in proc/self/mountinfo.
16224
16225 * util/getroot.c (unescape): New function.
16226 (grub_find_root_device_from_mountinfo): Use unescape.
16227
16228 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16229
16230 Support ZFS embedding.
16231
16232 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16233 (grub_zfs_fs): Register grub_zfs_embed.
16234
16235 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16236
16237 Fix MIPS compilation.
16238
16239 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16240 * include/grub/offsets.h: Rename decompressor fields from
16241 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16242 * util/grub-mkimage.c (image_targets): Use new names.
16243
16244 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16245
16246 Defer multiboot device parsing until we're in compressed part.
16247
16248 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16249 bsd_part. setdevice has fallen into disuse.
16250 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16251 (bsd_part): Likewise.
16252 (boot_dev): New variable.
16253 (multiboot_trampoline): Don't parse multiboot device.
16254 Pass multiboot device in %edx.
16255 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16256 grub_boot_device.
16257 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16258 Likewise.
16259 * grub-core/kern/i386/pc/startup.S: Save edx.
16260 (grub_boot_drive): Removed.
16261 (grub_install_dos_part): Likewise.
16262 (grub_install_bsd_part): Likewise.
16263 (grub_boot_device): New variable.
16264 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16265 (grub_install_bsd_part): Likewise.
16266 (grub_boot_drive): Likewise.
16267 (grub_boot_device): New variable.
16268 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16269 Removed.
16270 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16271 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16272 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16273 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16274 * util/grub-install.in: Remove redundant condition.
16275
16276 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 Fix bug introduced by previous commit.
16279
16280 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16281
16282 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16283
16284 Use decompressors framework on i386-pc. It increases core size
16285 by 46 bytes but improves compatibility and maintainability.
16286
16287 * grub-core/Makefile.core.def (lzma_decompress): New image.
16288 (kernel): Add i386_pc_ldflags.
16289 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16290 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16291 to real_to_prot, prot_to_real and device info.
16292 * include/grub/offsets.h: Renamed decompressor offsets.
16293 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16294 (image_target_desc): Remove raw_size and rename decompressor fields.
16295 (compress_kernel): Handle lzma.
16296 (generate_image): Handle decompressors on i386-pc.
16297
16298 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16299
16300 * configure.ac: Add -fno-asynchronous-unwind-tables.
16301
16302 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16303
16304 Move assembly code to C by using intwrap. It increases core size
16305 by 88 bytes but improves compatibility and maintainability.
16306
16307 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16308 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16309 ... here. Translated to C.
16310 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16311 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16312 ... here. Translated to C.
16313 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16314 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16315 ... here. Translated to C.
16316 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16317 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16318 ... here. Translated to C.
16319 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16320 * grub-core/term/i386/pc/console.c (grub_console_cls):
16321 ... here. Translated to C.
16322 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16323 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16324 ... here. Translated to C.
16325 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16326 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16327 Translated to C.
16328 * grub-core/term/i386/pc/console.c (int10_9): New function.
16329 (grub_console_putchar): Likewise.
16330 * include/grub/i386/pc/console.h: Removed the not anymore shared
16331 functions.
16332
16333 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16334
16335 Move grub_chainloader_real_boot out of the kernel.
16336
16337 * grub-core/Makefile.am: Remove machine/loader.h.
16338 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16339 Removed.
16340 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16341 variable.
16342 (grub_relocator16_keep_a20_enabled): Likewise.
16343 (grub_relocator16_boot): Fill new variables.
16344 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16345 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16346 relocator.
16347 (grub_chainloader_unload): Likewise.
16348 (grub_chainloader_cmd): Likewise.
16349 * include/grub/i386/pc/loader.h: Removed.
16350 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16351 and esi. All initialisers updated.
16352
16353 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16354 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16355
16356 * Makefile.util.def (grub-mount): New util.
16357 * .bzrignore: Add grub-mount.
16358 * configure.ac: Check for fuse and enable grub-mount if available.
16359 * docs/man/grub-mount.h2m: New file.
16360 * util/grub-mount.c: Likewise.
16361
16362 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16363
16364 * grub-core/commands/efi/fixvideo.c: Gettextize.
16365 * grub-core/commands/hashsum.c: Likewise.
16366 * grub-core/commands/i386/cmostest.c: Likewise.
16367 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16368 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16369 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16370 * grub-core/commands/lsmmap.c: Likewise.
16371 * grub-core/commands/menuentry.c: Likewise.
16372 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16373 * grub-core/commands/setpci.c: Likewise.
16374 * grub-core/loader/i386/bsd.c: Likewise.
16375 * grub-core/loader/i386/linux.c: Likewise.
16376 * util/getroot.c: Likewise.
16377 * util/grub-editenv.c: Likewise.
16378 * util/grub-fstest.c: Likewise.
16379 * util/grub-mkfont.c: Likewise.
16380 * util/grub-mkimage.c: Likewise.
16381 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16382 * util/grub-pe2elf.c: Likewise.
16383 * util/grub-probe.c: Likewise.
16384 * util/grub-setup.c: Likewise.
16385 * util/ieee1275/ofpath.c: Likewise.
16386 * util/misc.c: Likewise.
16387 * util/raid.c: Likewise.
16388
16389 2011-11-11 Robert Millan <rmh@gnu.org>
16390
16391 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16392 __attribute__((unused)) from `os_dev', which *is* being used.
16393
16394 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16395
16396 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16397 forgotten define.
16398 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16399 GRUB_IA64_DL_GOT_ALIGN.
16400 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16401 GRUB_IA64_DL_TRAMP_ALIGN.
16402
16403 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16404
16405 Replace grub_fatal with normal errors in i386 linux loader.
16406
16407 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16408 (allocate_pages): Check find_efi_mmap_size return value.
16409 (grub_e820_add_region): Return error.
16410 (grub_linux_boot): Check mmap return value.
16411
16412 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16413
16414 * grub-core/commands/acpihalt.c: Gettextized.
16415 * grub-core/commands/cacheinfo.c: Likewise.
16416 * grub-core/commands/cmp.c: Likewise.
16417 * grub-core/commands/efi/loadbios.c: Likewise.
16418 * grub-core/commands/gptsync.c: Likewise.
16419 * grub-core/commands/ieee1275/suspend.c: Likewise.
16420 * grub-core/commands/legacycfg.c: Likewise.
16421 * grub-core/commands/memrw.c: Likewise.
16422 * grub-core/commands/minicmd.c: Likewise.
16423 * grub-core/commands/parttool.c: Likewise.
16424 * grub-core/commands/time.c: Likewise.
16425 * grub-core/commands/videoinfo.c: Likewise.
16426 * grub-core/disk/geli.c: Likewise.
16427 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16428 * grub-core/disk/luks.c: Likewise.
16429 * grub-core/disk/lvm.c: Likewise.
16430 * grub-core/font/font_cmd.c: Likewise.
16431 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16432 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16433 * grub-core/gfxmenu/view.c: Likewise.
16434 * grub-core/kern/emu/hostdisk.c: Likewise.
16435 * grub-core/kern/emu/main.c: Likewise.
16436 * grub-core/kern/emu/misc.c: Likewise.
16437 * grub-core/kern/emu/mm.c: Likewise.
16438 * grub-core/kern/mips/arc/init.c: Likewise.
16439 * grub-core/kern/mips/loongson/init.c: Likewise.
16440 * grub-core/kern/partition.c: Likewise.
16441 * grub-core/lib/i386/halt.c: Likewise.
16442 * grub-core/lib/mips/arc/reboot.c: Likewise.
16443 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16444 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16445 * grub-core/loader/i386/xnu.c: Likewise.
16446 * grub-core/loader/multiboot.c: Likewise.
16447 * grub-core/net/bootp.c: Likewise.
16448 * grub-core/net/net.c: Likewise.
16449 * grub-core/normal/term.c: Likewise.
16450 * grub-core/partmap/bsdlabel.c: Likewise.
16451 * grub-core/parttool/msdospart.c: Likewise.
16452 * grub-core/term/gfxterm.c: Likewise.
16453 * grub-core/term/terminfo.c: Likewise.
16454 * grub-core/video/i386/pc/vbe.c: Likewise.
16455 * util/grub-menulst2cfg.c: Likewise.
16456 * util/grub-mkdevicemap.c: Likewise.
16457 * util/grub-mklayout.c: Likewise.
16458 * util/grub-mkrelpath.c: Likewise.
16459 * util/grub-script-check.c: Likewise.
16460 * util/ieee1275/grub-ofpathname.c: Likewise.
16461 * util/resolve.c: Likewise.
16462
16463 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16464
16465 Support %1$d syntax.
16466
16467 * tests/printf_unit_test.c: New file.
16468 * Makefile.util.def (printf_test): New test.
16469 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16470
16471 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16474 fix.
16475
16476 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16477
16478 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16479 dprintf.
16480 * grub-core/font/font.c (grub_font_load): Likewise.
16481
16482 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16483
16484 * util/grub-macho2img.c: Add comment concerning gettext.
16485 * grub-core/lib/legacy_parse.c: Likewise.
16486
16487 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16488
16489 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16490 (grub_xvasprintf): Likewise.
16491
16492 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16493
16494 Add const keyword to grub_env_get and gettextize week days.
16495
16496 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16497 (grub_read_hook_datetime): Return const char *.
16498 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16499 updated.
16500 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16501 Mark for gettext.
16502 (grub_get_weekday_name): Return const char *. Call gettext.
16503 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16504 char * and len as the argument. All users updated.
16505 (grub_script_argv_split_append): Receive const char *.
16506 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16507 * include/grub/env.h (grub_env_get): Likewise.
16508 (grub_env_read_hook_t): Return const char *.
16509 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16510 (grub_script_argv_split_append): Likewise.
16511
16512 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16515
16516 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16517
16518 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16519 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16520
16521 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16522
16523 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16524 Fix prototype.
16525
16526 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16527
16528 Fix mips compilation.
16529
16530 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16531 normal decoder.
16532 (hashes): Use in embed decoder as well (for sizes).
16533 (dec_stream_header): Fix embed decompressor logic.
16534 (dec_stream_footer): Likewise.
16535
16536 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16537
16538 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16539 an error and not a fatal on unrecognised relocation types.
16540
16541 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16542
16543 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16544 Issue error rather than printf on unknown arguments.
16545
16546 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16547
16548 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16549 Make buf a const.
16550
16551 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16552
16553 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16554 Fix module name.
16555
16556 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16557
16558 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16559 leftover debug printf.
16560
16561 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16562
16563 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16564
16565 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16566
16567 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16568 A stylistic fix.
16569
16570 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16571
16572 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16573
16574 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16575
16576 Allow all modules to perform serial IO
16577
16578 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16579 * include/grub/serial.h (grub_serial_port_configure): New inline
16580 function.
16581 (grub_serial_port_fetch): Likewise.
16582 (grub_serial_port_put): Likewise.
16583 (grub_serial_port_fini): Likewise.
16584 (grub_serial_find): New proto.
16585
16586 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 Put symlink at the end of the node and fix a potential
16589 memory corruption.
16590
16591 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16592 Make symlink into an array.
16593 (set_rockridge): Set have_symlink and alloc_dirents.
16594 (grub_iso9660_read_symlink): Use new layout.
16595 (grub_iso9660_iterate_dir): Fix memory corruption.
16596 Use new layout.
16597 (grub_iso9660_dir): Set have_symlink.
16598 (grub_iso9660_open): Likewise.
16599
16600 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 Remove local keyword.
16603
16604 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16605 (version_test_gt): Likewise.
16606 (version_find_latest): Likewise.
16607 (gettext_printf): Likewise.
16608 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16609
16610 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16611
16612 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16613
16614 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16615
16616 Fix ZFS memory and resource leaks.
16617
16618 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16619 All users updated.
16620 Free type on exit.
16621 (fill_vdev_info): New parameter inserted. All users updated.
16622 (check_pool_label): Likewise.
16623 (scan_disk): Likewise.
16624 (scan_devices): Close non-inserted disks.
16625 (fzap_iterate): Free l.
16626 (unmount_device): Free children descripto memory.
16627
16628 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16629
16630 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16631 argument (access out of bounds).
16632
16633 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16634
16635 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16636 >= 6 drives.
16637
16638 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16639
16640 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16641 Fix declaration.
16642
16643 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16644
16645 Fix several memory leaks.
16646
16647 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16648 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16649 (grub_cpio_dir): Likewise.
16650 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16651 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16652 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16653 (grub_romfs_label): Likewise.
16654 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16655 (squash_unmount): New function.
16656 (grub_squash_dir): Fix memory leak.
16657 (grub_squash_open): Likewise.
16658 (grub_squash_read): Likewise.
16659 (grub_squash_mtime): Likewise.
16660 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16661 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16662 * util/grub-fstest.c (fstest): Likewise.
16663
16664 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16665
16666 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16667 avoid accessing beyond the array.
16668
16669 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16670
16671 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16672
16673 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 Several AFFS fixes.
16676
16677 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16678 (GRUB_AFFS_FLAG_FFS): Removed.
16679 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16680 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16681 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16682 (grub_fshelp_node): Make block 32-bit.
16683 Add block_cache and last_block_cache.
16684 (grub_affs_read_block): Fill and use block cache.
16685 (grub_affs_read_file): Removed.
16686 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16687 boot block.
16688 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16689 safety.
16690 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16691 space.
16692 (grub_affs_close): Free block cache.
16693 (grub_affs_read): Use grub_fshelp_read_file directly.
16694
16695 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16698 with no error set.
16699
16700 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16701
16702 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16703 used variable.
16704 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16705 Likewise.
16706
16707 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16710
16711 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16712 byteswap when needed.
16713
16714 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16715
16716 Fix FreeBSD compilation.
16717
16718 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16719 to avoid circular dependency.
16720 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16721 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16722 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16723
16724 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16725
16726 Fix ZFS crypto error types.
16727
16728 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16729 (grub_gcm_decrypt): Likewise.
16730 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16731 from PBKDF2.
16732
16733 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16734
16735 Illumos support.
16736
16737 * Makefile.util.def (10_illumos): New script.
16738 * configure.ac: Set COND_HOST_ILLUMOS.
16739 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16740 Support Illumos calls.
16741 (find_partition_start) [__sun__]: Likewise.
16742 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16743 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16744 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16745 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16746 device.
16747 * util/grub-probe.c (probe) [__sun__]: Do character check.
16748 * util/grub.d/10_illumos.in: New file.
16749
16750 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16751
16752 Support escaped commas in hostdisk.
16753
16754 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16755 (find_grub_drive): Use unescape_cmp.
16756 (make_device_name): Escape commas.
16757
16758 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16759
16760 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16761
16762 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16763
16764 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16765 variable.
16766
16767 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 Support trampoline jumps on powerpc.
16770
16771 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16772 __ia64__ path.
16773 (grub_dl_load_segments): Set mod->sz.
16774 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16775 segments.
16776 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16777 (jump): Likewise.
16778 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16779 function.
16780 (trampoline): New struct.
16781 (trampoline_template): New const.
16782 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16783 * include/grub/dl.h (grub_dl): Add sz element.
16784 [__powerpc__]: Follow __ia64__.
16785 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16786 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16787 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16788 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16789
16790 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16791
16792 ZFS crypto support.
16793
16794 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16795 * grub-core/Makefile.core.def (zfscrypt): New module.
16796 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16797 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16798 it. All users updated.
16799 (grub_zfs_decrypt): New var.
16800 (grub_zfs_load_key): Likewise.
16801 (zio_checksum_functions): Add SHA256+MAC.
16802 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16803 (zio_read): Handle encrypted blocks.
16804 (zap_verify): Remove incorrect check.
16805 (fzap_iterate): Handle non-standard fzap.
16806 (zap_iterate): Likewise.
16807 (zap_iterate_u64): New function.
16808 (dnode_get_fullpath): Load keys.
16809 * grub-core/fs/zfs/zfscrypt.c: New file.
16810 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16811 (grub_crypto_ecb_encrypt): Make input const.
16812 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16813 (grub_crypto_ecb_encrypt): Make input const.
16814 (GRUB_CIPHER_AES): New macro.
16815 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16816 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16817 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16818 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16819 prefix. All users updated.
16820 (grub_zfs_add_key): New proto.
16821 (grub_zfs_decrypt): Likewise.
16822 (grub_zfs_load_key): Likewise.
16823 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16824 * util/grub-fstest.c (options): Add -K option.
16825 (argp_parser): Likewise.
16826
16827 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16828
16829 Support zle compression on ZFS.
16830
16831 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16832 (decomp_table): Add zle.
16833 * include/grub/zfs/zio.h (zio_compress): Add zle.
16834
16835 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16836
16837 Support BtrFS embedding.
16838
16839 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16840 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16841 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16842 * util/grub-setup.c (setup): Use fs embedding if available.
16843 Add additional sanity check.
16844
16845 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 * util/grub-install.in: Fix condition for config_opt.
16848
16849 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16850
16851 Support third redundancy strip on raidz3.
16852
16853 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16854 Return error on singularity. All users updated.
16855 (read_device): Don't stop on 3rd failure on raidz3.
16856
16857 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16858
16859 Support case-insensitive ZFS subvolumes.
16860
16861 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16862 All users updated.
16863 (zap_hash): Likewise.
16864 (name_cmp): New function.
16865 (zap_leaf_array_equal): New parameter case_insensitive.
16866 All users updated.
16867 (zap_leaf_lookup): Likewise.
16868 (fzap_lookup): Likewise.
16869 (zap_lookup): Likewise.
16870 (dnode_get_path): New parameter case_insensitive. Retrieve case
16871 sensitiviness of a volume. All users updated.
16872 (dnode_get_fullpath): New parameter case_insensitive.
16873 All users updated.
16874 (grub_zfs_dir): Set info.case_insensitiveness.
16875
16876 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16877
16878 Support second redundancy strip on raidz(2,3).
16879
16880 * grub-core/fs/zfs/zfs.c (powx): New array.
16881 (powx_inv): Likewise.
16882 (poly): New const.
16883 (xor_out): New function.
16884 (gf_mul): Likewise.
16885 (recovery): Likewise.
16886 (read_device): Use second redundancy strip.
16887
16888 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16889
16890 Use a power of generator representation of GF(256) multiplication group
16891 to save space time and complexity.
16892
16893 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16894 (raid6_table2): Likewise.
16895 (powx): New array.
16896 (powx_inv): Likewise.
16897 (poly): New const.
16898 (grub_raid_block_mul): Replace with ...
16899 (grub_raid_block_mulx): ...this.
16900 (grub_raid6_init_table): Rewritten.
16901 (grub_raid6_recover): Use power of generator representation.
16902
16903 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16904
16905 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16906 for the right device.
16907
16908 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16911 expected by grub-mkimage and it's more clear since there is no implicit
16912 padding.
16913
16914 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16915
16916 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16917 disk.
16918 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16919
16920 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16921
16922 * util/grub-mkrescue.in: Fix handling xorriso option.
16923
16924 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16927 NULL.
16928
16929 2011-11-03 crocket <crockabiscuit@gmail.com>
16930
16931 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16932
16933 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16934
16935 XZ CRC64 and SHA256 support.
16936
16937 * Makefile.util.def (libgrubmods): Add crc64.c.
16938 * grub-core/Makefile.core.def (crc64): New module.
16939 * grub-core/lib/crc64.c: New file.
16940 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16941 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16942 Fix the type.
16943 (MAX_HASH_SIZE): New define.
16944 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16945 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16946 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16947 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16948 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16949 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16950 Handle non-crc32 hashes.
16951 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16952 (dec_stream_header): Handle non-crc32 hashes.
16953 (dec_stream_footer): Likewise.
16954 (dec_block_header): Likewise.
16955 (dec_main): Likewise.
16956 (xz_dec_init): Likewise.
16957 (xz_dec_reset): Likewise.
16958 (xz_dec_end): Likewise.
16959 * util/import_gcry.py: Add CRC64 line.
16960
16961 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16964 as well.
16965
16966 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 Make reiserfs label retrieval similar to other *_label functions.
16969
16970 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16971 (REISERFS_MAX_LABEL_LENGTH): Removed.
16972 (REISERFS_LABEL_OFFSET): Likewise.
16973 (grub_reiserfs_label): Rewritten.
16974
16975 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16976
16977 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16978 field.
16979
16980 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16981
16982 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16983
16984 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16985
16986 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16987 drive failure on both raidz and raidz2.
16988
16989 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16990
16991 Fix RAIDZ(2) for >= 5 devices.
16992
16993 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16994 asize argument. All users updated.
16995
16996 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16997
16998 Fix RAIDZ(2).
16999
17000 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17001 (fill_vdev_info_real): Set ashift.
17002 (read_device): Rewrite RAIDZ part based on reverse engineering.
17003
17004 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17007 don't report potentially unavialiable fields in debug output.
17008 (find_path): Fix double-free and memory leak.
17009
17010 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17011
17012 Read label on UFS1.
17013
17014 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17015 (grub_ufs_fs): Always set .label.
17016
17017 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17018
17019 Use shifts in UFS.
17020
17021 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17022 (grub_ufs_data): New field log2_blksz.
17023 (grub_ufs_read_file): Use shifts.
17024 (grub_ufs_mount): Check block size and logarithm it.
17025
17026 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17027
17028 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17029 long symlinks.
17030
17031 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17032
17033 Handle symlinks and long names on tar and cpio.
17034
17035 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17036 (ATTR_FILE): Likewise.
17037 (ATTR_DIR): Likewise.
17038 (ATTR_LNK): Likewise.
17039 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17040 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17041 L and K entries.
17042 (grub_cpio_mount): Zero-fill data.
17043 (handle_symlink): New function.
17044 (grub_cpio_dir): Handle symlinks.
17045 (grub_cpio_open): Likewise.
17046 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17047
17048 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17049
17050 Fix iso9660 filename limitations and fix memory leaks.
17051
17052 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17053 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17054
17055 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17056
17057 Fix JFS file name length limitations.
17058
17059 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17060 (grub_jfs_diropen): Fix maximum filename length.
17061 (grub_jfs_getent): Fix filename length.
17062 (grub_jfs_lookup_symlink): Fix size checks.
17063
17064 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17065
17066 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17067 string.
17068
17069 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17070
17071 Leverage BFS implementation to read AFS.
17072
17073 * Makefile.util.def (libgrubmods): Add afs.c.
17074 * grub-core/Makefile.core.def (afs): New module
17075 * grub-core/fs/afs.c: New file.
17076 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17077
17078 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17079
17080 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17081
17082 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17083
17084 * grub-core/fs/bfs.c: Run indent.
17085
17086 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17087
17088 BFS implementation based on the specification.
17089
17090 * grub-core/fs/bfs.c: New file.
17091 * Makefile.util.def (libgrubmods): Add bfs.c.
17092 * grub-core/Makefile.core.def (bfs): New module.
17093
17094 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17095
17096 * util/grub-fstest.c (cmd_cp): Clarify error message.
17097 (cmd_cmp): Likewise.
17098
17099 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17100
17101 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17102 and befs_be.
17103
17104 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17105
17106 Remove afs and befs because of copyright problem.
17107
17108 * grub-core/fs/afs.c: Removed.
17109 * grub-core/fs/afs_be.c: Removed.
17110 * grub-core/fs/befs.c: Removed.
17111 * grub-core/fs/befs_be.c: Removed.
17112 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17113 * grub-core/Makefile.core.def (afs): Removed.
17114 (afs_be): Likewise.
17115 (befs): Likewise.
17116 (befs_be): Likewise.
17117
17118 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17119
17120 Prefer rockridge over Joliet.
17121
17122 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17123 to ...
17124 (set_rockridge): ... here.
17125 (grub_iso9660_mount): Check rockridge on the primary label when
17126 discovering. Ignore Joliet if Rockridge is present.
17127
17128 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17129
17130 Use shifts in nilfs2.
17131
17132 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17133 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17134 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17135 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17136 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17137 (grub_nilfs2_entries_per_block): Replaced with ...
17138 (grub_nilfs2_log_entries_per_block_log): ... this.
17139 (grub_nilfs2_blocks_per_group): Replaced with ...
17140 (grub_nilfs2_blocks_per_group_log): ... this.
17141 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17142 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17143 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17144 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17145 (grub_nilfs2_palloc_entry_offset): Replaced ...
17146 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17147 (grub_nilfs2_dat_translate): Use shifts.
17148 (grub_nilfs2_read_inode): Likewise.
17149 (GRUB_MOD_INIT): Ensure that logs are correct.
17150
17151 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17152
17153 Use shifts in minix filesystem.
17154
17155 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17156 (GRUB_MINIX_ZONE2SECT): Likewise.
17157 (grub_minix_data): Replace block_size with log_block_size.
17158 (grub_minix_read_file): Use shifts.
17159 (grub_minix_mount): Check block size and take a logarithm.
17160
17161 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17162
17163 Use shifts in squash4.
17164
17165 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17166 (squash_mount): Check block size and take logarithm.
17167 (direct_read): Use shifts.
17168
17169 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17170
17171 Correct befs block counting logic.
17172
17173 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17174 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17175 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17176 (grub_afs_read_inode): Use block_shift.
17177 (RANGE_SHIFT): New definition.
17178 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17179 unexpected conditions, use shifts and appropriate types.
17180 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17181
17182 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 * grub-core/disk/raid.c (scan_devices): Check partition.
17185 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17186
17187 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17188
17189 Support BFS (befs) UUID.
17190
17191 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17192 (grub_afs_small_data_element_header): New struct.
17193 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17194 (grub_afs_read_attribute) [MODE_BFS]: New function.
17195 (grub_afs_iterate_dir): Allocate for complete inode.
17196 (grub_afs_mount): Likewise.
17197 (grub_afs_uuid) [MODE_BFS]: New function.
17198 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17199
17200 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17201
17202 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17203 (zfs_unmount): Fix memory leak.
17204
17205 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17206
17207 Support NTFS reparse points.
17208
17209 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17210 (symlink_descriptor): New struct.
17211 (grub_ntfs_read_symlink): New function.
17212 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17213 (grub_ntfs_open): Likewise.
17214
17215 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17216
17217 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17218
17219 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17220
17221 fstest xnu_uuid subcommand.
17222
17223 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17224 grub-core/commands/xnu_uuid.c.
17225 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17226 (fstest): Handle xnu_uuid.
17227 (options): Document xnu_uuid.
17228 (argp_parser): Parse xnu_uuid.
17229
17230 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17231
17232 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17233 -l argument. Add newline at the end if printing.
17234 (GRUB_MOD_INIT): Document -l.
17235
17236 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17237
17238 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17239
17240 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17241
17242 ZFS multi-device and version 33 support.
17243
17244 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17245 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17246 (grub_zfs_data): Add multidev-ice-related fields.
17247 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17248 (dva_get_offset): Make dva const.
17249 (zfs_fetch_nvlist): New function.
17250 (fill_vdev_info_real): Likewise.
17251 (fill_vdev_info): Likewise.
17252 (check_pool_label): Likewise.
17253 (scan_disk): Likewise.
17254 (scan_devices): Likewise.
17255 (read_device): Likewise.
17256 (read_dva): Likewise.
17257 (zio_read_gang): Use read_dva.
17258 (zio_read_data): Likewise.
17259 (zap_leaf_lookup): Add missing endian conversion.
17260 (zap_verify): Add missing endian conversion. All users updated.
17261 (fzap_lookup): Likewise.
17262 (fzap_iterate): Likewise.
17263 (dnode_get_path): Handle SA bonus.
17264 (nvlist_find_value): Make input const. All users updated.
17265 (unmount_device): New function.
17266 (zfs_unmount): Use unmount_device.
17267 (zfs_mount): Use scan_disk.
17268 (zfs_mtime): New function.
17269 (grub_zfs_open): Handle system attributes.
17270 (fill_fs_info): Likewise.
17271 (grub_zfs_dir): Likewise.
17272 (grub_zfs_fs): Add mtime.
17273 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17274 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17275 (SA_MTIME_OFFSET): Likewise.
17276 (SA_SYMLINK_OFFSET): Likewise.
17277 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17278 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17279 (fstest): Support zfsinfo.
17280 (argp_parser): Likewise.
17281
17282 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17283
17284 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17285 error.
17286
17287 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17288
17289 ZFS fixes.
17290
17291 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17292 sharing the same block. Iterate over correct number of indices.
17293 (dnode_get_path): Handle symlinks correctly.
17294
17295 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17298
17299 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17300
17301 Read label on HFS+.
17302
17303 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17304 (grub_hfsplus_btree_search): Fix types.
17305 (grub_hfsplus_label): Implement.
17306
17307 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17308
17309 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17310
17311 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17312
17313 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17314
17315 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17316
17317 Fix symlink handling on iso9660.
17318
17319 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17320 All users updated.
17321 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17322 (grub_iso9660_read_symlink): Moved most of code ...
17323 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17324
17325 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17326
17327 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17328 Use union to avoid breaking strict-aliasing rules.
17329
17330 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17331
17332 Support multi-extent iso files.
17333
17334 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17335 Add node.
17336 (grub_fshelp_node): Revamp. All users updated.
17337 (FLAG_*): New enum.
17338 (read_node): New function.
17339 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17340 All users updated.
17341 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17342 (get_node_size): New function.
17343 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17344 entries.
17345 Fix memory leak on . and ..
17346 (grub_iso9660_read): Use read_node.
17347 (grub_iso9660_close): Free node.
17348
17349 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17350
17351 Fix tar 4G limit and handle paths containing dot.
17352
17353 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17354 (canonicalize): New function.
17355 (grub_cpio_find_file): Use canonicalize. Store offs in
17356 grub_disk_addr_t.
17357 (grub_cpio_dir): Use grub_disk_addr_t.
17358 (grub_cpio_open): Likewise.
17359
17360 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17361
17362 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17363
17364 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17365 unused flags.
17366 (grub_squash_inode): Add long_file and block_size.
17367 (grub_squash_cache_inode): New struct.
17368 (grub_squash_dirent): Make types into enum.
17369 (SQUASH_TYPE_LONG_REGULAR): New type.
17370 (grub_squash_frag_desc): Add field size.
17371 (SQUASH_BLOCK_FLAGS): New enum.
17372 (grub_squash_data): Use grub_squash_cache_inode.
17373 (grub_fshelp_node): Make ino_chunk 64-bit.
17374 (read_chunk): Minor argument change. All users updated.
17375 (squash_mount): Use correct le_to_cpu.
17376 (grub_squash_open): Handle LONG_REGULAR.
17377 (direct_read): New function.
17378 (grub_squash_read_data): Handle blocks correctly.
17379
17380 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17381
17382 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17383
17384 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17385
17386 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17387
17388 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17389
17390 Fix 2G limit on ZFS.
17391
17392 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17393 types.
17394 (uberblock_verify): Likewise.
17395 (dmu_read): Likewise.
17396 (grub_zfs_read): Likewise. Remove invalid cast.
17397
17398 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17399
17400 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17401 (grub_jfs_blkno): Fix incorrect shift.
17402 (grub_jfs_read_file): Use more appropriate types.
17403
17404 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17405
17406 Support triple indirect on minix2 and minix3.
17407
17408 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17409 Declare triple_indir_zone.
17410 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17411 indirect.
17412
17413 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17414
17415 Minix FS fixes.
17416
17417 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17418 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17419 Rename ctime to mtime. All users updated.
17420 (grub_minix_get_file_block): Fix types and double indirect computations.
17421
17422 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17423
17424 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17425 if no label is found.
17426 (grub_fat_iterate_dir): Fix file size type.
17427 (grub_fat_iterate_dir): Likewise.
17428
17429 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17430
17431 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17432 save some space.
17433 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17434 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17435
17436 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17437
17438 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17439
17440 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17441
17442 * util/import_gcry.py: Accept space between # and include.
17443
17444 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17445
17446 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17447
17448 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17449
17450 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17451
17452 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17453 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17454 yylex_strncpy.
17455 * grub-core/script/yylex.l: Add fine-grained #pragma.
17456
17457 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17458
17459 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17460 New inline function.
17461 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17462 Likewise.
17463 (memset) [GRUB_UTIL]: Likewise.
17464 (memcmp) [GRUB_UTIL]: Likewise.
17465
17466 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17467
17468 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17469 inline function rather than a define.
17470
17471 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17472
17473 * util/grub-setup.c: Add missing include.
17474
17475 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17476
17477 * util/ieee1275/grub-ofpathname.c: Add missing include.
17478
17479 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17480
17481 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17482 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17483 Likewise.
17484
17485 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17486
17487 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17488 grub_memcmp usage.
17489
17490 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17491
17492 * util/grub-install.in: Add datarootdir as per automake manual
17493 suggestion.
17494 * util/grub-mknetdir.in: Likewise.
17495
17496 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17497
17498 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17499 suggestion.
17500 * util/grub.d/10_kfreebsd.in: Likewise.
17501 * util/grub.d/10_linux.in: Likewise.
17502 * util/grub.d/10_netbsd.in: Likewise.
17503 * util/grub.d/10_windows.in: Likewise.
17504 * util/grub.d/20_linux_xen.in: Likewise.
17505
17506 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17507
17508 Remove redundant grub_kernel_image_size.
17509
17510 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17511 _edata and _start.
17512 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17513 the small code. It moves it only by few bytes but simplifies the code.
17514 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17515 _start.
17516 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17517 (grub_kernel_image_size): Removed.
17518 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17519 (grub_kernel_image_size): Removed.
17520 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17521 compiled with Apple toolchain.
17522 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17523 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17524 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17525 (grub_total_module_size): Likewise.
17526 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17527 Removed.
17528 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17529 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17530 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17531 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17532 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17533 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17534 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17535 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17536 Removed.
17537 (grub_total_module_size): Removed.
17538 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17539 (image_targets): Likewise.
17540 Set .compressed_size to no field on sparc.
17541 (generate_image): Remove kernel_image_size handling.
17542
17543 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17544
17545 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17546 NULL pointer dereference.
17547
17548 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17549
17550 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17551 done with a dedicated section.
17552
17553 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17554 Ensure the correct position of boot_path.
17555 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17556 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17557 other fields.
17558 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17559 * include/grub/boot.h: Removed. All references removed.
17560 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17561 Removed.
17562 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17563
17564 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17565
17566 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17567 name.
17568
17569 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17570
17571 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17572
17573 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17574
17575 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17576 Don't add the bogus brackets.
17577
17578 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17579
17580 ExFAT support.
17581
17582 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17583 * grub-core/Makefile.core.def (exfat): New module.
17584 * grub-core/fs/exfat.c: New file.
17585 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17586 (GRUB_FAT_ATTR_*): Make into an enum.
17587 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17588 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17589 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17590 (GRUB_FAT_MAXFILE): Removed.
17591 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17592 (grub_current_fat_bpb_t): New type.
17593 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17594 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17595 (grub_fat_dir_node_t): New type.
17596 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17597 (fat_log2) [MODE_EXFAT]: Removed.
17598 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17599 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17600 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17601 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17602 (grub_fat_label) [MODE_EXFAT]: New function.
17603 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17604 reserved_first_sector to 0.
17605
17606 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17607
17608 Move grub_reboot out of the kernel.
17609
17610 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17611 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17612 * grub-core/lib/efi/reboot.c: ... here.
17613 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17614 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17615 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17616 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17617 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17618 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17619 * grub-core/lib/ieee1275/reboot.c: ... here.
17620 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17621 * grub-core/lib/mips/arc/reboot.c: ... here.
17622 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17623 * grub-core/lib/mips/loongson/reboot.c: ...here.
17624 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17625 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17626 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17627 * include/grub/i386/reboot.h: New file.
17628 * include/grub/mips/loongson/ec.h: Fix includes.
17629 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17630 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17631 * grub-core/lib/i386/reboot.c: New file.
17632
17633 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17634
17635 Make grub_prefix into module to fix the arbitrary limit and save
17636 some space.
17637
17638 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17639 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17640 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17641 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17642 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17643 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17644 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17645 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17646 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17647 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17648 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17649 * include/grub/ia64/efi/kernel.h: Removed.
17650 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17651 (grub_prefix): Removed.
17652 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17653 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17654 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17655 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17656 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17657 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17658 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17659 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17660 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17661 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17662 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17663 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17664 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17665 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17666 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17667 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17668 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17669 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17670 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17671 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17672 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17673 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17674 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17675 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17676 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17677 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17678 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17679 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17680 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17681 from module.
17682 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17683 prefix_end.
17684 (image_targets): Likewise.
17685 (generate_image): Put prefix as a module.
17686
17687 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17688
17689 Replace grub_module_iterate with FOR_MODULES.
17690
17691 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17692 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17693 (grub_efi_modules_addr): ...this.
17694 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17695 (grub_efi_init): Set grub_modbase.
17696 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17697 (grub_modbase): New variable.
17698 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17699 (grub_modbase): New variable.
17700 (grub_machine_init): Set grub_modbase.
17701 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17702 (grub_modbase): New variable.
17703 (grub_machine_init): Set grub_modbase.
17704 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17705 (grub_modbase): New variable.
17706 (grub_machine_init): Set grub_modbase.
17707 * grub-core/kern/main.c (grub_module_iterate): Remove.
17708 (grub_modules_get_end): Use grub_modbase.
17709 (grub_load_modules): Use FOR_MODULES.
17710 (grub_load_config): Likewise.
17711 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17712 (grub_modbase): New variable.
17713 (grub_machine_init): Set grub_modbase.
17714 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17715 (grub_modbase): New variable.
17716 (grub_machine_init): Set grub_modbase.
17717 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17718 Removed.
17719 (grub_modbase): New variable.
17720 (grub_machine_init): Set grub_modbase.
17721 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17722 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17723 (grub_module_iterate): Likewise.
17724 (grub_modbase): New variable declaration.
17725 (FOR_MODULES): New macro.
17726
17727 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17728
17729 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17730 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17731
17732 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17733
17734 Fix few obvious type discrepancies.
17735
17736 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17737 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17738 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17739 variable.
17740 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17741 and connected types.
17742 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17743 offset.
17744 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17745 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17746 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17747 and connected types.
17748
17749 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17750
17751 Fix python 3.x incompatibilities.
17752
17753 * gentpl.py: Put brackets around print strings.
17754 * util/import_gcry.py: Open explicitly as utf-8.
17755 Use in instead of has_key.
17756
17757 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17758
17759 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17760 (GRUB_XFS_INO_AGBITS): Make into inline function.
17761 (GRUB_XFS_INO_INOINAG): Likewise.
17762 (GRUB_XFS_INO_AG): Likewise.
17763 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17764 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17765 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17766 (GRUB_XFS_EXTENT_SIZE): Likewise.
17767 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17768 (GRUB_XFS_NEXT_DIRENT): Likewise.
17769 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17770 (grub_xfs_read_file): Fix offset type.
17771
17772 2011-10-15 Robert Millan <rmh@gnu.org>
17773
17774 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17775
17776 2011-10-15 Robert Millan <rmh@gnu.org>
17777
17778 Fix build problem on FreeBSD and GNU/kFreeBSD.
17779
17780 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17781
17782 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17783
17784 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17785
17786 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17787 types.
17788 (grub_hfsplus_btree_recoffset): Likewise.
17789 (grub_hfsplus_btree_recptr): Likewise.
17790 (grub_hfsplus_find_block): Likewise.
17791 (grub_hfsplus_btree_search): Likewise.
17792 (grub_hfsplus_read_block): Likewise.
17793 (grub_hfsplus_read_file): Likewise.
17794 (grub_hfsplus_mount): Likewise.
17795 (grub_hfsplus_btree_iterate_node): Likewise.
17796 (grub_hfsplus_btree_search): Likewise.
17797 (grub_hfsplus_iterate_dir): Likewise.
17798 (grub_hfsplus_read): A small code simplification.
17799
17800 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17801
17802 * grub-core/kern/emu/hostdisk.c
17803 (convert_system_partition_to_system_disk): Don't assume that children
17804 of mapper nodes are mapper nodes.
17805
17806 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17807
17808 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17809 * include/grub/misc.h (grub_isxdigit): New function.
17810 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17811 switched to grub_isxdigit.
17812 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17813 number starting with a letter.
17814
17815 2011-10-09 Robert Millan <rmh@gnu.org>
17816
17817 LVM support for FreeBSD and GNU/kFreeBSD.
17818
17819 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17820 GNU/kFreeBSD.
17821 (LVM_DEV_MAPPER_STRING): Move from here ...
17822 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17823 * util/getroot.c: Include `<grub/util/lvm.h>'.
17824 (grub_util_get_dev_abstraction): Enable
17825 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17826 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17827 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17828 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17829 support it.
17830 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17831 GNU/kFreeBSD.
17832 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17833 when LVM abstraction is required for ${GRUB_DEVICE}.
17834
17835 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17836
17837 Add support for LZO compression in GRUB:
17838 - import of minilzo library,
17839 - LZO decompression for btrfs,
17840 - lzop files decompression.
17841
17842 * grub-core/io/lzopio.c: New file.
17843 * grub-core/lib/adler32.c: Likewise.
17844 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17845 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17846 * grub-core/lib/minilzo/minilzo.c: Likewise.
17847 * grub-core/lib/minilzo/minilzo.h: Likewise.
17848 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17849 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17850 grub-core/lib/minilzo/minilzo.c to common.
17851 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17852 cflags in cppflags.
17853 * grub-core/Makefile.core.def (btrfs): Likewise.
17854 * grub-core/Makefile.core.def (lzopio): New module.
17855 (adler32): Likewise.
17856 * grub-core/fs/btrfs.c: Include minilzo.h.
17857 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17858 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17859 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17860 (grub_btrfs_lzo_decompress): New function.
17861 (grub_btrfs_extent_read): Add support for LZO compression type.
17862 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17863 (GRUB_USHRT_MAX): Likewise.
17864 (GRUB_UINT_MAX): Likewise.
17865 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17866 (UINT_MAX): Likewise.
17867 (CHAR_BIT): Likewise.
17868 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17869 grub-core/lib/posix_wrap/limits.h
17870 (UCHAR_MAX): Likewise.
17871 * include/grub/file.h (grub_file_filter_id): New compression filter
17872 GRUB_FILE_FILTER_LZOPIO.
17873 * include/grub/file.h (grub_file_filter_id): Set
17874 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17875 * include/grub/types.h (grub_get_unaligned16): New function.
17876 (grub_get_unaligned32): Likewise.
17877 (grub_get_unaligned64): Likewise.
17878 * util/import_gcry.py (cryptolist): Add adler32.
17879
17880 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17881
17882 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17883 in perspective decreases the complexity of build system and fixes
17884 compilation right now.
17885
17886 2011-10-01 Ales Nesrsta <starous@volny.cz>
17887
17888 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17889 (fixed problem related to using UHCI with coreboot).
17890
17891 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17892
17893 * gentpl.py: Use Autogen macros so that the output template file
17894 (Makefile.tpl) size is reduced.
17895
17896 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17897
17898 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17899 extra_dist.
17900
17901 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17902
17903 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17904 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17905
17906 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17907
17908 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17909 _fullpath.
17910
17911 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17912
17913 Remove extra declaration of sleep for mingw32.
17914
17915 * util/misc.c (sleep) [__MINGW32__]: Removed.
17916 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17917
17918 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17919
17920 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17921 type and packname.
17922 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17923 Resurrected.
17924 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17925 (grub_netbsd_btinfo_bootwedge): New struct.
17926 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17927 New function.
17928 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17929
17930 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17931
17932 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17933 loader.
17934
17935 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17936
17937 Fix incorrect identifiers in bash-completion.
17938
17939 * util/bash-completion.d/grub-completion.bash.in
17940 (_grub_mkpasswd-pbkdf2): Rename to ...
17941 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17942 (_grub_script-check): Rename to ...
17943 (_grub_script_check): ... this. All users updated.
17944
17945 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17946
17947 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17948 Return 0 if disk isn't biosdisk.
17949
17950 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17951
17952 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17953 on NetBSD.
17954 * Makefile.util.def (grub-fstest): Likewise.
17955
17956 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17957
17958 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17959 Get sector size from disk label.
17960
17961 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17962
17963 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17964 */README* as well as README*.
17965 Reported by: Axel Beckert.
17966
17967 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17968
17969 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17970 case of less than 256 MiB of RAM.
17971
17972 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17973
17974 * grub-core/commands/wildcard.c (make_regex): Handle @.
17975
17976 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17977
17978 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17979
17980 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17981
17982 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17983 AC_LANG_CONFTEST macros.
17984
17985 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17986
17987 Add grub-fstest option to uncompress data for commands.
17988
17989 * util/grub-fstest.c (uncompress): New var.
17990 (options): New option -u.
17991
17992 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17993
17994 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17995 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17996
17997 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17998
17999 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18000 file type was not recognized correctly (not gzip or corrupted).
18001
18002 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18003
18004 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18005 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18006
18007 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18008
18009 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18010 loongson.
18011 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18012 video_radeon_fuloong2e.
18013 * grub-core/video/radeon_fuloong2e.c: New file.
18014 * include/grub/video.h (grub_video_id_t): Add new ID
18015 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18016
18017 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18018
18019 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18020 define.
18021 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18022 that PRID matches the detected subplatform and reset the subplatform
18023 if it doesn't.
18024
18025 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18026
18027 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18028
18029 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18030
18031 Fix PCI iterating on functions >= 4.
18032
18033 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18034 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18035 Removed.
18036 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18037 (grub_pci_read): Fix bitmask.
18038 (grub_pci_read_word): Likewise.
18039 (grub_pci_read_byte): Likewise.
18040 (grub_pci_write): Likewise.
18041 (grub_pci_write_word): Likewise.
18042 (grub_pci_write_byte): Likewise.
18043
18044 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18045
18046 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18047 can still be specified in TARGET_CFLAGS)
18048
18049 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18050
18051 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18052
18053 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18054 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18055 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18056 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18057 (FULOONG): Rename to ...
18058 (FULOONG2F): ... this. All users updated.
18059 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18060 (machtype_fuloong2f_str): ... this.
18061 (machtype_fuloong2e_str): New string.
18062 Check for machtype_fuloong2e_str.
18063 * grub-core/loader/mips/linux.c (loongson_machtypes)
18064 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18065 * grub-core/term/serial.c (loongson_defserial)
18066 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18067 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18068 loongson_defserial.
18069 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18070 Rename to ...
18071 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18072 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18073 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18074 to IMAGE_FULOONG2F_FLASH. All users updated.
18075 (image_targets): Rename images.
18076 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18077
18078 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18079
18080 Make enable of disk cache statistics code configurable.
18081
18082 * configure.ac: --enable-cache-stats added.
18083 * config.h.in (DISK_CACHE_STATS): New define.
18084 * grub-core/Makefile.core.def (cacheinfo): New command.
18085 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18086 * grub-core/commands/cacheinfo.c: New file.
18087 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18088 moved to cacheinfo.c.
18089 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18090 debug code.
18091 * include/grub/disk.h: Likewise.
18092
18093 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18094
18095 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18096 * grub-core/Makefile.am: Likewise.
18097
18098 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18099
18100 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18101 non-zero pull.
18102
18103 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18104
18105 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18106 All users updated.
18107 (grub_jfs_lookup_symlink): Use correct starting inode.
18108
18109 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18110
18111 * util/grub-setup.c (main): Add missing gcry initialisation.
18112
18113 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18114
18115 Don't accept text modes on EFI when booting Linux.
18116
18117 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18118 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18119
18120 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18121 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18122
18123 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18124 use of "/path/.." as in grub-install for EFI as well as handling
18125 symlinks correctly.
18126 Fixes Debian bug #637768.
18127
18128 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18129
18130 * util/grub-probe.c: Remove duplicate #include.
18131
18132 2011-08-10 Robert Millan <rmh@gnu.org>
18133
18134 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18135
18136 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18137 function.
18138 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18139 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18140
18141 2011-08-03 Robert Millan <rmh@gnu.org>
18142
18143 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18144 la_array as packed.
18145 Reported by: Zachary Bedell
18146
18147 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18148
18149 * configure.ac: The Loongson port requires grub-mkfont due to its
18150 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18151 be built.
18152
18153 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18154
18155 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18156 processing arguments (otherwise help2man fails when GRUB has not yet
18157 been installed).
18158
18159 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18160
18161 New script grub-mkstandalone.
18162
18163 * Makefile.util.def (grub-mkstandalone): New script.
18164 * docs/man/grub-mkstandalone.h2m: New file.
18165 * util/grub-mkstandalone.in: Likewise.
18166
18167 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18168
18169 Support ATA disks with 4K sectors.
18170
18171 * include/grub/ata.h (grub_ata): New member log_sector_size.
18172 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18173 (grub_ata_identify): Read sector size.
18174 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18175
18176 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18177
18178 * util/grub-install.in: Don't use uhci outside of x86.
18179
18180 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18181
18182 * util/grub-mkrescue.in: Add missing quotes.
18183
18184 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18185
18186 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18187 dereference.
18188
18189 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18190
18191 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18192
18193 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18194
18195 * include/grub/video.h: add missing EXPORT_FUND on
18196 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18197
18198 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18199
18200 * include/grub/mips/kernel.h: Fix define conflict.
18201
18202 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18203
18204 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18205 all four ways.
18206
18207 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18208
18209 Preferred resolution detection for VBE.
18210
18211 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18212 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18213 the Flat Panel extension, in line with the X.org VESA driver.
18214 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18215 New function.
18216 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18217 (grub_vbe_bios_read_edid): Likewise.
18218 (grub_vbe_get_preferred_mode): Likewise.
18219 (grub_video_vbe_setup): When the mode is "auto", try to get the
18220 preferred mode from VBE, and use the largest mode that is no larger
18221 than the preferred mode (some BIOSes expose a preferred mode that is
18222 not in their mode list!). If this fails, fall back to 640x480 as a
18223 safe conservative choice.
18224 (grub_video_vbe_get_edid): New function.
18225 (grub_video_vbe_adapter): Add get_edid.
18226 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18227 (struct grub_video_adapter): Add get_edid.
18228 (grub_video_edid_checksum): Add prototype.
18229 (grub_video_edid_preferred_mode): Likewise.
18230 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18231 structure.
18232
18233 * grub-core/commands/videoinfo.c (print_edid): New function.
18234 (grub_cmd_videoinfo): Print EDID if available.
18235
18236 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18237 is more appropriate on a wider range of platforms than 640x480.
18238 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18239 documentation.
18240
18241 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18242
18243 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18244
18245 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18246
18247 * po/POTFILES.in: Regenerate.
18248
18249 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18250
18251 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18252 incorrect memory usage.
18253
18254 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18255
18256 * util/grub-install.in: Source grub-mkconfig_lib.
18257
18258 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18259
18260 Remove getroot.c from core on emu platform.
18261
18262 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18263 kern/emu/raid.c.
18264 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18265 useless.
18266 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18267 * util/getroot.c (get_win32_path): ... here.
18268 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18269 * util/getroot.c (fini_libzfs): ... here.
18270 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18271 * util/getroot.c (grub_get_libzfs_handle): ... here.
18272 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18273 Moved from here...
18274 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18275 * grub-core/kern/emu/misc.c
18276 (grub_make_system_path_relative_to_its_root): Moved from here...
18277 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18278 * grub-core/kern/emu/getroot.c: Moved from here ...
18279 * util/getroot.c: ... here. All users updated.
18280 * grub-core/kern/emu/raid.c: Moved from here ...
18281 * util/raid.c: ... here. All users updated.
18282
18283 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18284
18285 * po/POTFILES.in: Regenerate.
18286
18287 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18288
18289 Fix compilation on GNU/Linux.
18290
18291 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18292 Disable geli.
18293 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18294 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18295 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18296
18297 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18298 2011-07-07 Michael Gorven <michael@gorven.za.net>
18299 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18300
18301 LUKS and GELI support.
18302
18303 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18304 grub-core/disk/luks.c, grub-core/disk/geli.c,
18305 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18306 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18307 grub-core/lib/arg.c.
18308 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18309 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18310 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18311 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18312 (grub-bin2h): Add libgcry.a.
18313 (grub-mkimage): Likewise.
18314 (grub-mkrelpath): Likewise.
18315 (grub-script-check): Likewise.
18316 (grub-editenv): Likewise.
18317 (grub-mkpasswd-pbkdf2): Likewise.
18318 (grub-pe2elf): Likewise.
18319 (grub-fstest): Likewise.
18320 (grub-mkfont): Likewise.
18321 (grub-mkdevicemap): Likewise.
18322 (grub-probe): Likewise.
18323 (grub-ofpath): Likewise.
18324 (grub-mklayout): Likewise.
18325 (example_unit_test): Likewise.
18326 (grub-menulst2cfg): Likewise.
18327 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18328 * grub-core/Makefile.core.def (cryptodisk): New module.
18329 (luks): Likewise.
18330 (geli): Likewise.
18331 * grub-core/disk/AFSplitter.c: New file.
18332 * grub-core/disk/cryptodisk.c: Likewise.
18333 * grub-core/disk/geli.c: Likewise.
18334 * grub-core/disk/luks.c: Likewise.
18335 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18336 grub_util_is_lvm.
18337 (grub_util_get_dm_abstraction): New function.
18338 (grub_util_follow_gpart_up): Likewise.
18339 (grub_util_get_geom_abstraction): Likewise.
18340 (grub_util_get_dev_abstraction): Use new functions.
18341 (grub_util_pull_device): Pull GELI and LUKS.
18342 (grub_util_get_grub_dev): Handle LUKS and GELI.
18343 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18344 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18345 (follow_geom_up): Removed.
18346 (grub_util_fd_seek): New function.
18347 (open_device): Use grub_util_fd_seek.
18348 (nread): Rename to ..
18349 (grub_util_fd_read): ... this. All users updated.
18350 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18351 (grub_crypto_cbc_decrypt): Likewise.
18352 (grub_crypto_hmac_write): Likewise.
18353 (grub_crypto_hmac_buffer): Likewise.
18354 (grub_password_get): Extend to util.
18355 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18356 New member modname.
18357 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18358 * include/grub/cryptodisk.h: New file.
18359 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18360 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18361 LUKS and GELI.
18362 (grub_util_follow_gpart_up): New proto.
18363 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18364 (grub_util_fd_read): Likewise.
18365 (grub_cryptodisk_cheat_mount): Likewise.
18366 (grub_util_cryptodisk_print_uuid): Likewise.
18367 (grub_util_get_fd_sectors): Likewise.
18368 * util/grub-fstest.c (mount_crypt): New var.
18369 (fstest): Mount crypto if requested.
18370 (options): New option -C.
18371 (argp_parser): Parse -C.
18372 (main): Init and fini gcry.
18373 * util/grub-install.in: Support cryptodisk install.
18374 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18375 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18376 cryptodisk.
18377 (prepare_grub_to_access_device): Likewise.
18378 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18379 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18380 (probe_cryptodisk_uuid): New function.
18381 (probe_abstraction): Likewise.
18382 (probe): Use new functions.
18383 * util/import_gcry.py: Create Makefile.utilgcry.def.
18384 Add modname member.
18385
18386 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18387
18388 Lazy device scanning.
18389
18390 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18391 (grub-setup): Remove util/raid.c.
18392 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18393 * grub-core/disk/lvm.c (scan_depth): New variable.
18394 (grub_lvm_iterate): Rescan if necessary.
18395 (find_lv): New function based on grub_lvm_open.
18396 (grub_lvm_open): Use find_lv. Rescan on error.
18397 (is_node_readable): New function.
18398 (is_lv_readable): Likewise.
18399 (grub_lvm_scan_device): Skip already found disks.
18400 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18401 Stop if searched device is found and readable.
18402 * grub-core/disk/raid.c (inscnt): New variable.
18403 (scan_depth): Likewise.
18404 (scan_devices): New function based on grub_raid_register. Abort if
18405 looked for device is found.
18406 (grub_raid_iterate): Rescan if needed.
18407 (find_array): NEw function based on -grub_raid_open.
18408 (grub_raid_open): Use find_array and rescan.
18409 (insert_array): Set became_readable_at.
18410 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18411 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18412 New function.
18413 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18414 (grub_util_pull_device): New function.
18415 (grub_util_get_grub_dev): Call grub_util_pull_device.
18416 * util/raid.c: Moved to ..
18417 * grub-core/kern/emu/raid.c: ... here.
18418 (grub_util_raid_getmembers): New parameter "bootable".
18419 All users updated. Support 1.x.
18420 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18421 All users updated.
18422 * include/grub/disk.h (grub_disk_pull_t): New enum.
18423 (grub_disk_dev): Change iterate prototype.
18424 All users updated.
18425 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18426 New proto.
18427 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18428 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18429 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18430 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18431 All users updated.
18432 * include/grub/util/raid.h: Removed.
18433
18434 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18435
18436 * po/POTFILES.in: Regenerate.
18437
18438 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18439
18440 Unify sparc init with other ieee1275.
18441
18442 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18443 instead of kern/sparc64/ieee1275/init.c.
18444 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18445 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18446 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18447 grub/machine/kernel.h.
18448 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18449 (grub_claim_heap) [__sparc__]: Use sparc version.
18450 (grub_machine_init): Moved args parsing to
18451 (grub_parse_cmdline): ...this.
18452 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18453 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18454 New definition.
18455 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18456
18457 Move BOOTP to separate file.
18458
18459 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18460 * grub-core/net/net.c: Move all BOOTP functions to
18461 * grub-core/net/bootp.c: ... here.
18462
18463 Use frame interface on PXE.
18464
18465 * grub-core/Makefile.core.def (pxecmd): Removed.
18466 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18467 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18468 * grub-core/i386/pc/pxe.c: Moved from here ...
18469 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18470 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18471 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18472
18473 EFI network support.
18474
18475 * grub-core/Makefile.core.def (efinet): New module.
18476 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18477 here...
18478 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18479 All users updated.
18480 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18481 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18482 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18483 * grub-core/net/drivers/efi/efinet.c: New file.
18484 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18485 (grub_efi_net_config): New extern var.
18486
18487 Various cleanups and bugfixes.
18488
18489 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18490 error.
18491 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18492 disk declared as partition.
18493 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18494 leak on failure.
18495 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18496 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18497 (grub_debug_zalloc): Likewise.
18498 (grub_debug_realloc): Likewise.
18499 (grub_debug_memalign): Likewise.
18500 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18501 Check that target is IPv4.
18502 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18503 local-mac-address as fallback.
18504 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18505 memory leak.
18506 * grub-core/net/ip.c (ipchksum): Rename to ...
18507 (grub_net_ip_chksum): ... this. All users updated.
18508 (grub_net_recv_ip_packets): Special handling for DHCP.
18509 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18510
18511 Unify prefix handling
18512
18513 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18514 (grub_machine_get_bootlocation): ... this.
18515 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18516 (grub_machine_get_bootlocation): ... this.
18517 (grub_prefix): New variable.
18518 (prefix): Removed.
18519 (root_dev): New variable.
18520 (dir): Likewise.
18521 (main): Use new variables.
18522 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18523 Revamped into ...
18524 (grub_machine_get_bootlocation): ... this.
18525 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18526 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18527 (grub_machine_get_bootlocation): ... this.
18528 (grub_machine_set_prefix): Removed.
18529 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18530 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18531 Revamped into ...
18532 (grub_machine_get_bootlocation): ... this.
18533 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18534 (grub_set_prefix_and_root): ... this. All users updated.
18535 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18536 Revamped into ...
18537 (grub_machine_get_bootlocation): ... this.
18538 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18539 (grub_machine_get_bootlocation): New proto.
18540 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18541
18542 Less intrusive and more reliable seek on network implementation.
18543
18544 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18545 (grub_file_seek): Don't call grub_file_net_seek.
18546 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18547 (grub_net_fs_read_real): .. this.
18548 (grub_net_seek_real): Use net->offset.
18549 (grub_net_fs_read): Seek if necessary.
18550
18551 Unify IEEE1275 netwotk config with the other platforms.
18552
18553 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18554 New variable.
18555 (grub_machine_get_bootlocation): Support network.
18556 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18557 Support type and device parsing.
18558 (grub_ieee1275_get_device_type): New function.
18559 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18560 into ...
18561 (grub_ieee1275_net_config_real): ... this.
18562 (grub_ofnet_probecards): Removed.
18563 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18564 * include/grub/ieee1275/ofnet.h: Removed.
18565 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18566 extern var.
18567 (grub_ieee1275_get_device_type): New function.
18568
18569 Unify network device closing across platforms and make more robust.
18570
18571 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18572 grub_grubnet_fini.
18573 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18574 already.
18575 * grub-core/net/net.c (grub_net_network_level_interface_register):
18576 Update num_ifaces.
18577 (grub_net_card_unregister): Close all interfaces.
18578 (receive_packets): Don't poll if no iterfaces are registered.
18579 Open if necessary.
18580 (grub_net_fini_hw): New function.
18581 (grub_net_restore_hw): Likewise.
18582 (fini_hnd): New variable.
18583 (GRUB_MOD_INIT): Register preboot hook.
18584 (GRUB_MOD_FINI): Run and unregister preboot hook.
18585
18586 Poll network cards when idle.
18587
18588 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18589 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18590 * grub-core/net/net.c (receive_packets): Save last poll time.
18591 (grub_net_poll_cards_idle_real): New function.
18592 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18593 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18594 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18595
18596 Rename ofnet interfaces.
18597
18598 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18599 (grub_ofnet_findcards): Use ofnet_%s names.
18600
18601 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18602
18603 Cleanup socket opening.
18604
18605 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18606 (grub_net_fs_close): Likewise.
18607 (grub_net_fs_read_real): Use eof member.
18608 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18609 (+grub_net_udp_close): New inline function.
18610
18611 * include/grub/net/tftp.h: Moved to the top of ...
18612 * grub-core/net/tftp.c: ... here.
18613 * include/grub/net/ip.h: Moved mostly to the top of ...
18614 * grub-core/net/ip.c: ... here.
18615 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18616 * grub-core/net/ethernet.c: ... here.
18617
18618 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18619
18620 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18621 FS name.
18622
18623 * include/grub/net/ip.h (ipv4_ini): Removed.
18624 (ipv4_fini): Likewise.
18625
18626 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18627 (grub_net_send_ip_packets): Likewise.
18628
18629 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18630
18631 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18632 grub_read_cmos prototype.
18633
18634 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18635
18636 VGA text support in qemu-mips
18637
18638 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18639 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18640 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18641 text.
18642 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18643 * grub-core/kern/vga_init.c: ... this.
18644 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18645 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18646 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18647 Adjust.
18648 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18649 GRUB_MACHINE_PCI_IO_BASE.
18650
18651 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18652
18653 MIPS qemu flash support.
18654
18655 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18656 magic.
18657 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18658 (grub_machine_init): Probe memory if its size isn't known.
18659 * util/grub-mkimage.c (image_targets): Add flash targets.
18660 (generate_image): Handle flash targets.
18661
18662 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18663
18664 MIPS qemu at_keyboard support.
18665
18666 * gentpl.py (videoinkernel): Add qemu-mips.
18667 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18668 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18669 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18670 modules.
18671 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18672 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18673 * grub-core/term/serial.c (grub_serial_register)
18674 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18675
18676 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18677
18678 CMOS support on sparc.
18679
18680 * gentpl.py (cmos): Add powerpc and sparc.
18681 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18682 powerpc and sparc.
18683 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18684 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18685 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18686 grub_set_datetime_cmos.
18687 * grub-core/lib/ieee1275/cmos.c: New file.
18688 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18689 (find_rtc): Set no_ieee1275_rtc on error.
18690 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18691 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18692 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18693 fail. Move value to argument. All users updated
18694 (grub_cmos_write): Likewise.
18695 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18696 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18697 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18698 grub_get_datetime_cmos and grub_set_datetime_cmos.
18699
18700 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18701
18702 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18703 sourcing grub-mkconfig_lib.
18704 * util/update-grub_lib.in: Likewise.
18705 * util/grub.d/00_header.in: Likewise.
18706 * util/grub.d/10_hurd.in: Likewise.
18707 * util/grub.d/10_kfreebsd.in: Likewise.
18708 * util/grub.d/10_linux.in: Likewise.
18709 * util/grub.d/10_netbsd.in: Likewise.
18710 * util/grub.d/10_windows.in: Likewise.
18711 * util/grub.d/20_linux_xen.in: Likewise.
18712 * util/grub.d/30_os-prober.in: Likewise.
18713
18714 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18715
18716 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18717 default_bg_color rather than black.
18718 (grub_gfxterm_fullscreen): Likewise.
18719 (grub_gfxterm_background_color_cmd): Save new background color in
18720 default_bg_color.
18721
18722 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18723
18724 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18725
18726 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18727
18728 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18729 mismerge.
18730
18731 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18732
18733 Chainloading on coreboot support.
18734
18735 * grub-core/Makefile.core.def (chain): Add coreboot.
18736 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18737
18738 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18739
18740 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18741 if it happens.
18742
18743 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18744
18745 Implement time command.
18746
18747 * grub-core/Makefile.core.def (time): New module.
18748 * grub-core/commands/time.c: New file.
18749 * grub-core/script/parser.y: Remove "time" keyword.
18750 * grub-core/script/yylex.l: Likewise.
18751
18752 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18753
18754 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18755
18756 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18757
18758 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18759 when handling leftovers.
18760
18761 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18762
18763 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18764 so that help2man doesn't fail.
18765
18766 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18767
18768 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18769 type in pointers on sparc64.
18770 (get_card_packet): Likewise.
18771
18772 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18773
18774 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18775 with `*'.
18776 (grub_cmd_videoinfo): Fetch current video mode.
18777
18778 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18779
18780 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18781 because of underlying system restrictions.
18782
18783 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18784
18785 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18786 necessary.
18787
18788 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18789
18790 Coreboot video support.
18791
18792 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18793 (vbe): Likewise.
18794 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18795 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18796 here ...
18797 * grub-core/kern/i386/int.S: ... here.
18798 * grub-core/video/i386/pc/vbe.c: Updated includes.
18799 * grub-core/video/i386/pc/vga.c: Likewise.
18800 * include/grub/i386/coreboot/memory.h
18801 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18802 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18803 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18804 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18805 Disable interrupts.
18806 * include/grub/i386/pc/vga.h: Removed. All users updated.
18807
18808 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18809
18810 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18811 definitions for dprintf.
18812 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18813
18814 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18815
18816 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18817 prototype.
18818 (get_card_packet): Likewise.
18819
18820 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18821
18822 Display the path of the file when file is not found
18823
18824 * grub-core/fs/fat.c: Display the filename when file is not found.
18825 * grub-core/fs/fshelp.c: Likewise.
18826 * grub-core/fs/hfs.c: Likewise.
18827 * grub-core/fs/jfs.c: Likewise.
18828 * grub-core/fs/minix.c: Likewise.
18829 * grub-core/fs/ufs.c: Likewise.
18830 * grub-core/fs/btrfs.c: Likewise.
18831 * grub-core/commands/i386/pc/play.c: Likewise.
18832
18833 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18834
18835 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18836 pointer checks before calling grub_free().
18837 * grub-core/commands/wildcard.c (match_devices): Likewise.
18838 * grub-core/commands/wildcard.c (match_files): Likewise.
18839 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18840 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18841 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18842 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18843 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18844 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18845 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18846 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18847 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18848
18849 2011-06-25 Patrick <p55@mailinator.com>
18850
18851 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18852
18853 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18854
18855 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18856 (grub_pxe_send): Likewise.
18857 (GRUB_MOD_INIT): Fix types.
18858
18859 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18860
18861 * grub-core/io/xzio.c: Fix code style issues
18862
18863 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18864 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18865
18866 Network infrastructure.
18867 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18868
18869 * include/grub/net/arp.h: New file.
18870 * include/grub/net/device.h: Likewise.
18871 * include/grub/net/ethernet.h: Likewise.
18872 * include/grub/net/ip.h: Likewise.
18873 * include/grub/net/netbuff.h: Likewise.
18874 * include/grub/net/tftp.h: Likewise.
18875 * include/grub/net/udp.h: Likewise.
18876 * include/grub/ieee1275/ofnet.h: Likewise.
18877 * include/grub/emu/export.h: Likewise.
18878 * include/grub/net.h: Likewise.
18879 * grub-core/net/arp.c: Likewise.
18880 * grub-core/net/ethernet.c: Likewise.
18881 * grub-core/net/ip.c: Likewise.
18882 * grub-core/net/udp.c: Likewise.
18883 * grub-core/net/tftp.c: Likewise.
18884 * grub-core/net/netbuff.c: Likewise.
18885 * grub-core/net/net.c: Likewise.
18886 * grub-core/net/drivers/emu/emunet.c: Likewise.
18887 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18888 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18889 export.h.
18890 * grub-core/Makefile.core.def (net): New module.
18891 (tftp): Likewise.
18892 (ofnet): Likewise.
18893 (emunet): Likewise.
18894 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18895 network protocols.
18896 * grub-core/kern/device.c (grub_net_open) : New variable.
18897 (grub_device_open): Handle network device.
18898 (grub_device_close): Likewise.
18899 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18900 (grub_grubnet_fini): Likewise.
18901 (grub_file_seek): Seek in network device.
18902 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18903 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18904 network root.
18905 (grub_machine_fini): Call grub_grubnet_fini.
18906 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18907 network.
18908 (grub_ieee1275_get_aliasdevname): New function.
18909 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18910 Add unofficial Solaris network info.
18911 (grub_multiboot_make_mbi): Likewise.
18912 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18913 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18914 * include/grub/device.h (grub_fs): Removed.
18915 * include/grub/err.h (grub_err_t): Add network-related values.
18916 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18917 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18918 (grub_ieee1275_get_aliasdevname): New proto.
18919 * include/grub/net.h: Rewritten.
18920
18921 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18922
18923 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18924 names.
18925
18926 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18927
18928 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18929 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18930 it truncates the output.
18931 Reported by: Ximin Luo.
18932
18933 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18934
18935 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18936
18937 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18938
18939 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18940 partmap before abstraction.
18941
18942 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18943
18944 * util/grub-mkconfig_lib.in: Add missing quotes.
18945
18946 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18947
18948 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18949 old method if mountinfo would return /dev/root and /dev/root doesn't
18950 exist.
18951
18952 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18953
18954 ZFS zlib support
18955
18956 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18957 (decomp_table): Add zlib entries.
18958 (zio_read): USe 8 bits for compression function rather than 3.
18959 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18960
18961 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18962
18963 * grub-core/disk/ahci.c: Add missing license statements.
18964 * grub-core/fs/romfs.c: Likewise.
18965 * grub-core/lib/ia64/setjmp.S: Likewise.
18966 * grub-core/loader/i386/pc/freedos.c: Likewise.
18967 * grub-core/loader/ia64/efi/linux.c: Likewise.
18968 * grub-core/video/colors.c: Likewise.
18969 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18970
18971 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18972
18973 AHCI support.
18974
18975 * grub-core/Makefile.core.def (ata_pthru): Removed.
18976 (ahci): New module.
18977 (pata): Likewise.
18978 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18979 on unload.
18980 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18981 readwrite.
18982 (grub_hdparm_do_check_powermode_cmd): Likewise.
18983 (grub_hdparm_do_smart_cmd): Likewise.
18984 (grub_hdparm_set_val_cmd): Likewise.
18985 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18986 * grub-core/disk/ahci.c: New file.
18987 * grub-core/disk/ata.c: Factor out the low-level part into ...
18988 * grub-core/disk/pata.c: ... here.
18989 * grub-core/disk/ata_pthru.c: Contents moved to ...
18990 * grub-core/disk/pata.c: ... here.
18991 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18992 (grub_scsi_iterate): Use grub_scsi_names.
18993 (grub_scsi_open): Likewise.
18994 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18995 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18996 (grub_ata_regs_t): New struct.
18997 (grub_disk_ata_pass_through_parms): Likewise.
18998 (grub_ata_device): Renamed to ...
18999 (grub_ata): ... this.
19000 (grub_ata_dev): New struct.
19001 Removed all low-level inline functions.
19002 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19003 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19004 iterate hooks and open. All users updated.
19005 * util/grub-install.in: Handle AHCI disk module.
19006
19007 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19008
19009 Add support for DRI and RSTn markers in JPEG files.
19010
19011 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19012 (JPEG_MARKER_RST0): Likewise.
19013 (JPEG_MARKER_RST1): Likewise.
19014 (JPEG_MARKER_RST2): Likewise.
19015 (JPEG_MARKER_RST3): Likewise.
19016 (JPEG_MARKER_RST4): Likewise.
19017 (JPEG_MARKER_RST5): Likewise.
19018 (JPEG_MARKER_RST6): Likewise.
19019 (JPEG_MARKER_RST7): Likewise.
19020 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19021 (grub_jpeg_decode_dri): New function.
19022 (grub_jpeg_decode_sos): Move image data related part into
19023 grub_jpeg_decode_data function.
19024 (grub_jpeg_decode_data): New function.
19025 (grub_jpeg_reset): New function.
19026 (grub_jpeg_decode_jpeg): Handle new markers.
19027
19028 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19029
19030 * util/ieee1275/ofpath.c (check_sas): Close fd.
19031 (main): Free of_path.
19032 Reported by: David Volgyes <dvolgyes>.
19033
19034 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19035
19036 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19037 Reported by: David Volgyes <dvolgyes>.
19038
19039 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19040
19041 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19042 file after stat.
19043 Reported by: David Volgyes <dvolgyes>.
19044
19045 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19046
19047 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19048
19049 Reported by: David Volgyes <dvolgyes>.
19050
19051 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19052
19053 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19054 Prevent memory leak.
19055
19056 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19057
19058 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19059 (main): Close file.
19060 Reported by: David Volgyes <dvolgyes>.
19061
19062 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19063
19064 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19065 to continue if allocation is failed.
19066
19067 Reported by: David Volgyes <dvolgyes>.
19068
19069 2011-06-23 David Volgyes <dvolgyes>
19070
19071 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19072 dereference.
19073
19074 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19075
19076 Fix spurious warning.
19077
19078 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19079 (acorn_partition_map_find): Use .bin member.
19080
19081 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19082
19083 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19084 /dev/root as a valid device.
19085
19086 2011-06-23 Jim Meyering <meyering@redhat.com>
19087
19088 Avoid NULL deref in grub_device_open.
19089
19090 * grub-core/kern/device.c (grub_device_open): Don't dereference
19091 a NULL pointer upon failed grub_env_get.
19092
19093 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19094
19095 Support non-512B sectors and agglomerate reads.
19096
19097 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19098 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19099 (disk_io_guid): Removed.
19100 (make_devices): Locate solely by BlockIO.
19101 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19102 (grub_efidisk_read): Use read_blocks.
19103 (grub_efidisk_write): Use write_blocks.
19104 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19105 log_sector_size.
19106 (get_safe_sectors): Handle non-512B sectors.
19107 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19108 sectors.
19109 (grub_biosdisk_write): Handle non-512B sectors.
19110 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19111 (grub_scsi_read): Remove special non-512B block handling (now handled
19112 one level up).
19113 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19114 and do sanity checks.
19115 (grub_disk_adjust_range): Handle non-512B sectors.
19116 (transform_sector): New function.
19117 (grub_disk_read_small): Likewise.
19118 (grub_disk_read): Rewritten.
19119 (grub_disk_write): Handle non-512B sectors.
19120 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19121 log_sector_size.
19122 (open_device): Use log_sector_size.
19123 (grub_util_biosdisk_read): Likewise.
19124 (grub_util_biosdisk_write): Likewise.
19125 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19126 non-512B sectors.
19127 (pc_partition_map_embed): Likewise.
19128 * include/grub/disk.h (grub_disk): New field log_sector_size.
19129 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19130 (GRUB_DISK_CACHE_BITS): Increased to 6.
19131 * util/grub-fstest.c (fstest): New command testload.
19132 (argp_parser): Likewise.
19133
19134 2011-06-16 Robert Millan <rmh@gnu.org>
19135
19136 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19137 `ata' driver on kernel of FreeBSD 9.
19138
19139 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19140 (get_ataraid_disk_name): New functions.
19141 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19142 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19143 get_ataraid_disk_name() and get_ada_disk_name().
19144
19145 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19146
19147 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19148 input format.
19149
19150 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19151
19152 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19153 `ftp.gnu.org' for `alpha.gnu.org'.
19154
19155 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19156
19157 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19158 partitions under /dev/disk/by-id/.
19159
19160 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19161
19162 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19163 after ten consecutive open failures. Scanning all the way up to
19164 10000 is excessive and can cause serious performance problems in
19165 some configurations.
19166 Fixes Ubuntu bug #787461.
19167
19168 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19169
19170 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19171 opening new one.
19172
19173 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19174 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19175
19176 Don't stat devices unless we have to.
19177
19178 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19179 dir == /dev/mapper.
19180 (grub_guess_root_device): Use already known os_dev if possible.
19181 * grub-core/kern/emu/hostdisk.c
19182 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19183 if device is known to be a dm one.
19184
19185 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19186
19187 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19188 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19189 Reported by: Pawel Tecza.
19190
19191 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19192
19193 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19194 (lsefisystab): Likewise.
19195 (lssal): Likewise.
19196 (lsefimmap): Likewise.
19197 (hdparm): Enable on qemu-mips.
19198 (setjmp): Add ia64 nodist.
19199 (serial): Simplify tags.
19200
19201 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19202
19203 * Makefile.util.def (grub-ofpathname): Install manual page.
19204
19205 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19206
19207 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19208
19209 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19210
19211 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19212
19213 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19214
19215 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19216 into dprintf.
19217
19218 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19219
19220 Use full 64-bit division.
19221
19222 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19223 (grub_divmod64): ... this.
19224 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19225 version.
19226
19227 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19228
19229 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19230 `source'.
19231
19232 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19233
19234 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19235 to avoid accidents when debugging with 'sh -x'.
19236 * grub-core/gensyminfo.sh.in: Likewise.
19237 * tests/example_scripted_test.in: Likewise.
19238 * tests/grub_cmd_regexp.in: Likewise.
19239 * tests/grub_script_blanklines.in: Likewise.
19240 * tests/grub_script_dollar.in: Likewise.
19241 * tests/grub_script_expansion.in: Likewise.
19242 * tests/grub_script_final_semicolon.in: Likewise.
19243 * tests/partmap_test.in: Likewise.
19244 * tests/util/grub-shell-tester.in: Likewise.
19245 * tests/util/grub-shell.in: Likewise.
19246
19247 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19248
19249 Move gfxmenu color handling to video, so that gfxterm can use it
19250 too.
19251
19252 * grub-core/gfxmenu/named_colors.c: Move to ...
19253 * grub-core/video/colors.c: ... here. Rename
19254 grub_gui_get_named_color to grub_video_get_named_color.
19255 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19256 * grub-core/video/colors.c (my_isxdigit): ... here.
19257 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19258 Move to ...
19259 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19260 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19261 to ...
19262 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19263
19264 * include/grub/gui.h (grub_gui_color_t): Move to ...
19265 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19266 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19267 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19268 * include/grub/gui.h (grub_gui_map_color): Move to ...
19269 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19270 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19271 to ...
19272 * include/grub/video.h (grub_video_get_named_color): ... here.
19273 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19274 * include/grub/video.h (grub_video_parse_color): ... here.
19275
19276 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19277 video/colors.c.
19278 (gfxmenu): Remove gfxmenu/named_colors.c.
19279 (video) [videomodules]: Add video/colors.c.
19280
19281 Add a background_color command.
19282
19283 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19284 function.
19285 (GRUB_MOD_INIT): Register background_color command.
19286 (GRUB_MOD_FINI): Unregister background_color command.
19287 (redraw_screen_rect): Allow blend/replace of text layer to be
19288 controlled independently from whether there is a background bitmap.
19289 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19290 changing bitmap.
19291
19292 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19293
19294 Patch BPB in ntldr and chainloader --bpb.
19295
19296 * grub-core/fs/fat.c: Include grub/fat.h.
19297 (grub_fat_bpb): Moved to ...
19298 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19299 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19300 grub/ntfs.h.
19301 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19302 Moved from here...
19303 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19304 here.
19305 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19306 New function.
19307 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19308 (GRUB_MOD_INIT): Show --bpb.
19309 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19310 * grub-core/normal/main.c (features): New variable.
19311 (GRUB_MOD_INIT): Set feature_* variables.
19312 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19313 proto.
19314 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19315
19316 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19317
19318 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19319 for cleanness.
19320
19321 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19322
19323 FreeDOS direct loading support.
19324
19325 * docs/grub.texi (Supported OS): Add FreeDOS.
19326 * grub-core/Makefile.core.def (freedos): New module.
19327 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19328 variable.
19329 (grub_relocator16_boot): Handle %ebx.
19330 * grub-core/lib/i386/relocator16.S: Likewise.
19331 * grub-core/loader/i386/pc/freedos.c: New file.
19332
19333 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19334
19335 Long Linux command line support.
19336
19337 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19338 (maximal_cmdline_size): New variable.
19339 (allocate_pages): Use maximal_cmdline_size.
19340 (grub_cmd_linux): Set and use maximal_cmdline_size.
19341 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19342 (allocate_pages): Use maximal_cmdline_size.
19343 (grub_cmd_linux): Set and use maximal_cmdline_size.
19344 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19345 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19346 and cmdline_size.
19347
19348 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19349 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19350
19351 Improve devmapper support
19352
19353 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19354 (grub_util_is_lvm): New function.
19355 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19356 than lvm if not dmraid.
19357 Handle mapped md nodes.
19358 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19359 (grub_util_device_is_mapped): ... this. Make always available. All users
19360 updated.
19361 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19362 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19363 dmraid nodes.
19364 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19365
19366 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19367
19368 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19369
19370 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19371 * grub-core/modinfo.sh.in: New file.
19372 * grub-core/Makefile.core.def (modinfo.sh): New script.
19373 * util/grub-mknetdir.in: Use modinfo.sh.
19374 * util/grub-mkrescue.in: Likewise.
19375
19376 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19377
19378 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19379 Fix potential usage of Elf32 instead of Elf64 when compiling on
19380 32-bit architecture. Add endianness macros while on it.
19381
19382 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19383
19384 Use mipsel- rather than mips- in directories involving mipsel ports to
19385 allow both endiannesses coexist.
19386
19387 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19388 mips. All conditions adjusted.
19389 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19390 variable.
19391 * util/grub-install.in: Adjust conditions to take renaming into account.
19392 * util/grub-mkimage.c (image_targets): Likewise. New target
19393 mips-qemu_mips-elf for bigendian mips.
19394
19395 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19396
19397 Avoid unnecessary copying on MIPS.
19398
19399 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19400 early if src == dest.
19401 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19402 compression is none.
19403
19404 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19405
19406 Reduce memory footprint on SGI by putting modules before the kernel
19407 as opposed to after.
19408
19409 * grub-core/Makefile.core.def (kernel): Increase linking address.
19410 (none_decompress): Likewise.
19411 (xz_decompress): Likewise.
19412 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19413 address.
19414 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19415 layout change.
19416 (grub_arch_modules_addr): New function.
19417 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19418 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19419 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19420 here.
19421 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19422 (grub_total_modules_size): ... this. Make global.
19423 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19424 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19425 New definition.
19426 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19427 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19428 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19429 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19430 * util/grub-mkimage.c (image_target_desc): New flag
19431 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19432 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19433 (generate_image): Handle images with modules before kernel.
19434
19435 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19436
19437 Prevent potential loss of memory map by overwrite on qemu-mips.
19438
19439 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19440 Save ram size in $s4.
19441 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19442 All users changed to grub_arch_memsize.
19443 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19444 Loongson.
19445 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19446 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19447 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19448 external variable.
19449
19450 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19451
19452 * .bzrignore: Remove grub-dumpbios.
19453
19454 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19455
19456 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19457 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19458 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19459 existing options which append).
19460 * docs/grub.texi (Simple configuration): Document new options.
19461 Reported by: Ian Jackson. Fixes Debian bug #617538.
19462
19463 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19464
19465 * util/grub-fstest.c (cmd_cat): New function.
19466 (fstest): Handle CMD_CAT.
19467 (options): Add cat.
19468 (argp_parser): Handle cat.
19469
19470 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19471
19472 * Makefile.util.def (grub-bin2h): Don't install.
19473 * docs/man/grub-bin2h.h2m: Remove.
19474
19475 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19476
19477 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19478 place.
19479
19480 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19481
19482 Reenable qemu-mips port.
19483
19484 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19485 Fix small arc bug while on it.
19486 * gentpl.py: Handle qemu_mips.
19487 * grub-core/Makefile.am: Likewise.
19488 * grub-core/Makefile.core.def: Likewise.
19489 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19490 inappropriate includes.
19491 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19492 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19493 * grub-core/kern/main.c (grub_modules_get_end)
19494 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19495 * grub-core/kern/mips/qemu-mips: Moved to ..
19496 * grub-core/kern/mips/qemu_mips: ... this.
19497 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19498 (grub_machine_init): Call terminfo_init and serial_init.
19499 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19500 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19501 New variable.
19502 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19503 parameter passing.
19504 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19505 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19506 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19507 * include/grub/mips/qemu_mips/cmos.h: New file.
19508 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19509 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19510 Removed.
19511 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19512 Use correct mips-style address.
19513 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19514 (GRUB_TICKS_PER_SECOND): Removed.
19515 (grub_get_rtc): Likewise.
19516 (grub_cpu_idle): Likewise.
19517 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19518 New definition.
19519 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19520 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19521 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19522 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19523 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19524 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19525 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19526 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19527
19528 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19529
19530 SGI ARCS port.
19531
19532 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19533 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19534 platforms.
19535 * configure.ac: New target mips-arc.
19536 * gentpl.py: Likewise.
19537 * grub-core/Makefile.am: Likewise.
19538 * grub-core/Makefile.core.def: Likewise.
19539 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19540 (none_decompress): Likewise.
19541 (lsdev): New module.
19542 (datetime): Use lib/arc/datetime.c on ARC.
19543 (part_dvh): New module.
19544 * grub-core/commands/arc/lsdev.c: New file.
19545 * grub-core/disk/arc/arcdisk.c: Likewise.
19546 * grub-core/kern/mips/arc/init.c: Likewise.
19547 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19548 aligned addresses.
19549 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19550 support.
19551 (grub_arch_dl_relocate_symbols): Likewise.
19552 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19553 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19554 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19555 platforms.
19556 * grub-core/lib/arc/datetime.c: New file.
19557 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19558 pci.h on non-loongson.
19559 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19560 (grub_linux_boot): Set unused registers to 0.
19561 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19562 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19563 * grub-core/mmap/mips/uppermem.c: ...here.
19564 * grub-core/partmap/dvh.c: New file.
19565 * grub-core/term/arc/console.c: Likewise.
19566 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19567 (grub_terminfo_set_current): Add terminal "arc".
19568 (grub_terminfo_readkey): Support ARC sequences.
19569 * include/grub/arc/arc.h: New file.
19570 * include/grub/arc/console.h: Likewise.
19571 * include/grub/disk.h (grub_disk_dev_id): Add
19572 GRUB_DISK_DEVICE_ARCDISK_ID.
19573 * include/grub/mips/arc/kernel.h: New file.
19574 * include/grub/mips/arc/memory.h: Likewise.
19575 * include/grub/mips/arc/time.h: Likewise.
19576 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19577 * include/grub/mips/kernel.h (grub_halt): ... here.
19578 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19579 here...
19580 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19581 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19582 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19583 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19584 proto.
19585 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19586 from here ...
19587 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19588 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19589 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19590 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19591 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19592 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19593 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19594 (grub_phys_addr_t): Moved from here ...
19595 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19596 (grub_vtop): Moved from here ...
19597 * include/grub/mips/memory.h (grub_vtop): ... here.
19598 (grub_map_memory): Moved from here ...
19599 * include/grub/mips/memory.h (grub_map_memory): ... here.
19600 (grub_unmap_memory): Moved from here ...
19601 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19602 (grub_machine_mmap_iterate): Moved from here ...
19603 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19604 (grub_mmap_get_lower): Moved from here ...
19605 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19606 (grub_mmap_get_upper): Moved from here ...
19607 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19608 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19609 here ...
19610 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19611 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19612 here ...
19613 * include/grub/mips/time.h (grub_get_rtc): ... here.
19614 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19615 here ...
19616 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19617 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19618 here ...
19619 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19620 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19621 definition.
19622 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19623 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19624 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19625 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19626 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19627 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19628 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19629 (GRUB_MACHINE_LINK_ADDR): Likewise.
19630 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19631 to 6.
19632 * util/grub-install.in: Run dvhtool on ARC.
19633 * util/grub-mkimage.c (image_targets): Add mips-arc.
19634 (generate_image): Handle ECOFF output for mips-arc.
19635
19636 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19637
19638 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19639 blocks.
19640
19641 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19642
19643 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19644 after enabling port.
19645
19646 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19647
19648 Skip incorrect USB devices.
19649
19650 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19651 configcnt == 0.
19652 * include/grub/usb.h (grub_usb_err_t): New enum value
19653 GRUB_USB_ERR_BADDEVICE.
19654
19655 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19656
19657 Fuloong video init support.
19658
19659 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19660 well.
19661 (grub_vga_read_arx): New function.
19662 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19663 definition.
19664 (framebuffer): New members io, mmioptr and mmiobase.
19665 (read_sis_cmd): New function.
19666 (write_sis_cmd): Likewise.
19667 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19668 rather than 640x400.
19669 * grub-core/video/sis315_init.c: New file.
19670
19671 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19672
19673 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19674 non-loongson.
19675 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19676 to grub_dl_register_symbol.
19677
19678 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19679
19680 Fix compilation errors.
19681
19682 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19683 potentially unused.
19684 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19685 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19686 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19687 to loongson machines.
19688
19689 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19690
19691 Several FS mtime support.
19692
19693 * grub-core/fs/affs.c (grub_affs_time): New struct.
19694 (grub_affs_file): New field mtime.
19695 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19696 type. Removed 'size'. New field 'di'. All users updated.
19697 (grub_affs_mount): Simplify checsum checking.
19698 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19699 (grub_affs_dir): Handle mtime.
19700 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19701 (grub_cpio_dir): Likewise.
19702 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19703 (grub_hfs_filerec): New field mtime.
19704 (grub_hfs_dir): Handle mtime.
19705 (grub_hfs_mtime): New function.
19706 (grub_hfs_fs): Register grub_hfs_mtime.
19707 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19708 (grub_iso9660_dir): New field mtime.
19709 (grub_fshelp_node): New field dirent.
19710 (iso9660_to_unixtime): New function.
19711 (iso9660_to_unixtime2): Likewise.
19712 (grub_iso9660_read_symlink): Use node->dirent.
19713 (grub_iso9660_iterate_dir): Likewise.
19714 (grub_iso9660_dir): Set mtime.
19715 (grub_iso9660_mtime): New function.
19716 (grub_iso9660_fs): Register grub_iso9660_mtime.
19717 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19718 (grub_jfs_inode): New fields atime, ctime and mtime.
19719 (grub_jfs_dir): Set mtime.
19720 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19721 * grub-core/fs/ntfs.c (list_file): Set mtime.
19722 (grub_ntfs_dir): Likewise.
19723 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19724 (grub_reiserfs_iterate_dir): Set mtime.
19725 (grub_reiserfs_dir): Likewise.
19726 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19727 (grub_fshelp_node): Likewise.
19728 (grub_sfs_iterate_dir): Set mtime.
19729 (grub_sfs_dir): Likewise.
19730 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19731 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19732 (grub_xfs_inode): New fields atime, mtime, ctime.
19733 (grub_xfs_dir): Set mtime.
19734 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19735 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19736 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19737
19738 Support UDF symlinks.
19739
19740 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19741 (grub_ufs_read_symlink): New function. All users updated.
19742
19743 Check amiga partmap checksum.
19744
19745 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19746 (grub_amiga_partition): Likewise.
19747 (amiga_partition_map_checksum): New function.
19748 (amiga_partition_map_iterate): Check checksum.
19749
19750 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19751
19752 ROMFS support.
19753
19754 * Makefile.util.def (libgrubmods.a): Add romfs.
19755 * grub-core/Makefile.core.def (romfs): New module.
19756 * grub-core/fs/romfs.c: New file.
19757
19758 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19759
19760 Squashfs v4 support.
19761
19762 * Makefile.util.def (libgrubmods.a): Add squash4.
19763 * grub-core/Makefile.core.def (squash4): New module.
19764 * grub-core/fs/squash4.c: New file.
19765 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19766 disk_input_start, disk_input.
19767 (get_byte): Handle disk_input.
19768 (grub_zlib_disk_read): New function.
19769 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19770
19771 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19772 2011-05-15 Feiran Zheng <famcool@gmail.com>
19773
19774 * Makefile.util.def (libgrubmods.a): Add minix3.
19775 * grub-core/Makefile.core.def (minix3): New module.
19776 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19777 (GRUB_MINIX_BSIZE): Removed.
19778 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19779 (grub_minix_ino_t): New type.
19780 (grub_minix_le_to_cpu_ino): New macro.
19781 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19782 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19783 (grub_minix_data): New field block_size.
19784 (grub_minix_read_file): Handle 64-bit correctly.
19785 * grub-core/fs/minix3.c: New file.
19786
19787 2011-05-15 Tristan Gingold <gingold@free.fr>
19788 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19789 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19790
19791 IA64 support.
19792
19793 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19794 * configure.ac: Add ia64-efi target.
19795 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19796 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19797 * gentpl.py: Add ia64_efi platform.
19798 Rename x86_efi to efi and Add ia64-efi. All users updated.
19799 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19800 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19801 Remove kern/generic/rtc_get_time_ms.c on EFI.
19802 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19803 kern/ia64/dl_helper.c on ia64-efi.
19804 Add kern/emu/cache.c on emu.
19805 (linux): Use on loader/ia64/efi/linux.c on ia64.
19806 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19807 whether symbol is a function.
19808 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19809 (grub_symbol): New field 'isfunc'.
19810 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19811 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19812 (grub_dl_load_segments): Place all sections into the same region.
19813 [__ia64__]: Create trampolines and got.
19814 [GRUB_MACHINE_EMU]: Call mprotect.
19815 (grub_dl_resolve_symbols): Resolve symbol type as well.
19816 [__ia64__]: Create function descriptors.
19817 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19818 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19819 (grub_get_rtc): New function.
19820 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19821 * grub-core/kern/emu/cache.S: Renamed to ...
19822 * grub-core/kern/emu/cache_s.S: ... this.
19823 [__ia64__]: Add a nop.
19824 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19825 [__ia64__]: New function.
19826 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19827 * grub-core/kern/ia64/dl.c: New file.
19828 * grub-core/kern/ia64/dl_helper.c: Likewise.
19829 * grub-core/kern/ia64/efi/init.c: New file.
19830 * grub-core/kern/ia64/efi/startup.S: Likewise.
19831 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19832 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19833 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19834 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19835 * grub-core/loader/ia64/efi/linux.c: New file.
19836 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19837 (GRUB_MOD_DEP): Likewise.
19838 (grub_dl) [__ia64__]: New fields got and tramp.
19839 (grub_dl): New field 'base'.
19840 (grub_dl_register_symbol): New argument isfunc. All users updated.
19841 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19842 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19843 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19844 (grub_ia64_dl_get_tramp_got_size): New proto.
19845 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19846 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19847 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19848 * include/grub/efi/api.h: Skip call wrappers on ia64.
19849 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19850 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19851 * include/grub/elf.h (ELF_ST_INFO): New definition.
19852 * include/grub/ia64/efi/kernel.h: New file.
19853 * include/grub/ia64/efi/memory.h: Likewise.
19854 * include/grub/ia64/efi/time.h: Likewise.
19855 * include/grub/ia64/kernel.h: Likewise.
19856 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19857 * include/grub/ia64/time.h: New file.
19858 * include/grub/ia64/types.h: Likewise.
19859 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19860 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19861 New protos.
19862 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19863 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19864 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19865 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19866 All users updated.
19867 (EFI64_HEADER_SIZE): New definition. All users updated.
19868 (image_targets): Add ia64-efi.
19869 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19870 jumpers_addr. All users updated.
19871 Create function descriptors.
19872 (count_funcs): New function.
19873 (unaligned_uint32): New struct.
19874 (MASK20): New definition.
19875 (MASK19): Likewise.
19876 (MASKF21): Likewise.
19877 (add_value_to_slot_20b): New function.
19878 (add_value_to_slot_21_real): Likewise.
19879 (add_value_to_slot_21): Likewise.
19880 (ia64_kernel_trampoline): New struct.
19881 (nopm): New variable.
19882 (jump): Likewise.
19883 (make_trampoline): New function.
19884 (relocate_addresses): Handle ia64.
19885 (make_reloc_section): Likewise.
19886 (load_image): Likewise.
19887
19888 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19889
19890 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19891 warning. Move variables before code while on it.
19892
19893 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19894
19895 Fuloong support.
19896
19897 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19898 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19899 * grub-core/boot/mips/loongson/fuloong.S: New file.
19900 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19901 Explicitly init CS5536.
19902 [FULOONG]: Don't use serial until CS5536 is available.
19903 Set GPIO based on dumps.
19904 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19905 [FULOONG]: Handle GPIO and memory controller differences.
19906 Parse machine type in $a2.
19907 * grub-core/boot/mips/startup_raw.S: Determine and save the
19908 architecture.
19909 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19910 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19911 init on architecture type.
19912 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19913 SIS315E. Don't init at_keyboard on fuloong.
19914 (grub_halt): Support Fuloong.
19915 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19916 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19917 (loongson_machtypes): New array.
19918 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19919 type.
19920 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19921 config. All users updated. Handle CS5536 serial.
19922 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19923 default port on machine type. Register serial as inactive.
19924 * grub-core/video/sis315pro.c: New file.
19925 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19926 definition.
19927 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19928 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19929 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19930 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19931 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19932 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19933 to ...
19934 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19935 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19936 definition.
19937 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19938 (grub_arch_machine): New extern var.
19939 * include/grub/mips/loongson/serial.h
19940 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19941 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19942 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19943 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19944 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19945 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19946 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19947 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19948 * include/grub/term.h (grub_term_register_input_inactive): New inline
19949 function.
19950 (grub_term_register_output_inactive): Likewise.
19951 * include/grub/video.h (grub_video_driver_id): New value
19952 GRUB_VIDEO_DRIVER_SIS315PRO.
19953 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19954 New field "names". All users updated.
19955 New field value IMAGE_FULOONG_FLASH.
19956 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19957
19958 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19959
19960 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19961 and add some clarification.
19962
19963 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19964
19965 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19966 platforms if kernel is compressed.
19967
19968 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19969
19970 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19971 unused modules since currently referrence counter isn't reliable and
19972 there isn't much memory to recover there anyway.
19973
19974 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19975
19976 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19977 rather than resetting it to allow modules to reference themselves
19978 in init.
19979
19980 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19981
19982 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19983 counter on dependencies since grub_dl_unref already handles this.
19984
19985 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19986
19987 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19988 on error if not already done.
19989
19990 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19991
19992 Fix few potential memory misusage.
19993
19994 * grub-core/font/font.c (load_font_index): Don't free char_index to
19995 avoid double free.
19996 (grub_font_load): Zero-fill font at alloc for safety.
19997 Close file on error.
19998 (free_font): Free bmp_idx.
19999
20000 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20001
20002 * docs/grub.texi (Installation): Fix several outdated claims.
20003
20004 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20005
20006 Handle module_license on windows.
20007
20008 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20009 sections shifted.
20010 (insert_string): Make argument const char * instead of char *.
20011 (write_section_data): Handle long section names.
20012 Handle module_license.
20013
20014 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20015
20016 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20017 handle class-free menuentries.
20018 (grub_normal_add_menu_entry): Add a check to be sure.
20019
20020 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20021
20022 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20023 PgUp and PgDown.
20024
20025 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20026
20027 * configure.ac: Bump version to 1.99.
20028
20029 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20030
20031 Give ATA device a bit more time on first try in order to allow disks
20032 to spin up.
20033
20034 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20035 if dev->present is 1. Reset dev->present on failure.
20036 (grub_ata_device_initialize): Set dev->present to 1.
20037 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20038 (grub_ata_device): New member 'present'.
20039
20040 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20041
20042 * util/grub-mkimage.c (generate_image): Update hash.
20043
20044 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20045
20046 Flush caches on DMA memory.
20047
20048 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20049 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20050 (grub_dma_free): Likewise.
20051 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20052
20053 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20054
20055 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20056 to avoid asm treating ld and sd as macros.
20057
20058 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20059
20060 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20061 decompressor.
20062
20063 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20064
20065 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20066 grub_decompress_core since later would fail if grub_decompress_core
20067 is too far.
20068
20069 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20070
20071 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20072 R_MIPS_JALR since it's used by newer compiler.
20073
20074 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20075
20076 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20077
20078 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20079
20080 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20081 file_path to 0 for surety.
20082 (grub_chainloader_boot): Set exit_data to NULL.
20083 Unset the loader once done.
20084 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20085
20086 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20087
20088 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20089 unknown key into a dprintf.
20090
20091 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20092
20093 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20094 on first non-existant partition.
20095
20096 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20097
20098 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20099 openning fails.
20100 Reported by: Mark Korenberg.
20101
20102 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20103
20104 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20105 overflow.
20106
20107 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20108
20109 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20110 before closing to ensure that it will be readable by grub-setup.
20111
20112 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20115 (devpath_1): Use MAKE_PIWG_PATH.
20116 (devpath_2): Likewise.
20117 (devpath_3): Likewise.
20118 (devpath_4): Likewise.
20119 (devpath_5): Likewise.
20120 (devpath_6): Likewise.
20121
20122 The appleldr.mod was checked that to be binary identical to previous
20123 version.
20124
20125 2011-05-05 Zach <mikezackles>
20126
20127 Support 2010 Macbooks.
20128
20129 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20130 (devs): Add devpath_6.
20131
20132 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20133
20134 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20135 /dev/random. /dev/urandom is good enough for our purposes (salting).
20136
20137 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20138
20139 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20140
20141 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20142
20143 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20144 hexadecimal.
20145
20146 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20147
20148 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20149 and not 0 on failure.
20150
20151 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20152
20153 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20154 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20155 disk; otherwise grub_fs_probe will not fall back to the next
20156 filesystem.
20157 (grub_pxefs_open): Likewise, for consistency.
20158 Reported and tested by: Ezekiel Grave.
20159
20160 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20161
20162 * tests/partmap_test.in: Don't hardcode path to parted.
20163 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20164
20165 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20166
20167 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20168 of `ls' to find out which devices are available.
20169
20170 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20171
20172 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20173 than source address for efi mmap buffer.
20174
20175 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20176
20177 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20178 wrong action on non-detecting the magic.
20179
20180 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20181
20182 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20183 already supplied by another part of the module (fixes compilation on
20184 FreeBSD).
20185
20186 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20187
20188 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20189 match the one used by mdadm.
20190
20191 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20192
20193 * po/README: Add instructions for creating po/LINGUAS.
20194
20195 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20196
20197 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20198 #551428.
20199
20200 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20201 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20202 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20203 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20204 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20205 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20206 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20207 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20208 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20209 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20210 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20211 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20212 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20213 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20214 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20215 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20216 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20217 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20218 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20219 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20220 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20221 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20222
20223 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20224
20225 * grub-core/kern/emu/getroot.c
20226 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20227 test that was incorrectly reintroduced in r3214.
20228 Reported by: Ian Dall. Fixes Savannah bug #33133.
20229
20230 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20231
20232 Fix stack pointer handling in 16-bit relocator.
20233
20234 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20235 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20236 Fixes Ubuntu bug #683904.
20237
20238 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20239
20240 * configure.ac: Bump version to 1.99~rc2.
20241
20242 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20245 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20246 * grub-core/lib/x86_64/setjmp.S: Likewise.
20247 * grub-core/lib/mips/setjmp.S: Likewise.
20248 * grub-core/lib/powerpc/setjmp.S: Likewise.
20249 * grub-core/lib/sparc64/setjmp.S: Likewise.
20250
20251 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20252
20253 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20254 * grub-core/lib/efi/datetime.c: Likewise.
20255
20256 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20257
20258 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20259 New function.
20260 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20261 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20262 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20263
20264 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20265
20266 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20267 bitmap.
20268 (grub_gfxterm_term_init): Likewise.
20269
20270 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20271
20272 Take into account the decorations the computing menu entry width.
20273
20274 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20275 (grub_gfxmenu_create_box): Register get_border_width.
20276 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20277 if available.
20278 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20279 get_border_width.
20280
20281 2011-04-18 Endres Puschner <code@e7p.de>
20282
20283 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20284 Don't skip first class.
20285
20286 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20287
20288 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20289 chunks.
20290 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20291
20292 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20293
20294 Complete 64-bit division support.
20295
20296 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20297 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20298 * include/grub/misc.h (grub_divmod64): Rename to ...
20299 (grub_divmod64_full): ... this.
20300 (grub_divmod64): New inline function.
20301
20302 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20303
20304 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20305
20306 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20307
20308 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20309 performing the necessary test.
20310
20311 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20312
20313 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20314 (kfreebsd.elf): Likewise.
20315 (pc-chainloader.elf): Likewise.
20316 (ntldr.elf): Likewise.
20317
20318 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20319
20320 Identify RAID by its UUID rather than (guessed) name.
20321
20322 * grub-core/disk/raid.c (ascii2hex): New function.
20323 (grub_raid_open): Accept mduuid/%s specification.
20324 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20325 (get_mdadm_uuid): ... this.
20326 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20327
20328 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20329
20330 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20331 to negative size.
20332
20333 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20334
20335 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20336 btrfs subvolume.
20337 * util/grub.d/20_linux_xen.in: Likewise.
20338
20339 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20340
20341 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20342 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20343
20344 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20345 Build a list of relevant visible mounts using the mnt_id and
20346 parent_mnt_id fields, and then scan that list at the end.
20347
20348 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20349
20350 * docs/grub.texi (normal): New section.
20351 (normal_exit): New section.
20352 (Embedded configuration): Add reference to normal.
20353 (GRUB only offers a rescue shell): Likewise.
20354 * docs/grub-dev.texi (Error Handling): Fix typo.
20355
20356 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20357
20358 * NEWS: Drop obsolete entry about probe-only btrfs support.
20359
20360 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20361
20362 * util/import_gcry.py: Fix typo.
20363
20364 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20365
20366 * NEWS: Add btrfs support.
20367
20368 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20369 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20370
20371 BtrFS support. Written by me (Vladimir) with important bugfixes and
20372 even more important testing by Colin.
20373
20374 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20375 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20376 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20377 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20378 mem_input_off and mem_input. All users updated to accept in-RAM input.
20379 (gzio_seek): New function.
20380 (test_zlib_header): Likewise.
20381 (grub_gzio_read): Likewise.
20382 (grub_zlib_decompress): Likewise.
20383 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20384 Accept partial and non-virtual mounts.
20385 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20386 avoid receiving /dev/dm-X as device.
20387 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20388 Handle bind and partial mounts.
20389 * grub-core/lib/crc.c: New file.
20390 * include/grub/deflate.h: Likewise.
20391 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20392 proto.
20393 * include/grub/lib/crc.h: New file.
20394
20395 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20396
20397 Implement automatic module license checking according to new GNU
20398 guidelines.
20399
20400 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20401 (grub_dl_load_core): Use grub_dl_check_license.
20402 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20403 (GRUB_MOD_LICENSE): Likewise.
20404 (GRUB_MOD_DUAL_LICENSE): Likewise.
20405 All modules updated.
20406
20407 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20408
20409 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20410 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20411 loaders.
20412 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20413
20414 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20415
20416 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20417
20418 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20419
20420 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20421 failed.
20422
20423 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20424
20425 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20426 parenthesis in the middle of the filename.
20427
20428 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20429
20430 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20431 rather than trying to put initrd way too high.
20432 Reported by: Ryan Lortie <desrt@desrt.ca>
20433
20434 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20435
20436 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20437 improperly removed string.
20438
20439 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20440
20441 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20442 is_disk.
20443 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20444 (open_device) Likewise.
20445 (grub_util_biosdisk_close): Likewise.
20446 Reported by: Mark Korenberg.
20447
20448 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20449
20450 * util/grub-mkconfig_lib.in: Add missing quotes.
20451
20452 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20453
20454 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20455 is NULL.
20456
20457 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20458
20459 Dynamically count the number of lines for the lower banner.
20460
20461 * grub-core/normal/menu_entry.c (per_term_screen): New member
20462 num_entries.
20463 (print_down): Use num_entries.
20464 (update_screen): Likewise.
20465 (grub_menu_entry_run): Set num_entries.
20466 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20467 num_entries.
20468 (grub_print_message_indented): Move real part to ...
20469 (grub_print_message_indented_real): ... here. Additional argument
20470 dry_run.
20471 (draw_border): Additional argument num_entries.
20472 (print_message): Additional argument dry_run.
20473 (print_entries): Receive menu viewer data.
20474 (grub_menu_init_page): New argment num_entries.
20475 (menu_text_set_chosen_entry): Use num_entries.
20476 (grub_menu_try_text): Likewise.
20477 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20478 All users updated.
20479 (grub_ucs4_count_lines): New function.
20480 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20481 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20482 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20483 (grub_term_border_height): Likewise.
20484 (grub_term_num_entries): Likewise.
20485
20486 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20487
20488 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20489 Remove now unused string.
20490
20491 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20492
20493 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20494 build system.
20495 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20496
20497 (Comment): Fix typo.
20498 (Getting started): General copy-editing.
20499 (Typical Development Experience): Likewise.
20500 (Error Handling): Likewise.
20501 (Video API): Likewise.
20502
20503 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20504
20505 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20506 throughout.
20507
20508 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20509
20510 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20511 directory.
20512
20513 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20514
20515 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20516 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20517 "development".
20518
20519 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20520
20521 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20522 grub_strcpy since the lines aren't necessarily 0-terminated.
20523
20524 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20525
20526 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20527 root on legacy.
20528
20529 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20530
20531 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20532 (GRUB_MOD_INIT): DEVICE isn't optional.
20533
20534 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20535
20536 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20537 word on new line if it's too long anyway. Fixes a hang.
20538
20539 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20540
20541 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20542 const.
20543 * util/grub-setup.c (main): Reuse md device name if available.
20544 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20545 not GRUB name as argument.
20546 Based on patch by: Florian Wagner <fwagner>.
20547
20548 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20549
20550 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20551 Place mbi on low memory for better compatibility.
20552
20553 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20554
20555 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20556
20557 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20558 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20559
20560 * autogen.sh: Ensure that collate and ctype locale is C.
20561 * conf/Makefile.common: Likewise.
20562
20563 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20564
20565 * grub-core/normal/menu.c: Add missing include.
20566
20567 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20568
20569 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20570
20571 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20572
20573 * util/grub-mkconfig.in: Ignore emacsen backup.
20574
20575 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20576
20577 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20578 on open.
20579 (grub_util_biosdisk_close): Likewise.
20580
20581 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20582
20583 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20584 const attribute and use grub_isdigit.
20585
20586 2011-04-06 Andrey <dev_null@ukr.net>
20587
20588 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20589 gcc warning.
20590
20591 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20592
20593 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20594 useful grub_dprintf's.
20595
20596 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20597
20598 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20599
20600 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20601
20602 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20603
20604 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20605
20606 Output errors if theme loading failed.
20607
20608 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20609 grub_gfxterm_fullscreen on error paths to ...
20610 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20611 theme loading error.
20612
20613 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20614
20615 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20616 space for older compilers.
20617 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20618
20619 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20620
20621 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20622 and report them as not RAID members since they are useless for GRUB.
20623 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20624
20625 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20626
20627 Increase LVM implementation robustness in order not to crash on
20628 configurations like pvmove. Previously code assumed that in some places
20629 only lvs or only pvs are used whereas it seems that they are used
20630 interchangeably.
20631
20632 * grub-core/disk/lvm.c (read_node): New function.
20633 (read_lv): Use read_node.
20634 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20635 Match volumes only at the end when all lvs are found. Take both
20636 pvs (first) and lvs (second) into account.
20637 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20638 mirror_* into node_*. All users updated.
20639 (grub_lvm_stripe): Merge this ...
20640 (grub_lvm_mirror): ... and this ...
20641 (grub_lvm_node): ... into this. All users updated.
20642
20643 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20644
20645 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20646 of function to allow further scanning for LVMs.
20647
20648 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20649
20650 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20651 on failed seek as it breaks open fd reusage.
20652
20653 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20654
20655 * util/grub-install.in: Add a recommendation to use --recheck before
20656 reporting bugs.
20657
20658 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20659
20660 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20661 are obtained.
20662
20663 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20664
20665 GRUB developper manual based on existing Internals section and
20666 contributions by the various authors with active copyright assignment.
20667
20668 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20669 * docs/font_char_metrics.png: New file.
20670 * docs/font_char_metrics.txt: Likewise.
20671 * docs/grub-dev.texi: Likewise.
20672 * docs/grub.texi (Internals): Move from here ...
20673 * docs/grub-dev.texi: ... here.
20674
20675 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20676
20677 Store the loopback device as data on loopback grub_disk structures,
20678 rather than the file it points to. This fixes use of freed memory
20679 if an existing loopback device is replaced.
20680
20681 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20682 disk->data, not dev->file.
20683 (grub_loopback_read): Adjust file assignment to match.
20684 Fixes Ubuntu bug #742967.
20685
20686 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20687
20688 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20689 when replacing an existing device.
20690
20691 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20692
20693 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20694 memory corruptions.
20695
20696 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20697 unsigned.
20698 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20699 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20700 (grub_jfs_read_inode): Likewise.
20701 (grub_jfs_opendir): Likewise. Remove now useless casts.
20702 (grub_jfs_getent): Likewise.
20703 Make ino a grub_uint32_t rather than int.
20704 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20705 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20706 division and module with bit operations.
20707 (grub_jfs_find_file): Make ino a grub_uint32_t.
20708 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20709
20710 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20711
20712 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20713 warning. (This was in fact always initialised before use, but GCC
20714 wasn't smart enough to prove that.)
20715 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20716
20717 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20718
20719 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20720 stack alignment.
20721 (efi_wrap_1): Likewise.
20722 (efi_wrap_2): Likewise.
20723 (efi_wrap_3): Likewise.
20724 (efi_wrap_4): Likewise.
20725 (efi_wrap_5): Likewise.
20726 (efi_wrap_6): Likewise.
20727 (efi_wrap_10): Likewise.
20728 Based on information by: Red Hat/Peter Jones.
20729
20730 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20731
20732 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20733 set-but-not-used variable.
20734
20735 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20736
20737 * docs/grub.texi (Simple configuration): Be more explicit about
20738 GRUB_DEFAULT, and add an example.
20739 Reported by: Leslie Rhorer.
20740
20741 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20742
20743 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20744 shell".
20745
20746 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20747
20748 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20749 * util/grub.d/20_linux_xen.in: Likewise.
20750
20751 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20752
20753 * util/grub.d/10_linux.in: Try alternative config filenames where
20754 we parse config file.
20755 * util/grub.d/20_linux_xen.in: Likewise.
20756
20757 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20758
20759 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20760 * util/grub.d/20_linux_xen.in: Likewise.
20761
20762 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20763
20764 * grub-core/disk/raid.c (insert_array): Add few potentially
20765 useful grub_util_info.
20766 (grub_raid_register): Likewise.
20767
20768 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20769
20770 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20771 Preserve partition number in mdadm code path.
20772
20773 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20774
20775 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20776 few potentially useful grub_util_info.
20777
20778 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20779
20780 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20781
20782 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20783
20784 * docs/grub.texi (default): Use @example rather than nested
20785 itemized lists to avoid breaking gendocs.
20786
20787 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20788
20789 * docs/grub.texi (Future): Update.
20790
20791 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20792
20793 * docs/grub.texi (Environment): New chapter.
20794 (Changes from GRUB Legacy): Link to "Environment block" section for
20795 details of limitations.
20796 (Simple configuration): Likewise. Link to documentation of gfxmode
20797 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20798 respectively.
20799 (Shell-like scripting): Note that normal variables are stored in the
20800 environment.
20801 (gettext): Link to documentation of lang and locale_dir.
20802 (list_env): New section.
20803 (load_env): New section.
20804 (save_env): New section.
20805
20806 (Reporting bugs): Fix typo.
20807
20808 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20809
20810 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20811 the example.
20812
20813 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20814
20815 * grub-core/term/at_keyboard.c (set_scancodes)
20816 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20817
20818 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20819
20820 * docs/grub.texi (Menu-specific commands): Remove some semantics
20821 that were true in GRUB Legacy but not in GRUB 2.
20822 (submenu): New section.
20823 (false): New section.
20824 (read): New section.
20825 (true): New section.
20826
20827 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20828
20829 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20830
20831 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20832
20833 * docs/grub.texi (Simple configuration): Explain some of the
20834 current limitations of grub-mkconfig.
20835 Reported by: Leslie Rhorer.
20836
20837 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20838
20839 Old macs search for boot.efi rather than for bootia32.efi.
20840
20841 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20842 * util/grub-mkrescue.in: Likewise.
20843 Suggested by: Peter Jones.
20844
20845 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20846
20847 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20848
20849 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20850
20851 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20852 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20853 (grub_lvm_mirror): New struct.
20854 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20855 (grub_lvm_iterate): Iterate only visible volumes.
20856 (grub_lvm_read): Factor out to ..
20857 (read_lv): ... this. Support mirrors.
20858 (grub_lvm_read): New wrapper function.
20859 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20860 stripped or mirrored.
20861
20862 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20863
20864 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20865
20866 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20867
20868 * docs/grub.texi (loopback): New section.
20869
20870 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20871
20872 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20873 removed -p option.
20874
20875 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20876
20877 * docs/grub.texi (BIOS installation): New section, partly based on
20878 previous text in other sections.
20879 (Installing GRUB using grub-install): Replace BIOS discussion with a
20880 cross-reference.
20881 (Images): Likewise.
20882
20883 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20884
20885 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20886 [HAVE_DIOCGDINFO]: Add safety checks.
20887
20888 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20889
20890 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20891 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20892
20893 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20894
20895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20896 real_sb->size is zero (e.g. RAID-0), get the disk size from
20897 real_sb->data_size instead.
20898 Fixes Ubuntu bug #743136.
20899
20900 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20901
20902 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20903 printf clauses for printing size and start.
20904
20905 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20906
20907 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20908 Reported and tested by: Timothy Nikkel.
20909
20910 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20911
20912 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20913 (dirty_region_add_real): ... this.
20914 (dirty_region_add): Don't discard margin refresh when performing
20915 scheduled repaint.
20916
20917 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20918
20919 * grub-core/lib/relocator.c (allocate_regstart)
20920 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20921 terminals are capabple of malloc-free operation.
20922 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20923 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20924
20925 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20926
20927 * util/grub-setup.c: Copy the partition table zone if floppy support
20928 is disabled, even if no partition table is found.
20929
20930 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20931 during POST if an invalid partition table is contained in the PBR
20932 of the active partition when GRUB is installed to a partition.
20933
20934 2011-03-28 Colin Watson <cjwatson@debian.org>
20935
20936 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20937 comment.
20938
20939 2011-03-28 Colin Watson <cjwatson@debian.org>
20940
20941 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20942 to be specific about what kind of RAID device we're scanning for.
20943
20944 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20945
20946 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20947 return freed string.
20948
20949 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20950
20951 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20952
20953 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20954
20955 Use libgeom on FreeBSD to detect partitions.
20956
20957 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20958 (grub-mkrelpath): Likewise.
20959 (grub-script-check): Likewise.
20960 (grub-editenv): Likewise.
20961 (grub-mkpasswd-pbkdf2): Likewise.
20962 (grub-fstest): Likewise.
20963 (grub-mkfont): Likewise.
20964 (grub-mkdevicemap): Likewise.
20965 (grub-probe): Likewise.
20966 (grub-setup): Likewise.
20967 (grub-ofpathname): Likewise.
20968 (grub-mklayout): Likewise.
20969 (example_unit_test): Likewise.
20970 (grub-menulst2cfg): Likewise.
20971 * grub-core/Makefile.core.def (grub-emu): Likewise.
20972 (grub-emu-lite): Likewise.
20973 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20974 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20975 define HAVE_DIOCGDINFO.
20976 (follow_geom_up) [FreeBSD]: New function.
20977 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20978 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20979 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20980 unconditionally of HAVE_DIOCGDINFO.
20981
20982 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20983
20984 Fix FreeBSD compilation problem.
20985
20986 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20987 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20988
20989 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20990
20991 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20992 Switch back to page zero before loading a kernel, since some kernel
20993 drivers expect that.
20994 Thanks to: Felix Kuehling.
20995
20996 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20997
20998 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20999 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21000 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21001
21002 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21003
21004 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21005 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21006
21007 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21008
21009 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21010 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21011 malloc is disabled.
21012
21013 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21014
21015 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21016 for modules headers when counting the needed allocation size.
21017
21018 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21019
21020 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21021 if no ASCII character is found to prevent crash.
21022
21023 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21024
21025 * grub-core/video/bitmap.c (match_extension): Ignore case.
21026
21027 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21028
21029 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21030
21031 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21032
21033 * grub-core/script/parser.y: Declare "time" as valid argument.
21034
21035 2011-03-23 Peter Jones <pjones@redhat.com>
21036
21037 Fix incorrect assert failure reporting.
21038
21039 * grub-core/tests/example_functional_test.c (example_test): Add
21040 a failure comment.
21041 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21042 (failure_start): ...this. Check that malloc succeeded.
21043 Don't call xvasprintf. Return failure struct.
21044 (failure_append_vtext): New function.
21045 (failure_append_text): Likewise.
21046 (add_failure): Likewise.
21047 (grub_test_assert_helper): Likewise.
21048 * include/grub/test.h (grub_test_assert_helper): New declaration.
21049 (grub_test_assert): Macro rewritten.
21050
21051 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21052
21053 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21054
21055 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21056
21057 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21058
21059 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21060
21061 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21062 into GRUB-style one.
21063
21064 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21065
21066 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21067 error and not grub_errno.
21068 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21069
21070 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21071
21072 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21073 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21074
21075 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21076
21077 * grub-core/efiemu/i386/pc/cfgtables.c
21078 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21079 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21080 (grub_xnu_unlock): Likewise.
21081 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21082
21083 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21084
21085 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21086 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21087 * grub-core/commands/hashsum.c (aliases): Likewise.
21088 * grub-core/commands/setpci.c (pci_registers): Likewise.
21089 * grub-core/disk/usbms.c (attach_hook): Likewise.
21090 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21091 (zio_checksum_table): Likewise.
21092 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21093 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21094 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21095 * grub-core/lib/relocator.c (leftovers): Likewise.
21096 (extra_blocks): Likewise.
21097 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21098 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21099 (modules_last): Likewise.
21100 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21101 (devices): Likewise.
21102 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21103 (modules_last): Likewise.
21104 * grub-core/normal/auth.c (users): Likewise.
21105 * grub-core/normal/context.c (initial_menu): Likewise.
21106 (current_menu): Likewise.
21107 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21108 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21109 (grub_serial_terminfo_input_template): Likewise.
21110 (grub_serial_terminfo_output_template): Likewise.
21111 (grub_serial_terminfo_input): Likewise.
21112 (grub_serial_terminfo_output): Likewise.
21113 (registered): Likewise.
21114 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21115
21116 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21117
21118 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21119 grub_video_mode_type_t.
21120 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21121 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21122 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21123
21124 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21125
21126 * util/grub-install.in: Correct the x86-64 name as x86_64.
21127
21128 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21129
21130 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21131 initial chunk read from the kernel always includes GRUB's multiboot
21132 header, which is now outside the first sector.
21133
21134 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21135
21136 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21137 cached mmap_size, so that this works correctly when called multiple
21138 times.
21139 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21140
21141 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21142
21143 * docs/grub.texi (Simple configuration): Tidy up formatting.
21144
21145 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21146
21147 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21148 Set-but-not-used variable removed.
21149
21150 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21151
21152 Workaround yet another IEEE1275 bug.
21153
21154 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21155 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21156 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21157 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21158 is set.
21159 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21160 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21161
21162 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21163
21164 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21165 error.
21166
21167 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21168
21169 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21170 empty, since in that case we can only generate either nothing or a
21171 syntactically invalid configuration file.
21172 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21173
21174 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21175
21176 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21177 (Making a GRUB bootable CD-ROM): Likewise.
21178 (Invoking grub-mkrescue): New section.
21179 Reported by: Yann Dirson. Fixes Debian bug #612585.
21180
21181 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21182
21183 * util/grub-install.in: Remove unnecessary brackets from tr
21184 arguments.
21185 * util/grub.d/10_hurd.in: Likewise.
21186 * util/grub.d/10_kfreebsd.in: Likewise.
21187 * util/grub.d/10_linux.in: Likewise.
21188 * util/grub.d/20_linux_xen.in: Likewise.
21189 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21190
21191 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21192
21193 * include/grub/file.h (not_easly_seekable): Rename to ...
21194 (not_easily_seekable): ... this. Update all users.
21195
21196 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21197
21198 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21199 grub-mkrescue.
21200
21201 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21202
21203 * util/grub-mkimage.c (generate_image): Refuse to create the images
21204 bigger than the actual flash (512K) in Loongson machines. 512K is also
21205 the biggest chip supported by them.
21206
21207 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21208
21209 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21210
21211 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21212
21213 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21214 super_offset field.
21215
21216 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21217
21218 * util/grub-install.in: Ignore install device on platforms
21219 where it doesn't make sense. Always use UUIDs except on pc, efi and
21220 sparc64.
21221 Reported by: Daniel Kahn Gillmor.
21222
21223 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21224
21225 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21226
21227 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21228
21229 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21230 (iterate_real): Don't rely on partition being non-NULL.
21231
21232 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21233
21234 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21235 supported platforms. Put a compile time assert for this rather than
21236 generate a warning with 32-bit shift.
21237
21238 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21239
21240 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21241 logical expression more readable.
21242
21243 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21244
21245 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21246 even if some elements have a name.
21247 Reported by: Alexander GQ Gerasiov.
21248
21249 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21250
21251 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21252 path unreadable if `grub-probe -t abstraction' fails, for example if
21253 memberlist fails on an LVM volume group.
21254 Reported by: Darius Jahandarie.
21255
21256 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21257
21258 * docs/grub.texi (Simple configuration): Document
21259 GRUB_PRELOAD_MODULES.
21260
21261 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21262
21263 * .bzrignore: Remove nonexistent grub-pbkdf2.
21264
21265 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21266
21267 * configure.ac: Bump version to 1.99~rc1.
21268
21269 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21270
21271 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21272 for safety.
21273
21274 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21275
21276 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21277 module.
21278
21279 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21280
21281 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21282
21283 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21284
21285 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21286 diskdevid.
21287
21288 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21289
21290 Fix compilation on cygwin.
21291
21292 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21293 -R .drectve on cygwin.
21294 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21295 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21296 (COND_CYGWIN): New condition.
21297 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21298 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21299 not @TARGET_OBJ2ELF@.
21300 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21301 type to determine whether aux is to be used.
21302
21303 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21304
21305 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21306 realpath'ed device string.
21307 Handle floppy (somewhat).
21308 Issue error in unknown case rather than garbage.
21309 Reported by: Axel Beckert.
21310
21311 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21312
21313 * util/grub.d/00_header.in (load_video): Handle the case when no video
21314 drivers available.
21315 Thanks to: Axel Beckert.
21316
21317 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21318
21319 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21320 variable. Fixes problem on big endian platforms.
21321
21322 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21323
21324 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21325 It doesn't work well there.
21326
21327 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21328
21329 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21330 warning.
21331 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21332 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21333 counter.
21334
21335 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21336
21337 Use alias->path rather than buggy "canon".
21338
21339 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21340 (ofdisk_hash_add): New argument curcan. All users updated.
21341
21342 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21343
21344 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21345
21346 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21347
21348 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21349 loadmask before doing any calculations. Use correct type for offset.
21350 (grub_linux_load64): Likewise.
21351
21352 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21353
21354 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21355 with NULL.
21356 (console_grub_equivalences_unshift): Likewise.
21357 Reported by: Daniel Dehennin.
21358
21359 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21360
21361 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21362 (set_env_limn_ro): Likewise.
21363 (GRUB_MOD_INIT): Likewise.
21364 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21365 ARRAY_SIZE while on it.
21366 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21367 * grub-core/normal/context.c (grub_env_export): Move from here ...
21368 * grub-core/kern/env.c (grub_env_export): ... here.
21369 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21370 prefix.
21371 * grub-core/kern/main.c (grub_main): Export root and prefix.
21372 * include/grub/env.h (grub_env_export): Export.
21373 Reported by: Seth Goldberg.
21374
21375 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21376
21377 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21378 Take into account space used by ELF sections and multiboot palette.
21379 Reported by: Grégoire Sutre.
21380
21381 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21382
21383 * BUGS: New file.
21384
21385 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21386
21387 Pass more appropriate video id to Linux.
21388
21389 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21390 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21391 fill have_vga.
21392 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21393 shift params->lfb_size.
21394 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21395
21396 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21397
21398 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21399
21400 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21401
21402 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21403 separator and pass bootpath/devid even if only one of them is available.
21404 Reported by: Seth Goldberg.
21405
21406 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21407
21408 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21409 implementations bug on them.
21410
21411 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21412 memory.
21413 (filter_memory_map): Likewise.
21414
21415 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21416
21417 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21418 Reported by: nebuchadnezzar.
21419
21420 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21421
21422 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21423 Reported by: nebuchadnezzar.
21424
21425 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21426
21427 Submenu default support.
21428
21429 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21430 auto_boot. All users updated.
21431 Declared static.
21432 Handle chosen and default with submenus.
21433 (grub_menu_execute_with_fallback): Declared static.
21434 Don't notify failure if autobooted. Upper level does it.
21435 (menuentry_eq): New function.
21436 (get_entry_number): Use menuentry_eq.
21437 (show_menu): New parameter "autobooted". All users updated.
21438 (grub_show_menu): Likewise.
21439 * include/grub/normal.h (grub_show_menu): Likewise.
21440 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21441 (grub_menu_execute_with_fallback): Likewise.
21442
21443 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21444
21445 * util/grub-mklayout.c (usage): Update help text.
21446
21447 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21448
21449 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21450
21451 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 * util/grub-menulst2cfg.c (main): Trim the line.
21454
21455 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21456
21457 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21458 (grub_machine_init): Don't check amount of low memory as reportedly
21459 INT 12h can be broken and if low memory is too low we wouldn't have
21460 gotten into grub_machine_init anyway.
21461
21462 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21463
21464 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21465 (grub_machine_mmap_iterate): Take low memory into account
21466
21467 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21468
21469 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21470 badfs.
21471 Reported by: TiCPU.
21472
21473 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21474
21475 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21476 members errors.
21477
21478 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21479
21480 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21481 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21482
21483 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21484
21485 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21486 openbsd and netbsd types being in part_bsd module.
21487
21488 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21489
21490 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21491 (_FILE_OFFSET_BITS): Likewise.
21492 Reported by: Seth Goldberg.
21493
21494 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21495
21496 * configure.ac: Check for libdevmapper header.
21497
21498 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21499
21500 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21501 avoid aliasing.
21502 (fzap_lookup): Likewise.
21503 (dnode_get): Likewise.
21504 (make_mdn): Likewise.
21505 (zfs_mount): Likewise.
21506 (fzap_iterate): Use temporary pointer to avoid aliasing.
21507 (grub_zfs_read): Likewise.
21508 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21509 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21510 pointers to avoid aliasing.
21511 (grub_cmd_xnu_kernel64): Likewise.
21512 (grub_xnu_load_driver): Likewise.
21513
21514 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21515
21516 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21517 aliasing warning.
21518 (grub_cmd_terminal_output): Likewise.
21519 Reported and tested by: Grégoire Sutre.
21520
21521 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21522
21523 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21524 warning.
21525 Reported and tested by: Grégoire Sutre.
21526
21527 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21528
21529 * configure.ac: Do CPU substitution even if it's specified explicitly.
21530 Reported and tested by: Alain Greppin.
21531
21532 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21533
21534 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21535 Reported and tested by: Alain Greppin.
21536
21537 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21538
21539 Satisfy some bison versions need for inttypes.h.
21540
21541 * grub-core/lib/posix_wrap/inttypes.h: New file.
21542 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21543 (int16_t): Likewise.
21544 (int32_t): Likewise.
21545 (int64_t): Likewise.
21546 Reported and tested by: Alain Greppin.
21547
21548 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21549
21550 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21551 Silence spurious warning.
21552 Reported and tested by: Alain Greppin.
21553
21554 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21555
21556 * docs/grub.texi (Support automatic decompression): Update with xz
21557 decompression support.
21558
21559 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21560
21561 Improve loaders' kernel command line handling.
21562
21563 * grub-core/lib/cmdline.c: New file.
21564 * include/grub/lib/cmdline.h: Likewise.
21565 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21566 grub_create_loader_cmdline to create kernel command line.
21567 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21568 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21569 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21570 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21571 (linux): Add lib/cmdline.c on common.
21572
21573 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21574
21575 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21576 inopos might be unaligned.
21577
21578 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21579
21580 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21581 endian transformations.
21582 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21583 Based on report by: Doug Nazar.
21584
21585 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21586
21587 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21588 array->members[i].start_sector.
21589 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21590
21591 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21592
21593 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21594 Reported and tested by: Grégoire Sutre.
21595
21596 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21597
21598 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21599 avoid causing test failures by clearing the screen.
21600
21601 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21602
21603 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21604 Fix prefix check to handle the case where dir ends with a slash
21605 (most significantly, "/" itself).
21606 Reported by: Michael Vogt.
21607
21608 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21609
21610 Run terminfo_cls on initing terminfo output to clear the screen and
21611 move the cursor to (0,0).
21612
21613 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21614 Call grub_terminfo_output_init.
21615 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21616 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21617 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21618
21619 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21620
21621 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21622 only when needed.
21623
21624 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21625
21626 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21627 CTRL.
21628
21629 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21630
21631 The E820 type 5 is BADRAM, not EXEC_CODE.
21632
21633 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21634 (GRUB_E820_BADRAM): New define.
21635 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21636 into reserved. Propagate BADRAM.
21637 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21638 (GRUB_E820_BADRAM): New define.
21639
21640 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21641
21642 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21643 Ignore the memory post-4G.
21644 (grub_relocator_firmware_alloc_region): Additional debug statement.
21645
21646 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21647
21648 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21649 names.
21650 Reported by: David Pravec.
21651
21652 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21653
21654 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21655 BIOSes.
21656
21657 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21658
21659 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21660 Prevent overflow.
21661 (grub_reed_solomon_recover): Likewise.
21662
21663 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21664
21665 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21666
21667 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21668
21669 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21670 variable.
21671
21672 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21673
21674 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21675 descriptions of extract_legacy_entries_source and
21676 extract_legacy_entries_configfile.
21677 Reported by: Seung Soo, Ha.
21678
21679 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21680
21681 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21682 on devices that do not implement function 0.
21683
21684 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21685
21686 * grub-core/fs/hfsplus.c: Make parent unsigned.
21687 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21688 overflows.
21689 (grub_hfsplus_cmp_extkey): Likewise
21690
21691 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21692
21693 * util/grub-install.in: Correctly use bootloader_id and not
21694 GRUB_DISTRIBUTOR on efibootmgr line.
21695
21696 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21697
21698 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21699
21700 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21701
21702 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21703 Xen and reorder menu item wording to make it clearer that this entry
21704 will launch Xen. Print separate messages when loading Xen and
21705 Linux.
21706
21707 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21710 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21711 loop in case of incorrect amiga partmap.
21712
21713 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21716 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21717 Reported by:EHeM.
21718
21719 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21720
21721 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21722 spurious warning.
21723 Reported by: crocket
21724
21725 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21726
21727 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21728 Preload EFIemu.
21729 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21730
21731 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21732
21733 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21734 is loaded
21735 (grub_cmd_xnu_kextdir): Likewise.
21736 (grub_cmd_xnu_splash): Likewise.
21737
21738 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21739
21740 Avoid using Reed-Solomon with 0 redundancy.
21741
21742 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21743 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21744 or 0 redundancy.
21745 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21746 (grub_reed_solomon_recover): Likewise.
21747
21748 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21749
21750 Don't use disk subsystem in freebsd_boot.
21751
21752 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21753 (freebsd_biosdev): Likewise.
21754 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21755 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21756
21757 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21758
21759 Handling of files of unknown size is currently limited. They can't be
21760 used e.g. for initrd or modules. Moreover gzip handling of not
21761 easily seekable files is buggy. Disable unknown file size for now. May
21762 be inefficient but works.
21763
21764 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21765 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21766
21767 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21768
21769 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21770 floppy probe.
21771
21772 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21773
21774 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21775
21776 2010-12-25 Shea Levy <shlevy>
21777
21778 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21779
21780 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21783 Windows Server 2008.
21784 Reported by: Devin Giddings.
21785
21786 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21787
21788 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21789 writing an error message because of async power management.
21790 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21791 (grub_reboot): Likewise.
21792
21793 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21794
21795 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21796 keep unit tests from failing when they shouldn't.
21797
21798 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21799
21800 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21801 previous patch increased the size of the RS code by 20 bytes (at
21802 least with gcc-4.4), so increase this by 20 bytes to match.
21803 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21804
21805 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21806
21807 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21808 scratch area. Make sure to initialise chosen in standalone mode as
21809 well as non-standalone.
21810 Reported by: Robert Hooker and Andy Whitcroft.
21811 Tested by: Andy Whitcroft.
21812
21813 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21814
21815 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21816 constructing a new unescaped string and passing it to grub_xputs in
21817 one go, rather than passing characters to grub_printf one at a time.
21818
21819 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21820
21821 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21822 initialising utf16.
21823
21824 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21825
21826 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21827 comment. Add an extra layer of quotation, requiring the output of
21828 this function to be used in a printf format string.
21829 (gettext_printf): New function.
21830 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21831 Extract translatable strings from here-documents and use a temporary
21832 variable instead, so that xgettext can find them.
21833 * util/grub.d/10_kfreebsd.in: Likewise.
21834 * util/grub.d/10_linux.in: Likewise.
21835 * util/grub.d/20_linux_xen.in: Likewise.
21836
21837 * po/grub.d.sed: New file.
21838 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21839 arguments. Set c-format flags on all strings extracted from
21840 util/grub.d/ (xgettext refuses to include these itself for strings
21841 it extracted from a shell file, but these really are c-format).
21842
21843 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21844
21845 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21846 Avoid next pointing to nowhere.
21847
21848 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21849
21850 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21851 rather than assuming than rootblock is exactly in the middle.
21852 (grub_affs_label): Likewise.
21853
21854 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21855
21856 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21857 reserved_first_sector to 0.
21858 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21859 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21860 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21861
21862 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21863
21864 Fix handling of UTF-16 UDF labels.
21865
21866 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21867 (read_string): .. here.
21868 (grub_udf_label): Use read_string.
21869
21870 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21871
21872 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21873 editor under argument scope.
21874 Reported by: Jordan Uggla
21875
21876 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21877
21878 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21879
21880 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21881
21882 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21883 line, and other keys scroll an entire page (previous handling was
21884 for \r and \n to scroll a page and other keys to scroll two lines).
21885
21886 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21887
21888 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21889 Set ptrdest to correct get_physical_target_address rather than
21890 incorrect get_virtual_current_address.
21891
21892 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21893
21894 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21895 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21896
21897 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21898
21899 * .bzrignore: Ignore grub-core/rs_decoder.S.
21900
21901 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21902
21903 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21904 .mo/.mo.gz opening sequence to ...
21905 (grub_mofile_open_lang): ... here.
21906 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21907 * util/grub.d/00_header.in (grub_lang): Include country part of
21908 locale.
21909 Reported by: Mario Limonciello.
21910
21911 2010-12-09 Robert Millan <rmh@gnu.org>
21912
21913 * NEWS: Document addition of ZFS support.
21914
21915 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21916
21917 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21918 rather than `/ 2', as the latter requires -Wa,--divide which would
21919 require bumping our minimum binutils version.
21920
21921 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21922
21923 * util/grub-script-check.c (main): Print script line number on
21924 error.
21925
21926 2010-12-01 Robert Millan <rmh@gnu.org>
21927
21928 * grub-core/fs/zfs/zfs.c: New file.
21929 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21930 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21931 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21932 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21933
21934 * include/grub/zfs/dmu.h: Likewise.
21935 * include/grub/zfs/dmu_objset.h: Likewise.
21936 * include/grub/zfs/dnode.h: Likewise.
21937 * include/grub/zfs/dsl_dataset.h: Likewise.
21938 * include/grub/zfs/dsl_dir.h: Likewise.
21939 * include/grub/zfs/sa_impl.h: Likewise.
21940 * include/grub/zfs/spa.h: Likewise.
21941 * include/grub/zfs/uberblock_impl.h: Likewise.
21942 * include/grub/zfs/vdev_impl.h: Likewise.
21943 * include/grub/zfs/zap_impl.h: Likewise.
21944 * include/grub/zfs/zap_leaf.h: Likewise.
21945 * include/grub/zfs/zfs.h: Likewise.
21946 * include/grub/zfs/zfs_acl.h: Likewise.
21947 * include/grub/zfs/zfs_znode.h: Likewise.
21948 * include/grub/zfs/zil.h: Likewise.
21949 * include/grub/zfs/zio.h: Likewise.
21950 * include/grub/zfs/zio_checksum.h: Likewise.
21951
21952 * Makefile.util.def: Build ZFS into libgrubmods.
21953 * grub-core/Makefile.core.def: Build zfs.mod.
21954
21955 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21956
21957 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21958 variable.
21959 * grub-core/commands/wildcard.c (match_files): Likewise.
21960
21961 2010-11-30 Robert Millan <rmh@gnu.org>
21962
21963 * grub-core/loader/i386/bsd.c
21964 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21965 whether kernel is loaded using grub_loader_is_loaded(), rather
21966 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21967 certain error conditions.
21968
21969 2010-11-30 Robert Millan <rmh@gnu.org>
21970
21971 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21972 (grub_cmd_echo): Call grub_refresh() after printing a message.
21973
21974 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21975
21976 Avoid using tricks for initialising endian variables.
21977
21978 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21979 Make const.
21980 (GRUB_MOD_INIT): Don't byte-swap.
21981 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21982 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21983 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21984 (grub_swap_bytes32_compile_time): Likewise.
21985 (grub_cpu_to_le32_compile_time): Likewise.
21986 (grub_cpu_to_le16_compile_time): Likewise.
21987
21988 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21989
21990 * util/grub-setup.c (setup): Stop recommending --force. People who
21991 understand the dangers of blocklists are able to find this option
21992 anyway and the ones who don't shouldn't use it anyway.
21993
21994 2010-11-26 Robert Millan <rmh@gnu.org>
21995
21996 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21997 Update all users.
21998
21999 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22000
22001 Fix LVM-on-RAID probing.
22002
22003 * util/grub-probe.c (probe): Remember which disk was detected as
22004 RAID (perhaps an LVM physical volume). Use that disk's raidname
22005 rather than that of the top-level disk.
22006
22007 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22008
22009 Fix cmdline argument quotes for setparams command of menuentry
22010 definitions.
22011
22012 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22013 quotes for arguments.
22014 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22015 grub_strchrsub function instead.
22016
22017 * include/grub/misc.h (grub_strchrsub): New function.
22018
22019 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22020
22021 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22022 effort by skipping "." and ".." entries up-front.
22023 Suggested by: Michael Lazarev.
22024
22025 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22026
22027 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22028 ldflags to ldadd, to fix link line ordering.
22029 (none_decompress): Likewise.
22030
22031 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22032
22033 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22034 platforms.
22035 (grub-emu-lite): Remove kern/emu/cache.S.
22036
22037 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22038
22039 * util/deviceiter.c (compare_devices): If the by-id link for a
22040 device couldn't be resolved, fall back to sorting by the by-id link
22041 rather than segfaulting.
22042 Reported and tested by: Daniel Mierswa.
22043
22044 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22045
22046 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22047 ldflags, to fix link line ordering.
22048
22049 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22050
22051 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22052 linkers are picky about this.
22053
22054 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22055
22056 * grub-core/Makefile.am (command.lst): Adjust sed expression
22057 ordering so that extended and priority commands aren't treated as
22058 ordinary commands.
22059
22060 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22061
22062 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22063 Remove byte-swapping function calls, which are not valid in
22064 structure initialisers.
22065 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22066 non-const.
22067 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22068 grub_gpt_partition_type_bios_boot.
22069
22070 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22071
22072 Fix test program build on GNU/kFreeBSD.
22073
22074 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22075 $(LIBNVPAIR)' library dependencies.
22076
22077 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22078
22079 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22080
22081 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22082
22083 * util/grub-install.in: Remove excessive quoting that broke
22084 installations to RAID devices.
22085
22086 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22087
22088 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22089 bootloader version instead of 0.
22090
22091 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22092
22093 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22094 warning.
22095
22096 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22097
22098 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22099 retrieve the metadat sector if size isn't known.
22100 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22101
22102 2010-11-18 Robert Millan <rmh@gnu.org>
22103
22104 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22105 with grub_memcmp().
22106
22107 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22108
22109 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22110 arrow.
22111 Reported by: Jordan Uggla.
22112
22113 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22114
22115 Make better UTF compliant.
22116
22117 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22118 sequences as incorrect.
22119 (grub_is_valid_utf8): Likewise.
22120 (grub_utf8_to_ucs4): Likewise.
22121 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22122 (grub_ucs4_to_utf8_alloc): Likewise.
22123 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22124
22125 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22126
22127 Make legacy_source behave like source.
22128
22129 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22130 grub_show_menu.
22131 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22132
22133 2010-11-16 Colin Watson <cjwatson@debian.org>
22134
22135 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22136 (-Wunused implies -Wunused-parameter, but not vice versa).
22137
22138 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22139
22140 * configure.ac: Make error messages less confusing by testing for
22141 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22142 accepted, but produces a diagnostic if something else is wrong).
22143
22144 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22145
22146 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22147 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22148 (now unused).
22149 (grub_keyboard_controller_init)
22150 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22151 read the initial state since controller isn't inited yet.
22152
22153 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22154
22155 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22156 allocate_regbeg may need to create new chunk header.
22157
22158 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22159
22160 Fix quoting in legacy parser.
22161
22162 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22163 single quotes.
22164 (grub_legacy_parse): Likewise.
22165 Reported by: Jordan Uggla.
22166 Tested by: Jordan Uggla.
22167
22168 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22169
22170 Don't add -lgcc on i386 and x86_64.
22171
22172 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22173 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22174 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22175
22176 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22177
22178 * configure.ac: Add -Wno-trampolines when supported.
22179
22180 2010-11-14 Modestas Vainius <modax@debian.org>
22181
22182 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22183 fakeraid.
22184
22185 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22186
22187 Add generic logical block size support for UDF.
22188
22189 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22190 (GRUB_UDF_BLKSZ): Removed.
22191 (struct grub_udf_data): New field "lbshift" to hold the logical block
22192 size of the file system in log2 format. All users updated.
22193 (sblocklist): Change type to unsigned.
22194 (grub_udf_mount): Change type of "sblklist" to unsigned.
22195 Move AVDP search before VRS recognition, because the latter requires
22196 knowledge of the logical block size, which is detected during the
22197 former.
22198 Detect and validate logical block size during AVDP search, adding
22199 support for block sizes 512, 1024 and 4096.
22200 Make VRS recognition independent of block size.
22201
22202 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22203
22204 Properly handle deleted files on UDF.
22205
22206 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22207 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22208 set.
22209
22210 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22211
22212 Support reading files larger than 2 GiB.
22213
22214 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22215 "offset" to grub_off_t.
22216 (grub_udf_read_file): Likewise for parameter "pos".
22217
22218 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22219
22220 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22221 unavailable.
22222 (Simple configuration): Refer to Changes from GRUB Legacy about
22223 save_env availability.
22224
22225 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22226
22227 * util/grub-install.in: Ignore empty partition table detection
22228 instead of trying to include part_ module.
22229
22230 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22231
22232 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22233 LVM on RAID support.
22234
22235 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22236
22237 Properly define WORDS_BIGENDIAN in wrapped environments.
22238
22239 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22240 definition.
22241 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22242
22243 Reported by: Manoel Rebelo Abranches.
22244 Tested by: Manoel Rebelo Abranches.
22245
22246 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22247
22248 * util/grub-mkconfig.in: Fix quoting.
22249
22250 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22251
22252 Support big ext2 files.
22253
22254 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22255 (grub_ext2_read_block): Support triple indirect blocks.
22256 (grub_ext2_read_file): Use 64-bit types and read size_high.
22257 (grub_ext2_open): Read size_high.
22258 Reported by: Ximin Luo.
22259 Tested by: Manoel Rebelo Abranches.
22260
22261 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22262
22263 * util/grub-install.in: Handle filenames containing spaces.
22264 Reported by: Jordan Uggla.
22265 Tested by: Jordan Uggla.
22266
22267 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22268
22269 * util/grub-mkconfig.in (grub_script_check): New variable.
22270 Use grub_script_check instead of grub-script-check.
22271 Reported by: Barry Jackson.
22272
22273 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22274
22275 * docs/grub.texi (menu): Correct the order.
22276 Reported by: D. Hugh Redelmeier.
22277
22278 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22279
22280 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22281 jump.
22282
22283 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22284
22285 * include/grub/elfload.h (grub_elf32_size): New parameter.
22286 All users updated.
22287 Return maximum segments alignment.
22288 (grub_elf64_size): Likewise.
22289 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22290 Return maximum segments alignment.
22291 (grub_elf64_size): Likewise.
22292 * grub-core/loader/powerpc/ieee1275/linux.c:
22293 (grub_linux_claimmap_iterate): New function. Uses the
22294 "available" property in the "memory" node for memory allocation
22295 for kernel in the PowerPC loader.
22296 (grub_linux_load32): Correctly find linux entry point offset.
22297 (grub_linux_load64): Likewise.
22298
22299 2010-11-07 Robert Millan <rmh@gnu.org>
22300
22301 On mips-yeeloong, build with -march=loongson2f when this flag is
22302 available (GCC >= 4.4).
22303 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22304 `-march=mips3'.
22305 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22306 or otherwise add -march=mips3.
22307
22308 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22309
22310 Suppress shell expansion on echo '*' and echo "*" like cases.
22311 Reported by: Jordan Uggla.
22312
22313 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22314 string arguments before shell expansion.
22315 * tests/grub_cmd_echo.in: New testcases.
22316
22317 2010-11-07 Robert Millan <rmh@gnu.org>
22318
22319 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22320 transition.
22321
22322 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22323
22324 * grub-core/kern/emu/hostdisk.c
22325 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22326
22327 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22328
22329 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22330 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22331 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22332
22333 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22334
22335 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22336
22337 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22338
22339 * util/grub-install.in: Replace useless recomendation to pass
22340 --modules with a recomendation to report a bug.
22341
22342 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22343
22344 Properly register serial terminfo.
22345 Reported by: Jordan Uggla
22346
22347 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22348 const.
22349 (grub_serial_terminfo_output_template): Likewise.
22350 (grub_cmd_serial): Register "serial" with terminfo.
22351 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22352 grub_serial_terminfo_output.
22353
22354 2010-11-05 Robert Millan <rmh@gnu.org>
22355
22356 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22357 needed).
22358
22359 2010-11-05 Robert Millan <rmh@gnu.org>
22360
22361 On Yeeloong, pass machine type information to Linux.
22362
22363 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22364 (LOONGSON_MACHTYPE): New macro, set to
22365 "machtype=lemote-yeeloong-2f-8.9inches".
22366 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22367 additional argument to Linux.
22368
22369 2010-11-04 Robert Millan <rmh@gnu.org>
22370
22371 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22372 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22373 (its SATA disks are detected as slaveless IDE master drives on
22374 kFreeBSD).
22375 Reported by Carsten Aulbert.
22376
22377 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22378
22379 * util/bin2h.c (main): Fix spelling error in generated output.
22380
22381 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22382
22383 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22384
22385 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22386
22387 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22388 vga= option is supplied.
22389
22390 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22391
22392 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22393 * util/grub.d/10_kfreebsd.in: Likewise.
22394 * util/grub.d/10_linux.in: Likewise.
22395 * util/grub.d/20_linux_xen.in: Likewise.
22396
22397 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22398
22399 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22400 argument as an argument to no-argument option.
22401
22402 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22403
22404 * util/grub.d/10_linux.in: Add missing load_video with explicit
22405 GRUB_GFXPAYLOAD_LINUX.
22406
22407 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22408
22409 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22410
22411 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22412
22413 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22414 elements with invlid index.
22415 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22416 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22417 members.
22418 * include/grub/raid.h (grub_raid_member): New struct.
22419 (grub_raid_array): Transform devices and start_sector into usage of
22420 grub_raid_member. All users updated
22421 (allocated_devs): New member.
22422
22423 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22424
22425 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22426 is modified
22427
22428 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22429
22430 NetBSD build fix for getline function conflict from gnulib.
22431
22432 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22433 components that depend on gnulib headers.
22434 (libgrubmods.a): Renamed from earlier libgrub.a.
22435 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22436
22437 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22438
22439 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22440 install rather than creating a broken install.
22441
22442 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22443
22444 * util/grub-setup.c (argp): Remove misleading example of installing to
22445 a partition.
22446
22447 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22448
22449 * util/grub-setup.c (setup): Clarify the error message.
22450
22451 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22452
22453 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22454
22455 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22456
22457 * grub-core/kern/emu/misc.c
22458 (grub_make_system_path_relative_to_its_root)
22459 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22460
22461 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22462
22463 * grub-core/kern/emu/misc.c
22464 (grub_make_system_path_relative_to_its_root): Revert r2882.
22465
22466 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22467
22468 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22469 useless field head. All users updated.
22470 (free_subchunk): Correct handling of IN_REGION subchunk.
22471
22472 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22473
22474 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22475 (Supported kernels): Likewise.
22476
22477 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22478
22479 Make mktemp invocations portable.
22480
22481 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22482 exit if mktemp fails.
22483 * tests/grub_script_blockarg.in: Likewise.
22484 * tests/partmap_test.in: Likewise.
22485 * tests/util/grub-shell-tester.in: Likewise.
22486 * tests/util/grub-shell.in: Likewise.
22487 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22488 * Makefile.am: Likewise, and chain shell commands with `&&'
22489 instead of ';'.
22490 * util/grub-mkrescue.in: Use the same explicit template as above, and
22491 exit if mktemp fails.
22492
22493 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22494
22495 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22496 Linux kernel, reported by Dennis Schridde.
22497
22498 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22499
22500 * grub-core/normal/auth.c (grub_auth_check_authentication):
22501 Set-but-not-used variable removed.
22502
22503 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22504
22505 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22506 32-bit linux protocol.
22507
22508 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22509
22510 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22511 cursor shape for sanity.
22512
22513 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22514
22515 * docs/grub.texi (Installation): Document buggy BIOS install.
22516
22517 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22518
22519 * docs/grub.texi (Installation): Indent.
22520
22521 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22522
22523 * util/grub-setup.c (setup): New parameter allow_floppy.
22524 (arguments): New member allow_floppy.
22525 (argp_parser): Handle --allow-floppy.
22526 (main): Pass allow_floppy.
22527 * util/grub-install.in: New option --allow-floppy passed though to
22528 grub-setup.
22529
22530 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22531
22532 * util/grub-install.in: Handle partitionless disks.
22533
22534 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22535
22536 * util/grub-setup.c (setup): Don't clean blocklists before readability
22537 verfification.
22538
22539 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22540
22541 * docs/grub.texi (Installation): Document embedding zone. Remove
22542 obsolete grub-install example.
22543
22544 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22545
22546 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22547 Set-but-not-used variable ifdef'ed.
22548 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22549 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22550 variable removed.
22551 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22552 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22553 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22554 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22555 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22556 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22557 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22558 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22559 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22560 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22561 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22562 Likewise.
22563
22564 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22567 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22568 enum value.
22569
22570 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22571
22572 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22573 synonym to _S5_. Needed for some DSDTs.
22574
22575 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22576
22577 Userspace ACPI parser debugging.
22578
22579 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22580 headers and add relevant defines. Don't include standard headers.
22581 (main) [GRUB_DSDT_TEST]: New function.
22582 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22583 Don't declare functions.
22584
22585 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22586
22587 Remove dead grub_efi_mm_fini.
22588
22589 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22590 (ALLOCATED_PAGES_SIZE): Likewise.
22591 (MAX_ALLOCATED_PAGES): Likewise.
22592 (allocated_pages): Likewise.
22593 (grub_efi_allocate_pages): Don't record allocated pages.
22594 (grub_efi_free_pages): Likewise.
22595 (grub_efi_mm_init): Likewise.
22596 (grub_efi_mm_fini): Removed.
22597
22598 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22599
22600 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22601 (grub_efi_mm_init): Take into account the memory map size increase.
22602
22603 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22604
22605 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22606 (serial_hw_put): Wait based on real time rather than port reads. Don't
22607 roken ports.
22608 * include/grub/serial.h (grub_serial_port): New field broken.
22609
22610 2010-10-16 Robert Millan <rmh@gnu.org>
22611
22612 * grub-core/kern/emu/misc.c
22613 (grub_make_system_path_relative_to_its_root): Fix premature return
22614 when processing non-root ZFS filesystems.
22615 Reported by Sergio Talens-Oliag.
22616
22617 2010-10-15 Robert Millan <rmh@gnu.org>
22618
22619 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22620 guarantee compressed ones are processed first.
22621
22622 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22623
22624 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22625 grub_efiemu_autocore.
22626
22627 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22628
22629 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22630 rather than 0x1b.
22631 (grub_console_getkey): Use correct jae opcode rather than ja.
22632
22633 2010-10-12 Robert Millan <rmh@gnu.org>
22634
22635 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22636 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22637 variable. All references updated.
22638
22639 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22640
22641 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22642
22643 Correctly distinguish mdraid flavours.
22644
22645 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22646 (insert_array): New argument raid.
22647 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22648 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22649 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22650
22651 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22652
22653 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22654 handling of special keys.
22655
22656 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22657
22658 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22659 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22660
22661 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22662
22663 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22664 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22665 users updated.
22666 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22667 Use right endpoint when querying descriptor.
22668
22669 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22670
22671 Clear out 0x80 color bit on EFI.
22672 Tested by: decoder
22673 Reported by: decoder and meta tech.
22674
22675 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22676 (grub_console_setcolorstate): Clear out 0x80 bit.
22677 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22678 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22679 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22680
22681 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22682
22683 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22684 Set to "auto".
22685
22686 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22687
22688 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22689 mo_file after freeing.
22690
22691 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22692
22693 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22694
22695 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22696
22697 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22698 flags.
22699
22700 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22701
22702 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22703 usage.
22704
22705 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22706
22707 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22708
22709 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22710 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22711 and terminfo.h when needed.
22712 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22713 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22714 (terminfo): Enable only on terminfokernel.
22715 (extcmd): Likewise.
22716 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22717 * include/grub/lib/arg.h: Likewise.
22718 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22719 incorrect usage of ->.
22720
22721 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22722
22723 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22724 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22725
22726 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22727
22728 Fix coreboot compilation.
22729
22730 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22731 Take VBE info into account even if only text is supported.
22732 (fill_vbe_info): Take into account the case when only VGA text
22733 is supported.
22734 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22735 on coreboot, multiboot and qemu.
22736
22737 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22738
22739 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22740 debug messages.
22741 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22742
22743 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22744
22745 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22746 parameters.
22747
22748 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22749
22750 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22751 if they were BSD-style.
22752
22753 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22754
22755 * grub-core/boot/i386/pc/lnxboot.S: Replace
22756 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22757 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22758
22759 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22760
22761 Write embedding zone using Reed-Solomon.
22762
22763 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22764 * grub-core/Makefile.am (rs_decoder.S): New target.
22765 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22766 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22767 (multiboot): Move to RS part.
22768 (post_reed_solomon): New label.
22769 (grub_boot_drive): Move to non-RS part since it's modified in memory
22770 on boot.
22771 Include rs_decoder.S.
22772 * grub-core/lib/reed_solomon.c: New file.
22773 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22774 New definition.
22775 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22776 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22777 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22778 * include/grub/partition.h (grub_partition_map): Change prototype of
22779 embed to allow returning additional sectors.
22780 * include/grub/reed_solomon.h: New file.
22781 * util/grub-setup.c (setup): Handle Reed-Solomon.
22782
22783 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22784
22785 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22786 i386 and x86-64 definedness tests.
22787
22788 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22789
22790 Fix generation of kernel_syms.lst
22791
22792 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22793 ASM_PREFIX
22794
22795 2010-09-26 Robert Millan <rmh@gnu.org>
22796
22797 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22798
22799 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22800 the pool is an array of devices, iterate through it and return the
22801 first device that passes a stat() test (instead of blindly returning
22802 the first one).
22803
22804 2010-09-26 Robert Millan <rmh@gnu.org>
22805
22806 Build fixes for GNU/kFreeBSD.
22807
22808 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22809 to programs that require ZFS conversion.
22810 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22811 kernels that don't have FLOPPY_MAJOR.
22812
22813 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22814
22815 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22816
22817 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22818
22819 Fix grub-emu build.
22820
22821 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22822 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22823 mdraid09 and mdraid1x.
22824
22825 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22826
22827 Re-enable grub-extras.
22828
22829 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22830 avoid confusing Automake. Run autogen only twice, once for the top
22831 level and once for grub-core. Add Makefile.util.def and
22832 Makefile.core.def from extra modules to the appropriate autogen
22833 invocations. If Makefile.common exists in an extra module, include
22834 it in both Makefile.util.am and grub-core/Makefile.core.am;
22835 similarly, include any Makefile.util.common file in Makefile.util.am
22836 and any Makefile.core.common file in grub-core/Makefile.core.am.
22837 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22838 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22839 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22840 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22841
22842 * gentpl.py (gvar_add): Turn GVARS into a set.
22843 (global_variable_initializers): Sort global variables on output.
22844 (vars_init): New function.
22845 (first_time): Likewise.
22846 (library): Ensure that non-global variable initialisations are
22847 emitted before the first time we emit code for a library block.
22848 Append to variables rather than setting them. Only emit
22849 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22850 each conditional path.
22851 (program): installdir() emits an Autogen macro, so must be passed to
22852 var_add rather than gvar_add.
22853 (data): Likewise.
22854 (script): Likewise.
22855 (rules): New function, centralising handling for different target
22856 types. Set up Guile association lists for first_time and vars_init,
22857 and send most output to a diversion so that variable initialisations
22858 can be emitted first.
22859 (module_rules): Use new rules function.
22860 (kernel_rules): Likewise.
22861 (image_rules): Likewise.
22862 (library_rules): Likewise.
22863 (program_rules): Likewise.
22864 (script_rules): Likewise.
22865 (data_rules): Likewise.
22866
22867 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22868
22869 * .bzrignore: Add contrib and grub-core/contrib. Remove
22870 grub-core/Makefile.gcry.am.
22871
22872 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22873
22874 * grub-core/lib/LzFind.c: Add missing include.
22875 * grub-core/lib/LzmaEnc.c: Likewise.
22876 * grub-core/script/lexer.c: Likewise.
22877 * grub-core/script/yylex.l: Likewise.
22878 * util/grub-macho2img.c: Likewise.
22879 * util/grub-menulst2cfg.c: Likewise.
22880 * util/grub-mklayout.c: Likewise.
22881 * util/grub-mkpasswd-pbkdf2.c
22882 * util/grub-mkrelpath.c: Likewise.
22883 * util/resolve.c: Likewise.
22884
22885 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22886
22887 * Makefile.util.def (example_unit_test): Add
22888 grub-core/gnulib/libgnu.a.
22889
22890 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22891
22892 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22893
22894 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22895
22896 Support xz compression on yeeloong.
22897
22898 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22899 * configure.ac: Check for LZMA.
22900 * grub-core/Makefile.core.def (xz_decompress): New target.
22901 (none_decompress): Likewise.
22902 * grub-core/boot/decompressor/minilib.c: New file.
22903 * grub-core/boot/decompressor/none.c: Likewise.
22904 * grub-core/boot/decompressor/xz.c: Likewise.
22905 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22906 * grub-core/kern/mips/cache_flush.S: Likewise.
22907 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22908 * grub-core/kern/mips/startup.S: Move first stage to ...
22909 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22910 nomacro.
22911 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22912 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22913 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22914 Allocate statically.
22915 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22916 Allocate statically or use scratch. Don't check CRC32.
22917 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22918 Allocate statically. Don't check CRC32.
22919 * include/grub/decompressor.h: New file.
22920 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22921 Removed.
22922 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22923 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22924 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22925 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22926 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22927 * util/grub-mkimage.c (grub_compression_t): New type.
22928 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22929 (image_target_desc): New field default_compression.
22930 (image_targets): Adjust yeeloong targets.
22931 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22932 (compress_kernel): New parameter comp.
22933 (generate_image): Likewise. Handle new compression case.
22934 (options): New option --compression
22935 (help): Likewise.
22936 (main): Handle new option.
22937
22938 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22939
22940 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22941
22942 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22943
22944 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22945 typo in __i386__ conditional.
22946
22947 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22948
22949 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22950 include.
22951
22952 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22953
22954 Implement EFI and ACPI multiboot2 extensions.
22955
22956 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22957 new tags as supported.
22958 (acpiv2_size): New function.
22959 (grub_multiboot_get_mbi_size): Take new tags into account.
22960 (grub_multiboot_make_mbi): Add new tags.
22961 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22962
22963 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22964
22965 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22966 Added missing configuration of USB device.
22967
22968 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22969
22970 * grub-core/normal/menu_entry.c (run): Make sure we always return
22971 a value.
22972
22973 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22974
22975 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22976 NumberOfPages is UINT64 according to the UEFI specification, not
22977 UINTN. Fix printf format.
22978
22979 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22980
22981 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22982 `err' to grub_usb_err_t.
22983 Reported and tested by: KESHAV P.R.
22984
22985 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22986
22987 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22988 tpart non-const, so that we can assign to it. (Since this is a
22989 typedef, the constness refers to the pointer rather than what it
22990 points to.)
22991
22992 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22993
22994 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22995 $(top_srcdir)/grub-core/gnulib as well as
22996 $(top_builddir)/grub-core/gnulib.
22997 Reported by: KESHAV P.R.
22998
22999 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23000
23001 * util/grub-install.in: Fix the bootloader ID option to be
23002 consistently --bootloader-id, not --bootloader_id.
23003 Reported by: KESHAV P.R.
23004
23005 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23006
23007 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23008 check hash checksum." consistently translatable.
23009
23010 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23011
23012 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23013 $(top_builddir).
23014
23015 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23016
23017 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23018 (GRUB_MOD_INIT): Register sha1sum command.
23019 (GRUB_MOD_FINI): Unregister sha1sum command.
23020
23021 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23022
23023 Keep boot and grub directory names in sync with utils scripts
23024
23025 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23026 * config.h.in: Add previous macros.
23027 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23028 * util/grub-install.in: Use $bootdir and $grubdir variables.
23029
23030 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23031
23032 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23033 convert partition names to disk names if the new `convert' parameter
23034 is set.
23035 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23036 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23037 disk in its own right. This can happen with Xen disk images.
23038
23039 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23040
23041 * util/grub-editenv.c: Update strings to avoid warnings when generating
23042 grub.pot file.
23043 * util/grub-setup.c: Likewise.
23044
23045 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23046
23047 * configure.ac: Change version to 1.99~beta0.
23048
23049 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23050
23051 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23052 Add BADRAM.
23053 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23054 Likewise.
23055 * include/multiboot.h: Resynced with specification.
23056 * include/multiboot2.h: Likewise.
23057
23058 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23059
23060 Fix po directory handling.
23061
23062 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23063 * grub-core/gnulib/Makefile.am: Import gettext module.
23064 * m4/gnulib-cache.m4: Likewise.
23065 * m4/gnulib-comp.m4: Likewise.
23066 * m4/gettext.m4: New file, from gnulib.
23067 * m4/glibc2.m4: Likewise.
23068 * m4/iconv.m4: Likewise.
23069 * m4/intdiv0.m4: Likewise.
23070 * m4/intl.m4: Likewise.
23071 * m4/intldir.m4: Likewise.
23072 * m4/intlmacosx.m4: Likewise.
23073 * m4/intmax.m4: Likewise.
23074 * m4/inttypes-pri.m4: Likewise.
23075 * m4/lcmessage.m4: Likewise.
23076 * m4/lib-ld.m4: Likewise.
23077 * m4/lib-link.m4: Likewise.
23078 * m4/lib-prefix.m4: Likewise.
23079 * m4/lock.m4: Likewise.
23080 * m4/nls.m4: Likewise.
23081 * m4/po.m4: Likewise.
23082 * m4/printf-posix.m4: Likewise.
23083 * m4/progtest.m4: Likewise.
23084 * m4/threadlib.m4: Likewise.
23085 * m4/uintmax_t.m4: Likewise.
23086 * m4/visibility.m4: Likewise.
23087 * po/Makefile.am: Remove.
23088 * po/Makefile.in.in: New file, from gettext.
23089 ($(DOMAIN).pot-update): Support POTFILES-shell.
23090 * po/Makevars: New file.
23091 * po/POTFILES-shell: Rename to ...
23092 * po/POTFILES-shell.in: ... this. Update.
23093 * po/POTFILES: Rename to ...
23094 * po/POTFILES.in: ... this. Update.
23095 * po/Rules-quot: New file, from gettext.
23096 * po/boldquot.sed: Likewise.
23097 * po/en@boldquot.header: Likewise.
23098 * po/en@quot.header: Likewise.
23099 * po/insert-header.sin: Likewise.
23100 * po/quot.sed: Likewise.
23101 * po/remove-potcdate.sin: Likewise.
23102
23103 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23104
23105 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23106
23107 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23108
23109 * util/grub.d/20_linux_xen.in: Use submenus.
23110
23111 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23112
23113 Support submenus.
23114
23115 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23116 parameter submenu. All users updated.
23117 * grub-core/normal/main.c (free_menu): Rename to ...
23118 (grub_normal_free_menu): ... this. Made global.
23119 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23120 if requested.
23121 * grub-core/normal/menu_entry.c (screen): New field submenu.
23122 (make_screen): Set submenu.
23123 (run): Open new context if requested.
23124 * include/grub/menu.h (grub_menu_entry): New field submenu.
23125 * include/grub/normal.h (grub_normal_free_menu): New proto.
23126
23127 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23128
23129 Menu entries extractor.
23130
23131 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23132 variants.
23133 (GRUB_MOD_INIT): Register new variants.
23134 (GRUB_MOD_FINI): Unregister new variants.
23135 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23136 into grub_cmd_legacy_source.
23137 (grub_cmd_legacy_source): Implement extractor variants.
23138 (GRUB_MOD_INIT): Register new variants.
23139 (GRUB_MOD_FINI): Unregister new variants.
23140 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23141 as an extractor.
23142 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23143 search as an extractor.
23144 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23145 test as an extractor.
23146 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23147 as an extractor.
23148 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23149 (grub_env_new_context): New function.
23150 (grub_env_context_open): Likewise.
23151 (grub_env_extractor_open): Likewise.
23152 (grub_env_extractor_close): Likewise.
23153 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23154 grub_extractor_level.
23155 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23156 * include/grub/env.h (grub_env_extractor_open): New proto.
23157 (grub_env_extractor_close): Likewise.
23158 * include/grub/normal.h (grub_extractor_level): New external variable.
23159
23160 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23161
23162 Make cutmem accept a region specification.
23163 Suggested by: Samuel Thibault
23164
23165 * grub-core/mmap/mmap.c (parsemem): New function.
23166 (grub_cmd_cutmem): Handle new arguments.
23167
23168 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23169
23170 New command cutmem.
23171
23172 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23173 (GRUB_MOD_INIT): Register new command.
23174 (GRUB_MOD_FINI): Unregister new command.
23175
23176 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23177
23178 Support some annoying BSD and Minix subpartitions.
23179
23180 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23181 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23182 Properly handle concatenation.
23183 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23184 * grub-core/normal/completion.c (iterate_partition): Likewise.
23185 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23186 contain partition. All users updated.
23187 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23188 struct.
23189 (grub_openbsdlabel_partition_map): Likewise.
23190 (bsdlabel_partition_map_iterate): Rename to ..
23191 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23192 (bsdlabel_partition_map_iterate): New function.
23193 (netopenbsdlabel_partition_map_iterate): Likewise.
23194 (netbsdlabel_partition_map_iterate): Likewise.
23195 (openbsdlabel_partition_map_iterate): Likewise.
23196 (GRUB_MOD_INIT): Register new partmaps.
23197 (GRUB_MOD_FINI): Unregister new partmaps.
23198 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23199 (grub_partition_msdos_iterate): ... this. All users updated.
23200 Don't support embedding other than in a minix partition.
23201 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23202 proto.
23203 * include/grub/partition.h (grub_partition): New field msdostype.
23204 * util/grub-install.in: Handle openbsd and netbsd types being in
23205 part_bsd module.
23206
23207 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23208
23209 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23210
23211 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23212 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23213 (mdraid09): ... this.
23214 (mdraid1x): New module.
23215 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23216 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23217
23218 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23219
23220 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23221 vsprintf.
23222
23223 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23224
23225 * grub-core/commands/efi/lsefimmap.c: Correct header.
23226 * NEWS: Update.
23227
23228 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23229
23230 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23231 as printf format strings; the translations might contain '%' which
23232 could cause a crash.
23233 (main): Likewise.
23234 * util/grub-fstest.c (argp_parser): Likewise.
23235 * util/grub-setup.c (argp_parser): Likewise.
23236 (main): Likewise.
23237
23238 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23239
23240 Use argp in grub-fstest.
23241
23242 * util/grub-fstest.c: Don't include getopt.h.
23243 Include argp.h.
23244 (root): New variable.
23245 (args_count): Likewise.
23246 (nparm): Likewise.
23247 (num_disks): Likewise.
23248 (images): Likewise.
23249 (cmd): Likewise.
23250 (debug_str): Likewise.
23251 (args): Likewise.
23252 (options): Transformed to argp.
23253 (usage): Removed.
23254 (main): Split argument parsing into ...
23255 (argp_parser): ... this. Changed to argp format.
23256 (argp): New variable.
23257 (main): Use argp_parse.
23258
23259 2010-09-20 Tristan Gingold <gingold@free.fr>
23260 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23261 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23262
23263 * grub-core/commands/efi/lsefimmap.c: New file.
23264 * grub-core/Makefile.core.def (lsefimmap): New module.
23265 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23266
23267 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23268
23269 Pause the execution (10s max) if any errors are displayed so the user
23270 has a chance to see them.
23271
23272 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23273 (grub_print_error): Increment grub_err_printed_errors.
23274 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23275 execution if any errors were displayed.
23276 (show_menu): Remove old code for pause.
23277 * grub-core/normal/menu_entry.c (run): Likewise.
23278 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23279 users updated.
23280 (grub_normal_get_char_counter): Likewise.
23281 * include/grub/err.h (grub_err_printed_errors): New external variable.
23282 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23283
23284 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23285
23286 Support multiboot VBE info.
23287
23288 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23289 Take VBE info into account.
23290 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23291 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23292 Call fill_vbe_info when appropriate.
23293 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23294 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23295 as supported.
23296 (grub_multiboot_get_mbi_size): Take new tags into account.
23297 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23298 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23299 Call fill_vbe_tag when appropriate.
23300 (grub_multiboot_make_mbi): Properly align tags.
23301 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23302 function.
23303 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23304 proto.
23305 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23306
23307 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23308
23309 Suport manual terminal geometry specification.
23310
23311 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23312 Save state in grub_ofconsole_terminfo_output.
23313 (grub_ofconsole_term): Use grub_terminfo_getwh.
23314 (grub_ofconsole_getwh): Removed.
23315 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23316 (grub_serial_term): Use grub_terminfo_getwh.
23317 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23318 (options): New struct.
23319 (OPTION_*): New enum.
23320 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23321 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23322 width and height.
23323 (grub_terminfo_getwh): New proto.
23324 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23325
23326 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23327
23328 Handle legacy "terminal" command.
23329
23330 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23331 and FLAG_TERMINAL.
23332 (legacy_commands): Add terminal and title.
23333 (grub_legacy_parse): Handle terminal. Simplify title handling.
23334
23335 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23336
23337 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23338 parameters overflow.
23339
23340 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23341
23342 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23343 widthspec.h.
23344
23345 * docs/grub.texi (Shell-like scripting): Document `!'.
23346 (Network): Simplify using new i386-pc-pxe format. Mention
23347 grub-mknetdir.
23348
23349 * NEWS: Update.
23350
23351 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23352
23353 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23354 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23355 when needed.
23356
23357 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23358
23359 * grub-core/commands/efi/lsefisystab.c: Correct header.
23360 * grub-core/commands/efi/lssal.c: Likewise.
23361 * grub-core/commands/testload.c: Likewise.
23362
23363 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23364
23365 * util/grub-mkrescue.in: Add explicit root argument to --set to
23366 prevent the UUID being interpreted as an argument to --set (matches
23367 previous change to prepare_grub_to_access_device).
23368
23369 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23370
23371 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23372 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23373 the verbosity of later #ifs.
23374 (find_partition_start): Define this function on FreeBSD too.
23375 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23376 function.
23377 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23378 on FreeBSD.
23379
23380 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23381
23382 * util/grub-editenv.c: Use argp instead of getopt.
23383
23384 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23385
23386 * util/grub-setup.c: Use argp instead of getopt.
23387
23388 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23389
23390 Use gnulib-tool to create gnulib source files.
23391
23392 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23393 grub-core/gnulib directories
23394 * .bzignore: Add **/.deps and autogenerated gnulib files
23395 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23396 of gnulib macros, add grub-core/gnulib/Makefile
23397 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23398 include m4 directory to aclocal.
23399 * Makefile.util.def: Remove direct compilation of gnulib source files
23400 and use the new grub-core/gnulib/libgnu.a.
23401 * build-aux/config.rpath: move config.rpath from top directory to
23402 build-aux
23403 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23404 in gnulib headers
23405 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23406 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23407 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23408 header.
23409 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23410 string.
23411
23412 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23413
23414 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23415 grub-core/genmod.sh and grub-core/gensyminfo.sh
23416
23417 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23418
23419 Add a test for echo command options.
23420
23421 * tests/grub_cmd_echo.in: New test.
23422 * Makefile.util.def: Rules for new test.
23423
23424 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23425
23426 Remove crc.mod and move crc command to hashsum.mod.
23427 Remove lib/crc.c - users updated to use gcrypt implementation.
23428
23429 * grub-core/commands/crc.c: Removed.
23430 * grub-core/Makefile.core.def (crc): Module removed.
23431 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23432 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23433 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23434 * grub-core/lib/crc.c: Removed.
23435 * include/grub/lib/crc.h: Removed.
23436 * Makefile.util.def (crc): Remove lib/crc.c
23437 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23438 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23439 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23440 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23441 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23442 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23443
23444 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23447
23448 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23449
23450 Split config.h for util and core.
23451
23452 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23453 (ADDR32): Likewise.
23454 (DATA32): Likewise.
23455 (BSS_START_SYMBOL): Likewise.
23456 (END_SYMBOL): Likewise.
23457 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23458 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23459 * config.h.in: New file.
23460 * configure.ac: Use config-util.h as config define file.
23461 Rename MACHINE into GRUB_MACHINE. All users updated.
23462 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23463 updated.
23464 (NESTED_FUNC_ATTR): Likewise.
23465 Substitue new variables.
23466 (COND_HAVE_ASM_USCORE): New conditional.
23467 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23468 (kernel_syms.lst): Use ASM_PREFIX.
23469 * grub-core/kern/emu/console.c: Include config-util.h.
23470 * grub-core/kern/emu/misc.c: Likewise.
23471 * grub-core/kern/emu/mm.c: Likewise.
23472 * include/grub/emu/misc.h: Likewise.
23473 * include/grub/libgcc.h: Likewise.
23474
23475 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23476
23477 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23478 constants usage.
23479 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23480 Fix GRUB_TERM_KEY_* constants usage.
23481 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23482
23483 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23484
23485 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23486 print pointer.
23487 * grub-core/bus/usb/uhci.c: Remove empty define.
23488 (grub_uhci_check_transfer): Add missing cast.
23489 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23490 print pointer.
23491 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23492 PRIuGRUB_SIZE.
23493 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23494
23495 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23496
23497 * grub-core/Makefile.core.def (legacycfg): Add
23498 lib/i386/pc/vesa_modes_table.c on emu.
23499
23500 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23501
23502 Reduce number of temporary files generated by build system.
23503
23504 * grub-core/gencmdlist.sh: Removed.
23505 * grub-core/genfslist.sh: Removed.
23506 * grub-core/genhandlerlist.sh: Removed.
23507 * grub-core/genmodsrc.sh: Removed.
23508 * grub-core/genpartmaplist.sh: Removed.
23509 * grub-core/genparttoollist.sh: Removed.
23510 * grub-core/gentermiinallist.sh: Removed.
23511 * grub-core/genvideolist.sh: Removed.
23512
23513 * grub-core/genmod.sh.in: New file.
23514 * grub-core/gensyminfo.sh.in: New file.
23515
23516 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23517 * conf/Makefile.extra-dist: Update with new files.
23518 * gentpl.py: Remove rules related to unnecessary temporary files.
23519 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23520 and und-* files.
23521 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23522 genmod.sh scripts.
23523 * grub-core/bus/usb/uhci.c: Remove empty #define.
23524 * grub-core/genmoddep.awk: Updated with new syminfo format.
23525 * util/bash-completion.d/Makefile.am: Add config.log to
23526 CLEANFILES.
23527
23528 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23529
23530 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23531
23532 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23533
23534 * util/grub-mkconfig.in: Check the config script for syntax errors
23535 before saving.
23536
23537 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23538 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23539
23540 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23541 platforms.
23542 * util/grub-install.in: Add EFI and IEEE1275 support.
23543 * util/i386/efi/grub-install.in: Removed.
23544 * util/ieee1275/grub-install.in: Likewise.
23545
23546 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23547
23548 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23549 (grub_cmd_cmosclean): Likewise.
23550 (GRUB_MOD_INIT): Register command cmosclean.
23551 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23552 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23553
23554 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23555 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23556 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23557
23558 Add keyboard layouts support.
23559
23560 * Makefile.util.def (grub-mklayout): New file.
23561 (grub-kbdcomp): New script.
23562 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23563 Add keyboard_layouts.h.
23564 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23565 commands/boot.c on yeeloong.
23566 (keylayouts): New module.
23567 * grub-core/bus/usb/ohci.c
23568 * grub-core/bus/usb/uhci.c
23569 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23570 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23571 (attach_root_port): Likewise.
23572 (poll_nonroot_hub): Likewise.
23573 (grub_usb_poll_devices): Likewise.
23574 (detach_device): Close transfer.
23575 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23576 function.
23577 (grub_usb_bulk_setup_readwrite): Likewise.
23578 (grub_usb_bulk_finish_readwrite): Likewise.
23579 * grub-core/commands/keylayouts.c: New file.
23580 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23581 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23582 aliases.
23583 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23584 support scancode 2.
23585 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23586 * include/grub/keyboard_layouts.h: New file.
23587 * util/grub-mklayout.c: New file.
23588 * util/grub-kbdcomp.in: Likewise.
23589
23590 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23591
23592 Unify memory types.
23593
23594 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23595 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23596 types.
23597 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23598 (grub_upper_mem): Likewise.
23599 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23600 * include/grub/memory.h (grub_memory_type_t): New enum.
23601 All users updated.
23602
23603 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23604
23605 * grub-core/Makefile.core.def (lsapm): New module.
23606 * grub-core/commands/i386/pc/lsapm.c: New file.
23607 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23608 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23609 Likewise.
23610 * include/grub/i386/pc/apm.h: New file.
23611 * include/multiboot.h (multiboot_apm_info): New struct.
23612
23613 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23614
23615 GRUB-legacy configuration file support.
23616
23617 * Makefile.util.def (grub-menulst2cfg): New util.
23618 * docs/man/grub-menulst2cfg.h2m: New file.
23619 * grub-core/Makefile.core.def (legacycfg): New module.
23620 * grub-core/commands/legacycfg.c: New file.
23621 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23622 (grub_normal_add_menu_entry): ... this.
23623 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23624 (grub_normal_set_password): ...this.
23625 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23626 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23627 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23628 * grub-core/lib/legacy_parse.c: New file.
23629 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23630 * include/grub/i386/pc/vesa_modes_table.h: New file.
23631 * include/grub/legacy_parse.h: Likewise.
23632 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23633 * util/grub-menulst2cfg.c: New file.
23634
23635 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23636
23637 * grub-core/kern/emu/hostdisk.c
23638 (convert_system_partition_to_system_disk): Initialise node.
23639
23640 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23641
23642 * grub-core/kern/emu/hostdisk.c
23643 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23644 leak.
23645 Reported and based on patch by: Modestas Vainius.
23646
23647 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23648
23649 Fix DM-RAID probing with recent versions of device-mapper udev
23650 rules.
23651
23652 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23653 canonicalise device paths under /dev/mapper/.
23654 (convert_system_partition_to_system_disk): Compare the
23655 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23656 path, since device nodes under /dev/mapper/ are often symlinks.
23657
23658 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23659
23660 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23661
23662 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23663
23664 * configure.ac: Avoid some annoying error messages if freetype-config
23665 program is not found.
23666
23667 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23668
23669 Support RAID on virtio devices, and others.
23670
23671 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23672 Rename to ...
23673 [__MINGW32__] (grub_find_device): ... this.
23674 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23675 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23676 reasonable default if dir is NULL.
23677 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23678 ...
23679 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23680 (grub_guess_root_device): Update callers.
23681 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23682
23683 * util/raid.c (grub_util_getdiskname): Remove.
23684 (grub_util_raid_getmembers): Use grub_find_device rather than
23685 grub_util_getdiskname.
23686
23687 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23688
23689 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23690 needing to be compiled with serial support.
23691 (ls): Indicate that multiple files are accepted.
23692 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23693 indicate that multiple files are accepted.
23694
23695 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23696
23697 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23698 libgrub_a_init.c, and util/bash-completion.d/grub.
23699
23700 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23701
23702 * util/grub-setup.c (setup): Fix incorrect container semantics.
23703
23704 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23705
23706 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23707 misusage.
23708 Reported by: J. Nick Terry
23709
23710 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23711
23712 Move embedding routines to partmap sources files.
23713
23714 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23715 [GRUB_UTIL]: New variable.
23716 (gpt_partition_map_iterate): Set part.parent.
23717 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23718 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23719 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23720 New function.
23721 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23722 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23723 (grub_partition_map) [GRUB_UTIL]: New field embed.
23724 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23725 (setup): Use ->embed.
23726
23727 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23728
23729 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23730 function.
23731 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23732 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23733
23734 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23735
23736 Add function to get completions from usage.
23737
23738 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23739 completions from usage. Use LC_ALL=C to get options properly.
23740
23741 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23742
23743 * grub-core/gnulib/basename-lgpl.c: Imported.
23744 * grub-core/gnulib/basename.c: Likewise.
23745 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23746 * grub-core/gnulib/dirname.c: Likewise.
23747 * grub-core/gnulib/dirname.h: Likewise.
23748 * grub-core/gnulib/stripslash.c: Likewise.
23749
23750 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23751
23752 * grub-core/gnulib/error.c: Resynced.
23753 * grub-core/gnulib/getopt.c: Likewise.
23754 * grub-core/gnulib/getopt_int.h: Likewise.
23755 * grub-core/gnulib/regex.h: Likewise.
23756 * grub-core/gnulib/regex_internal.c: Likewise.
23757 * grub-core/gnulib/regex_internal.h: Likewise.
23758
23759 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23760
23761 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23762 CRC calculations and validity checks.
23763 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23764 calculations.
23765
23766 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23767
23768 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23769
23770 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23771
23772 Fix incorrect echo options handling.
23773 Reported by: Yves Blusseau.
23774
23775 * include/grub/command.h (grub_command_flags_t): New flags
23776 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23777 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23778 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23779
23780 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23781
23782 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23783 users updated.
23784 (GRUB_COMMAND_FLAG_MENU): Likewise.
23785 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23786 (GRUB_COMMAND_FLAG_TITLE): Removed.
23787 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23788 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23789 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23790 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23791 (grub_command_flags_t): New enum. All users updated.
23792
23793 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23794
23795 Fix solaris compilation.
23796
23797 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23798 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23799 (grub-emu-list): Likewise.
23800
23801 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23802
23803 Remove deprecated root command.
23804
23805 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23806 updated.
23807
23808 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23809
23810 * util/i386/pc/grub-setup.c: Merge this ...
23811 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23812 * util/grub-setup.c: ... into this.
23813 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23814 New struct.
23815
23816 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23817
23818 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23819 possible.
23820
23821 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23822
23823 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23824 allocate p.
23825
23826 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23827
23828 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23829 explicit root argument to set to prevent UUID to be interpreted as
23830 argument to set.
23831
23832 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23833
23834 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23835
23836 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23837
23838 Don't export grub_gate_a20.
23839
23840 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23841 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23842 to ...
23843 (grub_gate_a20): ... this. All users updated.
23844 * include/grub/i386/pc/init.h: Removed. All users updated.
23845
23846 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23847
23848 Create euro.pf2 which supports most European languages.
23849
23850 * Makefile.am (grubdata_DATA): Add euro.pf2.
23851 (euro.pf2): New target.
23852 (CLEANFILES): Add euro.pf2.
23853
23854 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23855
23856 * configure.ac: Disable emu-usb by default to prevent inadvertent
23857 device takeover.
23858
23859 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23860
23861 Disable usbserial on grub-emu since our libusb code isn't good enough
23862 yet.
23863
23864 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23865 (usbserial_pl2303): Likewise.
23866 (usbserial_ftdi): Likewise.
23867
23868 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23869
23870 * include/grub/disk.h (grub_disk): Remove has_partitions.
23871 All users updated.
23872 * disk/loopback.c (grub_loopback): Remove has_partitions.
23873 All users updated.
23874 (options): Remove partitions. All users updated.
23875 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23876 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23877 actual partition table is found.
23878
23879 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23880
23881 Remove readability checks (too many false negatives).
23882
23883 * util/grub-install.in: Remove readability checks.
23884 * util/grub-mkconfig.in: Likewise.
23885 * util/grub.d/10_hurd.in: Likewise.
23886 * util/grub.d/10_kfreebsd.in: Likewise.
23887 * util/grub.d/10_linux.in: Likewise.
23888 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23889 way.
23890
23891 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23892
23893 Enable acpi shutdown on all ACPI platforms.
23894
23895 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23896 on coreboo, multiboot and EFI.
23897 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23898 (grub_acpi_halt): Likewise.
23899 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23900 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23901 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23902 * grub-core/lib/i386/halt.c (grub_halt)
23903 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23904
23905 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23906
23907 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23908 context.
23909
23910 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23911
23912 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23913 * grub-core/video/efi_uga.c: Likewise.
23914
23915 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23916
23917 Filter devaliases and never open same device twice.
23918
23919 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23920 (last_ihandle): Likewise.
23921 (ofdisk_hash_ent): New member shortest.
23922 (ofdisk_hash_add): Add canonical path too.
23923 (scan): New function.
23924 (grub_ofdisk_iterate): Iterate over hashed entries.
23925 (compute_dev_path): Don't add :0.
23926 (grub_ofdisk_open): Don't really open the disk.
23927 (grub_ofdisk_close): Avoid closing unrelated disk.
23928 (grub_ofdisk_read): Implement reopen logic.
23929 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23930 New function.
23931 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23932 New proto.
23933
23934 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23935
23936 Fix sparc64.
23937
23938 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23939 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23940 right address. Add sparc64_ieee1275_ldflags.
23941 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23942 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23943 to grub_host_to_target_addr
23944 (load_image): Likewise.
23945
23946 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23947
23948 * grub-core/normal/completion.c (complete_file): Handle device
23949 containing slash.
23950 Fix based on patch by Doug Nazar.
23951
23952 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23953
23954 grub-mknetdir script.
23955
23956 * Makefile.util.def (grub-mknetdir): New module.
23957 * tests/util/grub-shell.in: Support boot=net
23958 * util/grub-mknetdir.in: New file.
23959
23960 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23961
23962 videoinfo on non-vbe.
23963
23964 * grub-core/Makefile.core.def (vbeinfo): Removed.
23965 (vbetest): Removed.
23966 (videoinfo): New module.
23967 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23968 * grub-core/commands/i386/pc/vbetest.c: Removed.
23969 * grub-core/commands/videoinfo.c: New file.
23970 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23971 specification.
23972 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23973 as vbetest.
23974 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23975 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23976 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23977 mode_number. New parameter mode. All users updated.
23978 (grub_video_gop_iterate): New function.
23979 (grub_video_efi_gop): New member iterate.
23980 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23981 (grub_vbe_set_video_mode): Remove setting useless fields.
23982 (vbe2videoinfo): New function.
23983 (grub_video_vbe_iterate): Likewise.
23984 (grub_video_vbe_setup): Use vbe2videoinfo.
23985 (grub_video_vbe_print_adapter_specific_info): New function.
23986 (grub_video_vbe_adapter): New fields iterate and
23987 print_adapter_specific_info.
23988 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23989 All users updated.
23990 (grub_video_mode_info): New field mode_number.
23991 (grub_video_adapter): New fields iterate and
23992 print_adapter_specific_info.
23993
23994 2010-09-13 Tristan Gingold <gingold@free.fr>
23995 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23996 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23997
23998 * grub-core/commands/efi/lsefisystab.c: New file.
23999 * grub-core/commands/efi/lssal.c: Likewise.
24000 * grub-core/Makefile.core.def (lsacpi): New module.
24001 (lsefisystab): Likewise.
24002 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24003 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24004 (grub_efi_sal_system_table): New struct.
24005 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24006 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24007 (grub_efi_sal_system_table_platform_features): Likewise.
24008 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24009 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24010 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24011 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24012
24013 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24014
24015 Support explicit user claim that a device is BIOS-visible.
24016
24017 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24018 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24019 * grub-core/kern/emu/hostdisk.c
24020 (convert_system_partition_to_system_disk): Support mdX.
24021 (find_system_device): New parameter add. All users updated.
24022 (grub_util_biosdisk_is_present): New function.
24023 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24024 proto.
24025
24026 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24027
24028 Search hints support.
24029
24030 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24031 All users updated.
24032
24033 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24034
24035 Bash completion script for util commands
24036
24037 * Makefile.am: Add util/bash-completion.d directory
24038 * configure.ac: Likewise.
24039 * util/bash-completion.d/Makefile.am: New file.
24040 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24041
24042 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24043
24044 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24045 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24046 Reported by: Yves Blusseau.
24047
24048 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24049
24050 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24051 partition size and offset.
24052
24053 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24054
24055 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24056
24057 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24058
24059 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24060
24061 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24062
24063 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24064 (grub_xvasprintf): Likewise.
24065
24066 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24067
24068 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24069
24070 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24071
24072 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24073 args ending with NULL.
24074
24075 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24076
24077 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24078 pointer.
24079
24080 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24081
24082 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24083
24084 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24085
24086 Shutdown using ACPI.
24087
24088 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24089 * grub-core/commands/acpihalt.c: New file.
24090 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24091 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24092 (grub_acpi_halt): New proto.
24093 (GRUB_ACPI_SLP_EN): New const.
24094 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24095 (GRUB_ACPI_OPCODE_*): New enum.
24096 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24097
24098 2010-09-11 Tristan Gingold <gingold@free.fr>
24099 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24100 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24101
24102 * commands/lsacpi.c: New file.
24103 * grub-core/Makefile.core.def (lsacpi): New module.
24104 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24105 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24106 (grub_acpi_madt_entry_header): New struct.
24107 (grub_acpi_madt): Likewise.
24108 (grub_acpi_madt_entry_interrupt_override): Likewise.
24109 (grub_acpi_madt_entry_sapic): Likewise.
24110 (grub_acpi_madt_entry_lsapic): Likewise.
24111 (grub_acpi_madt_entry_platform_int_source): Likewise.
24112 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24113 (PRIuGRUB_UINT32_T): Likewise.
24114 (PRIxGRUB_UINT64_T): Likewise.
24115
24116 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24117
24118 Implement loading palette on ieee1275_fb.
24119
24120 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24121 (have_setcolors): Likewise.
24122 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24123 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24124 (grub_video_ieee1275_set_palette): Implement.
24125
24126 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24127 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24128
24129 * util/grub-install.in (grub_partition): New variable.
24130 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24131 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24132 Fixes a bug reported by Yves Blusseau.
24133
24134 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24135
24136 Fix emu on mipsel.
24137
24138 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24139 =grub_cpu_flush_cache on all mips and not only yeeloong.
24140 * configure.ac (COND_mips): New conditional.
24141 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24142 platforms.
24143 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24144 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24145 [GRUB_LINKER_HAVE_INIT]: New function.
24146 (grub_emu_post_init): Likewise.
24147 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24148 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24149 * include/grub/cache.h (_mips): Include mips/cache.h.
24150 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24151 LVM and RAID prototypes.
24152 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24153 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24154 function.
24155
24156 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24157
24158 * util/grub-install.in: Don't try to verify core.img until after
24159 running grub-mkimage to create it.
24160
24161 2010-09-10 Robert Millan <rmh@gnu.org>
24162
24163 * util/grub.d/10_hurd.in: Add misc readability checks.
24164 * util/grub.d/10_kfreebsd.in: Likewise.
24165 * util/grub.d/10_linux.in: Likewise.
24166
24167 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24168
24169 * util/grub-install.in: ${imgext} won't be defined here until the
24170 install branch is merged. For the meantime, only verify core.img on
24171 i386-pc and sparc64-ieee1275 platforms.
24172
24173 2010-09-10 Robert Millan <rmh@gnu.org>
24174
24175 Solaris support in grub_find_zpool_from_dir(). Thanks
24176 Seth Goldberg for referring to getextmntent() facility.
24177
24178 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24179 `sys/mkdev.h'.
24180 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24181 `<sys/mnttab.h>'.
24182 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24183 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24184 method for finding zpool name.
24185
24186 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24187
24188 grub-fstest needs the host and hostfs modules while other utilities
24189 actively require those modules to be absent, so grub-fstest needs
24190 its own initialisation and finalisation code.
24191
24192 * Makefile.am (grub_fstest.pp): New target.
24193 (grub_fstest_init.lst): Likewise.
24194 (grub_fstest_init.c): Likewise.
24195 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24196
24197 2010-09-10 Robert Millan <rmh@gnu.org>
24198
24199 * configure.ac: Check for `struct statfs.f_fstypename' and
24200 `struct statfs.f_mntfromname'.
24201
24202 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24203 kFreeBSD-specific code.
24204
24205 2010-09-10 Robert Millan <rmh@gnu.org>
24206
24207 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24208 on ZFS. Now non-main filesystems are supported as / too.
24209
24210 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24211
24212 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24213 and grub-core/disk/host.c to ...
24214 (grub-fstest): ... here. Having the host disk implementation
24215 present confuses grub-probe and other utility programs.
24216
24217 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24218 when writing to a file, not when writing to stdout.
24219
24220 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24221
24222 * tests/partmap_test.in: New test for partitions.
24223 * Makefile.util.def: Rules for new test.
24224
24225 2010-09-09 Robert Millan <rmh@gnu.org>
24226
24227 * util/grub-probe.c (probe): Fix a pair of unhandled error
24228 conditions.
24229
24230 2010-09-09 Robert Millan <rmh@gnu.org>
24231
24232 Basic Btrfs support (detection and UUID).
24233
24234 * grub-core/fs/btrfs.c: New file.
24235 * Makefile.util.def (library): Register btrfs.c.
24236 * grub-core/Makefile.core.def: Likewise.
24237
24238 2010-09-08 Robert Millan <rmh@gnu.org>
24239
24240 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24241 with (optional) parameters to specify device and relative path.
24242 * util/grub-install.in: Use is_path_readable_by_grub() to
24243 verify readability of a few critical files.
24244 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24245 verify readability of grub.cfg.new.
24246
24247 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24248
24249 Split minix.mod into minix.mod and minix2.mod.
24250
24251 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24252 * grub-core/Makefile.core.def (minix2): New module.
24253 * grub-core/fs/minix.c: Use definitions instead of runtime version
24254 checking.
24255 * grub-core/fs/minix2.c: New file.
24256
24257 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24258
24259 Add new --boot-directory option to replace --root-directory
24260
24261 * util/grub-install.in: Add new --boot-directory option
24262 * util/grub-reboot.in: Likewise.
24263 * util/grub-set-default.in: Likewise.
24264
24265 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24266
24267 * util/grub-mkconfig.in: Use new variable.
24268
24269 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24270
24271 * configure.ac: Define some useful variables.
24272
24273 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24274
24275 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24276 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24277 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24278 Use terminfo and don't use cursor-on/cursor-off unless it's known
24279 to work.
24280 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24281 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24282
24283 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24284
24285 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24286 starts with "(,", fill the drive containing the loaded image in
24287 between those two characters, but expect that a full partition
24288 specification including partition map names will follow.
24289
24290 2010-09-08 Robert Millan <rmh@gnu.org>
24291
24292 * configure.ac: Remove `--enable-grub-fstest' option.
24293 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24294
24295 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24296 `grub-fstest' instead of `grub-probe' for readability verification.
24297 * util/grub-probe.c (probe): Remove readability verification kludge.
24298
24299 2010-09-08 Robert Millan <rmh@gnu.org>
24300
24301 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24302 initializing `GRUB_FS'.
24303
24304 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24305
24306 Not command (!) support to GRUB script.
24307
24308 * tests/grub_script_not.in: New test.
24309 * Makefile.util.def: Rules for new test.
24310
24311 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24312 ! command as a special case.
24313 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24314
24315 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24316
24317 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24318 grub_free.
24319
24320 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24321
24322 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24323
24324 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24325
24326 * docs/grub.texi (Shell-like scripting): Documentation for break,
24327 continue, shift and return commands.
24328
24329 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24330
24331 Rename CD-ROM to cd on BIOS.
24332
24333 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24334 "cd".
24335 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24336
24337 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24338
24339 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24340 * util/grub-probe.c (main): Likewise.
24341 * util/i386/pc/grub-setup.c (main): Likewise.
24342 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24343 Reported and debugged by: alexxy
24344
24345 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24346
24347 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24348 diagnostic info.
24349
24350 2010-09-05 Jo Shields <directhex@apebox.org>
24351
24352 * util/grub.d/30_os-prober.in: Add missing classes.
24353
24354 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24355
24356 * docs/grub.texi (Theme file format): Document new position format.
24357
24358 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24359
24360 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24361 a table. Use @code instead of @verbatim.
24362
24363 2010-09-05 Colin D Bennett <colin@gibibit.com>
24364
24365 Gfxmenu documentation.
24366
24367 * docs/grub.texi (Theme file format): New chapter.
24368
24369 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24370
24371 * grub-core/Makefile.core.def (xzio): New module.
24372 * grub-core/io/xzio.c: New file.
24373 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24374 * grub-core/lib/xzembed/xz_config.h: Likewise.
24375 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24376 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24377 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24378 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24379 * grub-core/lib/xzembed/xz_private.h: Likewise.
24380 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24381 * include/grub/file.h (grub_file_filter_id): New compression filter
24382 GRUB_FILE_FILTER_XZIO.
24383
24384 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24385
24386 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24387 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24388 size.
24389
24390 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24391
24392 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24393 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24394
24395 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24396
24397 Uncompressed checksum support.
24398
24399 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24400 (check_list): New parameter uncompress.
24401 (grub_cmd_hashsum): Handle --uncompress.
24402
24403 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24404
24405 Reintroduce testload.
24406
24407 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24408 from here ...
24409 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24410 (GRUB_MOD_INIT): New function.
24411 (GRUB_MOD_FINI): Likewise.
24412 * grub-core/Makefile.core.def (testload): New module.
24413
24414 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24415
24416 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24417 (uint8_t): New type.
24418 (uint16_t): Likewise.
24419 (uint32_t): Likewise.
24420 (uint64_t): Likewise.
24421
24422 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24423
24424 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24425
24426 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24427
24428 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24429 Made static.
24430 (grub_gzfile_open): Removed. All users updated.
24431 (GRUB_MOD_INIT): New function.
24432 (GRUB_MOD_FINI): Likewise.
24433 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24434 (grub_file_filters_enabled): Likewise.
24435 (grub_file_open): Handle filters.
24436 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24437 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24438 * include/grub/file.h (grub_file_filter_id_t): New type.
24439 (grub_file_filter_t): Likewise.
24440 (grub_file_filters_all): New extern variable.
24441 (grub_file_filters_enabled): Likewise.
24442 (grub_file_filter_register): New inline function.
24443 (grub_file_filter_unregister): Likewise.
24444 (grub_file_filter_disable): Likewise.
24445 (grub_file_filter_disable_compression): Likewise.
24446 * include/grub/gzio.h: Removed.
24447
24448 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24449
24450 Filename expansion support for wildcards in GRUB script.
24451
24452 * tests/grub_script_expansion.in: New test.
24453 * Makefile.util.def: Rule for new test.
24454
24455 * grub-core/commands/wildcard.c: New file, implements filename
24456 expansion support for GRUB script.
24457 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24458 * grub-core/script/argv.c: Cosmetic changes.
24459 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24460 Refactored to perform wildcard expansion on arguments.
24461 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24462 struct.
24463
24464 * tests/util/grub-shell.in: Fix quoting for read input.
24465
24466 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24467
24468 Support for updating environment variables with matched substrings
24469 of regexp.
24470
24471 * tests/grub_cmd_regexp.in: New test.
24472 * Makefile.util.def: Rule for new test.
24473
24474 * grub-core/commands/regexp.c: New option -s to update environment
24475 variables with regexp matches.
24476
24477 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24478
24479 * include/grub/file.h (grub_file): New member not_easly_seekable.
24480 (grub_file_seekable): New inline function.
24481 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24482 easily seekable.
24483 (grub_gzio_open): Set not_easly_seekable.
24484 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24485 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24486
24487 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24488
24489 Support for options to appear multiple times on cmdline.
24490
24491 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24492 * grub-core/commands/extcmd.c: Support for repeatable option.
24493 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24494 repeatable option support.
24495
24496 Refactor menuentry into a regular command.
24497
24498 * grub-core/commands/menuentry.c: New file, menuentry command
24499 implementation.
24500 * grub-core/Makefile.core.def: Rule update for normal.mod.
24501 * grub-core/normal/main.c: Moved menuentry creation to
24502 grub-core/commands/menuentry.c.
24503 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24504 (grub_menu_execute_entry_real): Removed.
24505 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24506 function.
24507 (grub_script_execute_menuentry): Removed.
24508 * grub-core/script/parser.y (menuentry): Removed.
24509 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24510 * grub-core/script/yylex.l (menuentry): Removed.
24511 * include/grub/menu.h (grub_menu_init): New prototype.
24512 (grub_menu_fini): New prototype.
24513 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24514 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24515 (grub_script_execute_sourcecode): New prototype.
24516
24517 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24518
24519 "return" command for GRUB script functions.
24520
24521 * tests/grub_script_return.in: New test.
24522 * Makefile.util.def: Rules for new test.
24523
24524 * grub-core/script/execute.c (grub_script_return): New function.
24525 * grub-core/script/main.c: Register/unregister return commaond.
24526 * include/grub/script_sh.h (grub_script_return): New prototype.
24527
24528 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24529
24530 "setparams" command to update positional parameters.
24531
24532 * tests/grub_script_setparams.in: New test.
24533 * Makefile.util.def: Rules for new test.
24534
24535 * grub-core/script/argv.c (grub_script_argv_make): New function.
24536 * grub-core/script/execute.c (replace_scope): New function.
24537 (grub_script_setparams): New function.
24538 * grub-core/script/lexer.c: Remove unused variables.
24539 * grub-core/script/main.c: Register/unregister setparams command.
24540 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24541 (grub_script_setparams): New prototype.
24542
24543 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24544
24545 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24546 grub_free order.
24547
24548 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24549
24550 Support for passing block of commands as an argument to extcmds.
24551
24552 * Makefile.util.def: Rules for new test.
24553 * tests/grub_script_blockarg.in: New test.
24554 * grub-core/tests/test_blockarg.c: New file, block argument
24555 command used in the test.
24556
24557 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24558 (grub_register_extcmd_prio): New function prototype.
24559 (grub_extcmd_dispatcher): New function prototype.
24560 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24561 type.
24562 * include/grub/script_sh.h (struct grub_script): New members
24563 `children', `next_siblings' and `refcnt' for block arguments and
24564 reference counting.
24565 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24566 (grub_script_arg): New member `script' for block argument.
24567 (grub_script_argv): New member `script' for block argument.
24568 (grub_parser_param): New member `scripts' for block argument.
24569 (grub_script_mem_free): New extern function prototype.
24570 (grub_script_ref): New function prototype.
24571 (grub_script_unref): New function prototype.
24572
24573 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24574 extcmd form to support block arguments.
24575 * grub-core/script/argv.c: Block arguments support.
24576 * grub-core/script/execute.c: Likewise.
24577 * grub-core/script/lexer.c: Likewise.
24578 * grub-core/script/main.c: Likewise.
24579 * grub-core/script/script.c: Likewise.
24580 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24581 non-terminals.
24582
24583 * grub-core/commands/acpi.c: Update extcmd implementations with
24584 grub_extcmd_context_t.
24585 * grub-core/commands/cat.c: Likewise.
24586 * grub-core/commands/echo.c: Likewise.
24587 * grub-core/commands/extcmd.c: Likewise.
24588 * grub-core/commands/hashsum.c: Likewise.
24589 * grub-core/commands/hdparm.c: Likewise.
24590 * grub-core/commands/help.c: Likewise.
24591 * grub-core/commands/hexdump.c: Likewise.
24592 * grub-core/commands/i386/cpuid.c: Likewise.
24593 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24594 * grub-core/commands/i386/pc/halt.c: Likewise.
24595 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24596 * grub-core/commands/iorw.c: Likewise.
24597 * grub-core/commands/keystatus.c: Likewise.
24598 * grub-core/commands/loadenv.c: Likewise.
24599 * grub-core/commands/ls.c: Likewise.
24600 * grub-core/commands/lspci.c: Likewise.
24601 * grub-core/commands/memrw.c: Likewise.
24602 * grub-core/commands/probe.c: Likewise.
24603 * grub-core/commands/search_wrap.c: Likewise.
24604 * grub-core/commands/setpci.c: Likewise.
24605 * grub-core/commands/sleep.c: Likewise.
24606 * grub-core/disk/loopback.c: Likewise.
24607 * grub-core/hello/hello.c: Likewise.
24608 * grub-core/loader/i386/bsd.c: Likewise.
24609 * grub-core/loader/xnu.c: Likewise.
24610 * grub-core/term/gfxterm.c: Likewise.
24611 * grub-core/term/serial.c: Likewise.
24612 * grub-core/tests/lib/functional_test.c: Likewise.
24613
24614 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24615
24616 Multi-line quoted strings support.
24617
24618 * grub-core/script/lexer.c (append_newline): Removed.
24619 (grub_script_lexer_yywrap): Refactored.
24620 (grub_script_lexer_init): Refactored.
24621 * grub-core/script/yylex.l (yywrap): New function.
24622 (grub_lexer_resplit): New function.
24623 (grub_lexer_unput): New function.
24624 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24625 and resplit.
24626 * tests/grub_script_echo1.in: Added few more testcases.
24627
24628 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24629
24630 * grub-core/kern/misc.c: Don't add abort alias in utils.
24631 Reported by: echoline.
24632
24633 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24634
24635 Add missing files into "make dist" tarball for other platforms.
24636
24637 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24638 * conf/Makefile.common (dist_noinst_DATA): New variable.
24639 * conf/Makefile.extra-dist: Added missing make dist files.
24640 * grub-core/Makefile.core.def: Likewise.
24641
24642 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24643
24644 Compress grub_prefix.
24645
24646 * grub-core/boot/i386/pc/lnxboot.S: Use
24647 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24648 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24649 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24650 GRUB_MACHINE_PREFIX_END. All users updated.
24651 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24652 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24653 + 0x40.
24654 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24655 * util/grub-mkimage.c (image_target_desc): Change data_end to
24656 prefix_end. All users updated.
24657
24658 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24659
24660 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24661 value.
24662 (grub_openbsd_boot): Likewise.
24663 (grub_netbsd_boot): Likewise.
24664 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24665 (grub_xnu_boot): Likewise.
24666
24667 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24668
24669 * configure.ac: Clean LIBS variable after tests.
24670
24671 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24672
24673 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24674
24675 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24676
24677 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24678 echo if libdevmapper will be used.
24679
24680 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24681
24682 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24683 constant for the same file.
24684
24685 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24686
24687 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24688
24689 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24690
24691 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24692 grub-core/*.pp.
24693
24694 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24695
24696 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24697 required by the boot protocol.
24698
24699 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24700 ebp and edi members.
24701 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24702 state.ebp and state.edi.
24703 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24704 %ebp and %edi according to grub_relocator32_ebp and
24705 grub_relocator32_edi respectively.
24706 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24707 and state.edi.
24708
24709 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24710
24711 Add i386-pc-pxe image target.
24712
24713 * util/grub-mkimage.c (image_target_desc): New enum value
24714 IMAGE_I386_PC_PXE.
24715 (image_targets): New target i386-pc-pxe.
24716 (generate_image): Handle i386-pc-pxe image.
24717
24718 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24719
24720 Fix grub_pxe_scan.
24721
24722 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24723 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24724 All users updated.
24725 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24726 (grub_pxe_pxenv): Correct type.
24727
24728 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24729
24730 * NEWS: Document most of the important changes since 1.98.
24731
24732 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24733
24734 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24735 generated manual page) a little.
24736
24737 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24738
24739 * docs/grub.texi: Add myself as an author.
24740
24741 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24742
24743 * Makefile.util.def (libgrub.a): Add missing sunpc.
24744 Reported by: Seth Goldberg.
24745
24746 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24747
24748 Interrupt wrapping and code simplifications.
24749
24750 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24751 x86_noieee1275 which are functionaly equivalent in this case.
24752 (grub-install): Make source on each platform explicit. Enable on
24753 all noemu.
24754 * gentpl.py (x86_efi_pc): Removed group.
24755 (x86_noefi): Likewise.
24756 (i386_noefi): Likewise.
24757 (x86_noieee1275): Likewise.
24758 (i386_noieee1275): Likewise.
24759 (i386_noefi_noieee1275): Likewise.
24760 (i386_pc_qemu_coreboot): Likewise.
24761 (i386_coreboot_multiboot): Likewise.
24762 (i386_pc_coreboot_multiboot_qemu): Likewise.
24763 (x86_noefi_mips): Likewise.
24764 (noieee1275): Likewise.
24765 (ieee1275_mips): Likewise.
24766 (noemu_noieee1275): Likewise.
24767 (cmos): New group.
24768 (usb): Likewise.
24769 (videoinkernel): Likewise.
24770 (videomodules): Likewise.
24771 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24772 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24773 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24774 include/grub/loader.h, include/grub/msdos_partition.h,
24775 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24776 include/grub/machine/console.h, include/grub/machine/vga.h,
24777 include/grub/machine/vbe.h, include/grub/machine/init.h,
24778 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24779 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24780 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24781 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24782 * grub-core/Makefile.core.def (kernel): Explicit the source for
24783 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24784 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24785 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24786 Use videoinkernel tag.
24787 (usb): Enable on all usb.
24788 (usbserial_common): Likewise.
24789 (usbserial_pl2303): Likewise.
24790 (usbserial_ftdi): Likewise.
24791 (uhci): Enable on all x86.
24792 (ohci): Enable on all pci.
24793 (cmostest): Enable on all CMOS.
24794 (acpi): Include commands/acpi.c on all platforms.
24795 (halt): Add relevant lib/*/halt.c.
24796 (hdparm): Enable on all pci.
24797 (lspci): Likewise.
24798 (usbtest): Enable on all usb.
24799 (ata): Enable on all pci.
24800 (ata_pthru): Likewise.
24801 (usbms): Enable on all usb.
24802 (usb_keyboard): Likewise.
24803 (font): Use tag videomodules.
24804 (bufio): Likewise.
24805 (datetime): Use tag cmos. Enable on all noemu.
24806 (mmap): Use tags common and x86.
24807 (gfxterm): Use tag videomodules.
24808 (bitmap): Likewise.
24809 (bitmap_scale): Likewise.
24810 (video_fb): Likewise.
24811 (video): Likewise.
24812 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24813 adjust padding accordingly. All users updated.
24814 (grub_ohci_transaction): Fix bad format specification.
24815 (GRUB_MOD_INIT): Add asserts for struct size.
24816 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24817 (grub_alloc_td): Likewise.
24818 (grub_free_queue): Likewise.
24819 (grub_uhci_transfer): Likewise.
24820 (grub_uhci_transaction): Fix bad format specification.
24821 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24822 (grub_usb_bulk_readwrite): Likewise.
24823 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24824 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24825 Made static.
24826 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24827 Made static.
24828 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24829 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24830 Transformed into C.
24831 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24832 Moved from here ...
24833 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24834 ... here. Transformed into C. Made static.
24835 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24836 Moved from here ...
24837 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24838 ... here. Transformed into C. Made static.
24839 * grub-core/kern/i386/pc/startup.S
24840 (grub_biosdisk_check_int13_extensions): Moved from here ...
24841 * grub-core/disk/i386/pc/biosdisk.c
24842 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24843 Made static.
24844 * grub-core/kern/i386/pc/startup.S
24845 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24846 * grub-core/disk/i386/pc/biosdisk.c
24847 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24848 Transformed into C. Made static.
24849 * grub-core/kern/i386/pc/startup.S
24850 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24851 * grub-core/disk/i386/pc/biosdisk.c
24852 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24853 Transformed into C. Made static.
24854 * grub-core/kern/i386/pc/startup.S
24855 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24856 * grub-core/disk/i386/pc/biosdisk.c
24857 (grub_biosdisk_get_diskinfo_standard): ... here.
24858 Transformed into C. Made static.
24859 * grub-core/kern/i386/pc/startup.S
24860 (grub_biosdisk_get_num_floppies): Moved from here ...
24861 * grub-core/disk/i386/pc/biosdisk.c
24862 (grub_biosdisk_get_num_floppies): ... here.
24863 Transformed into C. Made static.
24864 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24865 New function.
24866 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24867 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24868 Transformed into C. Made static.
24869 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24870 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24871 Transformed into C. Made static.
24872 * grub-core/kern/i386/ieee1275/init.c: Removed.
24873 * grub-core/kern/i386/misc.S: Likewise.
24874 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24875 Splitted from here ...
24876 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24877 Transformed into C. Made static. All users updated.
24878 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24879 Transformed into C. Made static. All users updated.
24880 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24881 Moved from here...
24882 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24883 Transformed into C. Made static. All users updated.
24884 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24885 Moved from here...
24886 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24887 Transformed into C. Made static. All users updated.
24888 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24889 Removed (replaced by C version).
24890 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24891 Moved from here...
24892 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24893 Transformed into C. Made static.
24894 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24895 Moved from here...
24896 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24897 ... here. Transformed into C.
24898 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24899 Moved from here...
24900 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24901 ... here. Transformed into C.
24902 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24903 Moved from here...
24904 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24905 ... here. Transformed into C. Made static.
24906 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24907 Moved from here...
24908 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24909 ... here. Transformed into C.
24910 * grub-core/kern/i386/pc/startup.S
24911 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24912 * grub-core/video/i386/pc/vbe.c
24913 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24914 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24915 Moved from here...
24916 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24917 ... here. Transformed into C.
24918 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24919 Moved from here...
24920 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24921 ... here. Transformed into C.
24922 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24923 Moved from here...
24924 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24925 ... here. Transformed into C.
24926 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24927 Moved from here...
24928 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24929 ... here. Transformed into C.
24930 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24931 Moved from here...
24932 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24933 ... here. Transformed into C. Made static.
24934 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24935 Moved from here...
24936 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24937 ... here. Transformed into C. Made static.
24938 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24939 Moved from here...
24940 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24941 ... here. Transformed into C. Made static.
24942 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24943 pxe_rm_entry as third argument.
24944 (grub_bios_interrupt): New function.
24945 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24946 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24947 of calling grub_stop.
24948 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24949 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24950 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24951 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24952 * grub-core/lib/i386/halt.c: Moved from here ...
24953 * grub-core/lib/i386/halt.c: ... here.
24954 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24955 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24956 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24957 grub_stop_floppy.
24958 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24959 * include/grub/i386/coreboot/init.h: Removed.
24960 * include/grub/i386/multiboot/init.h: Likewise.
24961 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24962 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24963 * include/grub/i386/pc/int.h: New file.
24964 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24965 (grub_pxe_scan): Removed.
24966 (grub_pxe_call): Update prototype.
24967 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24968 prototypes.
24969 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24970 * include/grub/i386/qemu/init.h: Removed.
24971 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24972 noreturn.
24973 (grub_halt): Likewise.
24974 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24975 (grub_reboot): Likewise.
24976 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24977 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24978 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24979
24980 2010-08-30 Robert Millan <rmh@gnu.org>
24981
24982 * NEWS: Document addition of ZFS support in `grub-install' and
24983 `grub-mkconfig'.
24984
24985 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24986
24987 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24988 dprintf output.
24989
24990 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24991
24992 Remove leftover embedding of font objects.
24993
24994 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24995 * util/grub-install.in (font): Removed.
24996 * util/grub-mkimage.c (generate_image): Remove font support. All users
24997 updated.
24998
24999 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25000
25001 Remove leftover embedding of font objects.
25002
25003 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25004 * util/grub-install.in (font): Removed.
25005 * util/grub-mkimage.c (generate_image): Remove font support. All users
25006 updated.
25007
25008 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25009
25010 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25011 Reported by: Ian Turner
25012
25013 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25014
25015 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25016 timeout to avoid indefinite boot stalling.
25017
25018 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25019
25020 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25021 (grub_env_write_color_highlight): Likewise.
25022
25023 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25024
25025 * grub-core/normal/term.c (print_more): Return to normal and not
25026 to standard state after printing "---MORE---".
25027
25028 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25029
25030 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25031 Mask out the bit 0x80 since it has other meaning that specifiing color.
25032
25033 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25034
25035 New relocator. Allows for more kernel support and more straightforward
25036 loader writing.
25037
25038 * Makefile.am (BOOTTARGET): New variable.
25039 (QEMU32): Likewise.
25040 (linux.init.x86_64): New target.
25041 (linux.init.i386): Likewise.
25042 (multiboot.elf): Likewise.
25043 (kfreebsd.elf): Likewise.
25044 (kfreebsd.aout): Likewise.
25045 (pc-chainloader.elf): Likewise.
25046 (pc-chainloader.bin): Likewise.
25047 (ntldr.elf): Likewise.
25048 (ntldr.bin): Likewise.
25049 (multiboot2.elf): Likewise.
25050 (kfreebsd.init.x86_64): Likewise.
25051 (kfreebsd.init.i386): Likewise.
25052 (knetbsd.init.i386): Likewise.
25053 (kopenbsd.init.i386): Likewise.
25054 (knetbsd.init.x86_64): Likewise.
25055 (kopenbsd.init.x86_64): Likewise.
25056 (linux-initramfs.i386): Likewise.
25057 (linux-initramfs.x86_64): Likewise.
25058 (kfreebsd-mfsroot.i386.img): Likewise.
25059 (knetbsd.image.i386): Likewise.
25060 (kopenbsd.image.i386): Likewise.
25061 (kopenbsd.image.x86_64): Likewise.
25062 (knetbsd.miniroot-image.i386.img): Likewise.
25063 (kfreebsd-mfsroot.x86_64.img): Likewise.
25064 (knetbsd.image.x86_64): Likewise.
25065 (knetbsd.miniroot-image.x86_64.img): Likewise.
25066 (kfreebsd-mfsroot.i386.gz): Likewise.
25067 (bootcheck-kfreebsd-i386): Likewise.
25068 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25069 (bootcheck-kfreebsd-x86_64): Likewise.
25070 (knetbsd.miniroot-image.i386.gz): Likewise.
25071 (bootcheck-knetbsd-i386): Likewise.
25072 (bootcheck-kopenbsd-i386): Likewise.
25073 (bootcheck-kopenbsd-x86_64): Likewise.
25074 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25075 (bootcheck-knetbsd-x86_64): Likewise.
25076 (bootcheck-linux-i386): Likewise.
25077 (bootcheck-linux-x86_64): Likewise.
25078 (bootcheck-linux16-i386): Likewise.
25079 (bootcheck-linux16-x86_64): Likewise.
25080 (bootcheck-multiboot): Likewise.
25081 (bootcheck-multiboot2): Likewise.
25082 (bootcheck-kfreebsd-aout): Likewise.
25083 (bootcheck-pc-chainloader): Likewise.
25084 (bootcheck-ntldr): Likewise.
25085 (CLEANFILES): Add new targets.
25086 (BOOTCHECKS): New variable.
25087 (.PHONY): Add bootchecks.
25088 (SUCCESSFUL_BOOT_STRING): New variable.
25089 (BOOTCHECK_TIMEOUT): Likewise.
25090 (bootcheck): New target
25091 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25092 * configure.ac: Correct efiemu excuse.
25093 * docs/grub.texi (Supported kernels): New chapter.
25094 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25095 include/grub/mm_private.h. Simplify inclusion of
25096 include/grub/boot.h, include/grub/loader.h
25097 and include/grub/msdos_partition.h
25098 (KERNEL_HEADER_FILES) [i386_coreboot]:
25099 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25100 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25101 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25102 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25103 include/grub/machine/loader.h.
25104 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25105 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25106 extra_dist.
25107 (pci.mod): Enable on i386-multiboot.
25108 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25109 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25110 i386-qemu.
25111 (relocator.mod): Rewritten.
25112 (aout.mod): Enable on all x86.
25113 (bsd.mod): Likewise.
25114 (ntldr.mod): New module.
25115 (linux.mod): Use loader/i386/linux.c on all x86.
25116 (xnu.mod): Enable on all x86.
25117 (vga_text.mod): disable on EFI and QEMU.
25118 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25119 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25120 * grub-core/efiemu/loadcore.c: Likewise.
25121 * grub-core/efiemu/main.c: Likewise.
25122 (grub_efiemu_exit_boot_services): Removed.
25123 (grub_efiemu_finish_boot_services): Likewise.
25124 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25125 function.
25126 * grub-core/efiemu/i386/nocfgtables.c: New file.
25127 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25128 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25129 (grub_efi_finish_boot_services): Moved from here ...
25130 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25131 Fille finish memory map and related data.
25132 (finish_mmap_buf): New variable.
25133 (grub_efi_uintn_t finish_mmap_size): Likewise.
25134 (grub_efi_uintn_t finish_key): Likewise.
25135 (grub_efi_uintn_t finish_desc_size): Likewise.
25136 (grub_efi_uint32_t finish_desc_version): Likewise.
25137 (grub_efi_is_finished): Likewise.
25138 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25139 finished.
25140 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25141 (grub_elf64_phdr_iterate): Likewise.
25142 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25143 (grub_os_area_size): Likewise.
25144 (grub_machine_init): Don't reserve os area.
25145 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25146 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25147 * grub-core/kern/i386/loader.S: Removed.
25148 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25149 (grub_os_area_size): Likewise.
25150 (grub_machine_init): Don't reserve os area.
25151 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25152 Don't call grub_dl_unload_all.
25153 Don't include loader.S.
25154 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25155 Declare the memory after _end as available.
25156 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25157 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25158 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25159 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25160 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25161 * include/grub/mm_private.h (grub_mm_header): ... here.
25162 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25163 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25164 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25165 (grub_mm_region): ..here. Removed addr. Added pre_size.
25166 All users updated.
25167 * grub-core/kern/mm.c (base): Renamed to ...
25168 (grub_mm_base): ... this. Made global.
25169 (grub_real_malloc): Alloc from end of region.
25170 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25171 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25172 * grub-core/kern/powerpc/cache_flush.S: ... here.
25173 * grub-core/lib/efi/relocator.c: New file.
25174 * grub-core/lib/i386/relocator.c: Rewritten.
25175 * grub-core/lib/i386/relocator16.S: New file.
25176 * grub-core/lib/i386/relocator32.S: Likewise.
25177 * grub-core/lib/i386/relocator64.S: Likewise.
25178 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25179 * grub-core/lib/i386/relocator_common.S: New file.
25180 * grub-core/lib/ieee1275/relocator.c: Likewise.
25181 * grub-core/lib/mips/relocator.c: Rewritten.
25182 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25183 stylistic adjustments.
25184 * grub-core/lib/powerpc/relocator.c: New file.
25185 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25186 * grub-core/lib/relocator.c: Rewritten.
25187 * grub-core/lib/x86_64/relocator_asm.S: New file.
25188 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25189 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25190 (bsd_tag): New struct.
25191 (tags): New variable.
25192 (tags_last): Likewise.
25193 (netbsd_module): New struct.
25194 (netbsd_mods): New variable.
25195 (netbsd_mods_last): Likewise.
25196 (openbsd_opts): New parameter "serial".
25197 (OPENBSD_SERIAL_ARG): New definition.
25198 (netbsd_opts): New parameter "serial".
25199 (NETBSD_SERIAL_ARG): New definition.
25200 (grub_freebsd_add_meta): Reorganised into ...
25201 (grub_bsd_add_meta): ...this. All users updated.
25202 (grub_freebsd_add_mmap): Reorganised into ...
25203 (generate_e820_mmap): ...this...
25204 (grub_bsd_add_mmap): ...and this. All users updated.
25205 (grub_freebsd_list_modules): Use tags.
25206 (grub_netbsd_add_meta_module): New function.
25207 (grub_netbsd_list_modules): Likewise.
25208 (grub_freebsd_boot): Use relocator and finish EFI.
25209 (grub_openbsd_boot): Likewise.
25210 (grub_netbsd_setup_video): New function.
25211 (grub_netbsd_add_modules): Likewise.
25212 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25213 and finish EFI.
25214 (grub_bsd_unload): Unload tags.
25215 (grub_bsd_load_aout): Use relocator.
25216 (grub_bsd_elf32_size_hook): New function.
25217 (grub_bsd_elf32_hook): Use relocator.
25218 (grub_bsd_elf64_size_hook): New function.
25219 (grub_bsd_elf64_hook): Use relocator.
25220 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25221 (grub_bsd_load): Zero-out openbsd_ramdisk.
25222 (grub_bsd_load): Use relocator.
25223 (grub_cmd_openbsd): Support serial.
25224 (grub_cmd_netbsd): Support modules.
25225 (grub_cmd_freebsd_module): Use relocator.
25226 (grub_netbsd_module_load): New function.
25227 (grub_cmd_netbsd_module): Likewise.
25228 (grub_cmd_openbsd_ramdisk): Likewise.
25229 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25230 kopenbsd_ramdisk.
25231 (GRUB_MOD_FINI): Unregister new commands.
25232 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25233 (grub_freebsd_load_elfmodule_obj): Use relocator.
25234 (grub_freebsd_load_elfmodule): Likewise.
25235 (grub_freebsd_load_elf_meta): Likewise.
25236 (grub_netbsd_load_elf_meta): New function.
25237 (grub_openbsd_find_ramdisk): Likewise.
25238 * grub-core/loader/i386/bsd_helper.S: Removed.
25239 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25240 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25241 * grub-core/loader/i386/efi/linux.c: Likewise.
25242 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25243 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25244 (DEFAULT_VIDEO_MODE): Likewise.
25245 (real_mode_target): New variable.
25246 (prot_mode_target): Likewise.
25247 (initrd_mem_target): Likewise.
25248 (relocator): Likewise.
25249 (efi_mmap_buf): Likewise.
25250 (efi_mmap_size): Likewise.
25251 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25252 (free_pages): Use relocator.
25253 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25254 (grub_linux_setup_video): Return error.
25255 (grub_linux_trampoline_start): Removed.
25256 (grub_linux_trampoline_end): Likewise.
25257 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25258 andd video parameters depending on firmware.
25259 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25260 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25261 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25262 (grub_cmd_initrd): Use relocator.
25263 * grub-core/loader/i386/linux_trampoline.S: Removed.
25264 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25265 (elf_sec_entsize): Likewise.
25266 (elf_sec_shstrndx): Likewise.
25267 (elf_sections): Likewise.
25268 (grub_multiboot_load): Use relocator.
25269 (grub_multiboot_get_mbi_size): Account for sections.
25270 (grub_multiboot_make_mbi): Use relocator and support sections.
25271 (grub_multiboot_add_elfsyms): New function.
25272 (grub_multiboot_free_mbi): Free sections.
25273 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25274 (grub_linux_real_target): Likewise.
25275 (grub_linux_real_chunk): Likewise.
25276 (grub_linux16_prot_size): Likewise.
25277 (grub_linux16_boot): Use relocator.
25278 (grub_linux_unload): Unload relocator.
25279 (grub_cmd_linux): Use relocator.
25280 (grub_cmd_initrd): Likewise.
25281 * grub-core/loader/i386/pc/ntldr.c: New file.
25282 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25283 Don't try to guess CPU frequency.
25284 (grub_xnu_set_video): Stretch bitmap.
25285 (grub_xnu_boot): Use relocator.
25286 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25287 (grub_linux_unload): Free relocator.
25288 (grub_linux_load32): Use relocator.
25289 (grub_linux_load64): Likewise.
25290 (grub_cmd_initrd): Likewise.
25291 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25292 (grub_multiboot_unload): Unload relocator.
25293 (grub_cmd_multiboot): Use relocator.
25294 (grub_cmd_module): Likewise.
25295 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25296 Use relocator and support sections.
25297 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25298 (elf_sec_entsize): Likewise.
25299 (elf_sec_shstrndx): Likewise.
25300 (elf_sections): Likewise.
25301 (grub_multiboot_load): Use relocator.
25302 (grub_multiboot_get_mbi_size): Account for sections.
25303 (grub_multiboot_make_mbi): Use relocator and support sections.
25304 (grub_multiboot_add_elfsyms): New function.
25305 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25306 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25307 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25308 Prototype changed. All users updated.
25309 (grub_xnu_align_heap): Simplified.
25310 (grub_xnu_writetree_toheap): Likewise.
25311 (grub_xnu_unload): Unload relocator.
25312 (grub_cmd_xnu_kernel): Use relocator.
25313 (grub_cmd_xnu_kernel64): Likewise.
25314 (grub_xnu_register_memory): Simplified.
25315 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25316 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25317 EFI is finished.
25318 (grub_console_checkkey): Likewise.
25319 (grub_console_getkey): Likewise.
25320 (grub_console_getwh): Likewise.
25321 (grub_console_getxy): Likewise.
25322 (grub_console_gotoxy): Likewise.
25323 (grub_console_cls): Likewise.
25324 (grub_console_setcolorstate): Likewise.
25325 (grub_console_setcursor): Likewise.
25326 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25327 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25328 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25329 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25330 * grub-core/tests/boot/kernel-8086.S: Likewise.
25331 * grub-core/tests/boot/kernel-i386.S: Likewise.
25332 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25333 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25334 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25335 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25336 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25337 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25338 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25339 * grub-core/tests/boot/linux.cfg: Likewise.
25340 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25341 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25342 * grub-core/tests/boot/linux16.cfg: Likewise.
25343 * grub-core/tests/boot/multiboot.cfg: Likewise.
25344 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25345 * grub-core/tests/boot/ntldr.cfg: Likewise.
25346 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25347 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25348 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25349 New definition.
25350 * include/grub/dl.h (grub_dl_unload_all): Removed.
25351 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25352 (grub_efi_finish_boot_services): Change prototype.
25353 (grub_efi_is_finished): New variable.
25354 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25355 Changed prototype.
25356 (grub_efiemu_finish_boot_services): Removed.
25357 (grub_machine_efiemu_init_tables): New prototype.
25358 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25359 (grub_elf64_phdr_iterate): Likewise.
25360 * include/grub/i386/bsd.h: Include relocator.h.
25361 (freebsd_tag_header): New struct.
25362 (grub_openbsd_bios_mmap): Removed.
25363 (grub_unix_real_boot): Removed.
25364 (grub_freebsd_load_elfmodule32): Changed prototype.
25365 (grub_freebsd_load_elfmodule_obj64): Likewise.
25366 (grub_freebsd_load_elf_meta32): Likewise.
25367 (grub_freebsd_load_elf_meta64): Likewise.
25368 (grub_freebsd_add_meta): Removed.
25369 (grub_netbsd_load_elf_meta32): New prototype.
25370 (grub_netbsd_load_elf_meta64): Likewise.
25371 (grub_bsd_add_meta): Likewise.
25372 (grub_openbsd_ramdisk_descriptor): New struct.
25373 (grub_openbsd_find_ramdisk32): New prototype.
25374 (grub_openbsd_find_ramdisk64): Likewise.
25375 * include/grub/i386/coreboot/loader.h: Removed.
25376 * include/grub/i386/efi/loader.h: Likewise.
25377 * include/grub/i386/ieee1275/loader.h: Likewise.
25378 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25379 to grub_uint32_t.
25380 * include/grub/i386/loader.h: Removed.
25381 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25382 value.
25383 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25384 (grub_phys_addr_t): New type.
25385 (grub_vtop): New inline function.
25386 (grub_map_memory): Likewise.
25387 (grub_unmap_memory): Likewise.
25388 * include/grub/i386/multiboot/loader.h: Removed.
25389 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25390 (NETBSD_BTINFO_CONSOLE): New definition.
25391 (NETBSD_BTINFO_SYMTAB): Likewise.
25392 (NETBSD_BTINFO_MODULES): Likewise.
25393 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25394 (grub_netbsd_bootinfo): New struct.
25395 (grub_netbsd_btinfo_common): Use explicit bitsize.
25396 (grub_netbsd_btinfo_mmap_entry): Removed.
25397 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25398 (grub_netbsd_btinfo_bootdisk): New struct.
25399 (grub_netbsd_btinfo_symtab): Likewise.
25400 (grub_netbsd_btinfo_serial): Likewise.
25401 (grub_netbsd_btinfo_modules): Likewise.
25402 (grub_netbsd_btinfo_framebuf): Likewise.
25403 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25404 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25405 Likewise.
25406 (grub_openbsd_bootargs): Use explicit bitsize.
25407 (grub_openbsd_bootarg_console): New struct.
25408 (GRUB_OPENBSD_COM_MAJOR): New definition.
25409 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25410 * include/grub/i386/pc/efiemu.h: Removed.
25411 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25412 * include/grub/i386/qemu/loader.h: Removed.
25413 * include/grub/i386/relocator.h: Rewritten.
25414 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25415 * include/grub/mips/memory.h: New file.
25416 * include/grub/mips/multiboot.h: Rewritten.
25417 * include/grub/mips/relocator.h: Rewritten.
25418 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25419 (grub_vtop): New function.
25420 (grub_map_memory): Likewise.
25421 (grub_unmap_memory): Likewise.
25422 * include/grub/misc.h (ALIGN_DOWN): New definition.
25423 * include/grub/mm.h (grub_mm_check_real): New proto.
25424 (GRUB_MM_CHECK): New definition.
25425 * include/grub/mm_private.h: New file.
25426 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25427 (grub_multiboot_get_mbi_size): Removed.
25428 (grub_multiboot_make_mbi): Change prottype.
25429 (grub_multiboot_set_accepts_video): New proto.
25430 (grub_multiboot_add_elfsyms): Likewise.
25431 (grub_multiboot_payload_eip): New variable.
25432 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25433 New prototype.
25434 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25435 New definition.
25436 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25437 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25438 * include/grub/powerpc/ieee1275/loader.h: Removed.
25439 * include/grub/powerpc/memory.h: New file.
25440 * include/grub/powerpc/relocator.h: Likewise.
25441 * include/grub/relocator.h: Likewise.
25442 * include/grub/relocator_private.h: Likewise.
25443 * include/grub/sparc64/ieee1275/loader.h: Removed.
25444 * include/grub/x86_64/memory.h: New file.
25445 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25446 (grub_xnu_heap_malloc): Likewise.
25447 (grub_xnu_heap_real_start): Removed.
25448 (grub_xnu_heap_start): Likewise.
25449 (grub_xnu_relocator): New variable.
25450 (grub_xnu_heap_target_start): Likewise.
25451 * tests/util/grub-shell.in: Support non-pc.
25452 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25453
25454 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25455
25456 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25457 on malloc error.
25458 (grub_bidi_logical_to_visual): Check that malloc succeded.
25459 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25460 puts.
25461 (grub_xputs_normal): Likewise.
25462
25463 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25464
25465 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25466 extra_dist.
25467
25468 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25469
25470 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25471
25472 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25473
25474 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25475
25476 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25477
25478 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25479 dprintf.
25480
25481 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25482
25483 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25484
25485 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25486
25487 * grub-core/normal/term.c (print_more): Fix a memory leak.
25488 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25489 (grub_xputs_normal): Likewise.
25490
25491 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25492
25493 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25494 the begining of the string
25495
25496 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25497
25498 * grub-core/script/script.c (grub_script_parse): Free parsed on
25499 failure.
25500
25501 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25502
25503 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25504 on failure.
25505
25506 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25507
25508 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25509 return.
25510
25511 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25512
25513 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25514 (scroll_up): Fix a memory leak.
25515
25516 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25517
25518 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25519 errors.
25520
25521 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25522
25523 Handle USB pendrives exposed as floppies.
25524
25525 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25526 floppy.
25527 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25528 Check for partitions on all devices.
25529
25530 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25531
25532 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25533 (readkey): Likewise.
25534
25535 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25536
25537 Multiple variable names support to "export" command.
25538
25539 * normal/context.c (grub_cmd_export): "export" command supports
25540 multiple variable names.
25541
25542 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25543
25544 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25545 --target=drive output to Mach device name.
25546
25547 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25548
25549 New Automake based build system for GRUB.
25550
25551 * ABOUT-NLS: New file.
25552 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25553 in Makefile.util.def file.
25554 * Makefile.util.def: New file. Autogen build definitions file for
25555 GRUB host utils.
25556 * conf/Makefile.common: New file. Common variables for GRUB host
25557 utils and target modules.
25558 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25559 * docs/Makefile.am: New file. Automake file for docs.
25560 * gentpl.py: New file. Python script to generate Autogen
25561 template.
25562 * grub-core/Makefile.am: New file. GRUB target modules' rules
25563 that doesn't fit in Makefile.core.def file.
25564 * grub-core/Makefile.core.def: New file. Autogen build
25565 definitions file for GRUB target modules.
25566 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25567 specific setjmp.S file.
25568 * po/Makefile.am: New file.
25569
25570 * .bzrignore: New ignores.
25571 * INSTALL: New requirements, without Ruby.
25572 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25573 * autogen.sh: Updated to invoke autogen as necessary.
25574 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25575 and defines for Automake conditionals.
25576 * geninit.sh: Refactoring.
25577
25578 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25579 necessary.
25580 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25581 New prototype.
25582
25583 * include/grub/test.h: Fix functional test modules' naming.
25584 * grub-core/tests/example_functional_test.c: Fix test module name.
25585
25586 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25587 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25588 * util/grub-editenv.c: Likewise.
25589 * util/grub-fstest.c: Likewise.
25590 * util/grub-mkdevicemap.c: Likewise.
25591 * util/grub-mkfont.c: Likewise.
25592 * util/grub-mkimage.c: Likewise.
25593 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25594 * util/grub-probe.c: Likewise.
25595 * util/grub-script-check.c: Likewise.
25596 * util/i386/pc/grub-setup.c: Likewise.
25597 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25598
25599 * tests/util/grub-shell.in: Fix override directory path.
25600 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25601 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25602
25603 * util/lvm.c: Update #includes.
25604 * util/raid.c: Likewise.
25605 * util/resolve.c: Likewise.
25606 * grub-core/bus/emu/pci.c: Likewise.
25607 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25608 * grub-core/lib/posix_wrap/string.h: Likewise.
25609 * grub-core/kern/emu/main.c: Likewise.
25610
25611 * grub-core/gensymlist.sh: New file. Script for generating kernel
25612 symbols file.
25613 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25614
25615 * grub-core/gentrigtables.c: Fix unused variable warnings.
25616
25617 * Makefile.in: Removed.
25618 * conf/any-emu.rmk: Removed.
25619 * conf/common.rmk: Removed.
25620 * conf/i386-coreboot.rmk: Removed.
25621 * conf/i386-efi.rmk: Removed.
25622 * conf/i386-ieee1275.rmk: Removed.
25623 * conf/i386-multiboot.rmk: Removed.
25624 * conf/i386-pc.rmk: Removed.
25625 * conf/i386-qemu.rmk: Removed.
25626 * conf/i386.rmk: Removed.
25627 * conf/mips-yeeloong.rmk: Removed.
25628 * conf/mips.rmk: Removed.
25629 * conf/powerpc-ieee1275.rmk: Removed.
25630 * conf/sparc64-ieee1275.rmk: Removed.
25631 * conf/tests.rmk: Removed.
25632 * conf/x86-efi.rmk: Removed.
25633 * conf/x86_64-efi.rmk: Removed.
25634 * gendistlist.sh: Removed.
25635 * geninitheader.sh: Removed.
25636 * genkernsyms.sh.in: Removed.
25637 * genmk.rb: Removed.
25638 * gensymlist.sh.in: Removed.
25639 * mkinstalldirs: Removed.
25640 * boot: Moved ...
25641 * grub-core/boot: ... to here.
25642 * bus: Moved ...
25643 * grub-core/bus: ... to here.
25644 * commands: Moved ...
25645 * grub-core/commands: ... to here.
25646 * disk: Moved ...
25647 * grub-core/disk: ... to here.
25648 * efiemu: Moved ...
25649 * grub-core/efiemu: ... to here.
25650 * font: Moved ...
25651 * grub-core/font: ... to here.
25652 * fs: Moved ...
25653 * grub-core/fs: ... to here.
25654 * gencmdlist.sh: Moved ...
25655 * grub-core/gencmdlist.sh: ... to here.
25656 * genemuinit.sh: Moved ...
25657 * grub-core/genemuinit.sh: ... to here.
25658 * genemuinitheader.sh: Moved ...
25659 * grub-core/genemuinitheader.sh: ... to here.
25660 * genfslist.sh: Moved ...
25661 * grub-core/genfslist.sh: ... to here.
25662 * genhandlerlist.sh: Moved ...
25663 * grub-core/genhandlerlist.sh: ... to here.
25664 * genmoddep.awk: Moved ...
25665 * grub-core/genmoddep.awk: ... to here.
25666 * genmodsrc.sh: Moved ...
25667 * grub-core/genmodsrc.sh: ... to here.
25668 * genpartmaplist.sh: Moved ...
25669 * grub-core/genpartmaplist.sh: ... to here.
25670 * genparttoollist.sh: Moved ...
25671 * grub-core/genparttoollist.sh: ... to here.
25672 * genterminallist.sh: Moved ...
25673 * grub-core/genterminallist.sh: ... to here.
25674 * gentrigtables.c: Moved ...
25675 * grub-core/gentrigtables.c: ... to here.
25676 * genvideolist.sh: Moved ...
25677 * grub-core/genvideolist.sh: ... to here.
25678 * gettext: Moved ...
25679 * grub-core/gettext: ... to here.
25680 * gfxmenu: Moved ...
25681 * grub-core/gfxmenu: ... to here.
25682 * gnulib: Moved ...
25683 * grub-core/gnulib: ... to here.
25684 * hello: Moved ...
25685 * grub-core/hello: ... to here.
25686 * hook: Moved ...
25687 * grub-core/hook: ... to here.
25688 * io: Moved ...
25689 * grub-core/io: ... to here.
25690 * kern: Moved ...
25691 * grub-core/kern: ... to here.
25692 * lib: Moved ...
25693 * grub-core/lib: ... to here.
25694 * loader: Moved ...
25695 * grub-core/loader: ... to here.
25696 * mmap: Moved ...
25697 * grub-core/mmap: ... to here.
25698 * normal: Moved ...
25699 * grub-core/normal: ... to here.
25700 * partmap: Moved ...
25701 * grub-core/partmap: ... to here.
25702 * parttool: Moved ...
25703 * grub-core/parttool: ... to here.
25704 * script: Moved ...
25705 * grub-core/script: ... to here.
25706 * term: Moved ...
25707 * grub-core/term: ... to here
25708 * tests/example_functional_test.c: Moved ...
25709 * grub-core/tests/example_functional_test.c: ... to here.
25710 * tests/lib/functional_test.c: Moved ...
25711 * grub-core/tests/lib/functional_test.c: ... to here.
25712 * tests/lib/test.c: Moved ...
25713 * grub-core/tests/lib/test.c: ... to here.
25714 * video: Moved ...
25715 * grub-core/video: ... to here.
25716
25717 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25718
25719 Replace --enable-grub-emu-modules with grub-emu-lite.
25720
25721 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25722 cache.S.
25723
25724 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25725 * kern/emu/full.c: New file. For grub-emu specific initialization.
25726 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25727 * kern/emu/main.c: Call initialization function grub_emu_init.
25728
25729 * Makefile.in: Include grub-emu-lite in install.
25730 * commands/parttool.c: Use grub_no_autoload to differentiate
25731 between grub-emu and grub-emu-lite.
25732 * include/grub/misc.h: New variable grub_no_autoload.
25733
25734 * conf/any-emu.rmk: New rules for grub-emu-lite.
25735 * configure.ac: Remove --enable-grub-emu-modules.
25736 * genmk.rb: Cleanup unnecessary rules.
25737 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25738
25739 * normal/main.c: Don't load list files on grub-emu-lite.
25740 * util/misc.c (grub_arch_sync_caches): Removed.
25741
25742 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25743
25744 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25745 grub-mkimage rather than grub-mkelfimage.
25746 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25747
25748 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25749
25750 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25751 a key after CapsLock or NumLock. It's just a qemu bug.
25752
25753 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25754
25755 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25756 needed by libusb wrapper.
25757
25758 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25759
25760 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25761
25762 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25763
25764 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25765 --nounzip is passed.
25766
25767 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25768
25769 USB hotunplugging and USB serial support.
25770
25771 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25772 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25773 (grub_uhci_transfer): Respect timeout and set *actual.
25774 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25775 non-standard length.
25776 (grub_usb_device_attach): Autoload modules.
25777 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25778 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25779 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25780 users updated.
25781 (grub_usb_add_hub): Fill nports and children.
25782 (attach_root_port): Receive hub instead of controller.
25783 All users updated. Fill hub->devices.
25784 (grub_usb_root_hub): Allocate hub->devices.
25785 (detach_device): New function.
25786 (poll_nonroot_hub): Fill children and detach devices.
25787 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25788 actual arguments. All users updated.
25789 (grub_usb_bulk_read_extended): New function.
25790 * bus/usb/serial/common.c: New file.
25791 * bus/usb/serial/ftdi.c: Likewise.
25792 * bus/usb/serial/pl2303.c: Likewise.
25793 * commands/terminal.c (handle_command): Support wildcard.
25794 * commands/usbtest.c: Output "Unknown" instead of empty string.
25795 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25796 (usbserial_common_mod_SOURCES): New variable.
25797 (usbserial_common_mod_CFLAGS): Likewise.
25798 (usbserial_common_mod_LDFLAGS): Likewise.
25799 (pkglib_MODULES): Add usbserial_pl2303.mod.
25800 (usbserial_pl2303_mod_SOURCES): New variable.
25801 (usbserial_pl2303_mod_CFLAGS): Likewise.
25802 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25803 (pkglib_MODULES): Add usbserial_ftdi.mod.
25804 (usbserial_ftdi_mod_SOURCES): New variable.
25805 (usbserial_ftdi_mod_CFLAGS): Likewise.
25806 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25807 (pkglib_MODULES): Add serial.mod.
25808 (serial_mod_SOURCES): New variable.
25809 (serial_mod_CFLAGS): Likewise.
25810 (serial_mod_LDFLAGS): Likewise.
25811 * conf/i386-pc.rmk: Likewise.
25812 * conf/mips-yeeloong.rmk: Likewise.
25813 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25814 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25815 * disk/usbms.c (first_available_slot): New variable.
25816 (grub_usbms_attach): Don't reuse free slots due to potential cache
25817 problems.
25818 * include/grub/serial.h: Moved to ..
25819 * include/grub/ns8250.h: ...this.
25820 * include/grub/serial.h: New file.
25821 * include/grub/term.h (grub_term_poll_usb): New variable.
25822 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25823 readkey. All users updated.
25824 (grub_terminfo_output_state): Pass term to put.
25825 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25826 (grub_usb_controller_dev): Add timeout and actual arguments to
25827 transfer. All users updated.
25828 (grub_usb_interface): New field detach_data.
25829 (grub_usb_device): New fields children and nports.
25830 (grub_usb_ep_type_t): New type.
25831 (grub_usb_get_ep_type): New function.
25832 (grub_usb_bulk_read_extended): Likewise.
25833 * include/grub/usbdesc.h (grub_usb_desc): New type.
25834 * include/grub/usbserial.h: New file.
25835 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25836 * kern/term.c (grub_term_poll_usb): New variable.
25837 (grub_getkey): Call grub_term_poll_usb if set.
25838 (grub_checkkey): Likewise.
25839 (grub_getkeystatus): Likewise.
25840 * term/serial.c: Moved controller-specific parts to ...
25841 * term/ns8250.c: ... here.
25842 * term/serial.c: Mostly rewritten.
25843 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25844 according to spec.
25845
25846 2010-08-20 Robert Millan <rmh@gnu.org>
25847
25848 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25849 a separate module and maybe other interesting combinations.
25850
25851 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25852 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25853 (kfreebsd_entry): Add generic filesystem module load routine.
25854 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25855
25856 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25857
25858 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25859 "numcenter" (I misunderstood the purpose of this entry).
25860 * docs/grub.texi (sendkey): Likewise.
25861
25862 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25863
25864 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25865 status flag options; simply omitting the option is equivalent and
25866 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25867 (keysym_table): Rename "num5numlock" to "numlock".
25868 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25869 can uniformly say that only the last of multiple `sendkey'
25870 invocations has any effect.
25871 * docs/grub.texi (sendkey): New section.
25872
25873 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25874
25875 * commands/i386/pc/sendkey.c (options): Fix three typos.
25876
25877 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25878
25879 Implement sendkey support.
25880
25881 * commands/i386/pc/sendkey.c: New file.
25882 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25883 (sendkey_mod_SOURCES): New variable.
25884 (sendkey_mod_CFLAGS): Likewise.
25885 (sendkey_mod_LDFLAGS): Likewise.
25886
25887 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25888
25889 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25890 fix warnings from Autoconf.
25891
25892 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25893
25894 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25895 to avoid false positives with some assemblers that output things
25896 like "someprefix_func" as part of their output.
25897
25898 2010-08-15 Robert Millan <rmh@gnu.org>
25899
25900 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25901 errors.
25902 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25903 grub_get_libzfs_handle() errors.
25904
25905 2010-08-14 Robert Millan <rmh@gnu.org>
25906
25907 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25908 filesystem is not ZFS.
25909
25910 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25911
25912 Fix for misspelled color names defaulting to black/black (bug
25913 reported by Doug Nazar)
25914
25915 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25916 status to prototype.
25917 * normal/color.c (grub_parse_color_name_pair): Return failure
25918 status.
25919 (grub_env_write_color_normal): Ignore bad color names.
25920 (grub_env_write_color_highlight): Likewise.
25921 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25922
25923 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25924
25925 "shift" command support to GRUB script.
25926
25927 * include/grub/script_sh.h (grub_script_shift): New prototype.
25928 * script/execute.c (grub_script_shift): New function.
25929 * script/main.c (grub_script_init): Register shift command.
25930 (grub_script_fini): Unregister shift command.
25931 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25932
25933 * tests/grub_script_shift.in: New testcase.
25934 * conf/tests.rmk: Rules for new testcase.
25935
25936 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25937
25938 "continue" command support to GRUB script.
25939
25940 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25941 (grub_script_break): Continue support.
25942 * script/main.c (grub_script_init): Register continue command.
25943 (grub_script_fini): Unregister continue command.
25944
25945 * tests/grub_script_continue.in: New testcase.
25946 * conf/tests.rmk: Rules for new testcase.
25947
25948 2010-08-12 BVK Chaitanya <bvk@dbook>
25949
25950 "break" command support to GRUB script.
25951
25952 * conf/common.rmk: Rule updates to grub-script-check.
25953 * include/grub/misc.h (grub_min): New function.
25954 * include/grub/script_sh.h (grub_script_init): New prototype.
25955 (grub_script_fini): New prototype.
25956 (grub_script_break): New prototype.
25957 * script/main.c (grub_script_init): New function.
25958 (grub_script_fini): New function.
25959 * script/execute.c (grub_script_break): New function.
25960 * normal/main.c: Calls to grub_script_{init,fini}.
25961 * util/grub-script-check.c (grub_script_break): New function.
25962
25963 * tests/grub_script_break.in: New testcase.
25964 * conf/tests.rmk: Rules for new test case.
25965
25966 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25967
25968 Function parameters support to GRUB script.
25969
25970 * script/yylex.l (VARIABLE): Regular expression update.
25971 * script/function.c (grub_script_function_call): Moved ...
25972 * script/execute.c (grub_script_function_call): ... to here.
25973 (grub_script_execute_arglist_to_argv): Removed.
25974 (grub_script_arglist_to_argv): New function.
25975 * script/argv.c: New file.
25976 (grub_script_argv_free): New function.
25977 (grub_script_argv_next): Likewise.
25978 (grub_script_argv_append): Likewise.
25979 (grub_script_argv_split_append): Likewise.
25980 * include/grub/script_sh.h (grub_script_argv): New struct.
25981 (grub_script_argv_free): New function.
25982 (grub_script_argv_next): Likewise.
25983 (grub_script_argv_append): Likewise.
25984 (grub_script_argv_split_append): Likewise.
25985
25986 * conf/common.rmk (normal.mod): New source script/argv.c.
25987
25988 * tests/grub_script_echo1.in: More tests.
25989 * tests/grub_script_vars1.in: Likewise.
25990 * tests/grub_script_functions.in: New test case.
25991 * conf/tests.rmk: Rules for new testcase.
25992
25993 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25994
25995 Remove grub_script_cmdblock struct.
25996
25997 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25998 * script/parser.y: Likewise.
25999 * script/execute.c: Rename cmdblock suffix to cmdlist.
26000 * script/script.c: Likewise.
26001 * util/grub-script-check.c: Likewise.
26002
26003 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26004
26005 * .bzrignore: add grub-macho2img
26006
26007 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26008
26009 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26010
26011 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26012
26013 Remove the dump of sm712 initialisation sequence.
26014
26015 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26016 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26017 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26018 (GRUB_VGA_CR_*): Added many registers.
26019 (GRUB_VGA_SR_*): Likewise.
26020 (GRUB_VGA_GR_*): Likewise.
26021 (grub_vga_write_arx): New function.
26022 (grub_video_hw_config): New struct.
26023 (grub_vga_set_geometry): New function.
26024 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26025 GRUB_PCI_CLASS_SUBCLASS_VGA.
26026 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26027 * video/sm712.c (grub_sm712_write_reg): New function
26028 (grub_sm712_read_reg): Likewise.
26029 (grub_sm712_sr_write): Likewise.
26030 (grub_sm712_gr_write): Likewise.
26031 (grub_sm712_cr_write): Likewise.
26032 (grub_sm712_write_arx): Likewise.
26033 (grub_sm712_cr_shadow_write): Likewise.
26034 (grub_sm712_write_dda_lookup): Likewise.
26035 (grub_video_sm712_setup): Initialise the video rather then
26036 blindly replay the dump.
26037 (main) [TEST]: Add a routine to be able to compile as standalone for
26038 tests.
26039 * video/sm712_init.c (sm712_init): Removed.
26040 (sm712_sr_seq1): New array.
26041 (sm712_sr_seq2): Likewise.
26042
26043 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26044
26045 * include/grub/vga.h: Add missing grub/pci.h include.
26046
26047 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26048
26049 * util/grub-macho2img.c (main): fix typo
26050
26051 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26052
26053 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26054 (grub_vga_gr_read): Likewise.
26055 (grub_vga_cr_write): Likewise.
26056 (grub_vga_cr_read): Likewise.
26057 (grub_vga_sr_write): Likewise.
26058 (grub_vga_sr_read): Likewise.
26059 (grub_vga_palette_read): Likewise.
26060 (grub_vga_palette_write): Likewise.
26061 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26062 (grub_sm712_sr_read): New function.
26063 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26064 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26065
26066 2010-08-09 Robert Millan <rmh@gnu.org>
26067
26068 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26069 out unused variables on non-ZFS build.
26070
26071 2010-08-08 Robert Millan <rmh@gnu.org>
26072
26073 Fix path generation for sub-filesystems in ZFS.
26074
26075 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26076 missing slash.
26077
26078 2010-08-08 Robert Millan <rmh@gnu.org>
26079
26080 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26081
26082 2010-08-08 Robert Millan <rmh@gnu.org>
26083
26084 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26085 exist, issue a proper error message (rely on `ls' for translated
26086 strings).
26087
26088 2010-08-08 Robert Millan <rmh@gnu.org>
26089
26090 Fix grub-probe invocation.
26091
26092 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26093
26094 2010-08-04 Robert Millan <rmh@gnu.org>
26095
26096 * configure.ac: Remove checks for getfsstat() and getmntany().
26097 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26098 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26099 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26100 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26101 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26102 function.
26103 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26104 via find_mount_point_from_dir() and getfsstat() / getmntany().
26105
26106 2010-08-04 Robert Millan <rmh@gnu.org>
26107
26108 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26109 (grub_find_zpool_from_mount_point): Merge into ...
26110 (grub_find_zpool_from_dir): ... this.
26111 * kern/emu/misc.c: Likewise.
26112
26113 * kern/emu/misc.c
26114 (grub_make_system_path_relative_to_its_root): Replace
26115 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26116 with grub_find_zpool_from_dir().
26117 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26118
26119 2010-08-04 Robert Millan <rmh@gnu.org>
26120
26121 Support OpenSolaris in ZFS device resolution.
26122
26123 * configure.ac: Check for getmntany().
26124 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26125 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26126 support.
26127
26128 2010-08-03 Robert Millan <rmh@gnu.org>
26129
26130 Fix grub-emu build.
26131
26132 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26133 * include/grub/emu/misc.h: ... here.
26134
26135 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26136 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26137
26138 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26139 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26140 (grub_get_libzfs_handle): Move to ...
26141 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26142 (grub_get_libzfs_handle): ... here.
26143
26144 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26145
26146 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26147 as command name case.
26148
26149 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26150
26151 * disk/raid.c (insert_array): Select unique numbers for named arrays
26152 as well, for use as keys in the disk cache.
26153
26154 2010-08-01 Robert Millan <rmh@gnu.org>
26155
26156 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26157 kFreeBSD device name, except on ZFS where the filesystem label is
26158 used.
26159 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26160 `/boot/zfs/zpool.cache'.
26161 Set mountfrom kernel variable using ${kfreebsd_device}.
26162
26163 2010-08-01 Robert Millan <rmh@gnu.org>
26164
26165 Make it even harder to use uninitialized `libzfs_handle' (and
26166 make the interface a bit simpler).
26167
26168 * include/grub/util/misc.h (grub_util_init_libzfs)
26169 (libzfs_handle): Remove.
26170 (grub_get_libzfs_handle): New prototype.
26171
26172 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26173 attribute.
26174 (grub_util_init_libzfs): Remove.
26175 (grub_get_libzfs_handle): New function.
26176
26177 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26178 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26179 accessing `libzfs_handle' directly.
26180
26181 2010-08-01 Robert Millan <rmh@gnu.org>
26182
26183 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26184 (grub_find_zpool_from_mount_point): New function prototypes.
26185
26186 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26187 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26188
26189 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26190 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26191 `static' attribute.
26192
26193 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26194 finding zpool from mount point into ...
26195 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26196
26197 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26198 requested path is part of a ZFS pool, use
26199 grub_find_zpool_from_mount_point() to detect its filesystem name,
26200 and generate a path with `/fsname@path' syntax.
26201
26202 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26203
26204 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26205 (void) rather than () so that this is a proper prototype.
26206
26207 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26208
26209 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26210
26211 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26212
26213 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26214 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26215
26216 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26217
26218 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26219
26220 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26221
26222 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26223
26224 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26225
26226 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26227 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26228 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26229 disable gfxpayload.
26230 (Shell-like scripting): Add real content.
26231 (Serial terminal): Suggest `terminal_input serial; terminal_output
26232 serial' rather than putting the two commands on separate lines,
26233 since console input will be inoperative after the first command.
26234 (menuentry): Document --class, --users, and --hotkey options.
26235 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26236 Vladimir Serbinenko).
26237
26238 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26239 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26240
26241 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26242
26243 2010-08-01 Robert Millan <rmh@gnu.org>
26244
26245 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26246 (grub_find_zpool_from_mount_point): New function prototypes.
26247
26248 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26249 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26250
26251 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26252 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26253 `static' attribute.
26254
26255 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26256 finding zpool from mount point into ...
26257 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26258
26259 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26260 requested path is part of a ZFS pool, use
26261 grub_find_zpool_from_mount_point() to detect its filesystem name,
26262 and generate a path with `/fsname@path' syntax.
26263
26264 2010-08-01 Robert Millan <rmh@gnu.org>
26265
26266 Prevent accidental use of uninitialized libzfs_handle.
26267
26268 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26269 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26270 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26271
26272 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26273
26274 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26275 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26276
26277 2010-08-01 Robert Millan <rmh@gnu.org>
26278
26279 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26280
26281 2010-07-31 Robert Millan <rmh@gnu.org>
26282
26283 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26284
26285 2010-07-31 Robert Millan <rmh@gnu.org>
26286
26287 * kern/emu/misc.c: Add missing license header.
26288
26289 2010-07-31 Robert Millan <rmh@gnu.org>
26290
26291 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26292
26293 * include/grub/util/libnvpair.h: Include `<config.h>'.
26294 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26295 declaring libnvpair prototypes ourselves.
26296 * include/grub/util/libzfs.h: Include `<config.h>'.
26297 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26298 declaring libzfs prototypes ourselves.
26299
26300 (libzfs_handle): Moved to ...
26301 * include/grub/util/misc.h (libzfs_handle): ... here.
26302 Include `<grub/util/libzfs.h>'.
26303
26304 2010-07-30 Robert Millan <rmh@gnu.org>
26305
26306 * include/grub/emu/misc.h: Add missing license header.
26307
26308 2010-07-30 Robert Millan <rmh@gnu.org>
26309
26310 Enable `grub-probe -t device' resolution on ZFS.
26311
26312 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26313 * include/grub/util/libnvpair.h: New file.
26314 * include/grub/util/libzfs.h: New file.
26315
26316 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26317 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26318 `<grub/util/libnvpair.h>'.
26319 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26320
26321 (find_mount_point_from_dir): New static function.
26322 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26323 function.
26324 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26325 find_root_device_from_libzfs() before ressorting to find_root_device().
26326
26327 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26328 prototype.
26329 * util/misc.c: Include `<grub/util/libzfs.h>'.
26330 (grub_util_init_libzfs): New function.
26331 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26332 [HAVE_LIBZFS] (fini_libzfs): New static function.
26333 (grub_util_init_libzfs): New function.
26334 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26335
26336 2010-07-30 Robert Millan <rmh@gnu.org>
26337
26338 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26339 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26340 `warn_unused_result' attribute.
26341 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26342 (grub_xasprintf, grub_xvasprintf): Likewise.
26343 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26344
26345 2010-07-29 Robert Millan <rmh@gnu.org>
26346
26347 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26348 (probe): Handle `PRINT_FS_LABEL'.
26349 (main): Handle `-t fs_label'.
26350
26351 2010-07-29 Robert Millan <rmh@gnu.org>
26352
26353 * configure.ac: Remove grub-mkisofs checks.
26354
26355 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26356
26357 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26358 Reported by: Lennart Sorensen.
26359
26360 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26361
26362 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26363 prior to terminal_input/terminal_output separation. It's been over 1.5
26364 years and those versions weren't widely deployed.
26365
26366 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26367
26368 * disk/raid.c (insert_array): Don't count named arrays when looking
26369 for unused array numbers.
26370 Reported and tested by: Michael Guntsche.
26371
26372 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26373
26374 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26375 implementation of this so that grub-emu links again, with a note
26376 that this should support hotplugging in the future.
26377
26378 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26379
26380 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26381
26382 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26383
26384 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26385 handle on failure.
26386 (grub_loopback_close): Remove empty function.
26387 (grub_loopback_dev): Remove close method.
26388
26389 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26390
26391 Disable EFI cursor when the EFI console becomes inactive.
26392
26393 * term/efi/console.c (grub_efi_console_init): New function.
26394 (grub_efi_console_fini): New function.
26395 (grub_console_term_output): Register init and fini methods.
26396
26397 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26398
26399 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26400 sh script.
26401
26402 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26403
26404 * disk/loopback.c (grub_loopback): Replace filename with file.
26405 (delete_loopback): Handle new semantics.
26406 (grub_cmd_loopback): Likewise.
26407 (grub_loopback_iterate): Likewise.
26408 (grub_loopback_close): Likewise.
26409
26410 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26411
26412 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26413 with -p "".
26414 Reported by: Tito Keitel.
26415
26416 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26417
26418 * docs/grub.texi (Naming convention): Document new naming convention.
26419
26420 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26421 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26422
26423 Generate device.map in something closer to the old ordering.
26424
26425 * util/deviceiter.c (struct device): New declaration.
26426 (compare_file_names): Rename to ...
26427 (compare_devices): ... this. Sort by kernel name in preference to
26428 the stable by-id name, but keep the latter as a fallback comparison.
26429 Update header comment.
26430 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26431 of `struct device' rather than of plain file names.
26432
26433 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26434
26435 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26436 on i386.
26437
26438 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26439
26440 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26441 hardcoding size.
26442 (setv1table): Likewise.
26443
26444 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26445
26446 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26447 removing the homehost if present.
26448 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26449 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26450 removing the homehost if present.
26451 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26452 if possible.
26453 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26454
26455 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26456 parameter. Set its pointer target to 0.
26457 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26458 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26459 `data_offset' value from the superblock for 1.x metadata.
26460 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26461 data on the device.
26462 (insert_array): Record the start sector of data on the device.
26463 (grub_raid_register): Pass start_sector parameters to
26464 grub_raid_list->detect and insert_array.
26465 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26466 member.
26467 (struct grub_raid): Add start_sector parameter to `detect'.
26468
26469 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26470 __attribute__ ((packed)), leaving a comment.
26471 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26472 (grub_mdraid_detect_09): ... here and ...
26473 (grub_mdraid_detect_1x): ... here.
26474
26475 2010-07-20 Peter Henn <peter.henn@web.de>
26476
26477 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26478 chunk size and disk size, which are already given as sector counts
26479 as distinct from the 0.90 units. Fetch the correct device number
26480 from the role table instead of using the table index.
26481
26482 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26483
26484 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26485 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26486 (WriteMostly1): New macro.
26487 Set array->name to NULL for metadata format 0.90. Add support for
26488 metadata 1.x. Fix some comments.
26489 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26490 few comments.
26491 * util/getroot.c (grub_util_get_grub_dev): Add support for
26492 /dev/md/name style devices.
26493
26494 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26495
26496 * .bzrignore: Ignore 20_linux_xen.
26497
26498 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26499
26500 * util/import_unicode.py: Remove unnecessary imports.
26501
26502 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26503
26504 Hotplugging and USB hub support.
26505
26506 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26507 (grub_ohci): Likewise.
26508 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26509 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26510 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26511 (GRUB_OHCI_CTRL_EDS): Likewise.
26512 (GRUB_OHCI_BULK_EDS): Likewise.
26513 (GRUB_OHCI_TDS): Likewise.
26514 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26515 (grub_ohci_ed_phys2virt): New function.
26516 (grub_ohci_virt_to_phys): Likewise.
26517 (grub_ohci_td_phys2virt): Likewise.
26518 (grub_ohci_td_virt2phys): Likewise.
26519 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26520 attachment.
26521 (grub_ohci_find_ed): New function.
26522 (grub_ohci_alloc_td): Likewise.
26523 (grub_ohci_free_td): Likewise.
26524 (grub_ohci_free_tds): Likewise.
26525 (grub_ohci_transfer): Use previously allocated memory.
26526 (grub_ohci_portstatus): Reset status changed bit.
26527 (grub_ohci_detect_dev): Supply status changed.
26528 (grub_ohci_fini_hw): Free memory.
26529 (grub_ohci_restore_hw): Reallocate memory.
26530 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26531 Reset status change.
26532 (grub_uhci_detect_dev): Supply status_change.
26533 * bus/usb/usb.c (attach_hooks): New var.
26534 (grub_usb_device_attach): New function.
26535 (grub_usb_register_attach_hook_class): Likewise.
26536 (grub_usb_unregister_attach_hook_class): Likewise.
26537 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26538 (grub_usb_add_hub): Reset connection changed bit.
26539 (attach_root_port): New function.
26540 (grub_usb_root_hub): Likewise.
26541 (poll_nonroot_hub): Likewise.
26542 (grub_usb_poll_devices): Likewise.
26543 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26544 * disk/usbms.c (grub_usbms_open): Use device hooks.
26545 (grub_usbms_iterate) :Poll devices.
26546 (grub_usbms_finddevs): Split into ...
26547 (grub_usbms_attach): ... this ...
26548 (grub_usbms_attach): ... and this.
26549 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26550 in detect_dev.
26551 (grub_usb_interface): New fields attached and detach_hook.
26552 (grub_usb_attach_hook_class): New type.
26553 (grub_usb_attach_desc): New struct.
26554 (grub_usb_register_attach_hook_class): New function.
26555 (grub_usb_unregister_attach_hook_class): Likewise.
26556 (grub_usb_poll_devices): Likewise.
26557 (grub_usb_device_attach): Likewise.
26558 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26559 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26560
26561 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26562
26563 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26564 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26565 delta determination style. Works with most NetBSD partitions too.
26566
26567 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26568
26569 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26570 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26571
26572 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26573
26574 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26575
26576 2010-07-14 Anton Blanchard <anton@samba.org>
26577
26578 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26579 ET_DYN files.
26580
26581 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26582
26583 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26584
26585 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26586
26587 * kern/partition.c (grub_partition_check_containment): New function to
26588 check that a partition is physically contained in a parent. Since
26589 offsets are relative (and non-negative), this reduces to checking that
26590 the partition ends before its parent.
26591 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26592 (grub_partition_iterate): Likewise.
26593 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26594 comments.
26595 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26596 partitions that start before their parent, and add debug printfs.
26597
26598 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26599
26600 * Makefile.in (.SUFFIX): Spell correctly, as ...
26601 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26602 bare module name without `.mod', e.g. `test') tried to invoke a
26603 Modula-2 compiler.
26604
26605 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26606
26607 * README: Point to the Info manual.
26608
26609 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26610
26611 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26612 2nd superblock position from partition size.
26613
26614 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26615
26616 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26617 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26618 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26619 outputs.
26620
26621 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26622
26623 Restructure SCSI .id handling.
26624 Reported and tested by: Aleš Nesrsta.
26625
26626 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26627 (grub_atapi_dev): Changed .name to "ata". New field .id.
26628 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26629 (grub_usbms_dev): New field .id.
26630 * disk/scsi.c (grub_scsi_iterate): Generate name.
26631 (grub_scsi_open): Parse name.
26632 * include/grub/scsi.h (grub_make_scsi_id): New function.
26633 (grub_scsi_dev): Change iterate and open to number instead of naming
26634 busses. All users updated.
26635 (grub_scsi): Remove name. Add .bus.
26636
26637 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26638
26639 * commands/help.c (grub_cmd_help): Fix a typo.
26640
26641 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26642
26643 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26644 Reported and tested by: Colin Watson.
26645
26646 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26647
26648 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26649 in this context.
26650
26651 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26652
26653 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26654
26655 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26656
26657 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26658 indentation.
26659
26660 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26661
26662 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26663 and disk/raid6_recover.c.
26664 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26665 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26666
26667 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26668
26669 * term/gfxterm.c (repaint_schedulded): Rename to ...
26670 (repaint_scheduled): ... this. Update all callers.
26671 (repaint_was_schedulded): Rename to ...
26672 (repaint_was_scheduled): ... this. Update all callers.
26673
26674 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26675
26676 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26677 which we expect to be handled by upper layers.
26678
26679 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26680
26681 * bus/usb/usbhub.c: #include time.h header.
26682
26683 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26684
26685 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26686 entry_name also for entries without stat blocks (e.g. ".."); fixes
26687 corruption of the first entry in a directory.
26688
26689 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26690
26691 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26692 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26693 doesn't work otherwise.
26694
26695 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26696
26697 * docs/grub.texi (Features): Update list of supported file systems.
26698 (GNU/Linux): Update for GRUB 2.
26699 (Serial terminal): Remove mention of --disable-serial, which was a
26700 GRUB Legacy configure option. Update instructions to use
26701 `terminal_input' and `terminal_output' rather than `terminal'.
26702 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26703 configuration' and `Installing GRUB using grub-install'.
26704 (Menu entry editor): Update for GRUB 2.
26705 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26706 Document new -a, -u, and -v options.
26707 (initrd): New section.
26708 (initrd16): New section.
26709 (linux): New section.
26710 (linux16): New section.
26711 (search): The `var' argument to `--set' is optional.
26712 (GRUB only offers a rescue shell): Go into a little more detail on
26713 drive ordering.
26714
26715 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26716
26717 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26718
26719 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26720
26721 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26722 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26723
26724 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26725
26726 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26727 install_prefix, in line with install_dos_part and install_bsd_part.
26728 Add new prefix variable, which is copied to install_prefix after
26729 comparing core.img in memory with the one read from disk in the
26730 no-embedding case, and use that rather than overwriting
26731 install_prefix immediately when installing to a partition.
26732 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26733 Bicakci.
26734
26735 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26736
26737 * configure.ac: Avoid == in test command, it's not portable.
26738 * util/grub.d/30_os-prober.in: Likewise.
26739
26740 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26741
26742 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26743
26744 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26745
26746 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26747 multiple (top-level) partmaps.
26748
26749 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26750
26751 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26752 Reported by: Tino Keitel.
26753
26754 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26755
26756 Bidi and diacritics support.
26757
26758 * Makefile.in (widthspec.bin): New target.
26759 (widthspec.h): Likewise.
26760 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26761 * autogen.sh: Generate unidata.c.
26762 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26763 * commands/ls.c (grub_ls_list_devices): Likewise.
26764 (grub_ls_list_files): Likewise.
26765 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26766 (grub_mini_cmd_lsmod): Likewise.
26767 * commands/read.c: Likewise.
26768 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26769 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26770 * lib/arg.c (grub_arg_show_help): Likewise.
26771 * lib/crypto.c (grub_password_get): Likewise.
26772 * normal/auth.c (grub_username_get): Likewise.
26773 * normal/misc.c (grub_normal_print_device_info): Likewise.
26774 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26775 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26776 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26777 (normal/charset.c_DEPENDENCIES): New variable.
26778 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26779 (pkglib_MODULES): Remove charset.mod.
26780 (charset_mod_SOURCES): Removed.
26781 (charset_mod_CFLAGS): Likewise.
26782 (charset_mod_LDFLAGS): Likewise.
26783 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26784 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26785 and term/tparm.c.
26786 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26787 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26788 (kernel_img_HEADERS): Add terminfo.h.
26789 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26790 Fill ->font. Reverse ascii bitmaps.
26791 (grub_font_get_xheight): New function.
26792 * font/font.c (grub_font_get_string_width): Moved from here ...
26793 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26794 * font/font.c (grub_font_draw_string): Moved from here ...
26795 * gfxmenu/font.c (grub_font_draw_string): ... here.
26796 * font/font.c (grub_font_dup_glyph): New function.
26797 (grub_font_blit_glyph): Likewise.
26798 (grub_font_blit_glyph_mirror): Likewise.
26799 (blit_comb): Likewise.
26800 (grub_font_construct_dry_run): Likewise.
26801 (grub_font_get_constructed_device_width): Likewise.
26802 (grub_font_construct_glyph): Likewise.
26803 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26804 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26805 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26806 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26807 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26808 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26809 (grub_font_get_xheight): New proto.
26810 (grub_font_get_constructed_device_width): Likewise.
26811 (grub_font_construct_glyph): Likewise.
26812 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26813 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26814 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26815 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26816 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26817 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26818 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26819 (grub_console_getcharwidth): Likewise.
26820 * include/grub/misc.h (grub_xputs): New proto.
26821 (grub_puts): Inlined.
26822 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26823 (grub_normal_get_line_counter): Removed.
26824 (grub_install_newline_hook): Likewise.
26825 (grub_normal_get_char_counter): New proto.
26826 (grub_normal_reset_more): Likewise.
26827 (grub_xputs_normal): Likewise.
26828 * include/grub/powerpc/ieee1275/console.h: Removed.
26829 * include/grub/sparc64/ieee1275/console.h: Likewise.
26830 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26831 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26832 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26833 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26834 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26835 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26836 (grub_term_input): Pass reference to self. All users updated.
26837 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26838 Pass reference to self. New fields normal_color, highlight_color and
26839 data. All users updated.
26840 (grub_putchar): Removed.
26841 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26842 (grub_unicode_estimate_width): New function.
26843 (grub_term_getcharwidth): Add defaults.
26844 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26845 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26846 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26847 (grub_cls): Remove EXPORT_FUNC.
26848 (grub_setcolorstate): Inline.
26849 (grub_newline_hook): Removed.
26850 * include/grub/terminfo.h: Rewritten. All users updated.
26851 * include/grub/unicode.h: New file.
26852 * include/grub/video.h (grub_video_signed_rect): New type.
26853 * kern/emu/console.c (grub_console_highlight_color): Removed.
26854 (grub_console_normal_color): Likewise.
26855 (grub_console_standard_color): Made static.
26856 (grub_ncurses_putchar): Remove mapping.
26857 (grub_ncurses_getcharwidth): Removed.
26858 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26859 (grub_ncurses_setcolor): Removed.
26860 (grub_ncurses_getcolor): Likewise.
26861 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26862 (grub_console_putchar): ... this.
26863 (grub_console_putchar): Handle argument difference.
26864 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26865 console_init_early and console_init_lately.
26866 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26867 * kern/misc.c (grub_puts): Removed.
26868 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26869 (grub_vsnprintf_real): Remove str = NULL support.
26870 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26871 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26872 * kern/term.c (grub_putcode): Renamed to ...
26873 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26874 (grub_putchar): Removed.
26875 (grub_xputs_dumb): New function.
26876 (grub_xputs): New variable.
26877 * lib/charset.c: Move from here ...
26878 * normal/charset.c: ... to here.
26879 (grub_ucs4_to_utf8): New function.
26880 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26881 (join_types): New variable.
26882 (unpack_join): New function.
26883 (bidi_types): New variable.
26884 (unpack_bidi): New function.
26885 (get_bidi_type): Likewise.
26886 (get_join_type): Likewise.
26887 (is_mirrored): Likewise.
26888 (grub_unicode_get_comb_type): Likewise.
26889 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26890 (is_type_after): Likewise.
26891 (grub_unicode_aglomerate_comb): Likewise.
26892 (bidi_line_wrap): Likewise.
26893 (grub_bidi_line_logical_to_visual): Likewise.
26894 (grub_bidi_logical_to_visual): Likewise.
26895 (grub_unicode_mirror_code): Likewise.
26896 (grub_unicode_shape_code): Likewise.
26897 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26898 Don't use grub_putchar.
26899 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26900 (grub_normal_reader_init): Likewise.
26901 (grub_xputs_saved): New variable.
26902 (GRUB_MOD_INIT): Set grub_xputs.
26903 (GRUB_MOD_FINI): Restore grub_xputs.
26904 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26905 (menu_init): Avoid printing gfxmenu error.
26906 (show_menu): Use grub_normal_get_char_counter.
26907 * normal/menu_entry.c (update_screen): Fix out-of-array.
26908 (complete): Avoid NULL dereferencing.
26909 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26910 * normal/menu_text.c (print_spaces): Removed.
26911 (grub_print_ucs4): Likewise.
26912 (grub_print_message_indented): Use grub_print_ucs4.
26913 (print_message): Use grub_putcode.
26914 (print_entry): Hanlde diacritics.
26915 * normal/term.c (term_state): New type.
26916 (grub_more_lines): Removed.
26917 (term_states): New variable.
26918 (grub_normal_line_counter): Renamed to ..
26919 (grub_normal_char_counter): ...this. All users updated.
26920 (grub_normal_get_line_counter): Renamed to ...
26921 (grub_normal_get_char_counter): ... this.
26922 (grub_normal_reset_more): New function.
26923 (process_newline): Removed.
26924 (print_more): New function.
26925 (grub_install_newline_hook): Removed.
26926 (map_code): New function.
26927 (grub_puts_terminal): Use grub_print_ucs4.
26928 (putglyph): New function.
26929 (putcode_real): Likewise.
26930 (grub_putcode): Use putcode_real.
26931 (get_maxwidth): New function.
26932 (get_startwidth): Likewise.
26933 (print_ucs4_terminal): Likewise.
26934 (find_term_state): Likewise.
26935 (put_glyphs_terminal): Likewise.
26936 (print_backlog): Likewise.
26937 (print_ucs4_real): Likewise.
26938 (grub_print_ucs4): Likewise.
26939 (grub_xputs_normal): Likewise.
26940 * term/efi/console.c (grub_console_putchar): Output diacritics.
26941 (grub_console_getcharwidth): Removed.
26942 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26943 * term/gfxterm.c (clear_char): Free chars.
26944 (scroll_up): Avoid leaking memory.
26945 (grub_gfxterm_putchar): Support diacritics.
26946 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26947 * term/i386/pc/console.c (grub_console_term_output): Declare as
26948 GRUB_TERM_CODE_TYPE_VGA.
26949 * term/i386/pc/vga.c (grub_vga_term): Declare as
26950 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26951 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26952 GRUB_TERM_CODE_TYPE_VGA.
26953 * term/i386/vga_common.c (map_char): Removed.
26954 (grub_console_putchar): Likewise.
26955 (grub_console_getcharwidth): Likewise.
26956 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26957 (colors): Reordered to match terminfo.
26958 (grub_ofconsole_normal_color): Removed.
26959 (grub_ofconsole_writeesc): Likewise.
26960 (grub_ofconsole_highlight_color): Likewise.
26961 (grub_ofconsole_getcharwidth): Likewise.
26962 (grub_ofconsole_setcolorstate): Likewise.
26963 (grub_ofconsole_setcolor): Likewise.
26964 (grub_ofconsole_getcolor): Likewise.
26965 (grub_ofconsole_readkey): Renamed to ...
26966 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26967 key.
26968 (grub_ofconsole_checkkey): Removed.
26969 (grub_ofconsole_getkey): Likewise.
26970 (grub_ofconsole_getxy): Likewise.
26971 (grub_ofconsole_gotoxy): Likewise.
26972 (grub_ofconsole_cls): Likewise.
26973 (grub_ofconsole_refresh): Likewise.
26974 (grub_ofconsole_terminfo_input): New struct.
26975 (grub_ofconsole_terminfo_output): Likewise.
26976 (grub_ofconsole_term_input): Use terminfo.
26977 (grub_ofconsole_term_output): Likewise.
26978 (grub_console_init): Split into ...
26979 (grub_console_init_early): ...this and ...
26980 (grub_console_init_lately): ...this. Use terminfo.
26981 (grub_ofconsole_putchar): Renamed to ...
26982 (put): ... this. Remove mapping.
26983 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26984 * term/serial.c: Simplify using terminfo.
26985 (xpos): Removed.
26986 (ypos): Likewise.
26987 (keep_track): Likewise.
26988 (registered): Likewise.
26989 (input_buf): Likewise.
26990 (npending): Likewise.
26991 (serial_translate_key_sequence): Likewise.
26992 (fill_input_buf): Likewise.
26993 (grub_serial_checkkey): Likewise.
26994 (grub_serial_getkey): Likewise.
26995 (grub_serial_getxy): Likewise.
26996 (grub_serial_gotoxy): Likewise.
26997 (grub_serial_putchar): Likewise.
26998 (grub_serial_cls): Likewise.
26999 (grub_serial_setcolorstate): Likewise.
27000 (grub_serial_setcursor): Likewise.
27001 (serial_hw_init): Use serial_hw_fetch.
27002 (grub_serial_terminfo_input): New variable.
27003 (grub_serial_terminfo_output): Likewise.
27004 (grub_serial_term_input): Use terminfo.
27005 (grub_serial_term_output): Likewise.
27006 * term/terminfo.c (putstr): Use put.
27007 (grub_terminfo_all_free): New function
27008 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27009 (grub_terminfo_output_register): New function.
27010 (grub_terminfo_output_unregister): Likewise.
27011 (grub_terminfo_getxy): Likewise.
27012 (grub_terminfo_readkey): Likewise.
27013 (grub_terminfo_checkkey): Likewise.
27014 (grub_terminfo_getkey): Likewise.
27015 (grub_terminfo_input_init): Likewise.
27016 (print_terminfo): Likewise.
27017 (grub_cmd_terminfo): Handle encoding.
27018 (grub_terminfo_gotoxy): Track position.
27019 (grub_terminfo_cls): Likewise.
27020 (grub_terminfo_putchar): Likewise.
27021 (grub_terminfo_setcolorstate): Handle colors
27022 (grub_terminfo_cursor_on): This ...
27023 (grub_terminfo_cursor_off): ... and this merged into ...
27024 (grub_terminfo_setcursor): ... this.
27025 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27026 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27027 * unicode/BidiMirroring.txt: Likewise.
27028 * unicode/UnicodeData.txt: Likewise.
27029 * unicode/COPYING: Likewise.
27030 * util/grub-editenv.c (grub_putchar): Removed.
27031 (grub_xputs_real): New function.
27032 (grub_xputs): New variable.
27033 * util/grub-fstest.c (grub_putchar): Removed.
27034 (grub_xputs_real): New function.
27035 (grub_xputs): New variable.
27036 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27037 (grub_xputs_real): New function.
27038 (grub_xputs): New variable.
27039 * util/grub-probe.c (grub_putchar): Removed.
27040 (grub_xputs_real): New function.
27041 (grub_xputs): New variable.
27042 * util/grub-script-check.c (grub_putchar): Removed.
27043 (grub_xputs_real): New function.
27044 (grub_xputs): New variable.
27045 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27046 (grub_xputs_real): New function.
27047 (grub_xputs): New variable.
27048 * util/import_unicode.py: New file.
27049 * util/grub-mkfont.c (ft_errmsgs): New array.
27050 (grub_glyph_info): Make bitmap a pointer.
27051 (file_formats): New type WIDTH_SPEC.
27052 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27053 (options): Add width-spec.
27054 (help): Likewise.
27055 (add_char): Renamed to ...
27056 (add_glyph): ... this.
27057 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27058 (glyph_replace): New type.
27059 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27060 (add_char): New function.
27061 (add_subst): Likewise.
27062 (process_cursive): Likewise.
27063 (add_font): Handle GSUB.
27064 (write_font_width_spec): New function.
27065 (main): Sort glyphs.
27066 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27067 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27068 * kern/term.c (grub_cls): Moved from here...
27069 * normal/term.c (grub_cls): ... here.
27070
27071 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27072
27073 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27074 suitable for using within the format argument of printf when
27075 converting grub_size_t.
27076 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27077 "x" to convert grub_size_t arguments.
27078
27079 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27080
27081 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27082 too long captions.
27083 (list_get_minimal_size): Take selection box into account.
27084
27085 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27086
27087 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27088 NULL font.
27089
27090 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27091
27092 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27093 devices when iterating over /dev/disk/by-id; they will be handled
27094 later if appropriate, which they aren't always (e.g. LVM).
27095
27096 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27097
27098 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27099 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27100 fails.
27101 (grub_halt): Likewise.
27102 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27103 reset-all fails.
27104 (grub_halt): Don't return, even if all of shut-down, power-off, and
27105 poweroff fail.
27106
27107 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27108
27109 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27110 arguments, not three.
27111
27112 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27113
27114 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27115 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27116 LVM-on-RAID is handled correctly.
27117
27118 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27119
27120 * docs/grub.texi (Changes from GRUB Legacy): New section.
27121 (Future): Fix typo.
27122
27123 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27124
27125 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27126 grub.d/README accidentally ends up executable for one reason or
27127 another. Ignore it.
27128
27129 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27130
27131 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27132 (gpt_partition_map_iterate): Support non-512B sectors.
27133
27134 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27135
27136 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27137 Tested by: Seth Goldberg.
27138
27139 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27140
27141 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27142 Properly align mbi.
27143 Reported by: Seth Goldberg.
27144
27145 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27146
27147 * util/grub-mkrescue.in: Avoid module duplication.
27148
27149 2010-07-01 Sean Finney <seanius@seanius.net>
27150
27151 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27152
27153 2010-07-01 Sean Finney <seanius@seanius.net>
27154
27155 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27156
27157 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27158
27159 * disk/lvm.c (grub_lvm_checkvalue): New function.
27160 (grub_lvm_check_flag): Likewise.
27161
27162 2010-07-01 Robert Millan <rmh@gnu.org>
27163
27164 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27165 Support 'p' as partition separator on kernel of FreeBSD (used
27166 with GPT labels).
27167 (grub_util_biosdisk_get_grub_dev): Likewise.
27168
27169 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27170
27171 Yeeloong firmware port.
27172
27173 * boot/mips/yeeloong/fwstart.S: New file.
27174 * bus/cs5536.c (gpiodump): New const.
27175 (set_io_space): New function.
27176 (set_iod): Likewise.
27177 (set_p2d): Likewise.
27178 (grub_cs5536_init_geode): Likewise.
27179 * commands/mips/yeeloong/lsspd.c: New file.
27180 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27181 (serial_mod_SOURCES): New variable.
27182 (serial_mod_CFLAGS): Likewise.
27183 (serial_mod_LDFLAGS): Likewise.
27184 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27185 term/terminfo.c and term/tparm.c.
27186 (pkglib_IMAGES): Add fwstart.img.
27187 (fwstart_img_SOURCES): New variable.
27188 (fwstart_img_CFLAGS): Likewise.
27189 (fwstart_img_ASFLAGS): Likewise.
27190 (fwstart_img_LDFLAGS): Likewise.
27191 (fwstart_img_FORMAT): Likewise.
27192 (pkglib_MODULES): Add lsspd.mod.
27193 (lsspd_mod_SOURCES): New variable.
27194 (lsspd_mod_CFLAGS): Likewise.
27195 (lsspd_mod_LDFLAGS): Likewise.
27196 (pkglib_MODULES): Add halt.mod.
27197 (halt_mod_SOURCES): New variable.
27198 (halt_mod_CFLAGS): Likewise.
27199 (halt_mod_LDFLAGS): Likewise.
27200 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27201 (serial_mod_SOURCES): Removed.
27202 (serial_mod_CFLAGS): Likewise.
27203 (serial_mod_LDFLAGS): Likewise.
27204 * disk/ata.c (check_device): New function.
27205 (grub_ata_device_initialize): Use check_device.
27206 (grub_ata_iterate): Recheck devices.
27207 (grub_ata_open): Likewise.
27208 (grub_atapi_iterate): Likewise.
27209 (grub_atapi_open): Likewise.
27210 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27211 (GRUB_ATA_CH1_PORT1): Likewise.
27212 (GRUB_ATA_CH0_PORT2): Likewise.
27213 (GRUB_ATA_CH1_PORT2): Likewise.
27214 * include/grub/mips/loongson.h: New file.
27215 * include/grub/mips/yeeloong/ec.h: Likewise.
27216 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27217 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27218 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27219 * include/grub/misc.h (grub_halt): Declare as noreturn.
27220 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27221 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27222 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27223 (UART_ENABLE_DTRRTS): Likewise.
27224 (UART_ENABLE_MODEM): Removed.
27225 (UART_ENABLE_OUT2): New const.
27226 * include/grub/term.h (grub_term_register_input_active): New function.
27227 (grub_term_register_output_active): Likewise.
27228 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27229 argument.
27230 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27231 (init_pci): New function.
27232 (grub_machine_init): Execute platform init when firmware. Init serial.
27233 (grub_halt): Implement.
27234 (grub_exit): Likewise.
27235 (grub_reboot): Likewise.
27236 * term/serial.c (serial_hw_init): Update macros.
27237 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27238 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27239 (image_targets): New target mipsel-yeeloong-flash.
27240 (generate_image): Support IMAGE_YEELOONG_FLASH.
27241 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27242 (grub_video_sm712_setup): Init card.
27243 (grub_video_sm712_set_palette): Removed.
27244 * video/sm712_init.c: New file.
27245
27246 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27247
27248 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27249 PATH when running help2man and then run it on the unadorned
27250 executable names, rather than passing $(builddir)/* paths to
27251 help2man. This avoids the build directory ending up in generated
27252 manual pages.
27253
27254 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27255
27256 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27257 to avoid accidents when debugging with 'sh -x'.
27258 * util/grub-mkrescue.in: Likewise.
27259 * util/grub.d/00_header.in: Likewise.
27260 * util/grub.d/10_hurd.in: Likewise.
27261 * util/grub.d/10_kfreebsd.in: Likewise.
27262 * util/grub.d/10_linux.in: Likewise.
27263 * util/grub.d/10_netbsd.in: Likewise.
27264 * util/grub.d/10_windows.in: Likewise.
27265 * util/grub.d/20_linux_xen.in: Likewise.
27266 * util/grub.d/30_os-prober.in: Likewise.
27267 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27268
27269 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27270
27271 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27272 last character in the buffer.
27273 Reported by: Vladimir Serbinenko.
27274
27275 2010-06-29 Robert Millan <rmh@gnu.org>
27276
27277 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27278 (Command-line and menu entry commands): Document `badram' command.
27279
27280 2010-06-28 Robert Millan <rmh@gnu.org>
27281
27282 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27283 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27284 command using ${GRUB_BADRAM} as parameter.
27285
27286 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27287
27288 * docs/grub.texi (Device map): New section.
27289 (Themes): New section (stub).
27290 * Makefile.in (docs/grub.info): The info documentation now builds
27291 without errors. Make sure it stays that way.
27292
27293 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27294
27295 Use normal parser for menu entries.
27296 Reported by: Thomas Frauendorfer
27297
27298 * include/grub/parser.h (grub_parser_execute): Don't export.
27299 * normal/menu.c (grub_menu_execute_entry_real): New function.
27300 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27301
27302 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27303
27304 * docs/grub.texi (Embedded configuration): New section (replacing
27305 old "Preset Menu" stub).
27306 (Images): New section.
27307 (configfile): Note that any menu entries defined in `file' are shown
27308 immediately.
27309
27310 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27311
27312 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27313
27314 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27315
27316 * util/grub-install.in: Add --debug-image= option.
27317
27318 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27319
27320 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27321 possible on Linux.
27322
27323 * util/deviceiter.c (check_device): Rename to ...
27324 (check_device_readable_unique): ... this. Update all callers.
27325 Maintain and check a list of which devices (by canonicalized name)
27326 have already been seen.
27327 (clear_seen_devices): New function.
27328 (compare_file_names) [__linux__]: New function.
27329 (grub_util_iterate_devices): Clear the list of seen devices on exit
27330 and (just in case) on entry.
27331 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27332 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27333 seen-devices list, superseded by general code in check_device.
27334
27335 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27336
27337 * commands/cat.c (options): New variable.
27338 (grub_cmd_cat): Parse options. If the --dos option is given, print
27339 DOS-style "\r\n" line endings as simple newlines (Debian bug
27340 #586358).
27341 (GRUB_MOD_INIT): Use extcmd.
27342 (GRUB_MOD_FINI): Likewise.
27343 * docs/grub.texi (cat): Document --dos.
27344
27345 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27346
27347 XEN with Linux grub-mkconfig support.
27348
27349 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27350 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27351 GRUB_CMDLINE_XEN_DEFAULT.
27352 * util/grub.d/20_linux_xen.in: New file.
27353
27354 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27355
27356 Initialise VGA video on qemu ourselves.
27357
27358 * boot/i386/qemu/boot.S: Don't call 0xc000.
27359 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27360 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27361 (kernel_img_HEADERS): Add pci.h.
27362 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27363 * configure.ac: Force unifont on qemu and yeeloong.
27364 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27365 (grub_vga_palette_write): Use correct register.
27366 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27367 Call grub_qemu_init_cirrus.
27368 * kern/i386/qemu/init.c: New file.
27369 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27370
27371 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27372
27373 2010-06-26 Pavel Roskin <proski@gnu.org>
27374
27375 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27376 13.
27377
27378 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27379
27380 * docs/grub.texi (Simple configuration): Explain that
27381 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27382 set to `true' to disable their respective recovery entries, not
27383 merely set.
27384
27385 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27386
27387 Make the `source' command slightly faster.
27388
27389 * normal/main.c (grub_normal_execute): Don't re-read list files when
27390 nested.
27391
27392 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27393
27394 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27395 field position and mask size to red fields from mode_info, not
27396 green.
27397 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27398 Remove redundant tag->common.framebuffer_type assignment.
27399 Reported by: Seth Goldberg.
27400
27401 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27402
27403 Sync up other versions of the Linux loader with Robert Millan's
27404 change of 2010-01-09, "Make loader output a bit more user-friendly".
27405
27406 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27407 grub_dprintf().
27408 (grub_cmd_linux): Likewise.
27409 (grub_cmd_initrd): Likewise.
27410 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27411 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27412
27413 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27414
27415 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27416 larger than MEMORY_MAP_SIZE.
27417
27418 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27419
27420 Fix parallel build.
27421
27422 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27423 dependency.
27424 * script/parser.y: #include grub_script.tab.h header.
27425
27426 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27427
27428 Support >3GiB and <16MiB RAM in i386-qemu.
27429
27430 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27431 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27432 (grub_lower_mem): Removed.
27433 (grub_upper_mem): Likewise.
27434 (mem_size): Made static.
27435 (above_4g): New variable.
27436 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27437 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27438 support.
27439
27440 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27441
27442 Cirrus 5446 and Bochs video cards support.
27443
27444 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27445 video_bochs.mod
27446 (video_cirrus_mod_SOURCES): New variable.
27447 (video_cirrus_mod_CFLAGS): Likewise.
27448 (video_cirrus_mod_LDFLAGS): Likewise.
27449 (video_bochs_mod_SOURCES): Likewise.
27450 (video_bochs_mod_CFLAGS): Likewise.
27451 (video_bochs_mod_LDFLAGS): Likewise.
27452 * include/grub/vga.h: New file.
27453 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27454 (grub_video_fb_set_page_t): New type.
27455 (grub_video_fb_setup): New prototype.
27456 (grub_video_fb_swap_buffers): Likewise.
27457 (grub_video_fb_get_info_and_fini): Likewise.
27458 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27459 (CRTC_DATA_PORT): Likewise.
27460 (CRTC_CURSOR): Likewise.
27461 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27462 (CRTC_CURSOR_ADDR_LOW): Likewise.
27463 (CRTC_CURSOR_DISABLE): Likewise.
27464 (update_cursor): Use grub_vga_cr_write.
27465 (grub_vga_text_setcursor): Likewise.
27466 * video/bochs.c: New file.
27467 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27468 (palette): Likewise.
27469 (palette_size): Likewise.
27470 (framebuffer): New variable.
27471 (grub_video_fb_init): Use 'framebuffer'.
27472 (grub_video_fb_fini): Likewise.
27473 (grub_video_fb_get_info): Likewise.
27474 (grub_video_fb_get_palette): Likewise.
27475 (grub_video_fb_set_palette): Likewise.
27476 (grub_video_fb_set_viewport): Likewise.
27477 (grub_video_fb_get_viewport): Likewise.
27478 (grub_video_fb_map_color): Likewise.
27479 (grub_video_fb_map_rgb): Likewise.
27480 (grub_video_fb_map_rgba): Likewise.
27481 (grub_video_fb_unmap_color): Likewise.
27482 (grub_video_fb_unmap_color_int): Likewise.
27483 (grub_video_fb_fill_rect): Likewise.
27484 (grub_video_fb_blit_bitmap): Likewise.
27485 (grub_video_fb_blit_render_target): Likewise.
27486 (grub_video_fb_scroll): Likewise.
27487 (grub_video_fb_create_render_target): Likewise.
27488 (grub_video_fb_doublebuf_blit_init): Likewise.
27489 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27490 (doublebuf_pageflipping_update_screen): New function.
27491 (doublebuf_pageflipping_init): Likewise.
27492 (grub_video_fb_setup): Likewise.
27493 (grub_video_fb_swap_buffers): Likewise.
27494 (grub_video_fb_get_info_and_fini): Likewise.
27495 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27496 All users updated.
27497 (doublebuf_pageflipping_commit): Restructured into ...
27498 (doublebuf_pageflipping_set_page): ... this.
27499 (doublebuf_pageflipping_update_screen): Removed.
27500 (doublebuf_pageflipping_init): Likewise.
27501 (double_buffering_init): Likewise.
27502 (grub_video_vbe_setup): Use grub_video_fb_setup.
27503 (grub_video_vbe_swap_buffers): Removed.
27504 (grub_video_vbe_set_active_render_target): Likewise.
27505 (grub_video_vbe_get_active_render_target): Likewise.
27506 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27507 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27508 grub_video_fb_set_active_render_target and
27509 grub_video_fb_get_active_render_target.
27510 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27511 (SEQUENCER_DATA_PORT): Likewise.
27512 (MAP_MASK_REGISTER): Likewise.
27513 (CRTC_ADDR_PORT): Likewise.
27514 (CRTC_DATA_PORT): Likewise.
27515 (START_ADDR_HIGH_REGISTER): Likewise.
27516 (START_ADDR_LOW_REGISTER): Likewise.
27517 (GRAPHICS_ADDR_PORT): Likewise.
27518 (GRAPHICS_DATA_PORT): Likewise.
27519 (READ_MAP_REGISTER): Likewise.
27520 (INPUT_STATUS1_REGISTER): Likewise.
27521 (INPUT_STATUS1_VERTR_BIT): Likewise.
27522 (get_map_mask): Use grub_vga_sr_read.
27523 (set_map_mask): Use grub_vga_sr_write.
27524 (set_read_map): Use grub_vga_gr_write.
27525 (set_start_address): Use grub_vga_cr_write.
27526 * video/sm712.c (framebuffer): Remove leftover fields.
27527
27528 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27529
27530 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27531 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27532 instead. Replace the gfxterm backend check with a check that
27533 ${GRUB_PREFIX}/video.lst is non-empty.
27534 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27535 again.
27536 (load_video): New generated function. Call it before loading
27537 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27538 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27539 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27540 * docs/grub.texi (Simple configuration): Document
27541 GRUB_VIDEO_BACKEND.
27542
27543 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27544
27545 Use video functions in linux and xnu loaders.
27546
27547 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27548 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27549 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27550 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27551 loader/i386/pc/linux.c.
27552 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27553 (find_line_len): Removed.
27554 (find_framebuf): Likewise.
27555 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27556 * loader/i386/efi/xnu.c: Removed.
27557 * loader/i386/pc/xnu.c: Moved from here...
27558 * loader/i386/xnu.c: ...here.
27559
27560 Enable priorities in video drivers.
27561
27562 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27563 (grub_video_adapter): New field prio.
27564 (grub_video_register): Respect prio when inserting.
27565 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27566 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27567 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27568 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27569 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27570 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27571 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27572
27573 Fix SDL driver ID.
27574
27575 * include/grub/video.h (grub_video_driver_id_t): New value
27576 GRUB_VIDEO_DRIVER_SDL.
27577 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27578
27579 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27580
27581 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27582 argument to printf.
27583 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27584
27585 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27586
27587 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27588 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27589
27590 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27591
27592 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27593 directly, and recommend grub-install instead.
27594 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27595
27596 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27597
27598 Fix i386-pc prefix handling with nested partitions (Debian bug
27599 #585068). Note that the case where the core image is booted using
27600 multiboot and relocated from its original location still requires
27601 more work.
27602
27603 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27604 with "(,", fill the boot drive in between those two characters, but
27605 expect that a full partition specification including partition map
27606 names will follow.
27607 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27608 specified, write a prefix without the drive name but including a
27609 full partition specification.
27610
27611 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27612
27613 * util/grub-mkconfig.in: Ignore non-option arguments, for
27614 compatibility with older versions (before 2010-06-12) which did the
27615 same. In particular, this makes it easier to ship an update-grub
27616 wrapper which is compatible with that used with GRUB Legacy (Debian
27617 bug #586056).
27618
27619 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27620
27621 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27622 for manual page generation.
27623
27624 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27625
27626 * po/POTFILES: Remove leftover commands/handler.c.
27627
27628 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27629
27630 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27631 left this script non-functional.
27632
27633 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27634
27635 * docs/man/grub-emu.h2m: New file.
27636
27637 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27638
27639 * docs/grub.texi (Commands): Document reduced command set in rescue
27640 mode.
27641 (cpuid): New section.
27642
27643 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27644
27645 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27646 new partition naming style.
27647 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27648
27649 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27650
27651 Add "-o grub.iso" like cmdline options support.
27652
27653 * util/grub-install.in: Improve cmdline option parsing.
27654 * util/grub-mkconfig.in: Likewise.
27655 * util/grub-mkrescue.in: Likewise.
27656 * util/grub-reboot.in: Likewise.
27657 * util/grub-set-default.in: Likewise.
27658 * util/i386/efi/grub-install.in: Likewise.
27659 * util/ieee1275/grub-install.in: Likewise.
27660 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27661
27662 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27663
27664 * .bzrignore: Ignore 41_custom.
27665
27666 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27667
27668 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27669
27670 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27671
27672 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27673 prototype declarations.
27674
27675 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27676 generating fs, partmap, and video lists.
27677 * include/grub/fs.h (grub_fs_register): Omit prototype if
27678 GRUB_LST_GENERATOR is defined.
27679 * include/grub/partition.h (grub_partition_map_register): Likewise.
27680 * include/grub/video.h (grub_video_register): Likewise.
27681
27682 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27683
27684 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27685
27686 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27687
27688 * util/grub-mkrescue.in: Support --xorriso argument.
27689
27690 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27691
27692 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27693 Suggested by: Thomas Schmitt.
27694
27695 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27696
27697 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27698 Suggested by: Thomas Schmitt.
27699
27700 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27701
27702 custom.cfg support.
27703
27704 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27705 * util/grub.d/41_custom.in: New file.
27706
27707 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27708
27709 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27710 been merged back into normal.
27711
27712 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27713
27714 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27715 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27716
27717 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27718
27719 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27720 when generating manual pages.
27721 * docs/man/grub-bin2h.h2m: New file.
27722 * docs/man/grub-editenv.h2m: New file.
27723 * docs/man/grub-fstest.h2m: New file.
27724 * docs/man/grub-install.h2m: New file.
27725 * docs/man/grub-macho2img.h2m: New file.
27726 * docs/man/grub-mkconfig.h2m: New file.
27727 * docs/man/grub-mkdevicemap.h2m: New file.
27728 * docs/man/grub-mkfont.h2m: New file.
27729 * docs/man/grub-mkimage.h2m: New file.
27730 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27731 * docs/man/grub-mkrelpath.h2m: New file.
27732 * docs/man/grub-mkrescue.h2m: New file.
27733 * docs/man/grub-ofpathname.h2m: New file.
27734 * docs/man/grub-pe2elf.h2m: New file.
27735 * docs/man/grub-probe.h2m: New file.
27736 * docs/man/grub-reboot.h2m: New file.
27737 * docs/man/grub-script-check.h2m: New file.
27738 * docs/man/grub-set-default.h2m: New file.
27739 * docs/man/grub-setup.h2m: New file.
27740
27741 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27742
27743 Use FOR_* macros instead of *_iterate whenever possible.
27744
27745 * commands/handler.c: Removed.
27746 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27747 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27748 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27749 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27750 (grub_probe_SOURCES): Remove kern/parser.c.
27751 (util/grub-script-check.c_DEPENDENCIES): Removed.
27752 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27753 and grub_script_check_init.c.
27754 (grub_script_check_init.lst): Removed.
27755 (grub_script_check_init.h): Likewise.
27756 (grub_script_check_init.c): Likewise.
27757 (pkglib_MODULES): Remove handler.mod and sh.mod.
27758 (handler_mod_SOURCES): Removed.
27759 (handler_mod_CFLAGS): Likewise.
27760 (handler_mod_LDFLAGS): Likewise.
27761 (normal_mod_SOURCES): Remove normal/handler.c.
27762 Add script/main.c, script/script.c, script/execute.c,
27763 script/function.c, script/lexer.c, grub_script.tab.c
27764 and grub_script.yy.c.
27765 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27766 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27767 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27768 (grub_setup_SOURCES): Remove kern/parser.c.
27769 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27770 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27771 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27772 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27773 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27774 (grub_setup_SOURCES): Remove kern/parser.c.
27775 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27776 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27777 * include/grub/command.h (grub_command_iterate): Removed.
27778 (FOR_COMMANDS): New macro.
27779 * include/grub/dl.h (grub_dl): New member next.
27780 (grub_dl_iterate): Removed.
27781 (grub_dl_head): New variable declaration.
27782 (FOR_DL_MODULES): New macro.
27783 * include/grub/fs.h: Include list.h.
27784 (grub_fs): Make next first element.
27785 (grub_fs_list): New variable declaration.
27786 (grub_fs_register): Make inline.
27787 (grub_fs_unregister): Likewise.
27788 (grub_fs_iterate): Removed.
27789 (FOR_FILESYSTEMS): New macro.
27790 * include/grub/handler.h: Removed.
27791 * include/grub/list.h (grub_list_hook_t): Removed.
27792 (grub_list_test_t): Likewise.
27793 (grub_list_pop): Likewise.
27794 (grub_list_iterate): Likewise.
27795 (grub_list_insert): Likewise.
27796 (FOR_LIST_ELEMENTS): New macro.
27797 * include/grub/parser.h (grub_parser_class): Removed.
27798 (grub_parser_register): Likewise.
27799 (grub_parser_unregister): Likewise.
27800 (grub_parser_get_current): Likewise.
27801 (grub_parser_set_current): Likewise.
27802 (grub_register_rescue_parser): Likewise.
27803 (grub_rescue_parse_line): New function.
27804 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27805 * include/grub/script_sh.h (grub_script_function_list): New variable
27806 declaration.
27807 (FOR_SCRIPT_FUNCTIONS): New macro.
27808 (grub_script_function_iterate): Removed.
27809 (grub_normal_parse_line): New prototype.
27810 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27811 (FOR_DISABLED_TERM_INPUTS): Likewise.
27812 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27813 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27814 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27815 element.
27816 (grub_video_register): Inline.
27817 (grub_video_unregister): Likewise.
27818 (grub_video_adapter_list): New variable declaration.
27819 (grub_video_iterate): Removed.
27820 (FOR_VIDEO_ADAPTERS): New macro.
27821 * kern/dl.c (grub_dl_list): Removed. All users updated.
27822 (grub_dl_iterate): Removed.
27823 * kern/fs.c (grub_fs_list): Make global.
27824 (grub_fs_register): Removed.
27825 (grub_fs_unregister): Likewise.
27826 (grub_fs_iterate): Likewise.
27827 * kern/handler.c: Removed.
27828 * kern/list.c (grub_list_pop): Removed.
27829 (grub_list_iterate): Likewise.
27830 (grub_list_insert): Likewise.
27831 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27832 (grub_prio_list_insert): Don't use grub_list_insert.
27833 * kern/main.c (grub_register_rescue_parser): Don't call
27834 grub_register_rescue_parser.
27835 * kern/parser.c (grub_parser_class): Removed.
27836 (grub_parser_execute): Use grub_rescue_parse_line.
27837 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27838 (grub_rescue_parser): Removed.
27839 (grub_register_rescue_parser): Likewise.
27840 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27841 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27842 (grub_auth_check_authentication): Likewise.
27843 * normal/completion.c (iterate_command): Removed.
27844 (grub_normal_do_completion): Use FOR_COMMANDS.
27845 * normal/handler.c: Removed.
27846 * normal/main.c (read_config_file): Remove parser changing.
27847 (grub_normal_execute): Don't call read_handler_list.
27848 (grub_normal_read_line_real): Statically allocate prompt.
27849 (grub_cmdline_run): Use grub_normal_parse_line.
27850 (GRUB_MOD_FINI): Don't call free_handler_list.
27851 * normal/menu_entry.c (run): Likewise.
27852 * script/function.c (grub_script_function_list): Make global.
27853 (grub_script_function_iterate): Removed.
27854 * script/main.c (grub_normal_parse_line): Make global.
27855 (grub_sh_parser): Removed.
27856 (GRUB_MOD_INIT): Likewise.
27857 (GRUB_MOD_FINI): Likewise.
27858 * tests/lib/functional_test.c (grub_functional_test): Use
27859 FOR_LIST_ELEMENTS.
27860 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27861 (grub_test_run): Use FOR_LIST_ELEMENTS.
27862 * tests/lib/unit_test.c (main): Likewise.
27863 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27864 grub_list_pop.
27865 * util/grub-fstest.c (grub_term_input_class): Removed.
27866 (grub_term_output_class): Likewise.
27867 * util/grub-probe.c: Likewise.
27868 * util/i386/pc/grub-setup.c: Likewise.
27869 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27870 * util/grub-script-check.c (main): Don't call grub_init_all and
27871 grub_fini_all.
27872 * video/video.c (grub_video_adapter_list): Make global.
27873 (grub_video_register): Removed.
27874 (grub_video_unregister): Likewise.
27875 (grub_video_iterate): Likewise.
27876
27877 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27878
27879 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27880 reported by Henrique Ferreiro.
27881
27882 2010-06-09 Robert Millan <rmh@gnu.org>
27883
27884 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27885 ones, when both are available.
27886
27887 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27888
27889 Make --version uniform and avoid hard-coded program name.
27890
27891 * util/grub-mkimage.c (main): Use `program_name' instead of
27892 hard-coded string.
27893 * util/i386/pc/grub-setup.c (main): Likewise.
27894 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27895 * util/grub-install.in: Save the basename of $0 in $self, and use the
27896 latter in informational messages. Use the same format for --version
27897 as the binary programs.
27898 * util/grub-mkconfig.in: Likewise.
27899 * util/grub-mkrescue.in: Likewise.
27900 * util/grub-reboot.in: Likewise.
27901 * util/grub-set-default.in: Likewise.
27902 * util/i386/efi/grub-install.in: Likewise.
27903 * util/ieee1275/grub-install.in: Likewise.
27904 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27905
27906 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27907
27908 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27909 embedding area. Use <= instead of == when checking for non-emptiness.
27910
27911 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27912
27913 * configure.ac: Add `.' to the directories searched for unifont.
27914
27915 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27916
27917 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27918 grub_script.yy.h.
27919
27920 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27921
27922 * docs/grub.texi (History): Expand to cover GRUB 2.
27923 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27924 commands, not `terminal'.
27925 (serial): Likewise.
27926 (terminal_input): New section.
27927 (terminal_output): New section.
27928 (uppermem): New section (stub).
27929 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27930
27931 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27932
27933 * docs/grub.texi (Security): Menu entries are unrestricted by
27934 default, not restricted to superusers as I had previously thought.
27935 Reword to account for this.
27936
27937 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27938
27939 * kern/emu/misc.c (device_mapper_null_log): New function.
27940 (grub_device_mapper_supported): New function.
27941 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27942 prototype.
27943 * kern/emu/hostdisk.c (find_partition_start): Check whether
27944 device-mapper is supported before trying to use it.
27945 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27946
27947 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27948
27949 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27950 (File name syntax): Likewise.
27951 (help): --all is no longer supported in GRUB 2. Be more precise
27952 about pattern matching.
27953
27954 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27955
27956 * normal/completion.c (grub_normal_do_completion): When completing
27957 arguments to "set" and the current word contains an equals sign,
27958 skip to after the equals sign before starting completion.
27959
27960 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27961
27962 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27963
27964 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27965
27966 * docs/grub.texi (Network): New section.
27967 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27968 `(nd)' as in GRUB Legacy.
27969 (pxe_unload): New section.
27970
27971 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27972
27973 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27974 in the rescue shell, so recommend using `set' instead. Thanks,
27975 Jordan Uggla.
27976
27977 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27978
27979 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27980 (password): New section.
27981 (password_pbkdf2): New section.
27982 (search): New section.
27983 (Security): New section.
27984 (Troubleshooting): New section, currently very incomplete.
27985 (Invoking grub-mkpasswd-pbkdf2): New section.
27986 (Internals): New section, currently very incomplete.
27987
27988 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27989
27990 * util/grub.d/00_header.in: Add some more quoting (of
27991 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27992 work again.
27993 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27994
27995 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27996
27997 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27998 to `count', fixing variable shadowing that broke the -c option.
27999
28000 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28001
28002 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28003 in case they contain spaces.
28004
28005 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28006
28007 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28008 "part_" to partmap module names, in line with grub-install.
28009 Reported by: Jindřich Makovička (Debian bug #584426).
28010
28011 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28012
28013 * util/grub-mkimage.c: Make target-related error messages slightly
28014 more helpful; -O talks about "format". Explicitly point to the use
28015 of -O if no target is specified.
28016 Reported by: Didier Raboud (Debian bug #584415).
28017
28018 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28019
28020 * INSTALL: Document several build requirements for optional features
28021 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28022
28023 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28024
28025 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28026 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28027 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28028
28029 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28030
28031 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28032 Thanks to Jordan Uggla for spotting this.
28033
28034 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28035
28036 Finally make USB usable.
28037
28038 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28039 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28040 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28041 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28042 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28043 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28044 (GRUB_OHCI_FSMPS): Likewise.
28045 (GRUB_OHCI_PERIODIC_START): Likewise.
28046 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28047 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28048 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28049 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28050 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28051 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28052 (grub_ohci_transaction): Likewise.
28053 (grub_ohci_transfer): Improve condition detection algorithms.
28054 Handle toggle property. Program the transactions correctly.
28055 Improve error handling. Various important fixups.
28056 (grub_ohci_portstatus): Put register writes in right order.
28057 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28058 (grub_uhci_transfer): Don't show "failed" message on success.
28059 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28060 array.
28061 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28062 determine its size.
28063 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28064 before initialization is completed. Use IN direction for empty
28065 transfers. Use last_trans and compute toggle.
28066 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28067 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28068 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28069 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28070 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28071 (grub_usb_device): Increase toggle to 256.
28072 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28073 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28074 GRUB_USBMS_SUBCLASS_SFF8070.
28075 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28076 (grub_scsi_inquiry): New member page and alloc_length.
28077 (grub_scsi_request_sense): New structure.
28078 (grub_scsi_request_sense_data): Likewise.
28079 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28080 control.
28081 * disk/scsi.c (grub_scsi_request_sense): New function.
28082 (grub_scsi_test_unit_ready): Likewise.
28083 (grub_scsi_inquiry): Fill new fields.
28084 (grub_scsi_read_capacity): Likewise.
28085 (grub_scsi_read10): Add request sense at the end.
28086 (grub_scsi_read12): Likewise.
28087 (grub_scsi_write10): Likewise.
28088 (grub_scsi_write12): Likewise.
28089 (grub_scsi_open): Add Test Unit Ready.
28090 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28091 Support additional subclasses. Con't clear halt yet. Activate the
28092 proper config. Calculate LUNs correctly.
28093 (grub_usbms_transfer): Various important fixups.
28094
28095 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28096
28097 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28098 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28099 (grub_ohci_fini_hw): New function.
28100 (grub_ohci_restore_hw): Likewise.
28101 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28102 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28103 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28104
28105 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28106
28107 Dedicated DMA allocations.
28108
28109 * bus/pci.c (grub_memalign_dma32): New function
28110 (grub_dma_free): Likewise.
28111 (grub_dma_get_virt): Likewise.
28112 (grub_dma_get_phys): Likewise.
28113 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28114 (grub_ohci_pci_iter): Use dma32_alloc.
28115 (grub_ohci_transfer): Likewise.
28116 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28117 (grub_usb_bulk_readwrite): Likewise.
28118 * include/grub/pci.h: Add declarations.
28119
28120 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28121
28122 CS5536 support.
28123
28124 * bus/cs5536.c: New file.
28125 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28126 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28127 (cs5536_mod_SOURCES): New variable.
28128 (cs5536_mod_CFLAGS): Likewise.
28129 (cs5536_mod_LDFLAGS): Likewise.
28130 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28131 machine/pci.h.
28132 (kernel_img_SOURCES): Add bus/cs5536.c.
28133 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28134 usb_keyboard.mod.
28135 (usb_mod_SOURCES): New variable.
28136 (usb_mod_CFLAGS): New variable.
28137 (usb_mod_LDFLAGS): New variable.
28138 (usbtest_mod_SOURCES): New variable.
28139 (usbtest_mod_CFLAGS): New variable.
28140 (usbtest_mod_LDFLAGS): New variable.
28141 (ohci_mod_SOURCES): New variable.
28142 (ohci_mod_CFLAGS): New variable.
28143 (ohci_mod_LDFLAGS): New variable.
28144 (usbms_mod_SOURCES): New variable.
28145 (usbms_mod_CFLAGS): New variable.
28146 (usbms_mod_LDFLAGS): New variable.
28147 (usb_keyboard_mod_SOURCES): New variable.
28148 (usb_keyboard_mod_CFLAGS): New variable.
28149 (usb_keyboard_mod_LDFLAGS): New variable.
28150 * include/grub/smbus.h: New file.
28151 * include/grub/cs5536.h: New file.
28152
28153 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28154
28155 * util/grub.d/00_header.in: Add safety check to make sure that
28156 ${locale_dir} exists before trying to probe it.
28157
28158 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28159
28160 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28161 per the GNU Coding Standards; this is now too obscure to be worth
28162 documenting.
28163 (QNX): Likewise.
28164 (chainloader): Remove cross-reference to `SCO UnixWare'.
28165
28166 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28167
28168 * docs/grub.texi (Chain-loading): New section.
28169 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28170 adjusted for GRUB 2.
28171 (SCO UnixWare): Likewise.
28172 (QNX): Likewise.
28173 (chainloader): Add reference to `Block list syntax'.
28174 (drivemap): New section.
28175 (parttool): New section.
28176
28177 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28178
28179 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28180 the grub shell'.
28181 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28182 (Installing GRUB using grub-install): Remove reference to the grub
28183 shell; mention `grub-mkimage' and `grub-setup' instead.
28184 (Invoking grub-install): Likewise.
28185 (Interface): Add reference to `Menu entry editor'.
28186 (serial): Remove `--device' option.
28187
28188 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28189
28190 * docs/grub.texi (Configuration): New section, documenting
28191 configuration file generation using grub-mkconfig. I've left a slot
28192 for documenting the full shell scripting format but have not yet
28193 started on writing that up.
28194 (Invoking grub-mkconfig): New section.
28195
28196 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28197
28198 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28199 (GNU GRUB manual): Likewise.
28200 (General commands): Update description of `terminfo' for GRUB 2.
28201
28202 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28203
28204 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28205 (GRUB_MOD_INIT): Fix capitalisation.
28206 * docs/grub.texi (Command-line and menu entry commands): Document
28207 gettext and gptsync commands.
28208
28209 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28210
28211 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28212 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28213
28214 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28215
28216 Add btrfs probing support, currently only in the single-device case.
28217
28218 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28219 function.
28220 (grub_guess_root_device): Call find_root_device_from_mountinfo
28221 before looking in /dev.
28222
28223 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28224
28225 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28226 GRUB_DISK_SIZE_UNKNOWN.
28227 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28228
28229 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28230
28231 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28232 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28233 corrupted or not synced properly.
28234
28235 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28236
28237 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28238 Reported by: Seth Goldberg.
28239
28240 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28241
28242 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28243 addition of dest.
28244 Reported by: Seth Goldberg.
28245
28246 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28247
28248 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28249 Reported by: Seth Goldberg.
28250
28251 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28252
28253 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28254 64-bit address as signed on MIPS.
28255
28256 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28257
28258 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28259 to the empty string.
28260
28261 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28262
28263 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28264
28265 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28266 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28267 * kern/misc.c (__enable_execute_stack): Disable on
28268 GRUB_MACHINE_EMU.
28269
28270 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28271
28272 Make grub-probe work with symbolic links under /dev/mapper as well
28273 as with real block devices. The Linux world seems to be (at best)
28274 in transition here, and GRUB shouldn't get caught in the middle.
28275
28276 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28277 /dev/mapper.
28278
28279 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28280
28281 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28282 input files (in which case exit zero).
28283
28284 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28285
28286 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28287 return NULL for various reasons even if it has a maximum-length
28288 buffer: for example, there might be a symlink loop, or the path
28289 might exceed PATH_MAX. If this happens, return NULL.
28290
28291 2010-05-27 Robert Millan <rmh@gnu.org>
28292
28293 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28294 partmap module to handle cross-partmap setups.
28295 Reported by Orestes Mas. Gràcies!
28296
28297 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28298
28299 * util/grub-mkrescue.in: Initialise override_dir rather than
28300 assuming that it's unset or empty in the environment.
28301
28302 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28303
28304 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28305 variable index into p_index to suppress a warning with -Wshadow.
28306
28307 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28308
28309 * INSTALL: Added flex >= 2.5.35 requirement.
28310
28311 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28312
28313 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28314
28315 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28316
28317 cmostest support.
28318
28319 * commands/i386/cmostest.c: New file.
28320 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28321 (cmostest_mod_SOURCES): New variable.
28322 (cmostest_mod_CFLAGS): Likewise.
28323 (cmostest_mod_LDFLAGS): Likewise.
28324 * conf/i386-pc.rmk: Likewise.
28325 * docs/grub.texi (Vendor power-on keys): New section.
28326 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28327 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28328 and GRUB_BUTTON_CMOS_ADDRESS.
28329 * util/grub.d/00_header.in: Handle powering-on by separate button.
28330
28331 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28332
28333 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28334 Removed drawing_scrollbar argument. All users updated
28335 Fixes #29792.
28336 Reported by Jo Shields
28337
28338 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28339
28340 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28341 buffer since gfxterm handles double repaint.
28342
28343 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28344
28345 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28346 * term/gfxterm.c (real_scroll): Likewise.
28347
28348 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28349
28350 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28351 before calling BIOS.
28352
28353 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28354
28355 * include/grub/i18n.h: Always enable grub_gettext.
28356
28357 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28358
28359 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28360 partition naming style.
28361
28362 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28363
28364 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28365 not the first option.
28366
28367 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28368
28369 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28370
28371 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28372
28373 * util/misc.c: Move inclusion of <limits.h> to ...
28374 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28375
28376 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28377
28378 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28379 Fix merge error in NetBSD code.
28380 (find_partition_start) [__NetBSD__]: Likewise.
28381
28382 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28383
28384 Fix grub-mkrescue usage unit testing.
28385
28386 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28387
28388 2010-05-18 Christian Franke <franke@computer.org>
28389
28390 * util/grub.d/10_windows.in: Use path names instead of
28391 drive letters to prevent warning from Cygwin 1.7.
28392 Add drivemap command to menuentry if needed.
28393
28394 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28395
28396 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28397 gnumach and gnumach.gz.
28398
28399 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28400
28401 * include/grub/i18n.h (gettext): Inline instead of using #define.
28402 (grub_gettext): Likewise.
28403 (_): Likewise.
28404
28405 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28406
28407 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28408 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28409 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28410 (main): Add a slash after pkglibdirroot.
28411
28412 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28413
28414 * util/grub-install.in: Add missing "in" keyword.
28415
28416 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28417
28418 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28419 Reported by: Seth Goldberg.
28420
28421 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28422
28423 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28424
28425 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28426
28427 * configure.ac: Check for Linux device-mapper support.
28428
28429 * util/hostdisk.c (device_is_mapped): New function.
28430 (find_partition_start): New function, partly broken out from
28431 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28432 device-mapper support added.
28433 (linux_find_partition): Use find_partition_start.
28434 (convert_system_partition_to_system_disk): Add `st' argument.
28435 Support Linux /dev/mapper/* devices if device-mapper support is
28436 available; only DM-RAID devices are understood at present.
28437 (find_system_device): Add `st' argument. Pass it to
28438 convert_system_partition_to_system_disk.
28439 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28440 find_system_device and convert_system_partition_to_system_disk. Use
28441 find_partition_start.
28442
28443 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28444 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28445 * util/deviceiter.c [__linux__]: Define MINOR.
28446 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28447 * util/mkdevicemap.c (grub_putchar): New function.
28448 (grub_getkey): New function.
28449 (grub_refresh): New function.
28450 (main): Set debug=all if -v -v is used.
28451
28452 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28453
28454 Fix build with non-GNU libcs.
28455
28456 * util/misc.c (canonicalize_file_name): Move to ...
28457 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28458 grub_make_system_path_relative_to_its_root.
28459
28460 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28461
28462 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28463 we handle finding grub-mkimage. Default to finding grub-mkimage in
28464 ${bindir} with program_transform_name applied, and provide a
28465 --grub-mkimage option to override this.
28466
28467 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28468
28469 Remove grub-mkisofs.
28470
28471 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28472 (grub_mkisofs_SOURCES): Removed.
28473 (grub_mkisofs_CFLAGS): Removed.
28474 * util/mkisofs/defaults.h: Removed.
28475 * util/mkisofs/eltorito.c: Likewise.
28476 * util/mkisofs/exclude.h: Likewise.
28477 * util/mkisofs/hash.c: Likewise.
28478 * util/mkisofs/include/: Likewise.
28479 * util/mkisofs/include/fctldefs.h: Likewise.
28480 * util/mkisofs/include/mconfig.h: Likewise.
28481 * util/mkisofs/include/prototyp.h: Likewise.
28482 * util/mkisofs/include/statdefs.h: Likewise.
28483 * util/mkisofs/iso9660.h: Likewise.
28484 * util/mkisofs/joliet.c: Likewise.
28485 * util/mkisofs/match.c: Likewise.
28486 * util/mkisofs/match.h: Likewise.
28487 * util/mkisofs/mkisofs.c: Likewise.
28488 * util/mkisofs/mkisofs.h: Likewise.
28489 * util/mkisofs/msdos_partition.h: Likewise.
28490 * util/mkisofs/multi.c: Likewise.
28491 * util/mkisofs/name.c: Likewise.
28492 * util/mkisofs/rock.c: Likewise.
28493 * util/mkisofs/tree.c: Likewise.
28494 * util/mkisofs/write.c: Likewise.
28495
28496 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28497
28498 Unify grub-mkimage accross platforms.
28499
28500 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28501 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28502 (grub_mkelfimage_SOURCES): Removed.
28503 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28504 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28505 (bin_UTILITIES): Add grub-mkimage.
28506 (grub_mkimage_SOURCES): New variable.
28507 (kernel_img_HEADERS): Remove machine/kernel.h.
28508 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28509 (pkglib_PROGRAMS): Add kernel.img.
28510 (kernel_img_HEADERS): Add machine/kernel.h.
28511 (kernel_img_FORMAT): Removed.
28512 (bin_UTILITIES): Remove grub-mkimage.
28513 (grub_mkimage_SOURCES): Removed.
28514 (grub_mkimage_CFLAGS): Likewise.
28515 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28516 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28517 (pkglib_PROGRAMS): Add kernel.img.
28518 (bin_UTILITIES): Remove grub-mkimage.
28519 (grub_mkimage_SOURCES): Removed.
28520 (grub_mkimage_CFLAGS): Likewise.
28521 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28522 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28523 (pkglib_PROGRAMS): Add kernel.img.
28524 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28525 (pkglib_PROGRAMS): Add kernel.img.
28526 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28527 (grub_mkimage_SOURCES): Removed.
28528 (grub_mkimage_CFLAGS): Likewise.
28529 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28530 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28531 (pkglib_PROGRAMS): Add kernel.img.
28532 (bin_UTILITIES): Remove grub-mkimage.
28533 (grub_mkimage_SOURCES): Removed.
28534 (grub_mkimage_CFLAGS): Likewise.
28535 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28536 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28537 (grub_mkimage_SOURCES): Removed.
28538 (grub_mkimage_CFLAGS): Likewise.
28539 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28540 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28541 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28542 (grub_pe32_optional_header): ... this.
28543 (grub_pe64_optional_header): ... and this. All users updated.
28544 (GRUB_PE32_PE32_MAGIC): Split into ..
28545 (GRUB_PE32_PE32_MAGIC): .. this.
28546 (GRUB_PE32_PE64_MAGIC): .. and this.
28547 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28548 * include/grub/elf.h (PT_GNU_STACK): New definition.
28549 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28550 * include/grub/i386/efi/kernel.h: Likewise.
28551 * include/grub/i386/kernel.h: Likewise.
28552 * include/grub/i386/pc/kernel.h: Likewise.
28553 * include/grub/i386/qemu/boot.h: Likewise.
28554 * include/grub/mips/kernel.h: Likewise.
28555 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28556 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28557 * include/grub/powerpc/kernel.h: Likewise.
28558 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28559 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28560 * include/grub/sparc64/kernel.h: Likewise.
28561 * include/grub/x86_64/efi/kernel.h: Likewise.
28562 * include/grub/x86_64/kernel.h: Likewise.
28563 * include/grub/offsets.h: New file.
28564 * include/grub/kernel.h (grub_module_info): Split into ...
28565 (grub_module_info32): ... this.
28566 (grub_module_info64): ... and this.
28567 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28568 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28569 (grub_boot_blocklist): Moved from here ...
28570 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28571 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28572 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28573 * include/grub/types.h (grub_target_to_host16): Removed.
28574 (grub_target_to_host32): Likewise.
28575 (grub_target_to_host64): Likewise.
28576 (grub_host_to_target16): Likewise.
28577 (grub_host_to_target32): Likewise.
28578 (grub_host_to_target64): Likewise.
28579 (grub_host_to_target_addr): Likewise.
28580
28581 Support grub-mkrescue for efi, coreboot and qemu.
28582
28583 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28584 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28585 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28586 * util/grub-mkrawimage.c: Moved from here ...
28587 * util/grub-mkimage.c: ... here. All users updated.
28588 (ALIGN_ADDR): Use image_target.
28589 (TARGET_NO_FIELD): New const.
28590 (image_target_desc): New type.
28591 (image_targets): New array.
28592 (grub_target_to_host64): Use image_target.
28593 (grub_target_to_host32): Likewise.
28594 (grub_target_to_host16): Likewise.
28595 (grub_host_to_target64): Likewise.
28596 (grub_host_to_target32): Likewise.
28597 (grub_host_to_target16): Likewise.
28598 (grub_host_to_target_addr): Likewise.
28599 (generate_image): Handle multiimage.
28600 (main): Require -O parameter. All users updated.
28601 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28602 util/efi/grub-mkimage.c
28603 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28604 New option --rom-directory.
28605 Use xorriso.
28606 * util/i386/efi/grub-mkimage.c: Removed.
28607 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28608 (grub_target_to_host32): Likewise.
28609 (grub_target_to_host64): Likewise.
28610 (grub_host_to_target16): Likewise.
28611 (grub_host_to_target32): Likewise.
28612 (grub_host_to_target64): Likewise.
28613 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28614 (grub_target_to_host32): Likewise.
28615 (grub_target_to_host64): Likewise.
28616 (grub_host_to_target16): Likewise.
28617 (grub_host_to_target32): Likewise.
28618 (grub_host_to_target64): Likewise.
28619
28620 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28621
28622 Source tree is reorganized for emu build.
28623
28624 * include/grub/util/console.h: Move from here...
28625 * include/grub/emu/console.h: ...to here.
28626 * include/grub/util/getroot.h: Move from here...
28627 * include/grub/emu/getroot.h: ...to here.
28628 * include/grub/util/hostdisk.h: Move from here...
28629 * include/grub/emu/hostdisk.h: ...to here.
28630 * util/console.c: Move from here...
28631 * kern/emu/console.c: ...to here.
28632 * util/getroot.c: Move from here...
28633 * kern/emu/getroot.c: ...to here.
28634 * util/grub-emu.c: Move from here...
28635 * kern/emu/main.c: ...to here.
28636 * util/hostdisk.c: Move from here...
28637 * kern/emu/hostdisk.c: ...to here.
28638 * util/hostfs.c: Move from here...
28639 * kern/emu/hostfs.c: ...to here.
28640 * util/mm.c: Move from here...
28641 * kern/emu/mm.c: ...to here.
28642 * util/pci.c: Move from here...
28643 * bus/emu/pci.c: ...to here.
28644 * util/sdl.c: Move from here...
28645 * video/emu/sdl.c: ...to here.
28646 * util/time.c: Move from here...
28647 * kern/emu/time.c: ...to here.
28648 * util/usb.c: Move from here...
28649 * bus/usb/emu/usb.c: ...to here.
28650
28651 * include/grub/emu/misc.h: New header for grub-emu functions.
28652 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28653
28654 * conf/any-emu.rmk: Rule updates for above renames.
28655 * conf/common.rmk: Likewise.
28656 * conf/i386-pc.rmk: Likewise.
28657 * conf/i386-qemu.rmk: Likewise.
28658 * conf/mips.rmk: Likewise.
28659 * conf/sparc64-ieee1275.rmk: Likewise.
28660 * conf/x86-efi.rmk: Likewise.
28661
28662 * disk/lvm.h: #include updates for above renames.
28663 * util/grub-mkrelpath.c: Likewise.
28664 * util/grub-probe.c: Likewise.
28665 * util/i386/pc/grub-setup.c: Likewise.
28666 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28667 * kern/emu/console.c: Likewise.
28668 * kern/emu/getroot.c: Likewise.
28669 * kern/emu/hostdisk.c: Likewise.
28670 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28671
28672 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28673 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28674 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28675 * util/misc.c: Remove grub-emu functions.
28676
28677 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28678
28679 Fix gfxmenu crash.
28680 Reported by: Thorsten Grützmacher.
28681
28682 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28683 timeout hook.
28684 (circprog_set_property): Register and unregister timeout hook.
28685 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28686 (label_destroy): Free template. and unregister hook.
28687 (label_set_state): New function.
28688 (label_set_property): Handle templates and hooks.
28689 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28690 timeout hook.
28691 (progress_bar_set_property): Register and unregister timeout hook.
28692 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28693 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28694 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28695 (update_timeout_visit): Removed.
28696 (update_timeouts): New function.
28697 (redraw_timeouts): Likewise.
28698 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28699 (grub_gfxmenu_clear_timeout): Likewise.
28700 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28701 (grub_gfxmenu_timeout_notify): Likewise.
28702 (grub_gfxmenu_timeout_notifications): New external variable.
28703 (grub_gfxmenu_timeout_register): New function.
28704 (grub_gfxmenu_timeout_unregister): Likewise.
28705
28706 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28707
28708 Transform (broken) vga terminal into (working) vga video driver.
28709
28710 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28711 video/i386/pc/vga.c.
28712 * include/grub/video.h (grub_video_driver_id):
28713 Add GRUB_VIDEO_DRIVER_VGA.
28714 * term/i386/pc/vga.c: Renamed to ...
28715 * video/i386/pc/vga.c: ...this
28716 (DEBUG_VGA): Removed.
28717 (CHAR_WIDTH): Likewise.
28718 (CHAR_HEIGHT): Likewise.
28719 (TEXT_WIDTH): Likewise.
28720 (TEXT_HEIGHT): Likewise.
28721 (DEFAULT_FG_COLOR): Likewise.
28722 (DEFAULT_BG_COLOR): Likewise.
28723 (colored_char): Likewise.
28724 (xpos): Likewise.
28725 (ypos): Likewise.
28726 (cursor_state): Likewise.
28727 (fg_color): Likewise.
28728 (bg_color): Likewise.
28729 (text_buf): Likewise.
28730 (page): Likewise.
28731 (font): Likewise.
28732 (framebuffer): New variable.
28733 (set_read_map): Disabled.
28734 (setup): New variable.
28735 (is_target): Likewise.
28736 (grub_vga_mod_init): Likewise.
28737 (grub_vga_mod_fini): Likewise.
28738 (check_vga_mem): Likewise.
28739 (write_char): Likewise.
28740 (write_cursor): Likewise.
28741 (scroll_up): Likewise.
28742 (grub_vga_putchar): Likewise.
28743 (grub_vga_getcharwidth): Likewise.
28744 (grub_vga_getwh): Likewise.
28745 (grub_vga_getxy): Likewise.
28746 (grub_vga_gotoxy): Likewise.
28747 (grub_vga_cls): Likewise.
28748 (grub_vga_setcolorstate): Likewise.
28749 (grub_vga_setcursor): Likewise.
28750 (grub_video_vga_init): New function.
28751 (grub_video_vga_setup): Likewise.
28752 (grub_video_vga_fini): Likewise.
28753 (update_target): Likewise.
28754 (grub_video_vga_blit_bitmap): Likewise.
28755 (grub_video_vga_blit_render_target): Likewise.
28756 (grub_video_vga_set_active_render_target): Likewise.
28757 (grub_video_vga_get_active_render_target): Likewise.
28758 (grub_video_vga_swap_buffers): Likewise.
28759 (grub_video_vga_set_palette): Likewise.
28760 (grub_video_vga_get_info_and_fini): Likewise.
28761 (grub_vga_term): Removed.
28762 (grub_video_vga_adapter): New variable.
28763 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28764 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28765
28766 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28767
28768 * video/readers/jpeg.c: Indented.
28769
28770 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28771
28772 Various jpeg cleanups.
28773
28774 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28775 (grub_jpeg_decode_quan_table): Use sizeof.
28776 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28777
28778 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28779
28780 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28781 tables. Ignore non-last ac bit.
28782 (grub_jpeg_decode_quan_table): Likewise.
28783
28784 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28785
28786 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28787 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28788 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28789 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28790 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28791 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28792
28793 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28794
28795 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28796 error.
28797
28798 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28799
28800 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28801
28802 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28803
28804 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28805 condition.
28806
28807 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28808
28809 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28810 part.
28811
28812 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28813
28814 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28815 pointers.
28816
28817 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28818
28819 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28820
28821 2010-05-01 Christian Franke <franke@computer.org>
28822
28823 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28824 Remove broken Cygwin path conversion.
28825 * util/misc.c: [__CYGWIN__] Add include and define.
28826 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28827 for Cygwin 1.7.
28828 (make_system_path_relative_to_its_root): Simplify loop, replace early
28829 return by break.
28830 [__CYGWIN__] Add conversion to win32 path.
28831 Include "/" case in trailing slash removal.
28832
28833 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28834
28835 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28836 Reported by: Seth Goldberg
28837
28838 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28839
28840 * commands/help.c (grub_cmd_help): Fix a typo.
28841 Reported by: Seth Goldberg
28842
28843 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28844
28845 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28846 name and add N_.
28847 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28848 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28849 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28850 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28851 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28852 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28853 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28854 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28855 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28856 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28857 * normal/context.c (GRUB_MOD_INIT): Likewise.
28858 * normal/main.c (GRUB_MOD_INIT): Likewise.
28859 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28860 * term/serial.c (GRUB_MOD_INIT): Likewise.
28861 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28862
28863 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28864
28865 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28866 extra == 0.
28867
28868 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28869
28870 * commands/iorw.c: New file.
28871 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28872 (iorw_mod_SOURCES): New variable.
28873 (iorw_mod_CFLAGS): Likewise.
28874 (iorw_mod_LDFLAGS): Likewise.
28875
28876 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28877
28878 Hotkey support
28879
28880 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28881 * normal/main.c (hotkey_aliases): New variable.
28882 (grub_normal_add_menu_entry): Parse "--hotkey".
28883 * normal/menu_text.c (run_menu): Handle hotkeys.
28884
28885 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28886
28887 * kern/i386/coreboot/init.c (grub_machine_init): Call
28888 grub_machine_mmap_init on qemu.
28889
28890 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28891
28892 * boot/i386/qemu/boot.S: Add a missing .code16.
28893
28894 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28895
28896 Use LBIO on coreboot.
28897
28898 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28899 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28900 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28901 New declaration.
28902 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28903 grub_machine_mmap_init on coreboot.
28904 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28905 GRUB_LINUXBIOS_MEMBER_LINK.
28906 (grub_machine_mmap_iterate): Fix declaration.
28907 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28908
28909 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28910
28911 Split coreboot and multiboot ports.
28912
28913 * conf/i386-multiboot.rmk: New file.
28914 * configure.ac: Add multiboot port.
28915 * include/grub/i386/multiboot/boot.h: New file.
28916 * include/grub/i386/multiboot/console.h: Likewise.
28917 * include/grub/i386/multiboot/init.h: Likewise.
28918 * include/grub/i386/multiboot/kernel.h: Likewise.
28919 * include/grub/i386/multiboot/loader.h: Likewise.
28920 * include/grub/i386/multiboot/memory.h: Likewise.
28921 * include/grub/i386/multiboot/serial.h: Likewise.
28922 * include/grub/i386/multiboot/time.h: Likewise.
28923 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28924 * loader/multiboot.c: Likewise.
28925 * loader/multiboot_mbi2.c: Likewise.
28926 * util/grub-mkrescue.in: Generate multiboot rescue.
28927
28928 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28929
28930 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28931
28932 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28933
28934 Merge handling of input and output terminals. Fix a hang.
28935
28936 * commands/terminal.c (abstract_terminal): New struct.
28937 (handle_command): New function. Based on grub_cmd_terminal_input.
28938 (grub_cmd_terminal_input): Use handle_command.
28939 (grub_cmd_terminal_output): Use handle_command.
28940
28941 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28942
28943 Fix comment handling.
28944
28945 * tests/grub_script_comments.in: New testcase.
28946 * conf/tests.rmk: Rules for new testcase.
28947 * script/yylex.l: Updated flex rules.
28948
28949 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28950
28951 * docs/grub.texi (play): Document that zero pitches produce rests.
28952 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28953 if argc is 1.
28954
28955 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28956
28957 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28958 autogen issues.
28959
28960 2010-04-26 Christian Franke <franke@computer.org>
28961
28962 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28963 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28964 (grub_get_prefix): Remove function.
28965 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28966 make_system_path_relative_to_its_root ().
28967 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28968
28969 2010-04-24 Christian Franke <franke@computer.org>
28970
28971 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28972 (kernel_img_LDFLAGS): Remove -static-libgcc.
28973
28974 2010-04-24 Christian Franke <franke@computer.org>
28975
28976 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28977 and CHECK_END_SYMBOL if grub-emu is built.
28978 Unset TARGET_OBJ2ELF if grub-emu is built
28979 without module support.
28980
28981 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28982
28983 Nilfs2 support.
28984
28985 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28986 (grub_fstest_SOURCES): Likewise.
28987 (pkglib_MODULES): Add nilfs2.mod.
28988 (nilfs2_mod_SOURCES): New variable.
28989 (nilfs2_mod_CFLAGS): Likewise.
28990 (nilfs2_mod_LDFLAGS): Likewise.
28991 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28992 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28993 * fs/nilfs2.c: New file.
28994
28995 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28996
28997 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28998 is not supported.
28999
29000 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29001
29002 Add grub-mkconfig support for NetBSD.
29003
29004 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29005 * util/grub-mkconfig.in: export new NetBSD specific variables.
29006 * po/POTFILES-shell: added 10_netbsd.in.
29007 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29008
29009 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29010
29011 Fix emu build with grub-emu-pci and grub-emu-modules.
29012
29013 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29014 functions.
29015 * include/grub/libpciaccess.h: New file.
29016 * conf/any-emu.rmk: Update kernel headers for emu build.
29017
29018 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29019
29020 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29021
29022 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29023
29024 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29025
29026 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29027
29028 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29029 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29030 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29031 util/ieee1275/ofpath.c.
29032 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29033 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29034 * include/grub/sparc64/ieee1275/boot.h
29035 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29036 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29037 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29038 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29039 const char *.
29040 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29041 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29042 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29043 install.
29044
29045 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29046
29047 * util/grub-mkconfig.in: Corrected two == equality tests.
29048 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29049 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29050 expect a number appended to it.
29051 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29052 expects a number appended to it.
29053
29054 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29055
29056 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29057
29058 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29059
29060 * util/hostdisk.c (make_device_name): Change to new partition naming.
29061
29062 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29063
29064 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29065
29066 2010-04-17 Christian Franke <franke@computer.org>
29067
29068 * Makefile.in: Add missing localedir setting.
29069
29070 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29071
29072 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29073 mistake in r2156. Noticed by Anthony Fok.
29074
29075 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29076 @localedir@.
29077 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29078
29079 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29080
29081 Fix a spurious, uninitialized variable warning.
29082
29083 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29084 Initialize variable, shdr.
29085 (grub_freebsd_load_elfmodule): Likewise.
29086 (grub_freebsd_load_elf_meta): Likewise.
29087
29088 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29089
29090 Fix for escaped dollar in double quoted strings.
29091
29092 * script/yylex.l: Updated flex rules.
29093 * conf/tests.rmk: Rule for new testcase.
29094 * tests/grub_script_dollar.in: New testcase.
29095
29096 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29097 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29098
29099 Enclose all translated strings in grub.cfg in single quotes, and
29100 escape them appropriately (Ubuntu bug #552921).
29101
29102 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29103 * util/grub.d/10_hurd.in: Use it.
29104 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29105 * util/grub.d/10_linux.in (linux_entry): Likewise.
29106
29107 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29108
29109 Fix cygwin compilation.
29110
29111 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29112 * include/grub/misc.h (__register_frame_info)
29113 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29114 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29115 * kern/misc.c (__register_frame_info)
29116 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29117 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29118
29119 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29120
29121 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29122
29123 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29124
29125 Unify libgcc processing.
29126
29127 * Makefile.in (kernel_img_LDFLAGS): New variable.
29128 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29129 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29130 overwriting.
29131 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29132 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29133 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29134 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29135 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29136 overwriting. Remove -lgcc and -static-libgcc
29137 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29138 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29139 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29140 (kernel_img_LDFLAGS): Append instead of overwriting.
29141 Remove -lgcc and -static-libgcc
29142 * conf/sparc64-ieee1275.rmk: Likewise.
29143 * include/grub/powerpc/libgcc.h: Move to ...
29144 * include/grub/libgcc.h: .. this.
29145 * include/grub/libgcc.h: Don't export most of the function on x86.
29146 (__bswapsi2): New export.
29147 (__bswapdi2): Likewise.
29148 * include/grub/mips/libgcc.h: Removed.
29149 * include/grub/sparc64/libgcc.h: Likewise.
29150
29151 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29152
29153 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29154 disk_info_msg (conflicts with gettexting into languages with cases).
29155
29156 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29157
29158 Add grub-probe support for NetBSD.
29159
29160 * util/getroot.c (find_root_device): Convert block device to
29161 character device on NetBSD.
29162 * util/probe.c (probe): Require character device on NetBSD.
29163 * util/hostdisk.c: NetBSD specific headers.
29164 (configure_device_driver): new function to tune device driver
29165 parameters (currently only for NetBSD floppy driver).
29166 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29167 via disklabel ioctl).
29168 (open_device): call configure_device_driver on NetBSD.
29169 (convert_system_partition_to_system_disk): NetBSD specific code.
29170 (device_is_wholedisk): Likewise.
29171 (grub_util_biosdisk_get_grub_dev): Likewise.
29172 (make_device_name): Fixed a typo in bsd_part_str.
29173 * configure.ac: check for opendisk() and getrawpartition() on
29174 NetBSD and set LIBUTIL.
29175 * Makefile.in: add LIBUTIL to LIBS.
29176
29177 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29178
29179 Documentation fix.
29180
29181 * util/grub-script-check.c: Better help message.
29182
29183 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29184
29185 Fix FreeBSD build.
29186
29187 * configure.ac: Flex version check.
29188 * conf/common.rmk: Add -Wno-error to sh.mod.
29189 * script/yylex.l: Remove all #pragma.
29190
29191 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29192
29193 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29194 prototype.
29195 Reported by: Seth Goldberg.
29196
29197 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29198
29199 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29200 Rename "module" to "module2".
29201 Reported by: Seth Goldberg.
29202
29203 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29204
29205 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29206 EXPORT_FUNC.
29207 Reported by: Seth Goldberg.
29208
29209 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29210
29211 * lib/posix_wrap/locale.h: Add missing file.
29212 Reported by: Seth Goldberg.
29213
29214 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29215
29216 grub-emu module load support.
29217
29218 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29219 NO_DYNAMIC_MODULES switched to this.
29220 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29221 (CFLAGS): Likewise.
29222 * conf/any-emu.rmk: Generate symlist.
29223 (kernel_img_HEADERS): Add util/datetime.h.
29224 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29225 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29226 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29227 kern/$(target_cpu)/cache.S.
29228 * configure.ac (grub-emu-modules): New option.
29229 * genmk.rb: Handle multiple source lists.
29230 * include/grub/sdl.h: New file.
29231 * include/grub/libusb.h: Likewise.
29232 * util/grub-emu.c (main): Hanle (host) root.
29233 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29234 GRUB_ERR_UNKNOWN_DEVICE.
29235 * util/misc.c: Move mm functions to ...
29236 * util/mm.c: ... here. All users updated.
29237
29238 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29239
29240 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29241 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29242 missing files.
29243 (maintainer-clean): Remove libgcrypt-grub.
29244
29245 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29246
29247 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29248
29249 2010-04-09 EFI Coder <eficoder@hotmail.com>
29250
29251 * normal/menu_text.c (print_message): Clean up the message and show
29252 the Fn information when on EFI
29253 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29254
29255 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29256
29257 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29258 All users updated.
29259 * normal/crypto.c (read_crypto_list): Likewise.
29260 * normal/dyncmd.c (read_command_list): Likewise.
29261 * normal/term.c (read_terminal_list): Likewise.
29262 * normal/main.c (read_lists): Use explicit prefix.
29263 (read_lists_hook): Use read_lists.
29264 (grub_normal_execute): Likewise.
29265
29266 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29267
29268 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29269 Reported by: Thomas Schmitt.
29270 Add -no-emul-boot to grub-mkisofs parameters.
29271
29272 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29273
29274 * font/font.c: Indented.
29275
29276 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29277
29278 Elif support to GRUB script (by Deepak Vankadaru).
29279
29280 * tests/grub_script_if.in: New testcase.
29281 * conf/tests.rmk: Rule for new testcase.
29282 * script/parser.y: Grammar rules for elif.
29283
29284 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29285
29286 While and until loops support to GRUB script.
29287
29288 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29289 (grub_script_create_cmdwhile): New function prototype.
29290 (grub_script_execute_cmdwhile): New function prototype.
29291 * script/execute.c (grub_script_execute_cmdwhile): New function.
29292 * script/parser.y (command): New commands.
29293 (whilecmd): New grammar rule.
29294 (untilcmd): New grammar rule.
29295 * script/script.c (grub_script_create_cmdwhile): New function.
29296 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29297 function.
29298
29299 * tests/grub_script_while1.in: New testcase.
29300 * conf/tests.rmk: Rule for new testcase.
29301
29302 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29303
29304 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29305 as *.jpg.
29306
29307 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29308
29309 GRUB_BACKGROUND support.
29310
29311 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29312 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29313
29314 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29315
29316 Load fonts and modules for gfxmenu in grub-mkconfig.
29317 Idea by: Mario Vazquez
29318
29319 * util/grub.d/00_header.in: Load pf2 and image modules.
29320
29321 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29322
29323 grub-mkconfig multiple terminal support.
29324
29325 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29326 * util/grub.d/00_header.in: Likewise.
29327
29328 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29329
29330 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29331 we use cd $(srcdir).
29332
29333 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29334
29335 * util/grub.d/10_linux.in: Only use the first word of
29336 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29337 spaces in GRUB_DISTRIBUTOR.
29338 * util/grub.d/10_kfreebsd.in: Likewise.
29339 * util/grub.d/10_hurd.in: Likewise.
29340
29341 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29342
29343 Fix unit testing framework for Qemu 0.12.
29344
29345 * tests/util/grub-shell.in: Remove -serial stdio option.
29346
29347 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29348
29349 POSIX header file wrappers.
29350
29351 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29352 equivalents.
29353 * lib/posix_wrap/ctype.h: Likewise.
29354 * lib/posix_wrap/errno.h: Likewise.
29355 * lib/posix_wrap/langinfo.h: Likewise.
29356 * lib/posix_wrap/limits.h: Likewise.
29357 * lib/posix_wrap/localcharset.h: Likewise.
29358 * lib/posix_wrap/stdint.h: Likewise.
29359 * lib/posix_wrap/stdio.h: Likewise.
29360 * lib/posix_wrap/stdlib.h: Likewise.
29361 * lib/posix_wrap/string.h: Likewise.
29362 * lib/posix_wrap/sys/types.h: Likewise.
29363 * lib/posix_wrap/unistd.h: Likewise.
29364 * lib/posix_wrap/wchar.h: Likewise.
29365 * lib/posix_wrap/wctype.h: Likewise.
29366 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29367 (grub_script.yy.h): Likewise.
29368 * script/yylex.l: Remove POSIX emulation #defines.
29369 * Makefile.in (POSIX_CFLAGS): New variable.
29370 (GNULIB_UTIL_CFLAGS): Likewise.
29371
29372 Regexp support.
29373
29374 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29375 (regexp_mod_SOURCES): New variable.
29376 (regexp_mod_CFLAGS): Likewise.
29377 (regexp_mod_LDFLAGS): Likewise.
29378 * commands/regexp.c: New file.
29379 * gnulib/regcomp.c: New file. Imported from gnulib.
29380 * gnulib/regex.c: Likewise.
29381 * gnulib/regex_internal.c: Likewise.
29382 * gnulib/regex_internal.h: Likewise.
29383 * gnulib/regexec.c: Likewise.
29384 * gnulib/regex.h: Likewise.
29385
29386 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29387
29388 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29389 unsupported video mode types.
29390
29391 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29392
29393 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29394
29395 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29396
29397 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29398 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29399
29400 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29401
29402 Remove unused grub_vga_get_font.
29403
29404 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29405 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29406
29407 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29408
29409 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29410 * include/grub/misc.h: Likewise.
29411
29412 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29413
29414 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29415 for which failure is fatal.
29416
29417 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29418
29419 * util/grub-install.in: Use mkdir -p to create grub directory.
29420 * util/i386/efi/grub-install.in: Likewise.
29421 * util/ieee1275/grub-install.in: Likewise.
29422
29423 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29424
29425 * Makefile.in (LEX): new variable.
29426
29427 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29428
29429 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29430 `=' and added double quotes on operands of this equality test.
29431
29432 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29433
29434 * Makefile.in (uninstall): Remove a leftover debug echo.
29435 Reported by: Grégoire Sutre
29436
29437 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29438
29439 MIPS multiboot2 support.
29440
29441 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29442 (multiboot2_mod_SOURCES): New variable.
29443 (multiboot2_mod_CFLAGS): Likewise.
29444 (multiboot2_mod_LDFLAGS): Likewise.
29445 (multiboot2_mod_ASFLAGS): Likewise.
29446 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29447 definition.
29448 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29449 (MULTIBOOT_MBI_REGISTER): Likewise.
29450 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29451 (MULTIBOOT_ELF32_MACHINE): Likewise.
29452 (MULTIBOOT_ELF64_MACHINE): Likewise.
29453 * include/grub/mips/multiboot.h: New file.
29454 * include/grub/video.h (grub_video_driver_id): New type
29455 GRUB_VIDEO_DRIVER_SM712.
29456 (grub_video_get_info_and_fini): Export.
29457 (grub_video_get_palette): Likewise.
29458 (grub_video_get_driver_id): Likewise.
29459 * include/multiboot2.h: Resynced with spec.
29460 * loader/i386/multiboot.c: Moved from here ...
29461 * loader/multiboot.c: ... here. All users updated.
29462 (grub_multiboot_boot): Use platform-specific macros.
29463 * loader/i386/multiboot_elfxx.c: Moved from here ...
29464 * loader/multiboot_elfxx.c: ... here. All users updated.
29465 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29466 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29467 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29468
29469 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29470
29471 Import gnulib argp module.
29472
29473 * gnulib/argp-ba.c: New file.
29474 * gnulib/argp-eexst.c: Likewise.
29475 * gnulib/argp-fmtstream.c: Likewise.
29476 * gnulib/argp-fmtstream.h: Likewise.
29477 * gnulib/argp-fs-xinl.c: Likewise.
29478 * gnulib/argp-help.c: Likewise.
29479 * gnulib/argp-namefrob.h: Likewise.
29480 * gnulib/argp-parse.c: Likewise.
29481 * gnulib/argp-pin.c: Likewise.
29482 * gnulib/argp-pv.c: Likewise.
29483 * gnulib/argp-pvh.c: Likewise.
29484 * gnulib/argp-version-etc.c: Likewise.
29485 * gnulib/argp-version-etc.h: Likewise.
29486 * gnulib/argp-xinl.c: Likewise.
29487 * gnulib/argp.h: Likewise.
29488
29489 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29490
29491 * kern/device.c (grub_device_iterate): Clear errors after failed
29492 opening device.
29493
29494 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29495
29496 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29497 returned by firmware.
29498
29499 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29500
29501 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29502 compilation on coreboot and qemu
29503
29504 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29505
29506 * include/multiboot2.h: Resync with spec.
29507
29508 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29509
29510 Multiboot2 tag support
29511
29512 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29513 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29514 Remove loader/multiboot_loader.c.
29515 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29516 (grub_multiboot2_real_boot): Likewise.
29517 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29518 (grub_get_multiboot_mmap_count): New proto.
29519 (grub_fill_multiboot_mmap): Likewise.
29520 (grub_multiboot_set_video_mode): Likewise.
29521 (grub_multiboot_set_console): Likewise.
29522 (grub_multiboot_load): Likewise.
29523 (grub_multiboot_load_elf): Likewise.
29524 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29525 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29526 * include/multiboot.h: Resynced with specification.
29527 * include/multiboot2.h: Resynced with specification.
29528 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29529 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29530 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29531 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29532 users updated.
29533 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29534 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29535 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29536 Removed.
29537 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29538 Moved from here...
29539 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29540 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29541 Moved from here...
29542 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29543 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29544 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29545 All users updated.
29546 * loader/i386/multiboot_mbi2.c: New file.
29547
29548 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29549
29550 Resync with gnulib.
29551
29552 * Makefile.in (GNULIB_CFLAGS): New variable.
29553 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29554 (grub_script_check_CFLAGS): New variable.
29555 * gnulib/alloca.h: Resync with gnulib.
29556 * gnulib/error.c: Likewise.
29557 * gnulib/error.h: Likewise.
29558 * gnulib/fnmatch.c: Likewise.
29559 * gnulib/fnmatch_loop.c: Likewise.
29560 * gnulib/getdelim.c: Likewise.
29561 * gnulib/getline.c: Likewise.
29562 * gnulib/getopt.c: Likewise.
29563 * gnulib/getopt1.c: Likewise.
29564 * gnulib/getopt_int.h: Likewise.
29565 * gnulib/gettext.h: Likewise.
29566 * gnulib/progname.c: Likewise.
29567 * gnulib/progname.h: Likewise.
29568
29569 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29570
29571 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29572 which is the case with --disabled-nls.
29573
29574 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29575 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29576 * util/misc.c: Likewise.
29577 * util/mkisofs/mkisofs.c: Likewise.
29578 * util/mkisofs/mkisofs.h: Likewise.
29579
29580 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29581
29582 Simplify Apple CC support.
29583
29584 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29585 Add 0 byte at the end not to have a symbol with empty target.
29586 * mmap/i386/pc/mmap_helper.S: Likewise.
29587 * genmk.rb: Ignore errors 2030 and 2050.
29588 * kern/i386/pc/startup.S: Use LOCAL when possible.
29589
29590 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29591
29592 Testcase and the fix for final semicolon on cmdline.
29593
29594 * tests/grub_script_final_semicolon.in: New testcase.
29595 * conf/tests.rmk: Rules for the new testcase.
29596 * script/parser.y: Grammar fix.
29597
29598 2010-03-26 BVK Chaitanya <bvk@localhost>
29599
29600 Blank lines testcase for GRUB script.
29601
29602 * tests/grub_script_blanklines.in: New testcase.
29603 * conf/tests.rmk: Rules for the new testcase.
29604
29605 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29606
29607 Don't use __FILE__.
29608
29609 * genmk.rb: Add -DGRUB_FILE to all C targets.
29610 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29611 * include/grub/list.h: Likewise.
29612 * include/grub/misc.h: Likewise.
29613 * include/grub/mm.h: Likewise.
29614 * include/grub/test.h: Likewise.
29615 * kern/mm.c: Likewise.
29616 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29617
29618 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29619
29620 Sunpc partitions support.
29621
29622 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29623 (grub_fstest_SOURCES): Likewise.
29624 (pkglib_MODULES): Add part_sunpc.mod.
29625 (part_sunpc_mod_SOURCES): New variable.
29626 (part_sunpc_mod_CFLAGS): Likewise.
29627 (part_sunpc_mod_LDFLAGS): Likewise.
29628 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29629 * partmap/sunpc.c: New file.
29630
29631 2010-03-26 BVK Chaitanya <bvk@localhost>
29632
29633 For loop support to GRUB script.
29634
29635 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29636 (grub_script_create_cmdfor): New function prototype.
29637 (grub_script_execute_cmdfor): New function prototype.
29638 * script/execute.c (grub_script_execute_cmdfor): New function.
29639 * script/parser.y (command): New for command.
29640 (forcmd): New grammar rule.
29641 * script/script.c (grub_script_create_cmdfor): New function.
29642 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29643 function.
29644 * tests/grub_script_for1.in: New testcase.
29645 * conf/tests.rmk: Rules for new testcase.
29646
29647 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29648
29649 Nested partitions
29650
29651 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29652 'partition' is NULL, grub_partition_get_start already does that.
29653 * commands/loadenv.c (check_blocklists): Likewise.
29654 (write_blocklists): Likewise.
29655 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29656 (grub_fstest_SOURCES): Likewise.
29657 (pkglib_MODULES): Add part_bsd.mod.
29658 (part_bsd_mod_SOURCES): New variable.
29659 (part_bsd_mod_CFLAGS): Likewise.
29660 (part_bsd_mod_LDFLAGS): Likewise.
29661 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29662 (grub_emu_SOURCES): Likewise.
29663 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29664 * include/grub/bsdlabel.h: New file.
29665 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29666 'get_name'.
29667 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29668 (grub_partition_map_list): New variable.
29669 (grub_partition_map_register): Inline.
29670 (grub_partition_map_unregister): Likewise.
29671 (FOR_PARTITION_MAPS): New macro.
29672 (grub_partition_map_iterate): Removed.
29673 (grub_partition_get_start): Handle nested partitions.
29674 * include/grub/msdos_partition.h: Remove bsd-related entries.
29675 (grub_pc_partition): Remove.
29676 * kern/disk.c (grub_disk_close): Free partition data.
29677 (grub_disk_adjust_range): Handle nested partitions.
29678 * kern/partition.c (grub_partition_map_probe): New function.
29679 (grub_partition_probe): Parse name to number, handle subpartitions.
29680 (get_partmap): New function.
29681 (grub_partition_iterate): Handle subpartitions.
29682 (grub_partition_get_name): Likewise.
29683 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29684 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29685 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29686 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29687 Set 'number'.
29688 (acorn_partition_map_probe): Remove.
29689 (acorn_partition_map_get_name): Likewise.
29690 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29691 Set 'number'.
29692 Set 'index' to 0 since there can be only one partition entry per sector.
29693 (amiga_partition_map_probe): Remove.
29694 (amiga_partition_map_get_name): Likewise.
29695 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29696 Set 'number'.
29697 Set 'offset' and 'index' to real positions of partitions.
29698 (apple_partition_map_probe): Remove.
29699 (apple_partition_map_get_name): Likewise.
29700 * partmap/bsdlabel.c: New file.
29701 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29702 Set 'number'.
29703 Allocate 'data' so it can be correctly freed.
29704 Set 'index' to offset inside sector.
29705 (gpt_partition_map_probe): Remove.
29706 (gpt_partition_map_get_name): Likewise.
29707 * partmap/msdos.c (grub_partition_parse): Remove.
29708 (pc_partition_map_iterate): Don't force raw access.
29709 Set 'number'.
29710 Make 'ext_offset' a local variable.
29711 (pc_partition_map_probe): Remove.
29712 (pc_partition_map_get_name): Remove.
29713 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29714 Set 'number'.
29715 (sun_partition_map_probe): Remove.
29716 (sun_partition_map_get_name): Likewise.
29717 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29718 (grub_pcpart_type): Likewise.
29719 * util/hostdisk.c (open_device): Handle new numbering scheme.
29720 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29721 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29722 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29723 * util/grub-install.in: Insert all subpartition modules.
29724 * util/ieee1275/grub-install.in: Likewise.
29725
29726 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29727
29728 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29729 grammar.
29730
29731 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29732
29733 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29734
29735 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29736
29737 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29738 match where 'make install' puts them.
29739 * util/i386/efi/grub-install.in: Likewise.
29740
29741 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29742
29743 * .bzrignore: Add gentrigtables, grub-script-check,
29744 grub_script_check_init.c, grub_script_check_init.h, and
29745 trigtables.c.
29746
29747 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29748
29749 * kern/parser.c: Indented.
29750
29751 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29752
29753 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29754
29755 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29756
29757 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29758 alpha_mask_size == 0 case.
29759
29760 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29761
29762 GRUB shell lexer and parser improvements.
29763
29764 * conf/any-emu.rmk: Build rule updates.
29765 * conf/common.rmk: Likewise.
29766 * conf/i386-coreboot.rmk: Likewise.
29767 * conf/i386-efi.rmk: Likewise.
29768 * conf/i386-ieee1275.rmk: Likewise.
29769 * conf/i386-pc.rmk: Likewise.
29770 * conf/powerpc-ieee1275.rmk: Likewise.
29771 * conf/x86_64-efi.rmk: Likewise.
29772
29773 * configure.ac: Configure check for flex.
29774
29775 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29776 types.
29777 (grub_lexer_param): Struct member updates.
29778 (grub_parser_param): Likewise.
29779 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29780 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29781 (grub_script_lexer_init): Prototype update.
29782 (grub_script_lexer_record_start): Likewise.
29783 (grub_script_lexer_record_stop): Likewise.
29784 (grub_script_lexer_yywrap): New function prototype.
29785 (grub_script_lexer_fini): Likewise.
29786 (grub_script_execute_argument_to_string): Removed by...
29787 (grub_script_execute_argument_to_argv): ...better version.
29788
29789 * script/execute.c (ROUND_UPTO): New macro.
29790 (grub_script_execute_cmdline): Out of memory fixes.
29791 (grub_script_execute_menuentry): Likewise.
29792 (grub_script_execute_argument_to_string): Removed. Update all
29793 users by...
29794 (grub_script_execute_argument_to_argv): ...better version.
29795 * script/function.c (grub_script_function_create): Use
29796 grub_script_execute_argument_to_argv instead of
29797 grub_script_execute_argument_to_string.
29798
29799 * script/lexer.c (check_varstate): Removed.
29800 (check_textstate): Removed.
29801 (grub_script_lexer_record_start): Likewise.
29802 (grub_script_lexer_record_stop): Likewise.
29803 (recordchar): Replaced with...
29804 (grub_script_lexer_record): ...new function.
29805 (nextchar): Removed.
29806 (grub_script_lexer_init): Rewritten.
29807 (grub_script_yylex): Rewritten.
29808 (append_newline): New function.
29809 (grub_script_lexer_yywrap): New function.
29810 (grub_script_lexer_fini): New function.
29811 (grub_script_yyerror): Sets error flag.
29812
29813 * script/yylex.l: New file.
29814 (grub_lexer_yyfree): Wrapper for flex yyffre.
29815 (grub_lexer_yyalloc): Likewise.
29816 (grub_lexer_yyrealloc): Likewise.
29817 * script/parser.y: Refactored.
29818
29819 * script/script.c (grub_script_arg_add): Out of memory fixes.
29820 (grub_script_add_arglist): Likewise.
29821 (grub_script_create_cmdline): Likewise.
29822 (grub_script_create_cmdmenu): Likewise.
29823 (grub_script_add_cmd): Likewise.
29824 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29825 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29826 unnecessary code.
29827
29828 * tests/grub_script_echo1.in: New testcase.
29829 * tests/grub_script_vars1.in: New testcase.
29830 * tests/grub_script_echo_keywords.in: New testcase.
29831
29832 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29833
29834 Remove some redundancy in build system.
29835
29836 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29837 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29838 (TARGET_LDFLAGS): Add -nostdlib.
29839 (TARGET_IMG_LDFLAGS): Likewise.
29840 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29841 anything since mmap isn't available.
29842 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29843 Add util/time.c.
29844 (pkglib_MODULES): Remove reboot.mod.
29845 (reboot_mod_SOURCES): Removed.
29846 (reboot_mod_CFLAGS): Likewise.
29847 (reboot_mod_LDFLAGS): Likewise.
29848 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29849 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29850 (DEFSYMFILES): Add kernel_syms.lst.
29851 (kernel_img_HEADERS): Add common headers.
29852 (symlist.c): New target.
29853 (kernel_syms.lst): Likewise.
29854 (pkglib_MODULES): Add memdisk.mod.
29855 (memdisk_mod_SOURCES): New variable.
29856 (memdisk_mod_CFLAGS): Likewise.
29857 (memdisk_mod_LDFLAGS): Likewise.
29858 (pkglib_MODULES): Add reboot.mod.
29859 (reboot_mod_SOURCES): New variable.
29860 (reboot_mod_CFLAGS): Likewise.
29861 (reboot_mod_LDFLAGS): Likewise.
29862 (pkglib_MODULES): Add date.mod.
29863 (date_mod_SOURCES): New variable.
29864 (date_mod_CFLAGS): Likewise.
29865 (date_mod_LDFLAGS): Likewise.
29866 (pkglib_MODULES): Add datehook.mod.
29867 (datehook_mod_SOURCES): New variable.
29868 (datehook_mod_CFLAGS): Likewise.
29869 (datehook_mod_LDFLAGS): Likewise.
29870 (pkglib_MODULES): Add lsmmap.mod.
29871 (lsmmap_mod_SOURCES): New variable.
29872 (lsmmap_mod_CFLAGS): Likewise.
29873 (lsmmap_mod_LDFLAGS): Likewise.
29874 (pkglib_MODULES): Add boot.mod.
29875 (boot_mod_SOURCES): New variable.
29876 (boot_mod_CFLAGS): Likewise.
29877 (boot_mod_LDFLAGS): Likewise.
29878 * conf/i386-coreboot.rmk: Removed redundant parts.
29879 * conf/i386-ieee1275.rmk: Likewise.
29880 * conf/i386-pc.rmk: Likewise.
29881 * conf/mips-yeeloong.rmk: Likewise.
29882 * conf/mips.rmk: Likewise.
29883 * conf/powerpc-ieee1275.rmk: Likewise.
29884 * conf/sparc64-ieee1275.rmk: Likewise.
29885 * conf/x86_64-efi.rmk: Likewise.
29886 * conf/i386-coreboot.rmk: Moved qemu parts ..
29887 * conf/i386-qemu.rmk: ... here
29888 * conf/i386-efi.rmk: Moved common parts to...
29889 * conf/x86-efi.rmk: ... here.
29890 * conf/i386.rmk: Added modules common to all x86 variants.
29891 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29892 * disk/memdisk.c: Remove grub/machine/kernel.h.
29893 * gensymlist.sh.in: Include symbol.h.
29894 * hook/datehook.c: Correct module name.
29895 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29896 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29897 * include/grub/i386/efi/serial.h: New file.
29898 * include/grub/x86_64/efi/serial.h: Likewise.
29899 * util/time.c: Likewise.
29900 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29901
29902 2010-03-14 Colin King <colin.king@ubuntu.com>
29903 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29904
29905 Shrink the pre-partition-table part of boot.img by eight bytes.
29906
29907 * boot/i386/pc/boot.S (ERR): New macro.
29908 (chs_mode): Use ERR.
29909 (geometry_error): Likewise.
29910 (hd_probe_error): Remove. This is only used once, so we wrwite
29911 it inline instead.
29912 (read_error): Instead of printing read_error_string, just set up
29913 %si and fall through to ...
29914 (error_message): ... this new function, also used by ERR.
29915
29916 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29917
29918 Speed up consecutive hostdisk operations on the same device.
29919
29920 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29921 (grub_util_biosdisk_open): Initialise disk->data.
29922 (struct linux_partition_cache): New structure.
29923 (linux_find_partition): Cache partition start positions; these are
29924 expensive to compute on every read and write.
29925 (open_device): Cache open file descriptor in disk->data, so that we
29926 don't have to reopen it and flush the buffer cache for consecutive
29927 operations on the same device.
29928 (grub_util_biosdisk_close): New function.
29929 (grub_util_biosdisk_dev): Set `close' member.
29930
29931 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29932 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29933 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29934 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29935 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29936
29937 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29938
29939 Compile parts of grub-emu as modules.
29940
29941 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29942 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29943 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29944 (all-local): Add $(GRUB_EMU).
29945 (install-local): Install $(GRUB_EMU).
29946 (uninstall): Uninstall $(GRUB_EMU).
29947 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29948 * kern/dl.c: Likewise.
29949 * commands/sleep.c: Not include machine/time.h.
29950 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29951 (COMMON_CFLAGS): Likewise.
29952 (sbin_UTILITIES): Remove grub-emu.
29953 (grub_emu_SOURCES): Removed.
29954 (kernel_img_RELOCATABLE): New variable.
29955 (pkglib_PROGRAMS): Add kernel.img.
29956 (kernel_img_SOURCES): New variable
29957 (kernel_img_CFLAGS): Likewise.
29958 (kernel_img_LDFLAGS): Likewise.
29959 (TARGET_NO_STRIP): Likewise.
29960 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29961 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29962 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29963 (grub-emu): New target.
29964 (GRUB_EMU): New variable.
29965 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29966 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29967 * loader/xnu.c: Likewise.
29968 * include/grub/pci.h: Likewise.
29969 * genemuinit.sh: New file.
29970 * genemuinitheader.sh: Likewise.
29971 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29972 Support TARGET_NO_DYNAMIC_MODULES.
29973 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29974 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29975 * disk/loopback.c: Likewise.
29976 * font/font_cmd.c: Likewise.
29977 * partmap/acorn.c: Likewise.
29978 * partmap/amiga.c: Likewise.
29979 * partmap/apple.c: Likewise.
29980 * partmap/gpt.c: Likewise.
29981 * partmap/msdos.c: Likewise.
29982 * partmap/sun.c: Likewise.
29983 * parttool/msdospart.c: Likewise.
29984 * term/gfxterm.c: Likewise.
29985 * video/bitmap.c: Likewise.
29986 * video/readers/jpeg.c: Likewise.
29987 * video/readers/png.c: Likewise.
29988 * video/readers/tga.c: Likewise.
29989 * video/video.c: Likewise.
29990 * util/grub-emu.c (read_command_list): Removed.
29991 (main): Don't call util_init_nls.
29992 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29993 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29994
29995 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29996
29997 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29998 date.mod, datehook.mod.
29999 (datetime_mod_SOURCES): New variable.
30000 (datetime_mod_CFLAGS): Likewise.
30001 (datetime_mod_LDFLAGS): Likewise.
30002 (date_mod_SOURCES): Likewise.
30003 (date_mod_CFLAGS): Likewise.
30004 (date_mod_LDFLAGS): Likewise.
30005 (datehook_mod_SOURCES): Likewise.
30006 (datehook_mod_CFLAGS): Likewise.
30007 (datehook_mod_LDFLAGS): Likewise.
30008 * conf/sparc64-ieee1275.rmk: Likewise.
30009 * lib/ieee1275/datetime.c: New file.
30010
30011 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30012
30013 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30014 (ieee1275_fb_mod_SOURCES): New variable.
30015 (ieee1275_fb_mod_CFLAGS): Likewise.
30016 (ieee1275_fb_mod_LDFLAGS): Likewise.
30017 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30018 New proto.
30019 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30020 (HEAP_MAX_ADDR): Likewise.
30021 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30022 type.
30023 Correct stop condition.
30024 (grub_ieee1275_devices_iterate): New function.
30025 * video/ieee1275.c: New file.
30026
30027 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30028
30029 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30030
30031 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30032 as scratch.
30033 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30034 SCRATCH_PAD_DISKBOOT as scratch.
30035 (bootit): Pass Openfirmware pointer in %o4.
30036 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30037 of 0x200000.
30038 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30039 with util/grub-mkrawimage.c.
30040 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30041 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30042 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30043 (grub_aout_load) [GRUB_UTIL]: Likewise.
30044 * include/grub/kernel.h (grub_modules_get_end): New proto.
30045 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30046 (SCRATCH_PAD_BOOT): New definition.
30047 (SCRATCH_PAD_DISKBOOT): Likewise.
30048 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30049 * include/grub/sparc64/ieee1275/ieee1275.h
30050 (grub_ieee1275_original_stack): New variable
30051 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30052 New definition
30053 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30054 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30055 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30056 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30057 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30058 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30059 (grub_platform_image_format_t): New type.
30060 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30061 * kern/main.c (grub_modules_get_end)
30062 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30063 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30064 (codestart): Switch stacks.
30065 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30066 variable.
30067 (grub_heap_init): Use grub_modules_get_end.
30068 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30069 stack.
30070 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30071 (main): Likewise.
30072 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30073
30074 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30075
30076 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30077
30078 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30079
30080 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30081 bug #559005).
30082
30083 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30084
30085 * genmoddep.awk: Output all missing symbols and not only first.
30086
30087 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30088
30089 * NEWS: Put the date of 1.98 release.
30090
30091 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30092
30093 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30094 ft2build.h.
30095
30096 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30097
30098 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30099 completition in the middle of string.
30100
30101 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30102
30103 * util/grub-mkrescue.in: Use mktemp with explicit template.
30104
30105 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30106
30107 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30108
30109 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30110
30111 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30112 right pointer.
30113
30114 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30115
30116 Fix FreeBSD compilation.
30117
30118 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30119 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30120
30121 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30122
30123 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30124
30125 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30126
30127 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30128
30129 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30130
30131 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30132
30133 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30134
30135 Support relative image path in theme file.
30136
30137 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30138 (image_set_property): Handle theme_dir and relative path.
30139
30140 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30141
30142 * configure.ac: Alias amd64 to x86_64.
30143
30144 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30145
30146 * NEWS: mention multiboot on EFI.
30147
30148 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30149
30150 * kern/main.c (grub_load_modules): Handle errors from init functions of
30151 embeded modules.
30152
30153 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30154
30155 * normal/autofs.c (autoload_fs_module): Handle errors.
30156
30157 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30158
30159 Disable linux.mod on qemu-mips since it's not functional and leads
30160 to compilation failure.
30161
30162 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30163 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30164 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30165 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30166 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30167 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30168 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30169 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30170 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30171 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30172 Reported by: BVK Chaitanya
30173
30174 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30175
30176 * INSTALL: Add gettext as a dependency and add qemu to a new section
30177 "Prerequisites for make-check".
30178
30179 2010-03-04 Christian Franke <franke@computer.org>
30180
30181 * util/grub-pe2elf.c: Add missing include "progname.h".
30182
30183 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30184
30185 * normal/crypto.c (read_crypto_list): Fix a typo.
30186 Reported by: Seth Goldberg.
30187
30188 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30189
30190 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30191 Reported by: Seth Goldberg.
30192
30193 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30194
30195 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30196 ascii.bitmaps.
30197
30198 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30199
30200 * genmk.rb: Remove terminal*.lst in make clean.
30201 Reported by: Seth Goldberg.
30202
30203 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30204
30205 * util/i386/efi/grub-install.in: Copy gettext files.
30206
30207 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30208
30209 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30210
30211 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30212
30213 Wait for user entry basing on presence of output rather than on errors.
30214
30215 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30216 (grub_install_newline_hook): Likewise.
30217 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30218 * normal/menu.c (show_menu): Check line_counter to determine presence
30219 of output.
30220 * normal/term.c (grub_normal_line_counter): New variable.
30221 (grub_normal_get_line_counter): New function.
30222 (grub_install_newline_hook): Likewise.
30223
30224 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30225
30226 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30227
30228 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30229
30230 * configure.ac: Update version to 1.98.
30231
30232 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30233
30234 * util/grub.d/10_linux.in (linux_entry): Don't default to
30235 gfxpayload=keep if Linux doesn't support video handover.
30236
30237 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30238
30239 Don't compile video modules on yeeloong since video subsystem is part
30240 of kernel.
30241
30242 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30243 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30244 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30245 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30246 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30247 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30248 * include/grub/bitmap_scale.h: Likewise.
30249 * include/grub/bufio.h: Likewise.
30250 * include/grub/font.h: Likewise.
30251 * include/grub/gfxterm.h: Likewise.
30252 * include/grub/video.h: Likewise.
30253 * include/grub/vbe.h: Don't include video_fb.h.
30254 * video/i386/pc/vbe.c: Include video_fb.h.
30255 * commands/i386/pc/vbetest.c: Include video.h.
30256
30257 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30258
30259 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30260 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30261 default entry if GRUB_SAVEDEFAULT=true. This allows using
30262 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30263 saving a new default on every boot.
30264
30265 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30266
30267 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30268 * normal/term.c (read_terminal_list): Likewise.
30269 * normal/main.c (grub_normal_init_page): Likewise.
30270 (grub_normal_read_line_real): Likewise.
30271
30272 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30273
30274 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30275 memory leak.
30276 Reported by: Seth Goldberg.
30277
30278 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30279
30280 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30281 duplicate declaration of `start'.
30282
30283 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30284
30285 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30286 filename.
30287 Reported by: Georgy Buranov
30288
30289 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30290
30291 * util/grub-mkrawimage.c (usage): Change string formatting to
30292 improve gettext.
30293
30294 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30295
30296 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30297 backspace keys.
30298
30299 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30300
30301 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30302 Reported by: Michael Suchanek.
30303
30304 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30305
30306 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30307 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30308
30309 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30310
30311 Remove any reference to non-free fonts.
30312
30313 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30314 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30315 uses non-free components.
30316 * font/font.c (grub_font_get_name): Remove example name.
30317 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30318 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30319 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30320 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30321
30322 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30323
30324 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30325
30326 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30327
30328 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30329 Double divisor.
30330 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30331 features.
30332 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30333
30334 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30335
30336 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30337
30338 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30339
30340 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30341 * docs/grub.texi (Command-line and menu entry commands): Document play
30342 command.
30343
30344 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30345
30346 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30347 parse arguments as inline tempo and notes. Move code for playing notes
30348 to...
30349 (play): ... new function.
30350
30351 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30352
30353 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30354 grub_uint16_t instead of short.
30355 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30356 disk from little endian to cpu endianness.
30357
30358 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30359
30360 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30361 GRUB_TICKS_PER_SECOND instead of 120.
30362
30363 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30364
30365 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30366 escape sequence after \e.
30367
30368 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30369
30370 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30371 non-ASCII characters.
30372
30373 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30374
30375 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30376 set root in single quotes to prevent \, from being unescaped.
30377
30378 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30379
30380 Prevent unknown commands from stopping menuentry execution.
30381
30382 * script/execute.c (grub_script_execute_cmdline): Print error after
30383 unknown command.
30384
30385 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30386
30387 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30388 Reported by: Pavel Pisa.
30389
30390 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30391
30392 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30393
30394 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30395
30396 Merge grub_ieee1275_map_physical into grub_map and rename to
30397 grub_ieee1275_map
30398
30399 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30400 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30401 Remove.
30402 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30403 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30404 necessary.
30405 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30406
30407 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30408
30409 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30410 opening and not after.
30411
30412 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30413
30414 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30415 constants.
30416
30417 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30418
30419 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30420 (alloc_phys): Use ALIGN_UP instead of align_addr.
30421
30422 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30423
30424 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30425
30426 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30427
30428 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30429
30430 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30431
30432 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30433 verbose dprintf.
30434
30435 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30436
30437 Fix over-4GiB seek on sparc64.
30438
30439 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30440 Replace pos_i and pos_lo with pos. All users updated.
30441 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30442 New constant.
30443 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30444 Likewise.
30445 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30446 and pos_lo.
30447
30448 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30449
30450 * util/grub-mkrawimage.c (main): Call set_program_name.
30451
30452 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30453
30454 Properly align 64-bit targets.
30455
30456 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30457 (generate_image): Use ALIGN_ADDR.
30458
30459 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30460
30461 Properly create cross-endian images.
30462
30463 * include/grub/types.h (grub_host_to_target_addr): New macro
30464 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30465
30466 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30467
30468 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30469
30470 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30471
30472 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30473
30474 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30475 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30476 (grub_linux_boot): Divide by 64K when on VESA.
30477
30478 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30479
30480 Support GRUB_GFXPAYLOAD_LINUX.
30481
30482 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30483 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30484
30485 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30486
30487 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30488 to show messages instead of discarding them.
30489 Process errors after executing command and not before. Keep old method
30490 too as precaution.
30491
30492 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30493
30494 * configure.ac: Check for ft2build.h.
30495
30496 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30497
30498 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30499
30500 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30501
30502 * genkernsyms.sh.in: Use TARGET_CC.
30503
30504 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30505
30506 * NEWS: Update.
30507
30508 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30509
30510 * include/grub/multiboot2.h: Remove leftover file.
30511 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30512 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30513
30514 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30515
30516 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30517
30518 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30519
30520 Fix warnings in grub-emu when compiling with maximum warning options.
30521
30522 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30523 (grub_arch_modules_addr): Return 0 and not NULL.
30524 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30525 (xstrdup): Use newstr instead of dup.
30526 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30527 of disk to dsk to avoid shadowing.
30528 (find_free_slot): Fix prototype.
30529 * util/getroot.c (grub_util_is_dmraid): Make static.
30530 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30531 Add missing prototype.
30532 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30533
30534 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30535
30536 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30537 appropriately.
30538
30539 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30540
30541 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30542 code out.
30543
30544 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30545
30546 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30547 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30548 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30549 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30550 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30551 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30552
30553 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30554
30555 * include/grub/err.h (grub_err_printf): Don't export.
30556
30557 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30558
30559 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30560
30561 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30562
30563 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30564 * kern/misc.c (grub_gettext_dummy): Make static.
30565
30566 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30567
30568 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30569 by non-valid ones.
30570 * kern/term.c (grub_putchar): Likewise.
30571
30572 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30573
30574 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30575 buggy hook call and memory leak.
30576
30577 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30578
30579 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30580
30581 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30582
30583 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30584
30585 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30586
30587 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30588 modevar.
30589 Return grub_errno on allocation error.
30590
30591 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30592
30593 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30594
30595 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30596
30597 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30598 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30599
30600 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30601
30602 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30603 non-pxe disk.
30604 (grub_pxefs_open): Likewise.
30605
30606 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30607
30608 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30609 * util/grub.d/10_kfreebsd.in: Likewise.
30610 * util/grub.d/10_linux.in: Likewise.
30611
30612 2010-02-06 Colin D Bennett <colin@gibibit.com>
30613
30614 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30615 (gfxmenu_mod_SOURCES): New variable.
30616 (gfxmenu_mod_CFLAGS): Likewise.
30617 (gfxmenu_mod_LDFLAGS): Likewise.
30618 * include/grub/term.h (grub_term_set_current_output): Declare
30619 argument as const.
30620 * docs/gfxmenu-theme-example.txt: New file.
30621 * gfxmenu/gfxmenu.c: Likewise.
30622 * gfxmenu/gui_box.c: Likewise.
30623 * gfxmenu/gui_canvas.c: Likewise.
30624 * gfxmenu/gui_circular_progress.c: Likewise.
30625 * gfxmenu/gui_image.c: Likewise.
30626 * gfxmenu/gui_label.c: Likewise.
30627 * gfxmenu/gui_list.c: Likewise.
30628 * gfxmenu/gui_progress_bar.c: Likewise.
30629 * gfxmenu/gui_string_util.c: Likewise.
30630 * gfxmenu/gui_util.c: Likewise.
30631 * gfxmenu/icon_manager.c: Likewise.
30632 * gfxmenu/model.c: Likewise.
30633 * gfxmenu/named_colors.c: Likewise.
30634 * gfxmenu/theme_loader.c: Likewise.
30635 * gfxmenu/view.c: Likewise.
30636 * gfxmenu/widget-box.c: Likewise.
30637 * include/grub/gfxmenu_model.h: Likewise.
30638 * include/grub/gfxmenu_view.h: Likewise.
30639 * include/grub/gfxwidgets.h: Likewise.
30640 * include/grub/gui.h: Likewise.
30641 * include/grub/gui_string_util.h: Likewise.
30642 * include/grub/icon_manager.h: Likewise.
30643
30644 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30645
30646 Agglomerate scrolling in gfxterm.
30647
30648 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30649 (grub_virtual_screen_setup): Initialise 'total_screen'.
30650 (write_char): Split to ...
30651 (paint_char): ... this ...
30652 (write_char): ... and this.
30653 (paint_char): Handle delayed scrolling.
30654 (draw_cursor): Likewise.
30655 (scroll_up): Split to ...
30656 (real_scroll): ... this ...
30657 (scroll_up): ... and this.
30658 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30659 characters.
30660 (grub_gfxterm_refresh): Call real_scroll.
30661
30662 2010-02-06 Colin D Bennett <colin@gibibit.com>
30663
30664 * include/grub/misc.h (grub_iscntrl): New inline function.
30665 (grub_isalnum): Likewise.
30666 (grub_strtol): Likewise.
30667
30668 2010-02-06 Colin D Bennett <colin@gibibit.com>
30669
30670 * normal/menu_text.c (get_entry_number): Move from here ...
30671 * normal/menu.c (get_entry_number): ... moved here.
30672 * include/grub/menu.h (grub_menu_get_default_entry_index):
30673 New prototype.
30674 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30675 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30676 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30677 (grub_menu_viewer_should_return): Likewise.
30678 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30679 * normal/menu_text.c (run_menu): Enable menu switching.
30680 * normal/menu_viewer.c (should_return): New variable.
30681 (menu_viewer_changed): Likewise.
30682 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30683 (grub_menu_viewer_should_return): New function.
30684 (menuviewer_write_hook): Likewise.
30685 (grub_menu_viewer_init): Likewise.
30686
30687 2010-02-06 Colin D Bennet <colin@gibibit.com>
30688 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30689
30690 Support for gfxterm in a window.
30691
30692 * include/grub/gfxterm.h: New file.
30693 * include/grub/video.h (struct grub_video_rect): New declaration.
30694 (grub_video_rect_t): Likewise.
30695 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30696 (refcount): New variable.
30697 (render_target): Likewise.
30698 (window): Likewise.
30699 (repaint_callback): Likewise.
30700 (grub_virtual_screen_setup): Use 'render_target'.
30701 (init_window): New function.
30702 (grub_gfxterm_init_window): Likewise.
30703 (grub_gfxterm_init): Check reference counter.
30704 Use init_window.
30705 (destroy_window): New function.
30706 (grub_gfxterm_destroy_window): Likewise.
30707 (grub_gfxterm_fini): Check reference counter.
30708 Use destroy_window.
30709 (redraw_screen_rect): Restore viewport.
30710 Use 'render_target' and 'window'.
30711 Call 'repaint_callback'.
30712 (write_char): Use 'render_target'.
30713 (draw_cursor): Likewise.
30714 (scroll_up): Restore viewport.
30715 Use 'render_target' and 'window'.
30716 Call 'repaint_callback'.
30717 (grub_gfxterm_cls): Likewise.
30718 (grub_gfxterm_refresh): Use 'window'.
30719 (grub_gfxterm_set_repaint_callback): New function.
30720 (grub_gfxterm_background_image_cmd): Use 'window'.
30721 (grub_gfxterm_get_term): New function.
30722 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30723
30724 2010-02-06 Colin D Bennett <colin@gibibit.com>
30725
30726 Bitmap scaling support.
30727
30728 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30729 (bitmap_scale_mod_SOURCES): New variable.
30730 (bitmap_scale_mod_CFLAGS): Likewise.
30731 (bitmap_scale_mod_LDFLAGS): Likewise.
30732 * include/grub/bitmap_scale.h: New file.
30733 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30734 (background_image_cmd_options): New variable.
30735 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30736 (cmd): Rename and change type to ...
30737 (background_image_cmd_handle): ... this. All users updated.
30738 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30739 * video/bitmap_scale.c: New file.
30740
30741 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30742
30743 SDL support.
30744
30745 * Makefile.in (LIBSDL): New variable.
30746 (enable_grub_emu_sdl): Likewise.
30747 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30748 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30749 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30750 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30751 * util/sdl.c: New file.
30752
30753 2010-02-06 Colin D Bennett <colin@gibibit.com>
30754 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30755
30756 Double buffering support.
30757
30758 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30759 * include/grub/video.h: Update comment.
30760 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30761 New type.
30762 (grub_video_fb_doublebuf_blit_init): New prototype.
30763 * term/gfxterm.c (scroll_up): Support double buffering.
30764 (grub_gfxterm_refresh): Likewise.
30765 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30766 (grub_video_fb_doublebuf_blit_init): Likewise.
30767 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30768 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30769 'displayed_page', 'render_page' and 'update_screen'.
30770 (grub_video_vbe_fini): Free offscreen buffer.
30771 (doublebuf_pageflipping_commit): New function.
30772 (doublebuf_pageflipping_update_screen): Likewise.
30773 (doublebuf_pageflipping_init): Likewise.
30774 (double_buffering_init): Likewise.
30775 (grub_video_vbe_setup): Enable doublebuffering.
30776 (grub_video_vbe_swap_buffers): Implement.
30777 (grub_video_vbe_set_active_render_target): Handle double buffering.
30778 (grub_video_vbe_get_active_render_target): Likewise.
30779 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30780 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30781 (grub_video_vbe_enable_double_buffering): Likewise.
30782 (grub_video_vbe_swap_buffers): Use update_screen.
30783 (grub_video_set_mode): Use double buffering.
30784
30785 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30786
30787 * maintainance/gentrigtables.py: Remove.
30788 * lib/trig.c: Likewise.
30789
30790 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30791
30792 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30793 `trigtables.c'.
30794 (trigtables.c): New rule.
30795 (gentrigtables): Likewise.
30796 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30797
30798 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30799
30800 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30801 integer constants.
30802
30803 2010-02-06 Colin D Bennet <colin@gibibit.com>
30804
30805 Trigonometry support.
30806
30807 * include/grub/trig.h: New file.
30808 * lib/trig.c: Likewise.
30809 * maintainance/gentrigtables.py: Likewise.
30810 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30811 (trig_mod_SOURCES): New variable.
30812 (trig_mod_CFLAGS): Likewise.
30813 (trig_mod_LDFLAGS): Likewise.
30814
30815 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30816
30817 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30818 disk devices.
30819
30820 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30821
30822 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30823 error.
30824
30825 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30826
30827 * util/hostdisk.c (open_device): Don't use partition device when reading
30828 before the partition.
30829 (grub_util_biosdisk_read): Don't read from partition and before the
30830 partition in single operation.
30831 (grub_util_biosdisk_write): Don't write to partition and before the
30832 partition in single operation.
30833
30834 2010-02-03 Torsten Landschoff <torsten@debian.org>
30835
30836 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30837 last sectors.
30838
30839 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30840
30841 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30842 CDROM reads.
30843 (grub_biosdisk_write): Refuse to write to CDROM.
30844
30845 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30846
30847 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30848
30849 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30850
30851 * font/font.c (find_glyph): Check that bmp_idx is available before
30852 using it.
30853 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30854 with (font == NULL).
30855
30856 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30857
30858 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30859
30860 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30861
30862 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30863 * util/grub-script-check.c (getline): Fix empty lines case.
30864
30865 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30866
30867 * Makefile.in (check): Exit with fail status when one of the tests
30868 fails.
30869 * tests/example_functional_test.c (example_test): Fix reversed assert.
30870 * tests/example_unit_test.c (example_test): Likewise.
30871
30872 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30873
30874 * util/grub.d/10_linux.in: This script does not use any of the
30875 contents of gettext.sh, only the external command `gettext', so stop
30876 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30877 the same prefix as GRUB.)
30878 * util/grub.d/10_kfreebsd.in: Likewise.
30879
30880 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30881
30882 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30883 of the line.
30884
30885 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30886
30887 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30888 last sectors.
30889
30890 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30891
30892 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30893 having a 4KiB and not 32KiB buffer size.
30894
30895 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30896
30897 * util/hostfs.c: Include `<errno.h>'.
30898 (grub_hostfs_read): Handle errors from fseeko() and fread().
30899
30900 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30901
30902 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30903 loop when using read hooks on files whose size isn't sector-aligned.
30904
30905 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30906
30907 Remove unused parameter.
30908
30909 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30910 (grub_iso9660_open): Remove initialization of `data->length'.
30911
30912 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30913
30914 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30915 memleak conditions.
30916
30917 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30918
30919 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30920 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30921
30922 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30923
30924 * util/bin2h.c (usage): Fix warning (space after backslash).
30925
30926 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30927
30928 * font/font.c: Include `grub/fontformat.h.
30929 Remove font file format constants.
30930 (grub_font_load): Use the new macros.
30931 * include/grub/fontformat.h: New file.
30932 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30933 (write_font_pf2): Use the new macros.
30934
30935 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30936
30937 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30938 does.
30939
30940 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30941
30942 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30943
30944 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30945 (_start): Macroify `0x7F'.
30946
30947 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30948 (make_install_device): Use "(pxe)" as fallback prefix when booting
30949 via PXE.
30950
30951 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30952
30953 * configure.ac: Reset LIBS after check for libgcc symbols.
30954
30955 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30956
30957 * util/hostdisk.c (open_device): Add trailing newline to debug
30958 message.
30959
30960 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30961
30962 * configure.ac: Check for `limits.h'.
30963 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30964
30965 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30966
30967 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30968 capitalize error strings.
30969
30970 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30971
30972 * util/grub.d/10_hurd.in: Add a recovery mode.
30973
30974 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30975
30976 * configure.ac: Check for libgcc symbols with -nostdlib.
30977
30978 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30979
30980 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30981
30982 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30983
30984 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30985 stack since heap may be unavailable at that point.
30986 (grub_ofconsole_gotoxy): Likewise.
30987
30988 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30989
30990 * configure.ac: Check for _restgpr_14_x.
30991 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30992 and _savegpr_* prototypes.
30993
30994 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30995
30996 Use generic grub_reboot() for i386-efi.
30997
30998 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30999 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31000 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31001
31002 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31003
31004 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31005 presence of "prefix" variable as it breaks when normal.mod is
31006 embedded.
31007
31008 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31009
31010 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31011 stack since heap is unavailable at that point.
31012
31013 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31014
31015 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31016 (grub_freebsd_bootinfo): Rewritten.
31017 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31018
31019 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31020
31021 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31022
31023 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31024
31025 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31026 domain now.
31027
31028 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31029
31030 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31031 around for handling "/" to the correct fix. Fix a memory leak. Use
31032 xstrdup instead of strdup.
31033
31034 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31035
31036 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31037
31038 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31039
31040 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31041
31042 * font/font.c (struct grub_font): New member 'bmp_idx'.
31043 (font_init): Initialise 'bmp_idx'.
31044 (load_font_index): Fill 'bmp_idx'.
31045 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31046
31047 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31048
31049 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31050 unnecessary calls.
31051
31052 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31053
31054 Move context handling out of the kernel.
31055
31056 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31057 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31058 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31059 * conf/i386-efi.rmk: Likewise.
31060 * conf/i386-ieee1275.rmk: Likewise.
31061 * conf/i386-pc.rmk: Likewise.
31062 * conf/powerpc-ieee1275.rmk: Likewise.
31063 * conf/sparc64-ieee1275.rmk: Likewise.
31064 * conf/x86_64-efi.rmk: Likewise.
31065 * include/grub/env.h: Include grub/menu.h.
31066 (grub_env_var_type): Removed.
31067 (grub_env_var): Replaced field 'type' with 'global'.
31068 (grub_env_find): New prototype.
31069 (grub_env_context_open): Remove EXPORT_FUNC.
31070 (grub_env_context_close): Likewise.
31071 (grub_env_export): Likewise.
31072 (grub_env_set_data_slot): Removed.
31073 (grub_env_get_data_slot): Likewise.
31074 (grub_env_unset_data_slot): Likewise.
31075 (grub_env_unset_menu): New prototype.
31076 (grub_env_set_menu): Likewise.
31077 (grub_env_get_menu): Likewise.
31078 * include/grub/env_private.h: New file.
31079 * include/grub/normal.h (grub_context_init): New prototype.
31080 (grub_context_fini): Likewise.
31081 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31082 * normal/context.c (grub_cmd_export): ... to here.
31083 * kern/env.c: Include env_private.h.
31084 (HASHSZ): Moved to include/grub/env_private.h.
31085 (grub_env_context): Likewise.
31086 (grub_env_sorted_var): Likewise.
31087 (current_context): Renamed from this ...
31088 (grub_current_context): ...to this. 'static' removed. All users updated.
31089 (grub_env_find): Removed 'static'.
31090 (grub_env_context_open): Moved to normal/context.c.
31091 (grub_env_context_close): Likewise.
31092 (grub_env_export): Likewise.
31093 (mangle_data_slot_name): Removed.
31094 (grub_env_set_data_slot): Likewise.
31095 (grub_env_get_data_slot): Likewise.
31096 (grub_env_unset_data_slot): Likewise.
31097 * kern/main.c (grub_set_root_dev): Don't export root.
31098 It will be done later.
31099 (grub_main): Don't export prefix.
31100 It will be done later.
31101 * normal/context.c: New file.
31102 * normal/main.c (free_menu): Use grub_env_unset_menu.
31103 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31104 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31105 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31106 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31107
31108 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31109
31110 setpci support.
31111
31112 * commands/setpci.c: New file.
31113 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31114 (setpci_mod_SOURCES): New variable.
31115 (setpci_mod_CFLAGS): Likewise.
31116 (setpci_mod_LDFLAGS): Likewise.
31117
31118 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31119
31120 Byte-addressable PCI configuration space.
31121
31122 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31123 dword address.
31124 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31125 GRUB_PCI_REG_CACHELINE.
31126 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31127 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31128 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31129 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31130 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31131 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31132 grub_pci_make_address.
31133 (lock_rom_area): Likewise.
31134 * commands/lspci.c (grub_lspci_iter): Use macroses
31135 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31136 of grub_pci_make_address.
31137 * disk/ata.c (grub_ata_pciinit): Likewise.
31138 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31139 (GRUB_PCI_REG_VENDOR): Likewise.
31140 (GRUB_PCI_REG_DEVICE): Likewise.
31141 (GRUB_PCI_REG_COMMAND): Likewise.
31142 (GRUB_PCI_REG_STATUS): Likewise.
31143 (GRUB_PCI_REG_REVISION): Likewise.
31144 (GRUB_PCI_REG_CLASS): Likewise.
31145 (GRUB_PCI_REG_CACHELINE): Likewise.
31146 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31147 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31148 (GRUB_PCI_REG_BIST): Likewise.
31149 (GRUB_PCI_REG_ADDRESSES): Likewise.
31150 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31151 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31152 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31153 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31154 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31155 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31156 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31157 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31158 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31159 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31160 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31161 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31162 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31163 (GRUB_PCI_REG_MIN_GNT): Likewise.
31164 (GRUB_PCI_REG_MAX_LAT): Likewise.
31165 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31166 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31167 * video/efi_uga.c (find_framebuf): Likewise.
31168 * video/sm712.c (grub_video_sm712_setup): Likewise.
31169 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31170 space.
31171
31172 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31173
31174 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31175 can be reliably determined to be supported.
31176
31177 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31178
31179 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31180 that VESA is supported.
31181 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31182 supported.
31183
31184 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31185
31186 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31187
31188 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31189
31190 * util/misc.c (make_system_path_relative_to_its_root): Work around
31191 special-casing of "/", as previous incarnation of this routine did.
31192
31193 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31194
31195 Fix any-emu compilation.
31196
31197 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31198 * grub_bin2h_SOURCES: New variable.
31199
31200 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31201
31202 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31203
31204 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31205
31206 * util/grub.d/00_header.in: Fix handling of locale_dir.
31207
31208 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31209
31210 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31211 as possible unifont location (Gentoo).
31212 Reported by: Alexander Brüning
31213
31214 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31215
31216 Don't try to generate lists for kernel.img.
31217
31218 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31219 (pkglib_MODULES): Remove kernel.img.
31220 (kernel_img_EXPORTS): Removed.
31221 (kernel_img_RELOCATABLE): New variable.
31222 * conf/x86_64-efi.rmk: Likewise.
31223 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31224
31225 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31226
31227 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31228 grub_xasprintf or grub_snprintf.
31229 (grub_vsprintf): Likewise.
31230 (grub_snprintf): New proto.
31231 (grub_vsnprintf): Likewise.
31232 (grub_xasprintf): Likewise.
31233 (grub_xvasprintf): Likewise.
31234 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31235 (grub_sprintf): Removed.
31236 (grub_vsnprintf): New function.
31237 (grub_snprintf): Likewise.
31238 (grub_xvasprintf): Likewise.
31239 (grub_xasprintf): Likewise.
31240 (grub_vsprintf): Renamed to ...
31241 (grub_vsnprintf_real): ...this. New argument max_len.
31242
31243 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31244
31245 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31246 fix grub-script-check warning.
31247
31248 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31249
31250 * include/grub/font.h (grub_font_load): Fix prototype.
31251
31252 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31253
31254 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31255
31256 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31257
31258 * include/grub/x86_64/at_keyboard.h: New file.
31259
31260 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31261
31262 * loader/mips/linux.c: Include missing grub/i18n.h.
31263
31264 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31265
31266 * normal/menu.c (notify_execution_failure): Clarify error message.
31267
31268 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31269
31270 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31271 return value (and revert all return statements). Update users.
31272
31273 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31274
31275 * kern/device.c (grub_device_iterate): Allocate new part_ent
31276 structure based on sizeof (*p) rather than sizeof (p->next), to
31277 account for structure padding.
31278
31279 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31280 disk is NULL, which might happen for LVM physical volumes with no
31281 LVM signature.
31282
31283 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31284
31285 * loader/mips/linux.c (grub_cmd_initrd)
31286 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31287
31288 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31289
31290 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31291 (grub_video_video_init, grub_video_bitmap_init)
31292 (grub_font_manager_init, grub_term_gfxterm_init)
31293 (grub_at_keyboard_init): New extern declarations.
31294 (grub_machine_init): Initialize gfxterm and at_keyboard.
31295
31296 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31297
31298 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31299 `gfxterm.mod' into core image.
31300
31301 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31302 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31303 (kernel_img_FORMAT): Copy to ...
31304
31305 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31306 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31307 (kernel_img_FORMAT): ... here, and ...
31308
31309 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31310 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31311 (kernel_img_FORMAT): ... here.
31312
31313 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31314 and input (at_keyboard) terminals in kernel.
31315 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31316
31317 (pkglib_MODULES): Remove `pci.mod'.
31318 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31319 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31320 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31321 (at_keyboard_mod_LDFLAGS): Remove variables.
31322
31323 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31324
31325 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31326
31327 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31328
31329 * include/grub/mips/libgcc.h: Only export symbols for functions
31330 that libgcc provides.
31331
31332 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31333
31334 MIPS support.
31335
31336 * bus/bonito.c: New file.
31337 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31338 GRUB_PCI_NUM_DEVICES.
31339 * term/i386/pc/serial.c: Move to ...
31340 * term/serial.c: ... here. All users updated.
31341 * util/i386/pc/grub-mkimage.c: Move to ...
31342 * util/grub-mkrawimage.c: ... here. All users updated.
31343 * term/i386/pc/at_keyboard.c: Move to ...
31344 * term/at_keyboard.c: ... here. All users updated.
31345 * conf/mips-qemu-mips.rmk: New file.
31346 * conf/mips-yeeloong.rmk: Likewise.
31347 * conf/mips.rmk: Likewise.
31348 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31349 mipsel-qemu-mips.
31350 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31351 to port addresses.
31352 (grub_ata_pciinit): Support CS5536.
31353 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31354 * font/font_cmd.c (loadfont_command): Open file before passing it to
31355 grub_font_load.
31356 (pseudo_file_read): New function.
31357 (pseudo_file_close): Likewise.
31358 (pseudo_fs): New structure.
31359 (load_font_module): New function.
31360 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31361 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31362 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31363 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31364 * include/grub/i386/at_keyboard.h: Split into ...
31365 * include/grub/at_keyboard.h: ... this ...
31366 * include/grub/i386/at_keyboard.h: ... and this.
31367 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31368 New prototype.
31369 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31370 updated.
31371 (grub_elf64_size): Likewise.
31372 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31373 filename.
31374 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31375 * include/grub/i386/coreboot/serial.h: Rewritten.
31376 * include/grub/i386/ieee1275/serial.h: Include
31377 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31378 * include/grub/i386/pc/serial.h: Moved from here ...
31379 * include/grub/serial.h: ... to here. All users updated.
31380 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31381 (GRUB_PCI_NUM_BUS): Likewise.
31382 (GRUB_PCI_NUM_DEVICES): Likewise.
31383 (grub_pci_device_map_range): Add missing volatile keyword.
31384 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31385 * include/grub/mips/at_keyboard.h: New file.
31386 * include/grub/mips/cache.h: Likewise.
31387 * include/grub/mips/io.h: Likewise.
31388 * include/grub/mips/kernel.h: Likewise.
31389 * include/grub/mips/libgcc.h: Likewise.
31390 * include/grub/mips/pci.h: Likewise.
31391 * include/grub/mips/qemu-mips/boot.h: Likewise.
31392 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31393 * include/grub/mips/qemu-mips/loader.h: Likewise.
31394 * include/grub/mips/qemu-mips/memory.h: Likewise.
31395 * include/grub/mips/qemu-mips/serial.h: Likewise.
31396 * include/grub/mips/qemu-mips/time.h: Likewise.
31397 * include/grub/mips/relocator.h: Likewise.
31398 * include/grub/mips/time.h: Likewise.
31399 * include/grub/mips/types.h: Likewise.
31400 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31401 * include/grub/mips/yeeloong/boot.h: Likewise.
31402 * include/grub/mips/yeeloong/kernel.h: Likewise.
31403 * include/grub/mips/yeeloong/loader.h: Likewise.
31404 * include/grub/mips/yeeloong/memory.h: Likewise.
31405 * include/grub/mips/yeeloong/pci.h: Likewise.
31406 * include/grub/mips/yeeloong/serial.h: Likewise.
31407 * include/grub/mips/yeeloong/time.h: Likewise.
31408 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31409 * kern/elf.c (grub_elf32_size): New parameter. All users
31410 updated.
31411 (grub_elf64_size): Likewise.
31412 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31413 Load modules before saying "Welcome to GRUB!".
31414 Call grub_refresh after saying "Welcome to GRUB!".
31415 * kern/mips/cache.S: New file.
31416 * kern/mips/cache_flush.S: Likewise.
31417 * kern/mips/dl.c: Likewise.
31418 * kern/mips/init.c: Likewise.
31419 * kern/mips/qemu-mips/init.c: Likewise.
31420 * kern/mips/startup.S: Likewise.
31421 * kern/mips/yeeloong/init.c: Likewise.
31422 * kern/term.c (grub_putcode): Handle NULL terminal.
31423 (grub_getcharwidth): Likewise.
31424 (grub_getkey): Likewise.
31425 (grub_checkkey): Likewise.
31426 (grub_getkeystatus): Likewise.
31427 (grub_getxy): Likewise.
31428 (grub_getwh): Likewise.
31429 (grub_gotoxy): Likewise.
31430 (grub_cls): Likewise.
31431 (grub_setcolorstate): Likewise.
31432 (grub_setcolor): Likewise.
31433 (grub_getcolor): Likewise.
31434 (grub_refresh): Likewise.
31435 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31436 (write_jump): Add hatch nop.
31437 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31438 * lib/mips/setjmp.S: New file.
31439 * loader/mips/linux.c: Likewise.
31440 * term/i386/pc/at_keyboard.c: Move from here ...
31441 * term/at_keyboard.c: ... to here.
31442 * term/i386/pc/serial.c: Moved from here ...
31443 * term/serial.c: ... to here. All users updated.
31444 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31445 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31446 (serial_translate_key_sequence): Avoid deadlock.
31447 (grub_serial_getkey): Handle backspace.
31448 (grub_serial_putchar): Fix newline handling.
31449 * util/i386/pc/grub-mkimage.c: Move from here ...
31450 * util/grub-mkrawimage.c: ... to here. All users updated.
31451 (generate_image): New parameters 'font_path' and 'format'.
31452 Support embedding font.
31453 Use grub_host_to_target* instead of grub_cpu_to_le*.
31454 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31455 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31456 (options): New option "--font".
31457 (usage): Likewise.
31458 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31459 (main): Handle "--font".
31460 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31461 (grub_virtual_screen_setup): Set bg_color_display.
31462 (redraw_screen_rect): Use bg_color_display instead of incorrect
31463 bg_color.
31464 (grub_gfxterm_cls): Likewise.
31465 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31466 Support embedding config file.
31467 (add_segments): Likewise.
31468 (options): New option "--config".
31469 (main): Handle "--config".
31470 * video/sm712.c: New file.
31471
31472 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31473
31474 Fix parallel builds.
31475
31476 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31477 font.c depend on ascii.h).
31478
31479 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31480
31481 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31482
31483 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31484
31485 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31486 By default: disabled.
31487 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31488 parameter.
31489
31490 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31491
31492 * font/font.c: Update copyright years.
31493 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31494
31495 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31496
31497 * font/font.c: Include `ascii.h'.
31498 (ASCII_BITMAP_SIZE): New macro.
31499 (ascii_font_glyph): Define.
31500 (ascii_glyph_lookup): New function.
31501 (grub_font_get_string_width): Change comment. If glyph not found, use
31502 ascii_glyph_lookup.
31503 (grub_font_get_glyph_with_fallback): If glyph not available returns
31504 ascii_glyph_lookup.
31505 * util/grub-mkfont.c (file_formats): New enum.
31506 (options): Add `ascii-bitmaps' new option.
31507 (usage): Add `asii-bitmaps' new option.
31508 (write_font_ascii_bitmap): New function.
31509 (write_font): Rename to ...
31510 (write_font_p2): ... this. Remove print_glyphs call.
31511 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31512 used. Call print_glyphs.
31513 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31514
31515 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31516
31517 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31518 (grub_bin2h_SOURCES): New variable.
31519 * util/bin2h.c: New file.
31520
31521 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31522
31523 * include/multiboot.h: Resynced with spec.
31524 * include/multiboot2.h: Likewise.
31525 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31526 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31527
31528 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31529
31530 * include/grub/term.h (grub_term_register_input,
31531 grub_term_register_output): Check return of terminal init()
31532 routines, and abort if errors are raised.
31533
31534 * commands/terminal.c: Update copyright year.
31535
31536 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31537
31538 * commands/terminal.c (grub_cmd_terminal_input)
31539 (grub_cmd_terminal_output): Check return of terminal init()
31540 routines, and abort if errors are raised.
31541
31542 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31543
31544 * include/grub/i386/bsd.h: Fix include pathes.
31545
31546 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31547
31548 Add missing *BSD copyright headers.
31549
31550 * include/grub/aout.h: Add BSD licence.
31551 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31552 * include/grub/i386/freebsd_linker.h: ... here,
31553 * include/grub/i386/freebsd_reboot.h: ... here,
31554 * include/grub/i386/netbsd_bootinfo.h: ... here,
31555 * include/grub/i386/netbsd_reboot.h: ... here,
31556 * include/grub/i386/openbsd_bootarg.h: ... here,
31557 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31558 licence to each file.
31559
31560 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31561
31562 * acinclude.m4: Remove `nop' assembly instruction; it's not
31563 implemented by all architectures.
31564
31565 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31566
31567 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31568 ELILO. This is no longer necessary.
31569
31570 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31571
31572 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31573
31574 * util/grub-script-check.c: grub-script-check tool.
31575 * conf/common.rmk: Make rules for grub-script-check.
31576
31577 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31578
31579 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31580 spotting it back in 2008. Shame on me for forgetting he did.
31581
31582 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31583
31584 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31585
31586 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31587 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31588 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31589 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31590 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31591 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31592
31593 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31594
31595 * include/grub/test.h: Add license header.
31596 * tests/example_functional_test.c: Likewise.
31597 * tests/example_unit_test.c: Likewise.
31598 * tests/lib/functional_test.c: Likewise.
31599 * tests/lib/test.c: Likewise.
31600 * tests/lib/unit_test.c: Likewise.
31601
31602 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31603
31604 Use flag-based instead of hook-based video mode selection and "auto"
31605 keyword.
31606
31607 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31608 (grub_video_set_mode): Changed prototype. All users updated.
31609 (grub_video_check_mode_flag): New inline function.
31610 * video/video.c (parse_modespec): New function.
31611 (grub_video_set_mode): Parse flags and keywords.
31612
31613 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31614
31615 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31616 fprintf call.
31617
31618 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31619
31620 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31621
31622 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31623
31624 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31625 string.
31626 * util/grub-emu.c (usage): Likewise.
31627 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31628 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31629 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31630 * util/i386/pc/grub-setup.c (usage): Likewise.
31631
31632 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31633
31634 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31635 the message.
31636 (grub_util_info): Likewise.
31637 (grub_util_error): Likewise.
31638 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31639 and/or new lines in `grub_util_warna', `grub_util_info',
31640 `grub_util_error' calls.
31641 * util/getroot.c: Likewise.
31642 * util/grub-editenv.c: Likewise.
31643 * util/grub-emu.c: Likewise.
31644 * util/grub-fstest.c: Likewise.
31645 * util/grub-mkdevicemap.c: Likewise.
31646 * util/grub-mkfont.c: Likewise.
31647 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31648 * util/grub-mkrelpath.c: Likewise.
31649 * util/grub-pe2elf.c: Likewise.
31650 * util/grub-probe.c: Likewise.
31651 * util/hostdisk.c: Likewise.
31652 * util/i386/efi/grub-mkimage.c: Likewise.
31653 * util/i386/pc/grub-mkimage.c: Likewise.
31654 * util/i386/pc/grub-setup.c: Likewise.
31655 * util/ieee1275/ofpath.c: Likewise.
31656 * util/mkisofs/eltorito.c: Likewise.
31657 * util/mkisofs/rock.c: Likewise.
31658 * util/mkisofs/write.c: Likewise.
31659 * util/raid.c: Likewise.
31660 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31661 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31662
31663 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31664
31665 Enable multiboot on non-pc.
31666
31667 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31668 multiboot.mod and multiboot2.mod to ...
31669 * conf/i386.rmk (pkglib_MODULES): ... here.
31670 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31671 Moved to ...
31672 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31673 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31674 Moved to ...
31675 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31676 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31677 Moved to ...
31678 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31679 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31680 Moved to ...
31681 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31682 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31683 relocator.mod.
31684 (ata_mod_SOURCES): Removed.
31685 (ata_mod_CFLAGS): Likewise.
31686 (ata_mod_LDFLAGS): Likewise.
31687 (relocator_mod_SOURCES): Removed.
31688 (relocator_mod_CFLAGS): Likewise.
31689 (relocator_mod_ASFLAGS): Likewise.
31690 (relocator_mod_LDFLAGS): Likewise.
31691 Include i386.mk.
31692 * include/grub/x86_64/multiboot.h: New file.
31693 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31694 Terminate EFI.
31695
31696 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31697
31698 Video multiboot support.
31699
31700 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31701 New prototype.
31702 * include/multiboot.h: Resynced with multiboot specification.
31703 * include/multiboot2.h: Likewise.
31704 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31705 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31706 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31707 (HAS_VGA_TEXT): Likewise.
31708 (accepts_video): New variable.
31709 (grub_multiboot_set_accepts_video): New function.
31710 (grub_multiboot_get_mbi_size): Account for video structures.
31711 (set_video_mode): New function.
31712 (retrieve_video_parameters): Likewise.
31713 (grub_multiboot_make_mbi): Fill video fields.
31714
31715 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31716
31717 Video driver ids.
31718
31719 * include/grub/video.h (grub_video_driver_id): New type.
31720 (grub_video_adapter): New member 'id'. All users updated.
31721 (grub_video_get_driver_id): New proto.
31722 * video/video.c (grub_video_get_driver_id): New function.
31723
31724 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31725
31726 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31727 `var=val'.
31728
31729 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31730
31731 * normal/cmdline.c (print_completion): Gettextizze.
31732
31733 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31734
31735 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31736
31737 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31738
31739 * gettext/gettext.c (grub_gettext_translate): Push and pop
31740 grub_errno.
31741 (grub_gettext_delete_list): Change comment style.
31742 * kern/err.c (grub_error): Gettextizze.
31743 (grub_fatal): Gettextizze.
31744
31745 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31746
31747 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31748 (grub_linux16_real_boot): ... this.
31749 * kern/i386/loader.S: Likewise.
31750 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31751 (grub_linux16_boot): New function. Switches to text mode and calls
31752 grub_linux16_real_boot().
31753
31754 * loader/i386/bsd.c: Include `<grub/video.h>'.
31755 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31756 text mode before calling grub_unix_real_boot().
31757
31758 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31759 (grub_multiboot_boot): Switch to text mode before calling
31760 grub_relocator32_boot().
31761
31762 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31763 (grub_chainloader_boot): Switch to text mode before calling
31764 grub_chainloader_real_boot().
31765
31766 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31767 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31768
31769 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31770 non-empty value.
31771
31772 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31773 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31774
31775 * util/grub.d/00_header.in: Define a "savedefault" function for use
31776 in menu entries.
31777 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31778
31779 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31780 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31781
31782 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31783 saved_entry if boot_once is unset.
31784 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31785 previous saved entry (i.e. grub-reboot).
31786
31787 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31788
31789 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31790
31791 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31792
31793 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31794 `var=val'.
31795 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31796
31797 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31798
31799 * util/grub-reboot.in: Fix --version output.
31800 * util/grub-set-default.in: Likewise.
31801
31802 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31803
31804 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31805 blocks.
31806
31807 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31808
31809 * util/grub.d/00_header.in: Quote the value assigned to `default',
31810 in case it contains spaces.
31811
31812 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31813
31814 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31815 `save_default_entry' call from the macosx case to the linux case.
31816
31817 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31818 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31819
31820 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31821 in `chosen' environment variable.
31822 * normal/menu_text.c (get_entry_number): Check if the variable
31823 matches the title of a menu entry.
31824 (run_menu): Pass menu to get_entry_number.
31825
31826 * util/grub-reboot.in: New file.
31827 * util/grub-set-default.in: New file.
31828 * conf/common.rmk (grub-reboot): New utility.
31829 (grub-set-default): New utility.
31830
31831 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31832 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31833 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31834 move it to `saved_entry' for the next boot. Load environment on
31835 initialisation.
31836 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31837 * util/grub.d/10_hurd.in: Likewise.
31838 * util/grub.d/10_linux.in (linux_entry): Likewise.
31839 * util/grub.d/10_windows.in: Likewise.
31840 * util/grub.d/30_os-prober.in: Likewise.
31841
31842 * util/grub-install.in: Create environment block.
31843 * util/i386/efi/grub-install.in: Likewise.
31844 * util/ieee1275/grub-install.in: Likewise.
31845 * util/sparc64/ieee1275/grub-install.in: Likewise.
31846
31847 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31848
31849 Unit testing framework for GRUB.
31850
31851 * Makefile.in: Test framework build rules for 'make check'.
31852 * conf/tests.rmk: Build rules for individual tests and framework.
31853
31854 * include/grub/test.h: Header file for whitebox tests.
31855 * tests/lib/functional_test.c: Framework support for whitebox
31856 functional tests.
31857 * tests/lib/test.c: Common whitebox testing code for unit and
31858 functional tests.
31859 * tests/lib/unit_test.c: Framework support for whitebox unit
31860 tests.
31861
31862 * tests/util/grub-shell-tester.in: Support utility for grub-script
31863 tests.
31864 * tests/util/grub-shell.in: Utility to execute grub-script
31865 commands in a Qemu instance.
31866
31867 * tests/example_functional_test.c: Example whitebox functional
31868 test.
31869 * tests/example_grub_script_test.in: Example grub-script test.
31870 * tests/example_scripted_test.in: Example scripted test.
31871 * tests/example_unit_test.c: Example whitebox unit test.
31872
31873 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31874
31875 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31876 Add loader/i386/multiboot_mbi.c.
31877 (multiboot2_mod_SOURCES): Likewise.
31878 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31879 (multiboot2_mod_SOURCES): Likewise.
31880 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31881 (grub_multiboot_make_mbi): Likewise.
31882 (grub_multiboot_free_mbi): Likewise.
31883 (grub_multiboot_init_mbi): Likewise.
31884 (grub_multiboot_add_module): Likewise.
31885 (grub_multiboot_set_bootdev): Likewise.
31886 * loader/i386/multiboot.c (mbi): Removed.
31887 (mbi_dest): Likewise.
31888 (alloc_mbi): New variable.
31889 (grub_multiboot_payload_size): Removed. All users updated.
31890 (grub_multiboot_pure_size): New variable.
31891 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31892 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31893 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31894 (grub_fill_multiboot_mmap): Likewise.
31895 (grub_multiboot_get_bootdev): Likewise.
31896 (grub_multiboot): Use multiboot_mbi functions.
31897 * loader/i386/multiboot_mbi.c: New file.
31898
31899 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31900
31901 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31902 it would result in module crash.
31903
31904 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31905
31906 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31907 (grub_ofconsole_getwh): Split to ...
31908 (grub_ofconsole_getwh): ... this.
31909 (grub_ofconsole_dimensions): ...and this.
31910 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31911
31912 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31913
31914 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31915
31916 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31917
31918 * loader/i386/pc/multiboot2.c: Removed stalled file.
31919
31920 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31921
31922 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31923 Reported by: Grégoire Sutre
31924
31925 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31926
31927 * util/misc.c (canonicalize_file_name): New function.
31928 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31929 instead of realpath().
31930
31931 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31932
31933 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31934 and make it clearer that it's optional. Based on confusion
31935 witnessed on IRC.
31936
31937 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31938
31939 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31940 in premature implicit newline.
31941
31942 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31943
31944 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31945 which resulted in garbled command line at the end of screen.
31946
31947 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31948
31949 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31950 initialization with similar approach as with other Linux loaders.
31951
31952 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31953
31954 Fix i386-ieee1275 build.
31955
31956 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31957 and grub_term_height() for video_{width,height} initialization.
31958
31959 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31960
31961 Fix grub-emu build.
31962
31963 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31964
31965 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31966 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31967
31968 Support for multiple terminals.
31969
31970 * Makefile.in (pkglib_DATA): terminal.lst.
31971 (terminal.lst): New target.
31972 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31973 (GRUB_MOD_INIT(handler)): Likewise.
31974 (GRUB_MOD_FINI(handler)): Likewise.
31975 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31976 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31977 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31978 (grub_cmd_sleep): Use grub_term_save_pos.
31979 * commands/terminal.c: New file.
31980 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31981 commands/terminal.c and lib/charset.c.
31982 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31983 (pkglib_MODULES): Add terminal.mod.
31984 (terminal_mod_SOURCES): New variable.
31985 (terminal_mod_CFLAGS): Likewise.
31986 (terminal_mod_LDFLAGS): Likewise.
31987 * genhandlerlist.sh: Don't handle terminals.
31988 * genmk.rb: Generate terminal-*.lst.
31989 * genterminallist.sh: New file.
31990 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31991 (grub_is_valid_utf8): Likewise.
31992 (grub_utf8_to_ucs4_alloc): Likewise.
31993 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31994 (grub_menu_register_viewer): Changed argument.
31995 (grub_menu_try_text): New proto.
31996 (grub_gfxmenu_try_hook): New declaration.
31997 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31998 (grub_menu_init_page): Additional argument term.
31999 (grub_normal_init_page): Likewise.
32000 (grub_cmdline_get): Arguments simplified.
32001 (grub_utf8_to_ucs4_alloc): Removed.
32002 (grub_print_ucs4): Additional argument term.
32003 (grub_getstringwidth): Likewise.
32004 (grub_print_message_indented): Likewise.
32005 (grub_menu_text_register_instances): New proto.
32006 (grub_show_menu): Likewise.
32007 (read_terminal_list): Likewise.
32008 (grub_set_more): Likewise.
32009 * include/grub/parser.h: Include handler.h.
32010 * include/grub/reader.h: Rewritten.
32011 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32012 (GRUB_TERM_WIDTH): Changed to function.
32013 (GRUB_TERM_HEIGHT): Likewise.
32014 (GRUB_TERM_BORDER_WIDTH): Likewise.
32015 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32016 (GRUB_TERM_NUM_ENTRIES): Likewise.
32017 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32018 (GRUB_TERM_CURSOR_X): Likewise.
32019 (grub_term_input_class): Likewise.
32020 (grub_term_output_class): Likewise.
32021 (grub_term_outputs_disabled): New declaration.
32022 (grub_term_inputs_disabled): Likewise.
32023 (grub_term_outputs): Likewise.
32024 (grub_term_inputs): Likewise.
32025 (grub_term_register_input): Rewritten.
32026 (grub_term_register_output): Likewise.
32027 (grub_term_unregister_input): Likewise.
32028 (grub_term_unregister_output): Likewise.
32029 (FOR_ACTIVE_TERM_INPUTS): New macro.
32030 (FOR_DISABLED_TERM_INPUTS): Likewise.
32031 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32032 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32033 * include/grub/terminfo.h: Add oterm argument to all protypes.
32034 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32035 Use grub_rescue_run.
32036 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32037 All users updated.
32038 * kern/reader.c: Removed. All users updated.
32039 * kern/rescue_reader.c (grub_rescue_init): Removed.
32040 (grub_rescue_reader): Likewise.
32041 (grub_register_rescue_reader): Likewise.
32042 (grub_rescue_run): New function based on kern/reader.c.
32043 * kern/term.c: Adapted for multiterm.
32044 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32045 (grub_is_valid_utf8): Likewise.
32046 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32047 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32048 right terminal.
32049 * loader/i386/linux.c (grub_linux_boot): Likewise.
32050 * normal/auth.c (grub_username_get): New function.
32051 (grub_auth_check_authentication): Use grub_username_get.
32052 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32053 * normal/color.c: Adapt for multiterm.
32054 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32055 (grub_normal_init_page): Additional argument term.
32056 (read_lists): Call read_terminal_lists.
32057 (grub_enter_normal_mode): Call grub_cmdline_run.
32058 Handle grub_normal_exit_level.
32059 (grub_cmd_normal): Make reentrant.
32060 (grub_cmd_normal_exit): New function.
32061 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32062 * normal/menu.c: Adapt for multiterm.
32063 * normal/menu_entry.c: Likewise.
32064 * normal/menu_text.c: Likewise.
32065 * normal/menu_viewer.c: Removed. All users updated.
32066 * normal/term.c: New file.
32067 * util/console.c: Change order of includes to workaround a bug in
32068 ncurses headers.
32069 * term/terminfo.c: New argument oterm on all exported functions.
32070 All users updated.
32071 * util/grub-editenv.c (grub_term_input_class): Removed.
32072 (grub_term_output_class): Likewise.
32073
32074 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32075
32076 Make loader output a bit more user-friendly.
32077
32078 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32079 is being loaded. Likewise for the Hurd.
32080
32081 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32082 that kernel of FreeBSD ${version} is being loaded.
32083
32084 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32085 grub_dprintf().
32086 (grub_cmd_initrd): Likewise.
32087 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32088 that Linux ${version} is being loaded. Likewise for initrd.
32089
32090 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32091
32092 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32093
32094 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32095
32096 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32097 (GRUB_MOD_INIT): Gettextizze.
32098 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32099 (GRUB_MOD_INIT): Gettextizze.
32100 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32101 (grub_cmd_linux): Capitalise Linux.
32102 (GRUB_MOD_INIT): Gettextizze.
32103 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32104 (grub_cmd_linux): Capitalise Linux.
32105 (GRUB_MOD_INIT): Gettextizze.
32106 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32107 (grub_cmd_linux): Capitalise Linux.
32108 (GRUB_MOD_INIT): Gettextizze.
32109 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32110 (GRUB_MOD_INIT): Gettextizze.
32111 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32112 (grub_cmd_linux): Capitalise Linux.
32113 (GRUB_MOD_INIT): Gettextizze.
32114 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32115 (grub_cpu_xnu_init): Gettextizze.
32116 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32117 (GRUB_MOD_INIT): Gettextizze.
32118 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32119 (GRUB_MOD_INIT): Gettextizze.
32120 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32121 (grub_linux_load64): Capitalise Linux.
32122 (GRUB_MOD_INIT): Gettextizze.
32123 * loader/xnu.c: Include `<grub/i18n.h>'.
32124 (GRUB_MOD_INIT): Gettextizze.
32125 * po/POTFILES: Add `loader/efi/appleloader.c',
32126 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32127 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32128 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32129 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32130 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32131 and `loader/xnu.c'.
32132
32133 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32134
32135 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32136
32137 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32138
32139 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32140 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32141 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32142
32143 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32144
32145 Reset Multiboot 2 support. New loader implements the draft in
32146 /branches/multiboot2 and shares as much code as possible with the
32147 production Multiboot 1 implementation.
32148
32149 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32150 * loader/multiboot2.c: Likewise.
32151 * loader/i386/multiboot_helper.S: Likewise.
32152 * include/multiboot2.h: Replace with latest version from the draft
32153 in /branches/multiboot2.
32154
32155 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32156 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32157 and `loader/multiboot2.c'.
32158 (pkglib_MODULES): Add `multiboot2.mod'.
32159 (multiboot2_mod_SOURCES): New variable.
32160 (multiboot2_mod_LDFLAGS): Likewise.
32161 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32162
32163 * conf/i386-pc.rmk: Likewise.
32164
32165 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32166 (multiboot_mod_SOURCES): Remove variable.
32167 (multiboot_mod_LDFLAGS): Likewise.
32168 (multiboot_mod_CFLAGS): Likewise.
32169
32170 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32171 `<multiboot2.h>' instead of `<multiboot.h>'.
32172 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32173 (MULTIBOOT_HEADER_MAGIC): New macros.
32174
32175 * loader/multiboot_loader.c (module_version_status): Remove variable.
32176 (find_multi_boot2_header): Remove function.
32177 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32178 logic. Always check for the Multiboot version we're compiling for.
32179 (grub_cmd_module_loader): Likewise.
32180 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32181 command instead of `multiboot'.
32182
32183 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32184
32185 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32186 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32187 all users.
32188
32189 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32190 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32191
32192 Fix breakage introduced with previous commit.
32193
32194 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32195 commands.
32196 * normal/handler.c (read_handler_list): Revert part of previous commit
32197 affecting this file.
32198 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32199 (grub_normal_execute): ... here.
32200
32201 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32202
32203 Merge prefix-redefinition-fix branch.
32204
32205 * normal/autofs.c (read_fs_list): Make function capable of being
32206 run multiple times, gracefuly replacing the previous data
32207 structures.
32208 * normal/dyncmd.c (read_command_list): Likewise.
32209 * normal/handler.c (read_handler_list): Likewise.
32210 * normal/main.c (read_lists): New function. Calls all the
32211 list reading functions.
32212 (grub_normal_execute): Use read_lists() instead of calling all
32213 list reading functions explicitly. Register read_lists() as a
32214 variable hook attached to ${prefix}.
32215
32216 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32217
32218 Merge crypto branch.
32219
32220 * Makefile.in (pkglib_DATA): Add crypto.lst.
32221 (crypto.lst): New target.
32222 * commands/hashsum.c: New file.
32223 * commands/password.c (check_password): Use grub_crypto_memcmp.
32224 * commands/password_pbkdf2.c: New file.
32225 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32226 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32227 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32228 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32229 -I$(srcdir)/lib/libgcrypt_wrap.
32230 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32231 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32232 password_pbkdf2.mod.
32233 (crypto_mod_SOURCES): New variable.
32234 (crypto_mod_CFLAGS): Likewise.
32235 (crypto_mod_LDFLAGS): Likewise.
32236 (hashsum_mod_SOURCES): New variable.
32237 (hashsum_mod_CFLAGS): Likewise.
32238 (hashsum_mod_LDFLAGS): Likewise.
32239 (pbkdf2_mod_SOURCES): New variable.
32240 (pbkdf2_mod_CFLAGS): Likewise.
32241 (pbkdf2_mod_LDFLAGS): Likewise.
32242 (password_pbkdf2_mod_SOURCES): New variable.
32243 (password_pbkdf2_mod_CFLAGS): Likewise.
32244 (password_pbkdf2_mod_LDFLAGS): Likewise.
32245 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32246 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32247 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32248 Include conf/gcry.rmk.
32249 * include/grub/auth.h: Rewritten.
32250 * include/grub/crypto.h: New file.
32251 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32252 * include/grub/normal.h (read_crypto_list): New prototype.
32253 * lib/crypto.c: New file.
32254 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32255 * lib/pbkdf2.c: Likewise.
32256 * normal/auth.c (grub_auth_strcmp): Removed.
32257 (grub_iswordseparator): Likewise.
32258 (grub_auth_strword): Likewise.
32259 (is_authenticated): Use grub_strword.
32260 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32261 and grub_strword. Pass entered password to authentication callback.
32262 * normal/crypto.c: New file.
32263 * normal/main.c: Call read_crypto_list.
32264 * util/grub-mkpasswd-pbkdf2.c: New file.
32265 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32266
32267 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32268
32269 Fix descent and ascent calculation.
32270
32271 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32272 (options): New option "asce".
32273 (usage): Likewise.
32274 (add_char): Ignore invalid glyphs for descent calculation.
32275 Calculate ascent from actual content.
32276 (print_glyphs): Use 'asce'.
32277 (write_font): Likewise. Allow ascent override.
32278 (main): Handle "asce" option.
32279
32280 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32281
32282 * kern/err.c: Include `<grub/i18n.h>'.
32283 (grub_print_error): Add full stop. Gettextizze.
32284 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32285 (grub_bsd_load_elf): Capitalise ELF.
32286 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32287 (grub_cmd_freebsd_module): Likewise.
32288 (grub_cmd_freebsd_module_elf): Likewise.
32289 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32290
32291 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32292
32293 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32294 * commands/search_file.c (HELP_MESSAGE): New macro.
32295 * commands/search_label.c (HELP_MESSAGE): Likewise.
32296 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32297 * po/POTFILES: Add `commands/search_file.c',
32298 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32299 `commands/search.c'.
32300
32301 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32302
32303 * config.rpath: Update from Gnulib.
32304
32305 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32306
32307 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32308
32309 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32310
32311 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32312
32313 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32314
32315 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32316 arguments to fread so that we get a return value in bytes, rather
32317 than something that will normally be rounded down to 0.
32318 Adjust error handling to avoid producing garbage when size_t is not
32319 the same size as long long.
32320
32321 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32322
32323 * util/mkisofs/write.c (padblock_write): Check return value of
32324 fread.
32325
32326 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32327
32328 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32329 floppy images now.
32330
32331 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32332
32333 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32334
32335 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32336 instead of manual alignment.
32337 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32338 verbose). Avoid attempts to read past end of the device
32339 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32340 but GRUB_DISK_CACHE_SIZE may exceed that).
32341
32342 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32343
32344 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32345 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32346 it to upper layer.
32347
32348 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32349
32350 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32351 New constant.
32352 (grub_efi_piwg_device_path): New structure
32353 (grub_efi_piwg_device_path_t): New type.
32354 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32355 (devpath_1): Transform to a structure. All users updated.
32356 (devpath_2): Likewise.
32357 (devpath_3): Likewise.
32358 (devpath_4): Likewise.
32359 (devpath_5): Likewise.
32360
32361 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32362
32363 * loader/efi/appleloader.c: Restored. Update all users.
32364
32365 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32366
32367 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32368
32369 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32370 (struct boot_blocklist): Move from here ...
32371 * include/grub/i386/pc/boot.h [ASM_FILE]
32372 (struct grub_boot_blocklist): ... to here. Update all users.
32373 (setup): Only initialize `start' member of `first_block'
32374 structure. Add assert() calls to verify the other members.
32375
32376 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32377 (generate_image): Fix broken blocklist length initialization.
32378 Add assert() call to verify blocklist `segment' field.
32379
32380 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32381
32382 * loader/efi/appleloader.c: Remove. Update all users.
32383
32384 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32385
32386 * boot/i386/pc/boot.S: Update copyright year.
32387 * boot/i386/pc/cdboot.S: Likewise.
32388 * boot/i386/pc/diskboot.S: Likewise.
32389 * boot/i386/pc/lnxboot.S: Likewise.
32390 * boot/i386/pc/pxeboot.S: Likewise.
32391 * bus/pci.c: Likewise.
32392 * commands/cmp.c: Likewise.
32393 * commands/help.c: Likewise.
32394 * commands/hexdump.c: Likewise.
32395 * commands/i386/pc/halt.c: Likewise.
32396 * commands/i386/pc/play.c: Likewise.
32397 * commands/i386/pc/vbeinfo.c: Likewise.
32398 * commands/ls.c: Likewise.
32399 * commands/test.c: Likewise.
32400 * disk/dmraid_nvidia.c: Likewise.
32401 * disk/i386/pc/biosdisk.c: Likewise.
32402 * disk/ieee1275/nand.c: Likewise.
32403 * disk/ieee1275/ofdisk.c: Likewise.
32404 * disk/lvm.c: Likewise.
32405 * disk/raid.c: Likewise.
32406 * disk/raid6_recover.c: Likewise.
32407 * disk/scsi.c: Likewise.
32408 * fs/affs.c: Likewise.
32409 * fs/cpio.c: Likewise.
32410 * fs/ext2.c: Likewise.
32411 * fs/hfs.c: Likewise.
32412 * fs/iso9660.c: Likewise.
32413 * fs/ntfs.c: Likewise.
32414 * fs/sfs.c: Likewise.
32415 * fs/udf.c: Likewise.
32416 * fs/ufs.c: Likewise.
32417 * fs/xfs.c: Likewise.
32418 * gencmdlist.sh: Likewise.
32419 * genmk.rb: Likewise.
32420 * include/grub/disk.h: Likewise.
32421 * include/grub/efi/api.h: Likewise.
32422 * include/grub/efi/efi.h: Likewise.
32423 * include/grub/efi/pe32.h: Likewise.
32424 * include/grub/elf.h: Likewise.
32425 * include/grub/fs.h: Likewise.
32426 * include/grub/i386/at_keyboard.h: Likewise.
32427 * include/grub/i386/pc/memory.h: Likewise.
32428 * include/grub/i386/pc/vbe.h: Likewise.
32429 * include/grub/i386/pci.h: Likewise.
32430 * include/grub/i386/tsc.h: Likewise.
32431 * include/grub/ieee1275/ieee1275.h: Likewise.
32432 * include/grub/ntfs.h: Likewise.
32433 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32434 * include/grub/sparc64/libgcc.h: Likewise.
32435 * include/grub/symbol.h: Likewise.
32436 * include/grub/types.h: Likewise.
32437 * include/multiboot2.h: Likewise.
32438 * io/gzio.c: Likewise.
32439 * kern/device.c: Likewise.
32440 * kern/disk.c: Likewise.
32441 * kern/efi/efi.c: Likewise.
32442 * kern/efi/mm.c: Likewise.
32443 * kern/elf.c: Likewise.
32444 * kern/file.c: Likewise.
32445 * kern/i386/dl.c: Likewise.
32446 * kern/i386/pc/init.c: Likewise.
32447 * kern/i386/pc/startup.S: Likewise.
32448 * kern/ieee1275/ieee1275.c: Likewise.
32449 * kern/ieee1275/init.c: Likewise.
32450 * kern/main.c: Likewise.
32451 * kern/mm.c: Likewise.
32452 * kern/powerpc/dl.c: Likewise.
32453 * kern/sparc64/dl.c: Likewise.
32454 * kern/x86_64/dl.c: Likewise.
32455 * lib/hexdump.c: Likewise.
32456 * loader/efi/appleloader.c: Likewise.
32457 * loader/i386/ieee1275/linux.c: Likewise.
32458 * loader/i386/pc/chainloader.c: Likewise.
32459 * loader/i386/pc/linux.c: Likewise.
32460 * loader/i386/pc/multiboot2.c: Likewise.
32461 * loader/ieee1275/multiboot2.c: Likewise.
32462 * loader/multiboot2.c: Likewise.
32463 * loader/multiboot_loader.c: Likewise.
32464 * loader/powerpc/ieee1275/linux.c: Likewise.
32465 * normal/completion.c: Likewise.
32466 * normal/menu_entry.c: Likewise.
32467 * partmap/apple.c: Likewise.
32468 * util/grub.d/10_hurd.in: Likewise.
32469 * util/hostfs.c: Likewise.
32470 * video/readers/png.c: Likewise.
32471
32472 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32473
32474 * include/grub/misc.h (GNUC_PREREQ): New macro.
32475 (ATTRIBUTE_ERROR): New macro.
32476 * include/grub/list.h (grub_bad_type_cast_real): Use
32477 ATTRIBUTE_ERROR.
32478
32479 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32480
32481 * normal/menu_text.c (print_message): Change messages.
32482
32483 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32484
32485 * normal/menu_entry.c (store_completion): Gettextizze.
32486
32487 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32488
32489 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32490
32491 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32492
32493 * po/POTFILES: Sort correctly.
32494
32495 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32496
32497 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32498 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32499 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32500 full stop.
32501 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32502 summary. Gettextizze the strings.
32503 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32504 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32505 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32506 full stop.
32507 (GRUB_MOD_INIT): Remove command name from summary.
32508 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32509 summary.
32510 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32511 * term/i386/pc/serial.c (options): Add full stops.
32512 (GRUB_MOD_INIT): Remove command name from the summary.
32513
32514 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32515
32516 * commands/acpi.c: Gettextizze help strings and/or options. Include
32517 `grub/i18n.h' if needed.
32518 * commands/blocklist.c: Likewise.
32519 * commands/boot.c: Likewise.
32520 * commands/cat.c: Likewise.
32521 * commands/cmp.c: Likewise.
32522 * commands/configfile.c: Likewise.
32523 * commands/crc.c: Likewise.
32524 * commands/date.c: Likewise.
32525 * commands/echo.c: Likewise.
32526 * commands/efi/fixvideo.c: Likewise.
32527 * commands/efi/loadbios.c: Likewise.
32528 * commands/gptsync.c: Likewise.
32529 * commands/halt.c: Likewise.
32530 * commands/handler.c: Likewise.
32531 * commands/hdparm.c: Likewise.
32532 * commands/hexdump.c: Likewise.
32533 * commands/i386/cpuid.c: Likewise.
32534 * commands/i386/pc/drivemap.c: Likewise.
32535 * commands/i386/pc/halt.c: Likewise.
32536 * commands/i386/pc/pxecmd.c: Likewise.
32537 * commands/i386/pc/vbeinfo.c: Likewise.
32538 * commands/i386/pc/vbetest.c: Likewise.
32539 * commands/ieee1275/suspend.c: Likewise.
32540 * commands/keystatus.c: Likewise.
32541 * commands/loadenv.c: Likewise.
32542 * commands/ls.c: Likewise.
32543 * commands/lsmmap.c: Likewise.
32544 * commands/lspci.c: Likewise.
32545 * commands/memrw.c: Likewise.
32546 * commands/minicmd.c: Likewise.
32547 * commands/parttool.c: Likewise.
32548 * commands/password.c: Likewise.
32549 * commands/probe.c: Likewise.
32550 * commands/read.c: Likewise.
32551 * commands/reboot.c: Likewise.
32552 * commands/search.c: Likewise.
32553 * commands/sleep.c: Likewise.
32554 * commands/test.c: Likewise.
32555 * commands/true.c: Likewise.
32556 * commands/usbtest.c: Likewise.
32557 * commands/videotest.c: Likewise.
32558 * commands/xnu_uuid.c: Likewise.
32559 * disk/loopback.c: Likewise.
32560 * hello/hello.c: Likewise.
32561 * loader/i386/bsd.c: Likewise.
32562 * term/i386/pc/serial.c: Likewise.
32563 * po/POTFILES: Add new files.
32564
32565 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32566
32567 * term/i386/pc/at_keyboard.c
32568 (keyboard_controller_wait_untill_ready): Rename to ...
32569 (keyboard_controller_wait_until_ready): ... this. Update all users.
32570
32571 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32572
32573 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32574 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32575 string using string width.
32576 * normal/menu_text.c (grub_print_message_indented): Use
32577 grub_print_spaces and not print_spaces.
32578 (print_timeout): Likewise.
32579 (print_spaces): Move to...
32580 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32581
32582 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32583
32584 Import from Gnulib.
32585
32586 * gnulib/getdelim.c: New file.
32587 * gnulib/getline.c: Likewise.
32588
32589 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32590
32591 * include/grub/list.h (grub_assert_fail): Removed.
32592 (grub_bad_type_cast_real): New function.
32593 (grub_bad_type_cast): New macro.
32594 (GRUB_AS_LIST): Use grub_bad_type_cast.
32595 (GRUB_AS_LIST_P): Likewise.
32596 (GRUB_AS_NAMED_LIST): Likewise.
32597 (GRUB_AS_NAMED_LIST_P): Likewise.
32598 (GRUB_AS_PRIO_LIST): Likewise.
32599 (GRUB_AS_PRIO_LIST_P): Likewise.
32600 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32601
32602 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32603
32604 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32605 Fix syntax error.
32606
32607 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32608
32609 * configure.ac: Check for TARGET_CFLAGS initialization before we
32610 initialize it ourselves (sigh).
32611 Move a few modifications to TARGET_CFLAGS to be unconditional
32612 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32613 eh_frame)
32614
32615 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32616 * term/i386/pc/at_keyboard.c
32617 (keyboard_controller_wait_untill_ready): Likewise.
32618 (keyboard_controller_led): Rename `led_status' paramter to avoid
32619 name conflict.
32620
32621 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32622
32623 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32624 quotes.
32625
32626 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32627
32628 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32629
32630 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32631
32632 * normal/menu_text.c (grub_print_message_indented): Prevent
32633 past-the-end-of-array dereference.
32634
32635 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32636
32637 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32638 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32639
32640 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32641
32642 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32643 * normal/main.c (grub_normal_read_line): Remove a space from the
32644 default prompt.
32645
32646 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32647
32648 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32649 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32650 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32651 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32652 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32653 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32654 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32655
32656 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32657
32658 * video/readers/jpeg.c (cmd): Declare.
32659 (grub_cmd_jpegtest): Use `grub_command_t' type.
32660 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32661 Assign to `cmd'.
32662 (GRUB_MOD_FINI): Use `cmd' to unregister.
32663 * video/readers/png.c (cmd): Declare.
32664 (grub_cmd_pngtest): Use `grub_command_t' type.
32665 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32666 Assign to `cmd'.
32667 (GRUB_MOD_FINI): Use `cmd' to unregister.
32668 * video/readers/tga.c (cmd): Declare.
32669 (grub_cmd_tgatest): Use `grub_command_t' type.
32670 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32671 Assign to `cmd'.
32672 (GRUB_MOD_FINI): Use `cmd' to unregister.
32673
32674 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32675
32676 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32677 stops.
32678 * kern/corecmd.c (grub_register_core_commands): Likewise.
32679 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32680 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32681 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32682 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32683 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32684 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32685 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32686 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32687 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32688 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32689 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32690 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32691 * normal/handler.c (insert_handler): Likewise.
32692 * normal/main.c (GRUB_MOD_INIT): Likewise.
32693 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32694
32695 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32696
32697 * commands/help.c (grub_cmd_help): Print the command name before the
32698 summary.
32699 (GRUB_MOD_INIT): Remove command name from the summary.
32700 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32701 string as summary.
32702 * lib/arg.c (find_long): Print the command name before the summary.
32703 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32704 summary.
32705 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32706 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32707 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32708 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32709 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32710 * commands/date.c (GRUB_MOD_INIT): Likewise.
32711 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32712 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32713 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32714 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32715 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32716 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32717 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32718 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32719 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32720 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32721 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32722 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32723 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32724 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32725 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32726 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32727 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32728 * commands/password.c (GRUB_MOD_INIT): Likewise.
32729 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32730 * commands/read.c (GRUB_MOD_INIT): Likewise.
32731 * commands/search.c (GRUB_MOD_INIT): Likewise.
32732 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32733 * commands/test.c (GRUB_MOD_INIT): Likewise.
32734 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32735 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32736 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32737 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32738 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32739 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32740 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32741 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32742 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32743 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32744 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32745 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32746 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32747 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32748
32749 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32750
32751 Use search command for preliminar UUID search.
32752
32753 * commands/search.c: Split into ...
32754 * commands/search_wrap.c: ...this
32755 * commands/search.c: ...and this.
32756 * commands/search_file.c: New file.
32757 * commands/search_label.c: New file.
32758 * commands/search_uuid.c: New file.
32759 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32760 Add commands/search_wrap.c, commands/search_file.c,
32761 commands/search_label.c and commands/search_uuid.c.
32762 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32763 (search_mod_SOURCES): Set to commands/search_wrap.c.
32764 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32765 search_label.mod.
32766 (search_fs_file_mod_SOURCES): New variable.
32767 (search_fs_file_mod_CFLAGS): Likewise.
32768 (search_fs_file_mod_LDFLAGS): Likewise.
32769 (search_label_mod_SOURCES): Likewise.
32770 (search_label_mod_CFLAGS): Likewise.
32771 (search_label_mod_LDFLAGS): Likewise.
32772 (search_fs_uuid_mod_SOURCES): New variable.
32773 (search_fs_uuid_mod_CFLAGS): Likewise.
32774 (search_fs_uuid_mod_LDFLAGS): Likewise.
32775 (fs_file_mod_SOURCES): Removed.
32776 (fs_file_mod_CFLAGS): Likewise.
32777 (fs_file_mod_LDFLAGS): Likewise.
32778 (fs_uuid_mod_SOURCES): Removed.
32779 (fs_uuid_mod_CFLAGS): Likewise.
32780 (fs_uuid_mod_LDFLAGS): Likewise.
32781 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32782 Set to util/grub-install.in.
32783 * disk/fs_file.c: Removed.
32784 * disk/fs_uuid.c: Likewise.
32785 * include/grub/search.h: New file.
32786 * util/grub-install.in: Handle sparc64.
32787 Create and use load.cfg.
32788 * util/sparc64/ieee1275/grub-install.in: Removed.
32789
32790 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32791
32792 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32793 Ignore return status if CF is cleared.
32794 (grub_biosdisk_get_diskinfo_standard): Likewise.
32795
32796 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32797
32798 * term/i386/pc/at_keyboard.c
32799 (keyboard_controller_wait_untill_ready): New function.
32800 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32801 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32802 for keyboard polling, rather than duplicate the same loop. This
32803 saves a few bytes in code size.
32804
32805 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32806
32807 Support for (pxe[:server[:gateway]]) syntax and
32808 use environment variable for PXE.
32809
32810 * commands/i386/pc/pxecmd.c (options): Removed.
32811 (print_ip): Removed.
32812 (grub_cmd_pxe): Removed
32813 (grub_cmd_pxe_unload): New function.
32814 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32815 (grub_pxe_your_ip): Made static.
32816 (grub_pxe_default_server_ip): Likewise.
32817 (grub_pxe_default_gateway_ip): Likewise.
32818 (grub_pxe_blksize): Likewise.
32819 (parse_ip): New function.
32820 (grub_pxe_open): Support server and gateway specification.
32821 (grub_pxe_close): Free disk->data.
32822 (grub_pxefs_open): Use disk->data.
32823 (grub_pxefs_read): Likewise.
32824 (grub_env_write_readonly): New function.
32825 (set_mac_env): Likewise.
32826 (set_env_limn_ro): Likewise.
32827 (parse_dhcp_vendor): Likewise.
32828 (grub_pxe_detect): Set the environment variables.
32829 (set_ip_env): New function.
32830 (write_ip_env): Likewise.
32831 (grub_env_write_pxe_default_server): Likewise.
32832 (grub_env_write_pxe_default_gateway): Likewise.
32833 (grub_env_write_pxe_blocksize): Likewise.
32834 (GRUB_MOD_INIT(pxe)): Set environment variables.
32835 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32836 (grub_pxe_mac_addr_t): ... this. All users updated.
32837 (grub_pxe_your_ip): Removed.
32838 (grub_pxe_server_ip): Likewise.
32839 (grub_pxe_gateway_ip): Likewise.
32840 (grub_pxe_blksize): Likewise.
32841
32842 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32843
32844 * commands/help.c: Include `<grub/i18n.h>'.
32845 (grub_cmd_help): Gettextizze.
32846 (GRUB_MOD_INIT): Likewise.
32847 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32848 (GRUB_MOD_INIT): Gettextizze.
32849 * commands/search.c: Include `<grub/i18n.h>'.
32850 (options): Gettextizze.
32851 (GRUB_MOD_INIT): Gettextizze.
32852 * lib/arg.c: Include `<grub/i18n.h>'.
32853 (help_options): Gettextizze.
32854 (find_long): Likewise.
32855 (grub_arg_show_help): Likewise.
32856 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32857 (read_command_list): Gettextizze.
32858 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32859 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32860
32861 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32862
32863 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32864 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32865 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32866 (led_status): New variable.
32867 (keyboard_controller_led): New function.
32868 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32869 update led status for caps lock, num lock and scroll lock.
32870
32871 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32872
32873 * util/hostdisk.c (open_device): Fix a comment.
32874
32875 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32876
32877 * util/grub-install.in (host_os): New variable.
32878 * util/i386/efi/grub-install.in (host_os): Likewise.
32879
32880 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32881
32882 * util/mkisofs/write.c (padblock_write): Abort when given an
32883 excedingly large embed image, instead of silently truncating it.
32884
32885 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32886
32887 * include/multiboot.h: Indentation fixes.
32888
32889 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32890
32891 * include/multiboot.h (struct multiboot_aout_symbol_table)
32892 (struct multiboot_elf_section_header_table): New structure
32893 declarations (stolen from GRUB Legacy).
32894 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32895 table information.
32896
32897 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32898 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32899 type aliases.
32900
32901 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32902
32903 * include/multiboot.h: Make comments src2texi-friendly.
32904
32905 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32906
32907 For consistency with [multiboot]/docs/boot.S.
32908
32909 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32910 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32911 (MULTIBOOT_MAGIC2): Rename from this ...
32912 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32913
32914 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32915
32916 * include/multiboot.h: Remove `<grub/types.h>'.
32917 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32918 types. Update all users.
32919
32920 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32921
32922 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32923 `couldn't' and `can not' by `cannot'.
32924 * commands/i386/pc/drivemap.c: Likewise.
32925 * disk/ata.c: Likewise.
32926 * disk/ieee1275/nand.c: Likewise.
32927 * fs/affs.c: Likewise.
32928 * fs/fat.c: Likewise.
32929 * fs/hfs.c: Likewise.
32930 * fs/hfsplus.c: Likewise.
32931 * fs/iso9660.c: Likewise.
32932 * fs/jfs.c: Likewise.
32933 * fs/minix.c: Likewise.
32934 * fs/reiserfs.c: Likewise.
32935 * fs/sfs.c: Likewise.
32936 * fs/udf.c: Likewise.
32937 * fs/ufs.c: Likewise.
32938 * fs/xfs.c: Likewise.
32939 * loader/powerpc/ieee1275/linux.c: Likewise.
32940 * loader/sparc64/ieee1275/linux.c: Likewise.
32941 * util/grub-probe.c: Likewise.
32942 * util/misc.c: Likewise.
32943
32944 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32945
32946 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32947 grub_errno calls.
32948 * commands/acpi.c: Likewise.
32949 * commands/blocklist.c: Likewise.
32950 * commands/efi/loadbios.c: Likewise.
32951 * commands/i386/pc/drivemap.c: Likewise.
32952 * commands/loadenv.c: Likewise.
32953 * commands/memrw.c: Likewise.
32954 * commands/password.c: Likewise.
32955 * commands/videotest.c: Likewise.
32956 * disk/ata.c: Likewise.
32957 * disk/ata_pthru.c: Likewise.
32958 * disk/dmraid_nvidia.c: Likewise.
32959 * disk/ieee1275/nand.c: Likewise.
32960 * disk/ieee1275/ofdisk.c: Likewise.
32961 * disk/loopback.c: Likewise.
32962 * disk/lvm.c: Likewise.
32963 * disk/mdraid_linux.c: Likewise.
32964 * disk/raid.c: Likewise.
32965 * disk/raid6_recover.c: Likewise.
32966 * disk/scsi.c: Likewise.
32967 * efiemu/main.c: Likewise.
32968 * efiemu/mm.c: Likewise.
32969 * efiemu/pnvram.c: Likewise.
32970 * efiemu/symbols.c: Likewise.
32971 * font/font.c: Likewise.
32972 * fs/cpio.c: Likewise.
32973 * fs/hfsplus.c: Likewise.
32974 * fs/iso9660.c: Likewise.
32975 * fs/jfs.c: Likewise.
32976 * fs/minix.c: Likewise.
32977 * fs/ntfs.c: Likewise.
32978 * fs/ntfscomp.c: Likewise.
32979 * fs/reiserfs.c: Likewise.
32980 * fs/ufs.c: Likewise.
32981 * fs/xfs.c: Likewise.
32982 * gettext/gettext.c: Likewise.
32983 * include/grub/auth.h: Likewise.
32984 * kern/elf.c: Likewise.
32985 * kern/file.c: Likewise.
32986 * kern/ieee1275/init.c: Likewise.
32987 * kern/ieee1275/mmap.c: Likewise.
32988 * kern/ieee1275/openfw.c: Likewise.
32989 * kern/powerpc/dl.c: Likewise.
32990 * kern/sparc64/dl.c: Likewise.
32991 * lib/arg.c: Likewise.
32992 * loader/i386/bsd.c: Likewise.
32993 * loader/i386/bsdXX.c: Likewise.
32994 * loader/i386/efi/linux.c: Likewise.
32995 * loader/i386/efi/xnu.c: Likewise.
32996 * loader/i386/ieee1275/linux.c: Likewise.
32997 * loader/i386/linux.c: Likewise.
32998 * loader/i386/multiboot.c: Likewise.
32999 * loader/i386/pc/linux.c: Likewise.
33000 * loader/i386/pc/multiboot2.c: Likewise.
33001 * loader/i386/xnu.c: Likewise.
33002 * loader/ieee1275/multiboot2.c: Likewise.
33003 * loader/macho.c: Likewise.
33004 * loader/machoXX.c: Likewise.
33005 * loader/multiboot2.c: Likewise.
33006 * loader/multiboot_loader.c: Likewise.
33007 * loader/powerpc/ieee1275/linux.c: Likewise.
33008 * loader/sparc64/ieee1275/linux.c: Likewise.
33009 * loader/xnu.c: Likewise.
33010 * loader/xnu_resume.c: Likewise.
33011 * mmap/i386/pc/mmap.c: Likewise.
33012 * normal/menu_viewer.c: Likewise.
33013 * partmap/acorn.c: Likewise.
33014 * partmap/amiga.c: Likewise.
33015 * partmap/apple.c: Likewise.
33016 * script/lexer.c: Likewise.
33017 * term/gfxterm.c: Likewise.
33018 * term/i386/pc/serial.c: Likewise.
33019 * term/i386/pc/vga.c: Likewise.
33020 * term/ieee1275/ofconsole.c: Likewise.
33021 * term/terminfo.c: Likewise.
33022 * video/bitmap.c: Likewise.
33023 * video/efi_gop.c: Likewise.
33024 * video/efi_uga.c: Likewise.
33025 * video/fb/video_fb.c: Likewise.
33026 * video/i386/pc/vbe.c: Likewise.
33027 * video/readers/tga.c: Likewise.
33028 * video/video.c: Likewise.
33029
33030 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33031
33032 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33033 * commands/lspci.c: Likewise.
33034 * commands/probe.c: Likewise.
33035 * commands/xnu_uuid.c: Likewise.
33036 * conf/i386-coreboot.rmk: Likewise.
33037 * conf/i386-efi.rmk: Likewise.
33038 * conf/i386-ieee1275.rmk: Likewise.
33039 * conf/i386-pc.rmk: Likewise.
33040 * conf/powerpc-ieee1275.rmk: Likewise.
33041 * conf/sparc64-ieee1275.rmk: Likewise.
33042 * conf/x86_64-efi.rmk: Likewise.
33043 * fs/i386/pc/pxe.c: Likewise.
33044 * gettext/gettext.c: Likewise.
33045 * include/grub/efi/graphics_output.h: Likewise.
33046 * include/grub/i386/pc/memory.h: Likewise.
33047 * kern/env.c: Likewise.
33048 * kern/i386/qemu/startup.S: Likewise.
33049 * lib/i386/pc/biosnum.c: Likewise.
33050 * lib/i386/relocator.c: Likewise.
33051 * lib/i386/relocator_asm.S: Likewise.
33052 * lib/relocator.c: Likewise.
33053 * loader/i386/bsd.c: Likewise.
33054 * loader/i386/multiboot.c: Likewise.
33055 * loader/i386/pc/chainloader.c: Likewise.
33056 * loader/i386/xnu.c: Likewise.
33057 * loader/xnu.c: Likewise.
33058 * normal/main.c: Likewise.
33059 * normal/menu_text.c: Likewise.
33060 * util/getroot.c: Likewise.
33061 * util/grub-mkconfig_lib.in: Likewise.
33062 * util/grub.d/00_header.in: Likewise.
33063 * util/i386/pc/grub-mkimage.c: Likewise.
33064 * util/mkisofs/eltorito.c: Likewise.
33065 * util/mkisofs/exclude.h: Likewise.
33066 * util/mkisofs/hash.c: Likewise.
33067 * util/mkisofs/iso9660.h: Likewise.
33068 * util/mkisofs/joliet.c: Likewise.
33069 * util/mkisofs/mkisofs.c: Likewise.
33070 * util/mkisofs/mkisofs.h: Likewise.
33071 * util/mkisofs/multi.c: Likewise.
33072 * util/mkisofs/name.c: Likewise.
33073 * util/mkisofs/rock.c: Likewise.
33074 * util/mkisofs/tree.c: Likewise.
33075 * util/mkisofs/write.c: Likewise.
33076 * video/efi_gop.c: Likewise.
33077
33078 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33079
33080 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33081 size counting.
33082
33083 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33084
33085 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33086 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33087
33088 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33089
33090 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33091 (GRUB_MOD_INIT(memrw)): Update help line.
33092
33093 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33094
33095 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33096 Use grub_extcmd_t. All users updated.
33097 (options): New variable.
33098 (grub_cmd_read): Restructure for readability. Support "-v" option.
33099 (grub_cmd_write): Restructure for readability.
33100
33101 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33102
33103 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33104
33105 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33106
33107 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33108 with the actual contents of the correspondending make variable.
33109 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33110 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33111 specifying `*.lst' and `efiemu??.o'
33112
33113 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33114
33115 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33116 after function name.
33117 Noticed by Rene Engelhard <rene@debian.org>.
33118
33119 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33120
33121 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33122 (options): New variable.
33123 (iospace): Likewise.
33124 (grub_lspci_iter): List IO spaces if "-i" was given.
33125 (grub_cmd_lspci): Parse options.
33126 (GRUB_MOD_INIT(lspci)): Use extcmd.
33127 (GRUB_MOD_FINI(lspci)): Likewise.
33128
33129 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33130
33131 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33132 `function' keyword.
33133 Patch by Tony Mancill <tmancill@debian.org>.
33134
33135 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33136
33137 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33138 (grub_uhci_portstatus): Likewise.
33139 (grub_uhci_portstatus): Add necessary delay.
33140 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33141
33142 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33143
33144 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33145 (GRUB_MOD_INIT): Likewise.
33146 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33147 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33148 * commands/echo.c (options): Fix capitalizations and/or full stops.
33149 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33150 (enable_rom_area): Likewise.
33151 (GRUB_MOD_INIT): Likewise.
33152 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33153 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33154 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33155 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33156 * commands/hexdump.c (options): Likewise.
33157 * commands/i386/cpuid.c (options): Likewise.
33158 (GRUB_MOD_INIT): Likewise.
33159 * commands/i386/pc/drivemap.c (options): Likewise.
33160 (GRUB_MOD_INIT): Likewise.
33161 * commands/i386/pc/halt (options): Likewise.
33162 (GRUB_MOD_INIT): Likewise.
33163 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33164 * commands/i386/pc/pxecmd.c (options): Likewise.
33165 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33166 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33167 * commands/keystatus.c (options): Likewise.
33168 (GRUB_MOD_INIT): Likewise.
33169 * commands/loadenv.c (options): Likewise.
33170 * commands/ls.c (options): Likewise.
33171 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33172 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33173 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33174 * commands/parttool.c (helpmsg): Likewise.
33175 * commands/probe.c (options): Likewise.
33176 * commands/read.c (GRUB_MOD_INIT): Likewise.
33177 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33178 * commands/search.c (options): Likewise.
33179 * commands/sleep.c (options): Likewise.
33180 * commands/test.c (GRUB_MOD_INIT): Likewise.
33181 * commands/true.c (GRUB_MOD_INIT): Likewise.
33182 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33183 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33184 * lib/arg.c (help_options): Likewise.
33185 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33186 `$(XGETTEXT)'.
33187 * po/POTFILES: Add `commands/loadenv.c'.
33188
33189 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33190
33191 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33192 instead of specifying them explicit.
33193
33194 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33195
33196 * NEWS: Add grub-probe support for GNU/Hurd.
33197
33198 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33199
33200 * NEWS: gettext was added after 1.97.
33201
33202 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33203
33204 * util/mkisofs/msdos_partition.h: New file (based on
33205 include/grub/msdos_partition.h).
33206 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33207 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33208 (ld_options, main): Recognize --protective-msdos-label.
33209 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33210 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33211 (padblock_write): If `use_protective_msdos_label' is set, patch a
33212 protective DOS-style label in the output image.
33213
33214 * util/grub-mkrescue.in: Use --protective-msdos-label.
33215
33216 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33217
33218 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33219 boot.
33220
33221 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33222
33223 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33224 variables.
33225 (ld_options, main): Recognize `--embedded-boot'.
33226 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33227 declarations.
33228 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33229 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33230 (padblock_write): Likewise. Rewrite to support embedded boot image.
33231
33232 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33233 for BIOS-based disk boot instead of only ElTorito.
33234
33235 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33236
33237 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33238 build (not needed for bootstrap).
33239
33240 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33241
33242 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33243 from i386-pc build (not needed for bootstrap).
33244 Rewrite a pair of strings.
33245
33246 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33247
33248 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33249
33250 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33251
33252 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33253
33254 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33255
33256 * kern/env.c (grub_env_context_open): Mark exported variable for
33257 reexport.
33258
33259 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33260
33261 * kern/env.c (grub_env_export): Create nonexistent variables before
33262 exporting.
33263
33264 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33265
33266 * include/grub/auth.h: Include `<grub/i18n.h>'.
33267 (GRUB_GET_PASSWORD): Gettextizze string.
33268 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33269 menu_text.c.
33270 (grub_utf8_to_ucs4_alloc): Fix indentation.
33271 (grub_print_ucs4): Likewise.
33272 (grub_getstringwidth): Likewise.
33273 (print_message_indented): New declaration.
33274 * normal/auth.c: Include `<grub/i18n.h>'.
33275 (grub_auth_check_authentication): Gettexttize string.
33276 * normal/cmdline.c: Include `<grub/i18n.h>'.
33277 (grub_cmdline_get): Gettextizze.
33278 * normal/color.c: Include `<grub/i18n.h>'.
33279 (grub_parse_color_name_pair): Gettexttize strings.
33280 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33281 string (use `print_message_indented').
33282 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33283 `include/grub/normal.h'.
33284 (print_message_indented): Renamed to ...
33285 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33286 used in normal/main.c).
33287 (print_message): Use `grub_print_message_indented' instead of
33288 `print_message_indented'.
33289 (print_timeout): Likewise.
33290 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33291 (grub_normal_print_device_info): Gettexttize strings.
33292 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33293
33294 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33295
33296 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33297 of arguments. Return number of tokens and not arguments. All users
33298 updated.
33299
33300 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33301
33302 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33303 non-MSDOS paritions.
33304
33305 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33306
33307 * include/grub/types.h (UNUSED): Removed since it conflicts with
33308 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33309 Reported by Grégoire Sutre.
33310
33311 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33312
33313 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33314 (grub_print_ucs4_alloc): Likewise.
33315 (grub_getstringwidth): Likewise.
33316 * normal/main.c (grub_normal_init_page): Gettextize version string.
33317 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33318 (getstringwidth): Renamed to ...
33319 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33320 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33321 (grub_print_ucs4): Remove `static' qualifer (now used in
33322 normal/main.c).
33323 * po/POTFILES: Add normal/main.c.
33324
33325 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33326
33327 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33328 (print_message_indented): Add `margin_left' and `margin_right'
33329 parameters.
33330 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33331 strings.
33332 (print_timeout): Use `print_message_indented' to print the message.
33333 Deletes `second_stage' parameter.
33334 (run_menu): Update `print_timeout' calls.
33335
33336 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33337
33338 Fix console palette on OpenFirmware.
33339
33340 * term/ieee1275/ofconsole.c (MAX): Removed.
33341 (colors): Redone based on VGA palette.
33342 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33343 colors are supported.
33344 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33345
33346 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33347
33348 Fix potential EfiEmu double prepare.
33349
33350 * efiemu/main.c (prepared): New variable
33351 (grub_efiemu_unload): Set prepare to '0'.
33352 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33353
33354 set_virtual_address_map support.
33355
33356 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33357 prototype.
33358 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33359 prototype.
33360 (grub_efiemu_crc32): Likewise.
33361 (grub_efiemu_crc64): Likewise.
33362 (grub_efiemu_set_virtual_address_map): Likewise.
33363 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33364 New definition.
33365 (grub_autoefi_set_virtual_address_map): Likewise.
33366 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33367 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33368 Restructure flow to accomodate it.
33369 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33370 (grub_efiemu_crc): Recompute CRC32.
33371 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33372 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33373 * efiemu/symbols.c (relocated_handle): New variable.
33374 (grub_efiemu_free_syms): Free relocated_handle.
33375 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33376 (grub_efiemu_write_sym_markers): New function.
33377 (grub_efiemu_set_virtual_address_map): Likewise.
33378
33379 Newer XNU parameters.
33380
33381 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33382 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33383 (grub_xnu_fill_devicetree): New prototype.
33384 (grub_xnu_heap_real_start): New variable.
33385 * loader/xnu.c (get_name_ptr): New function.
33386 (grub_xnu_load_driver): Fill namelen and name.
33387
33388 64-bit xnu support.
33389
33390 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33391 and 'loader/macho64.c'.
33392 * conf/i386-pc.rmk: Likewise.
33393 * conf/x86_64-efi.rmk: Likewise.
33394 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33395 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33396 * include/grub/macho.h (grub_macho_segment64): New structure.
33397 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33398 (grub_macho_size32): ... to this.
33399 (grub_macho32_get_entry_point): Renamed from ...
33400 (grub_macho_get_entry_point32): ... to this.
33401 (grub_macho_contains_macho64): New prototype.
33402 (grub_macho_size64): Likewise.
33403 (grub_macho_get_entry_point64): Likewise.
33404 (grub_macho32_load): Renamed from ...
33405 (grub_macho_load32): ... to this.
33406 (grub_macho32_filesize): Renamed from ...
33407 (grub_macho_filesize32): ... to this.
33408 (grub_macho32_readfile): Renamed from ...
33409 (grub_macho_readfile32): ... to this.
33410 (grub_macho_filesize64): New prototype.
33411 (grub_macho_readfile64): Likewise.
33412 (grub_macho_parse32): Likewise.
33413 (grub_macho_parse64): Likewise.
33414 * loader/macho.c: Split into ...
33415 * loader/machoXX.c: ... and this. Replace 32 with XX.
33416 * loader/macho32.c: New file.
33417 * loader/macho64.c: Likewise.
33418 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33419 (grub_cmd_xnu_kernel): Make 32-bit only.
33420 (grub_cmd_xnu_kernel64): New function.
33421 (grub_xnu_load_driver): Support Mach-O 64.
33422 (grub_cmd_xnu_mkext): Likewise.
33423 * util/grub.d/30_os-prober.in (osx_entry): New function.
33424 Generate entries for 64-bit boot too.
33425
33426 Eliminate ad-hoc tree format in XNU and EfiEmu.
33427
33428 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33429 * efiemu/pnvram.c: Rewritten to use environment variables.
33430 All users updated.
33431
33432 Inline utf16_to_utf8.
33433
33434 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33435 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33436 All users updated.
33437 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33438
33439 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33440 * commands/usbtest.c (grub_usb_get_string): ... move here.
33441 (usb_print_str): Fix error handling.
33442 * include/grub/usb.h (grub_usb_get_string): Remove.
33443
33444 UTF-8 to UTF-16 transformation.
33445
33446 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33447 (charset_mod_SOURCES): New variable.
33448 (charset_mod_CFLAGS): Likewise.
33449 (charset_mod_LDFLAGS): Likewise.
33450 * include/grub/utf.h: New file.
33451 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33452
33453 Support for device properties.
33454
33455 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33456 (grub_xnu_devprop_device_header): Likewise.
33457 (grub_xnu_devprop_device_descriptor): Likewise.
33458 (grub_xnu_devprop_add_device): New prototype.
33459 (grub_xnu_devprop_remove_device): Likewise.
33460 (grub_xnu_devprop_remove_property): Likewise.
33461 (grub_xnu_devprop_add_property_utf8): Likewise.
33462 (grub_xnu_devprop_add_property_utf16): Likewise.
33463 (grub_cpu_xnu_init): Likewise.
33464 (grub_cpu_xnu_fini): Likewise.
33465 (grub_cpu_xnu_unload): Likewise.
33466 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33467 (property_descriptor): Likewise.
33468 (devices): New variable.
33469 (grub_xnu_devprop_remove_property): New function.
33470 (grub_xnu_devprop_add_device): Likewise.
33471 (grub_xnu_devprop_remove_device): Likewise.
33472 (grub_xnu_devprop_add_property): Likewise.
33473 (grub_xnu_devprop_add_property_utf8): Likewise.
33474 (grub_xnu_devprop_add_property_utf16): Likewise.
33475 (hextoval): Likewise.
33476 (grub_cpu_xnu_fill_devprop): Likewise.
33477 (grub_cmd_devprop_load): Likewise.
33478 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33479 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33480 (cmd_devprop_load): New variable.
33481 (grub_cpu_xnu_init): New function.
33482 (grub_cpu_xnu_fini): Likewise.
33483 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33484 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33485 (grub_cmd_xnu_devtree): Likewise.
33486 (hextoval): New function.
33487 (unescape): Likewise.
33488 (grub_xnu_fill_devicetree): Likewise.
33489
33490 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33491 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33492
33493 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33494
33495 Workaround for broken ATI VBE.
33496
33497 * video/i386/pc/vbe.c (last_set_mode): New variable.
33498 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33499 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33500 (grub_video_vbe_setup): Don't check for reserved flag.
33501
33502 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33503
33504 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33505 the `find' command.
33506
33507 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33508
33509 UUID support for HFS.
33510
33511 * fs/hfs.c (grub_hfs_uuid): New function.
33512 (grub_hfs_fs): New value .uuid.
33513 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33514
33515 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33516
33517 Fix a segfault with parsing unknown long options.
33518
33519 * util/grub-mkrelpath.c (options): Zero terminate it.
33520
33521 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33522
33523 * include/grub/misc.h (grub_puts): New declaration.
33524 (grub_puts_): Likewise.
33525 * kern/misc.c (grub_puts): New definition.
33526 (grub_puts_): Likewise.
33527
33528 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33529
33530 * util/grub-probe.c (probe): Improve error message.
33531
33532 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33533
33534 * loader/i386/multiboot_elfxx.c
33535 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33536 initialization.
33537
33538 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33539
33540 Relocator framework
33541
33542 * loader/i386/xnu_helper.S: Removed. All users updated.
33543 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33544 (relocator_mod_SOURCES): New variable.
33545 (relocator_mod_CFLAGS): Likewise.
33546 (relocator_mod_LDFLAGS): Likewise.
33547 (relocator_mod_ASFLAGS): Likewise.
33548 * conf/x86_64.rmk: Likewise.
33549 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33550 (grub_multiboot_payload_entry_offset): Likewise.
33551 (grub_multiboot_forward_relocator): Likewise.
33552 (grub_multiboot_forward_relocator_end): Likewise.
33553 (grub_multiboot_backward_relocator): Likewise.
33554 (grub_multiboot_backward_relocator_end): Likewise.
33555 (grub_multiboot_payload_eip): New variable.
33556 (grub_multiboot_payload_orig): Likewise.
33557 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33558 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33559 * include/grub/i386/memory.h
33560 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33561 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33562 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33563 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33564 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33565 * include/grub/i386/relocator.h: New file.
33566 * include/grub/x86_64/relocator.h: Likewise.
33567 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33568 (XNU_RELOCATOR): New macro.
33569 (grub_xnu_launcher_start): Remove.
33570 (grub_xnu_launcher_end): Likewise.
33571 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33572 (grub_xnu_heap_real_start): Remove.
33573 (grub_xnu_heap_start): Change to void *. All users updated.
33574 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33575 * lib/i386/relocator.c: New file.
33576 * lib/i386/relocator_asm.S: Likewise.
33577 * lib/i386/relocator_backward.S: Likewise.
33578 * lib/mips/relocator.c: Likewise.
33579 * lib/mips/relocator_asm.S: Likewise.
33580 * lib/relocator.c: Likewise.
33581 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33582 (entry): Removed.
33583 (playground): Likewise.
33584 (grub_multiboot_payload_orig): New variable.
33585 (grub_multiboot_payload_dest): Likewise.
33586 (grub_multiboot_payload_size): Likewise.
33587 (grub_multiboot_payload_eip): Likewise.
33588 (grub_multiboot_payload_esp): Likewise.
33589 (grub_multiboot_boot): Use grub_relocator32_boot.
33590 (grub_multiboot_unload): Free relocators.
33591 (grub_multiboot): Setup stack. Use relocators.
33592 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33593 (grub_multiboot_load_elfXX): Use relocators.
33594 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33595 (grub_multiboot_payload_size): Likewise.
33596 (grub_multiboot_payload_dest): Likewise.
33597 (grub_multiboot_payload_entry_offset): Likewise.
33598 (grub_multiboot_forward_relocator): Likewise.
33599 (grub_multiboot_backward_relocator): Likewise.
33600 (grub_multiboot_real_boot): Likewise.
33601 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33602 (grub_xnu_entry_point): Likewise.
33603 (grub_xnu_arg1): Likewise.
33604 (grub_xnu_stack): Likewise.
33605 (grub_xnu_launch): Removed.
33606 (grub_xnu_boot_resume): New function.
33607 (grub_xnu_boot): Use relocators.
33608 * loader/i386/xnu_helper.S: Removed.
33609 * loader/xnu.c (grub_xnu_heap_start): New variable.
33610 (grub_xnu_heap_size): Likewise.
33611 (grub_xnu_heap_malloc): Use relocators.
33612 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33613
33614 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33615
33616 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33617 anything.
33618
33619 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33620
33621 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33622 GRUB_ERR_NONE before calling grub_env_set.
33623
33624 2009-12-12 Robert Millan <rmh@aybabtu.com>
33625
33626 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33627 * genmk.rb (video): New variable.
33628 (CLEANFILES, VIDEOFILES): Add #{video}.
33629 (#{video}): New target rule.
33630 * genvideolist.sh: New file.
33631 * Makefile.in (pkglib_DATA): Add video.lst.
33632 (video.lst): New target rule.
33633 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33634 `video.lst'.
33635 * util/grub.d/30_os-prober.in: Replace `vbe' with
33636 ${GRUB_VIDEO_BACKEND}.
33637
33638 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33639
33640 * THANKS: Add David Miller.
33641
33642 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33643
33644 libpciaccess support.
33645
33646 * Makefile.in (LIBPCIACCESS): New variable.
33647 (enable_grub_emu_pci): Likewise.
33648 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33649 util/pci.c and commands/lspci.c.
33650 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33651 * configure.ac (grub-emu-pci): New option.
33652 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33653 (grub_pci_device_unmap_range): Likewise.
33654 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33655 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33656 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33657 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33658 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33659 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33660 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33661 * include/grub/pciutils.h: New file.
33662 * util/pci.c: Likewise.
33663
33664 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33665
33666 * util/misc.c: Don't include <errno.h> twice.
33667
33668 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33669
33670 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33671 name in an error message.
33672 (grub_biosdisk_rw): Likewise.
33673
33674 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33675
33676 Eliminate NTFS 4Gib barrier.
33677
33678 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33679 (read_run_data): Likewise.
33680 (grub_ntfs_read_run_list): Likewise.
33681 (grub_ntfs_read_block): Likewise.
33682 (grub_ntfs_iterate_dir): Likewise.
33683 (read_mft): Likewise.
33684 (read_data): Likewise.
33685 Use COM_LOG_LEN.
33686 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33687 to avoid 64-bit division
33688 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33689 (grub_ntfs_rlst): Use grub_disk_addr_t.
33690
33691 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33692
33693 Eliminate grub-fstest 4Gib barrier.
33694
33695 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33696 (read_file): Fix error reporting.
33697
33698 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33699
33700 Eliminate hexdump 4Gib barrier.
33701
33702 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33703 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33704
33705 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33706
33707 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33708 Fixes amarsh bug.
33709
33710 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33711
33712 Remove miscellaneous files in distclean target.
33713
33714 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33715
33716 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33717
33718 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33719 if they're already set. This resolves the conflict between my
33720 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33721 fixing the --grub-probe option again.
33722 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33723 change on 2009-10-06, so that we now once again source
33724 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33725
33726 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33727
33728 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33729 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33730 `util/devicemap.c'.
33731
33732 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33733
33734 * include/grub/misc.h (grub_printf_): New declaration.
33735 * kern/misc.c (grub_printf_): New definition.
33736 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33737 instead of `grub_printf' and `_'.
33738 * normal/menu_entry.c (store_completion): Likewise.
33739 (run): Likewise.
33740 (grub_menu_entry_run): Likewise.
33741 * normal/menu_text.c (grub_wait_after_message): Likewise.
33742 (notify_booting): Likewise.
33743 (notify_fallback): Likewise.
33744 (notify_execution_failure): Likewise.
33745
33746 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33747
33748 * configure.ac: Check for vasprintf.
33749 * util/misc.c (asprintf): Move allocation from here ...
33750 (vasprintf): ... to here. New function.
33751 (xasprintf): New function.
33752 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33753 prototypes.
33754 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33755 * util/grub-mkfont.c (write_font): Likewise.
33756 * util/grub-probe.c (probe): Likewise.
33757 * util/hostdisk.c (make_device_name): Likewise.
33758
33759 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33760
33761 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33762 anything even prefixed with 'cdrom' as a cdrom.
33763
33764 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33765
33766 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33767 mount points.
33768
33769 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33770
33771 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33772 grub_gettext_msg_list.
33773 (grub_gettext_gettranslation_from_position): Return const char *
33774 and not char *.
33775 (grub_gettext_translate): Add the translated strings into a list,
33776 returns from the list if existing there.
33777 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33778 (grub_gettext_delete_list): Delete the list.
33779 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33780 lang environment variable is changed.
33781 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33782
33783 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33784
33785 Rename kernel.mod to kernel.img.
33786
33787 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33788 (kernel_mod_EXPORTS): Rename to ...
33789 (kernel_img_EXPORTS): ... this.
33790 (kernel_mod_SOURCES): Rename to ...
33791 (kernel_img_SOURCES): ... this.
33792 (kernel_mod_HEADERS): Rename to ...
33793 (kernel_img_HEADERS): ... this. All users updated.
33794 (kernel_mod_CFLAGS): Rename to ...
33795 (kernel_img_CFLAGS): ... this.
33796 (kernel_mod_ASFLAGS): Rename to ...
33797 (kernel_img_ASFLAGS): ... this.
33798 (kernel_mod_LDFLAGS): Rename to ...
33799 (kernel_img_LDFLAGS): ... this.
33800 * conf/x86_64-efi.rmk: Likewise.
33801 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33802 (read_kernel_image): ... this. All users updated.
33803 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33804
33805 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33806
33807 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33808 (print_spaces): New function.
33809 (grub_print_ucs4): New function.
33810 (getstringwidth): New function.
33811 (print_message_indented): New function.
33812 (print_message): Gettexttize strings using print_message_indented.
33813 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33814 width.
33815 (get_entry_number): Gettextize and uses dynamic terminal width.
33816 (notify_booting, notify_fallback, notify_execution_failure):
33817 Gettextize.
33818 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33819 string.
33820 (run): Likewise.
33821 (grub_menu_entry_run): Likewise.
33822 * PO/POTFILES: Add normal/menu_entry.c.
33823
33824 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33825
33826 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33827
33828 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33829
33830 * util/grub-install.in: Install gettext .mo files.
33831 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33832
33833 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33834
33835 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33836 grub_dprintf.
33837
33838 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33839
33840 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33841 non-firmware-dependant one in realmode.S takes precedence.
33842
33843 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33844
33845 * commands/halt.c: Replace misc arch-specific headers with
33846 `<grub/misc.h>'.
33847 * commands/reboot.c: Likewise.
33848 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33849 `<grub/misc.h>'.
33850 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33851 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33852 (kernel_img_SOURCES): ... to here.
33853
33854 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33855 * include/grub/i386/pc/init.h: Likewise.
33856 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33857 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33858
33859 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33860
33861 * include/grub/i386/halt.h: Remove.
33862 * include/grub/i386/reboot.h: Likewise.
33863
33864 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33865
33866 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33867
33868 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33869 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33870 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33871 "progname.h"
33872 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33873 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33874 (usage): Add missing comma in printf.
33875
33876 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33877
33878 Use the same reboot approach on i386 coreboot and qemu as we do on
33879 BIOS.
33880
33881 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33882 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33883 * kern/i386/reboot.c: Remove.
33884 * include/grub/i386/reboot.h (grub_reboot): Export function.
33885 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33886 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33887 0xf000:0xfff0 instead of 0xffff:0x0000.
33888 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33889 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33890
33891 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33892
33893 Fix $srcdir != $objdir build.
33894
33895 * Makefile.in (po/%.po): Rewrite as ...
33896 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33897
33898 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33899
33900 Fix GNU/Hurd grub-install crash.
33901 * util/grub-probe.c (probe): Try to access `path' only when it is not
33902 NULL.
33903
33904 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33905
33906 Correct module naming.
33907
33908 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33909 (GRUB_MOD_INIT(efi_uga)): ... to this
33910 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33911 (GRUB_MOD_FINI(efi_uga)): ... to this
33912 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33913 (GRUB_MOD_INIT(efi_gop)): ... to this
33914 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33915 (GRUB_MOD_FINI(efi_gop)): ... to this
33916
33917 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33918
33919 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33920 translatable.
33921 (usage): Translate `arg' strings using gettext().
33922 Thanks to Jordi Mallach for the suggestion.
33923
33924 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33925
33926 GOP support. Based on patch from Bean
33927 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33928
33929 * video/efi_gop.c: New file.
33930 * include/grub/efi/graphics_output.h: Likewise.
33931 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33932 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33933 variables.
33934 * conf/x86_64-efi.rmk: Likewise.
33935
33936 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33937
33938 Rename efi_fb to efi_uga.
33939
33940 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33941 'efi_uga.mod'.
33942 (efi_fb_mod_SOURCES): Rename this ...
33943 (efi_uga_mod_SOURCES): ... to this.
33944 (efi_fb_mod_CFLAGS): Rename this ...
33945 (efi_uga_mod_CFLAGS): ... to this.
33946 (efi_fb_mod_LDFLAGS): Rename this ...
33947 (efi_uga_mod_LDFLAGS): ... to this.
33948 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33949 'efi_uga.mod'.
33950 (efi_fb_mod_SOURCES): Rename this ...
33951 (efi_uga_mod_SOURCES): ... to this.
33952 (efi_fb_mod_CFLAGS): Rename this ...
33953 (efi_uga_mod_CFLAGS): ... to this.
33954 (efi_fb_mod_LDFLAGS): Rename this ...
33955 (efi_uga_mod_LDFLAGS): ... to this.
33956 * video/efi_fb.c: Move this ...
33957 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33958
33959 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33960
33961 * po/README: New file. Explain our PO file workflow.
33962
33963 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33964
33965 * po/ChangeLog: Remove. Move relevant entries back to ...
33966 * ChangeLog: ... here.
33967 * po/ca.po: Remove (now handled by TLP).
33968 * po/id.po: Likewise.
33969 * po/zh_CN.po: Likewise.
33970 * Makefile.in (LINGUAS): Initialize in a way that supports
33971 empty set.
33972
33973 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33974
33975 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33976 reliing on po/LINGUAS.
33977 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33978 (po/%.po): ... this.
33979
33980 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33981
33982 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33983 (main): Use `program_name' instead of nonexistent `progname'.
33984
33985 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33986
33987 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33988 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33989
33990 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33991
33992 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33993 commit.
33994 * conf/i386-efi.rmk: Likewise.
33995 * conf/i386-ieee1275.rmk: Likewise.
33996 * conf/powerpc-ieee1275.rmk: Likewise.
33997 * conf/sparc64-ieee1275.rmk: Likewise.
33998 * conf/x86_64-efi.rmk: Likewise.
33999
34000 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34001
34002 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34003
34004 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34005
34006 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34007
34008 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34009
34010 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34011 (grub_mkdevicemap_SOURCES): New variable.
34012 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34013 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34014 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34015 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34016 (grub_mkdevicemap_SOURCES): Remove.
34017 * conf/i386-efi.rmk: Likewise.
34018 * conf/i386-ieee1275.rmk: Likewise.
34019 * conf/i386-pc.rmk: Likewise.
34020 * conf/powerpc-ieee1275.rmk: Likewise.
34021 * conf/sparc64-ieee1275.rmk: Likewise.
34022 * conf/x86_64-efi.rmk: Likewise.
34023 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34024 (usage): Fix strings to use `program_name'.
34025 (main): Initialize gettext.
34026 * util/grub-editenv.c: Likewise.
34027 * util/grub-emu.c: Likewise.
34028 * util/grub-fstest.c: Likewise.
34029 * util/grub-mkdevicemap.c: Likewise.
34030 * util/grub-mkfont.c: Likewise.
34031 * util/grub-mkrelpath.c: Likewise.
34032 * util/grub-pe2elf.c: Likewise.
34033 * util/grub-probe.c: Likewise.
34034 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34035 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34036 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34037
34038 * util/misc.c: Include `"progname.h"'.
34039 (progname): Remove variable.
34040 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34041
34042 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34043
34044 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34045 printf and print a newline after the menuentry header line.
34046 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34047
34048 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34049
34050 autoconf >= 2.60 support $(localedir).
34051
34052 * INSTALL: Note that autoconf 2.60 is required.
34053 * configure.ac (AC_PREREQ): Bump to 2.60.
34054 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34055 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34056
34057 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34058
34059 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34060 aclocal is run.
34061
34062 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34063
34064 * normal/main.c (grub_normal_read_line): Fix off-by-one
34065 buffer overflow.
34066
34067 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34068
34069 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34070 "parser.grub" in grub_command_execute() call.
34071
34072 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34073
34074 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34075 * conf/i386-efi.rmk: Likewise.
34076 * conf/i386-ieee1275.rmk: Likewise.
34077 * conf/i386-pc.rmk: Likewise.
34078 * conf/powerpc-ieee1275.rmk: Likewise.
34079 * conf/sparc64-ieee1275.rmk: Likewise.
34080 * conf/x86_64-efi.rmk: Likewise.
34081 * gettext/gettex.c: Include <grub/i18n.h>.
34082 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34083 here ...
34084 * include/grub/i18n.h: ... to here
34085 * include/grub/i18n.h: ... to here.
34086 * kern/misc.c: Include <grub/i18n.h>
34087 (grub_gettext_dummy): Move above user.
34088
34089 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34090
34091 * util/Makefile.in (install-local): Convert a `for' into a normal
34092 shell expansion.
34093
34094 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34095
34096 * autogen.sh: Add automake call.
34097 * config.guess: Remove.
34098 * config.sub: Likewise.
34099 * install-sh: Likewise.
34100
34101 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34102
34103 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34104
34105 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34106
34107 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34108 function to a normal shell `for'.
34109
34110 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34111
34112 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34113
34114 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34115
34116 * util/grub-mkrelpath.c: New file.
34117 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34118 (grub_mkrelpath_SOURCES): New variable.
34119 * include/grub/util/misc.h: New function prototype.
34120 * util/misc.c (make_system_path_relative_to_its_root): New function.
34121
34122 * util/grub-mkconfig_lib.in (bindir): New variable.
34123 (grub_mkrelpath): Likewise.
34124 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34125
34126 * util/probe.c (probe): Make the file path relative to its root.
34127 Change a info message to use the GRUB path. Enable again the
34128 check if we can read the file with GRUB facilities.
34129
34130 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34131 to its root.
34132
34133 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34134
34135 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34136 platform.
34137
34138 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34139
34140 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34141 strncmp().
34142
34143 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34144
34145 * util/getroot.c (grub_util_is_dmraid): New function.
34146 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34147 devices as normal ones, not as LVM.
34148
34149 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34150
34151 * conf/common.rmk: Add grub-gettext_lib target and updates
34152 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34153 LDFLAGS.
34154 * gettext/gettext.c: New file. (Reads mo files).
34155 * include/grub/file.h (grub_file_pread): New prototype.
34156 * include/grub/i18n.h (_): New prototype.
34157 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34158 prototypes.
34159 * kern/misc.c (grub_gettext_dummy): New function.
34160 * normal/menu_text.c: Include <grub/i18n.h>.
34161 * normal/menu_text.c (print_timeout): Gettexttize string.
34162 * normal/menu_text.c (print_message): Gettexttize string.
34163 * po/POTFILES: Add `normal/menu_text.c'.
34164 * po/ca.po: Add new translations.
34165 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34166 gettext module and defines locale_dir and lang in grub.cfg.
34167 * NEWS: Add gettext support.
34168
34169 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34170
34171 * util/hostdisk.c: Include `<grub/i18n.h>'.
34172 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34173 (make_device_name): Rewrite using asprintf.
34174 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34175 (find_system_device): If a device is not found, generate one just
34176 by reusing the OS path name.
34177 (read_device_map): Make it permissible for device.map not to exist.
34178
34179 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34180
34181 * script/sh/execute.c: Move from here ...
34182 * script/execute.c: ... to here. Update all users.
34183 * script/sh/function.c: Move from here ...
34184 * script/function.c: ... to here. Update all users.
34185 * script/sh/lexer.c: Move from here ...
34186 * script/lexer.c: ... to here. Update all users.
34187 * script/sh/main.c: Move from here ...
34188 * script/main.c: ... to here. Update all users.
34189 * script/sh/parser.y: Move from here ...
34190 * script/parser.y: ... to here. Update all users.
34191 * script/sh/script.c: Move from here ...
34192 * script/script.c: ... to here. Update all users.
34193
34194 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34195
34196 * configure.ac: Detect all `emu' platforms. Define
34197 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34198 --enable-grub-emu logic. Disable include/grub/machine
34199 symlink on `emu' platforms.
34200
34201 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34202 * gensymlist.sh.in: Likewise.
34203
34204 * include/grub/i386/coreboot/machine.h: Remove file.
34205 * include/grub/i386/efi/machine.h: Likewise.
34206 * include/grub/i386/ieee1275/machine.h: Likewise.
34207 * include/grub/i386/pc/machine.h: Likewise.
34208 * include/grub/i386/qemu/machine.h: Likewise.
34209 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34210 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34211 * include/grub/x86_64/efi/machine.h: Likewise.
34212
34213 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34214 * commands/halt.c: Likewise.
34215 * commands/reboot.c: Likewise.
34216 * include/grub/autoefi.h: Likewise.
34217 * include/grub/i386/at_keyboard.h: Likewise.
34218 * include/grub/i386/kernel.h: Likewise.
34219 * include/grub/i386/loader.h: Likewise.
34220 * include/grub/i386/pc/memory.h: Likewise.
34221 * kern/dl.c: Likewise.
34222 * kern/i386/coreboot/init.c: Likewise.
34223 * loader/i386/bsd.c: Likewise.
34224 * loader/i386/linux.c: Likewise.
34225 * loader/multiboot_loader.c: Likewise.
34226 * term/i386/pc/serial.c: Likewise.
34227 * term/usb_keyboard.c: Likewise.
34228
34229 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34230 `<grub/machine/machine.h>'
34231 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34232 * util/misc.c: Remove `<grub/machine/machine.h>' and
34233 `<grub/machine/time.h>'.
34234
34235 * Makefile.in (enable_grub_emu): Remove variable.
34236 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34237
34238 * conf/any-emu.rmk: New file.
34239 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34240 (grub_emu_init.c): Move from here ...
34241 * conf/any-emu.rmk: ... to here.
34242
34243 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34244 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34245 * conf/any-emu.rmk: ... to here.
34246
34247 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34248
34249 * include/grub/parser.h (grub_parser_register): Document need
34250 of `name' parameter.
34251 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34252 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34253 "sh" to "grub".
34254
34255 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34256
34257 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34258 `$(XGETTEXT)'.
34259 * include/grub/i18n.h (N_): New macro.
34260 * util/mkisofs/mkisofs.h: Likewise.
34261 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34262 around N_().
34263 (usage): Use gettext() to translate help strings when printing them.
34264
34265 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34266
34267 Based on patch from Bean
34268 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34269
34270 * video/efi_fb.c: New file.
34271 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34272 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34273 variables.
34274 * conf/x86_64-efi.rmk: Likewise.
34275
34276 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34277
34278 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34279 * util/i386/pc/grub-setup.c: Likewise.
34280
34281 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34282
34283 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34284 <hurd/fs.h>
34285 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34286 file_get_storage_info to implement grub_guess_root_device.
34287
34288 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34289
34290 * Makefile.in (target): Use make's builtin $(shell) function
34291 instead of calling directly $(SHELL) to create the locale directories,
34292 inside the $(foreach) function.
34293
34294 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34295
34296 * util/grub-mkrescue.in: Print an error and usage if output option
34297 has not been given.
34298
34299 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34300
34301 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34302 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34303 root and /boot are on different devices.
34304
34305 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34306
34307 Fix build for srcdir != objdir.
34308
34309 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34310 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34311 $(srcdir).
34312 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34313 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34314 reference for input.
34315
34316 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34317
34318 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34319 or hardlinking it). Remove -J option, Joliet is not compatible with
34320 multiple source directories.
34321
34322 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34323 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34324
34325 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34326 (process_input_dir): New function. Process an arbitrary input
34327 directory.
34328 Misc adjustments to support both "override mode" and system-wide mode.
34329
34330 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34331
34332 * configure.ac (UNIFONT_BDF): Rename to ...
34333 (FONT_SOURCE): ... this. Update all users.
34334
34335 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34336
34337 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34338 to the list of unifont files to look for.
34339
34340 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34341
34342 Patch from Joe Auricchio <jauricchio@gmail.com>
34343 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34344 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34345 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34346
34347 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34348
34349 * Makefile.in (install-local): Add a missing backslash.
34350
34351 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34352
34353 * include/grub/x86_64/io.h: New file.
34354
34355 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34356
34357 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34358 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34359 Include `"progname.h"'.
34360 (main): Initialize gettext.
34361 * util/i386/pc/grub-setup.c: Gettexttize.
34362 * util/i386/pc/grub-mkimage.c: Likewise.
34363
34364 * Makefile.in (po/*.po): Redefine as ...
34365 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34366
34367 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34368
34369 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34370
34371 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34372 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34373 (program_name): Remove.
34374 (main): Initialize gettext support.
34375 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34376 Include `<libintl.h>'.
34377 (_): New macro.
34378
34379 * util/mkisofs/eltorito.c: Gettexttize.
34380 * util/mkisofs/joliet.c: Likewise.
34381 * util/mkisofs/mkisofs.c: Likewise.
34382 * util/mkisofs/multi.c: Likewise.
34383 * util/mkisofs/rock.c: Likewise.
34384 * util/mkisofs/tree.c: Likewise.
34385 * util/mkisofs/write.c: Likewise.
34386
34387 * po/POTFILES: Update with new files.
34388
34389 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34390
34391 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34392 * util/mkisofs/iso9660.h: Likewise.
34393 * util/mkisofs/joliet.c: Likewise.
34394 * util/mkisofs/mkisofs.c: Likewise.
34395 * util/mkisofs/mkisofs.h: Likewise.
34396 * util/mkisofs/rock.c: Likewise.
34397 * util/mkisofs/tree.c: Likewise.
34398 * util/mkisofs/write.c: Likewise.
34399
34400 * util/mkisofs/eltorito.c (rcsid): Remove.
34401 * util/mkisofs/hash.c: Likewise.
34402 * util/mkisofs/joliet.c: Likewise.
34403 * util/mkisofs/name.c: Likewise.
34404 * util/mkisofs/rock.c: Likewise.
34405 * util/mkisofs/tree.c: Likewise.
34406 * util/mkisofs/write.c: Likewise.
34407
34408 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34409
34410 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34411 instead of static allocation.
34412 * util/mkisofs/match.h: Likewise.
34413
34414 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34415
34416 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34417 and `util/grub.d/10_linux.in'.
34418 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34419 translatable Shell files.
34420
34421 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34422
34423 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34424
34425 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34426
34427 * INSTALL: Document Automake is needed for bootstrap.
34428 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34429 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34430 Add gettext initialization.
34431 (kfreebsd_entry): Make menuentry output translatable.
34432
34433 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34434
34435 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34436 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34437 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34438 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34439 (LINGUAS): Auto-generate using `po/LINGUAS'.
34440 * po/LINGUAS: New file.
34441
34442 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34443
34444 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34445 other things).
34446 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34447 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34448 bindtextdomain() calls for gettext initialization.
34449
34450 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34451
34452 * gnulib/progname.c: New file (imported from Gnulib).
34453 * gnulib/progname.h: Likewise.
34454 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34455 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34456 (usage): Replace `progname' with `program_name'.
34457 (main): Use set_program_name() for program name initialization.
34458
34459 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34460
34461 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34462 from here ...
34463 * Makefile.in (CPPFLAGS): ... to here.
34464
34465 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34466
34467 * aclocal.m4: Move from here ...
34468 * acinclude.m4: ... to here.
34469 * autogen.sh: Add call to `aclocal'.
34470 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34471
34472 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34473
34474 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34475 (LINGUAS): New variable.
34476 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34477 (install-local): Install MO files.
34478 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34479 * include/grub/i18n.h: New file.
34480 * po/POTFILES: New file.
34481 * po/ca.po: New file.
34482 * util/grub.d/10_linux.in (bindir): New variable.
34483 Add gettext initialization.
34484 (linux_entry): Make menuentry output translatable.
34485 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34486 (usage): Make --help output translatable.
34487 (main): Initialize gettext.
34488
34489 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34490
34491 * import_gcry.py: New file (written by Vladimir with minor
34492 adjustments).
34493 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34494 ciphers.
34495 * INSTALL: Document that Python is required for bootstrap.
34496
34497 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34498
34499 Import ciphers from libgcrypt 1.4.4.
34500
34501 * lib/libgcrypt/cipher/ChangeLog
34502 * lib/libgcrypt/cipher/ac.c
34503 * lib/libgcrypt/cipher/arcfour.c
34504 * lib/libgcrypt/cipher/bithelp.h
34505 * lib/libgcrypt/cipher/blowfish.c
34506 * lib/libgcrypt/cipher/camellia-glue.c
34507 * lib/libgcrypt/cipher/camellia.c
34508 * lib/libgcrypt/cipher/camellia.h
34509 * lib/libgcrypt/cipher/cast5.c
34510 * lib/libgcrypt/cipher/cipher.c
34511 * lib/libgcrypt/cipher/crc.c
34512 * lib/libgcrypt/cipher/des.c
34513 * lib/libgcrypt/cipher/dsa.c
34514 * lib/libgcrypt/cipher/ecc.c
34515 * lib/libgcrypt/cipher/elgamal.c
34516 * lib/libgcrypt/cipher/hash-common.c
34517 * lib/libgcrypt/cipher/hash-common.h
34518 * lib/libgcrypt/cipher/hmac-tests.c
34519 * lib/libgcrypt/cipher/md.c
34520 * lib/libgcrypt/cipher/md4.c
34521 * lib/libgcrypt/cipher/md5.c
34522 * lib/libgcrypt/cipher/primegen.c
34523 * lib/libgcrypt/cipher/pubkey.c
34524 * lib/libgcrypt/cipher/rfc2268.c
34525 * lib/libgcrypt/cipher/rijndael-tables.h
34526 * lib/libgcrypt/cipher/rijndael.c
34527 * lib/libgcrypt/cipher/rmd.h
34528 * lib/libgcrypt/cipher/rmd160.c
34529 * lib/libgcrypt/cipher/rsa.c
34530 * lib/libgcrypt/cipher/seed.c
34531 * lib/libgcrypt/cipher/serpent.c
34532 * lib/libgcrypt/cipher/sha1.c
34533 * lib/libgcrypt/cipher/sha256.c
34534 * lib/libgcrypt/cipher/sha512.c
34535 * lib/libgcrypt/cipher/tiger.c
34536 * lib/libgcrypt/cipher/twofish.c
34537 * lib/libgcrypt/cipher/whirlpool.c
34538
34539 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34540
34541 Fix build for systems without error().
34542
34543 * gnulib/error.c: New file (imported from Gnulib).
34544 * gnulib/error.h: Likewise.
34545 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34546 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34547 (this variable is now used by error()).
34548
34549 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34550
34551 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34552 instead of relying that char is signed.
34553
34554 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34555
34556 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34557 blocksize different from specified.
34558 (grub_pxefs_read): Likewise.
34559
34560 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34561
34562 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34563
34564 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34565 (grub_ata_readwrite): Likewise. Update 2 format strings.
34566 (grub_atapi_read): Likewise.
34567
34568 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34569 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34570 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34571 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34572 (ata_mod_LDFLAGS): Move from here ...
34573 * conf/i386.rmk: ... to here ...
34574 * conf/x86_64-efi.rmk: ... and here.
34575 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34576 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34577
34578 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34579
34580 Relicense multiboot.h, with RMS' blessing.
34581
34582 * include/multiboot.h: Change to X11 license.
34583
34584 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34585
34586 Support --version in grub-mkisofs.
34587
34588 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34589 (OPTION_VERSION): New macro.
34590 (ld_options): Recognize --version.
34591 (usage): Move `program_name' from here ...
34592 (program_name): ... to here. Add `static' qualifier.
34593 (main): Recognize `OPTION_VERSION'.
34594
34595 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34596
34597 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34598 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34599
34600 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34601
34602 Fix help2man generation for mkisofs.
34603
34604 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34605 (usage): Send output to stdout (rather than stderr).
34606
34607 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34608
34609 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34610 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34611 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34612 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34613 (bin_SCRIPTS): Add `grub-mkfloppy'.
34614 (grub_mkfloppy_SOURCES): New variable.
34615
34616 * util/grub-mkrescue.in: New file.
34617 * util/i386/pc/grub-mkfloppy.in: New file.
34618
34619 * util/i386/coreboot/grub-mkrescue.in: Remove.
34620 * util/i386/pc/grub-mkrescue.in: Remove.
34621
34622 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34623
34624 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34625 from here ...
34626 * include/multiboot.h (struct multiboot_header): ... to here. Update
34627 all users.
34628 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34629 from here ...
34630 * include/multiboot.h (struct multiboot_info): ... to here. Update
34631 all users.
34632 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34633 from here ...
34634 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34635 Update all users.
34636 * include/grub/multiboot.h (struct grub_mod_list): Move
34637 from here ...
34638 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34639 Update all users.
34640
34641 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34642
34643 * include/multiboot2.h (multiboot_word): Rename from this ...
34644 (multiboot2_word): ... to this. Update all users.
34645 (multiboot_header): Rename from this ...
34646 (multiboot2_header): ... to this. Update all users.
34647 (multiboot_tag_header): Rename from this ...
34648 (multiboot2_tag_header): ... to this. Update all users.
34649 (multiboot_tag_start): Rename from this ...
34650 (multiboot2_tag_start): ... to this. Update all users.
34651 (multiboot_tag_name): Rename from this ...
34652 (multiboot2_tag_name): ... to this. Update all users.
34653 (multiboot_tag_module): Rename from this ...
34654 (multiboot2_tag_module): ... to this. Update all users.
34655 (multiboot_tag_memory): Rename from this ...
34656 (multiboot2_tag_memory): ... to this. Update all users.
34657 (multiboot_tag_unused): Rename from this ...
34658 (multiboot2_tag_unused): ... to this. Update all users.
34659 (multiboot_tag_end): Rename from this ...
34660 (multiboot2_tag_end): ... to this. Update all users.
34661
34662 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34663
34664 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34665 this platform we should support Multiboot1 first.
34666
34667 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34668 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34669 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34670
34671 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34672
34673 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34674 of write calls (converting them to fwrite() if they aren't already).
34675 (get_torito_desc): Likewise.
34676 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34677
34678 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34679
34680 * util/i386/pc/grub-install.in: Move from here ...
34681 * util/grub-install.in: ... to here. Update all users.
34682
34683 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34684
34685 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34686
34687 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34688
34689 Support for El Torito without floppy emulation.
34690
34691 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34692 (init_boot_catalog): Improve error handling.
34693 (get_torito_desc): Don't use floppy emulation unless requested by
34694 user. Patch boot information table when requested via
34695 `-boot-info-table'.
34696 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34697 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34698 (use_boot_info_table): New variables.
34699 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34700 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34701 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34702 `--eltorito-emul-floppy'.
34703 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34704 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34705 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34706 (use_boot_info_table, get_731): New prototypes.
34707 * util/mkisofs/write.c (get_731): New function.
34708
34709 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34710
34711 Fix the generation of the man page.
34712
34713 * util/pc/i386/grub-install.in: Source
34714 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34715
34716 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34717
34718 Large file support for grub-mkisofs.
34719
34720 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34721 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34722 (session_start): Upgrade type to `uint64_t'. Update all users.
34723 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34724 (struct directory_entry): Upgrade type of `starting_block' and
34725 `size' to `uint64_t'. Update all users.
34726 (struct deferred): Remove unused structure.
34727 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34728 Update all users.
34729 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34730 file is larger than `UINT32_MAX'.
34731 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34732 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34733 return value.
34734 (struct deferred_write): Upgrade type of `extent' and `size' to
34735 `uint64_t'. Update all users.
34736 (last_extent_written): Upgrade type to `uint64_t'. Update all
34737 users.
34738 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34739 Update all users. Upgrade type of `remain' to `int64_t' and
34740 `use' to `size_t'. Use error() to handle fread() errors.
34741 (write_files): Rely on write_one_file() rather than calling
34742 xfwrite() directly.
34743
34744 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34745
34746 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34747
34748 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34749
34750 * util/mkisofs/fnmatch.c: Remove.
34751 * util/mkisofs/getopt1.c: Likewise.
34752 * util/mkisofs/getopt.c: Likewise.
34753 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34754 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34755 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34756 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34757 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34758
34759 * configure.ac: Detect `mingw32msvc' host_os.
34760 Check for lstat(), getuid() and getgid().
34761
34762 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34763 instances of `u_char' with `uint8_t'.
34764
34765 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34766 [!HAVE_GETUID] (getuid): New function (stub).
34767 [!HAVE_GETGID] (getgid): Likewise.
34768 [!HAVE_LSTAT] (lstat): Likewise.
34769 [!S_IROTH] (S_IROTH): New macro (dummy).
34770 [!S_IRGRP] (S_IRGRP): Likewise.
34771
34772 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34773
34774 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34775 conditional expression).
34776
34777 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34778
34779 Import from Gnulib.
34780
34781 * gnulib/fnmatch.c: New file.
34782 * gnulib/fnmatch.h: Likewise.
34783 * gnulib/fnmatch_loop.c: Likewise.
34784 * gnulib/getopt.c: Likewise.
34785 * gnulib/getopt.h: Likewise.
34786 * gnulib/getopt1.c: Likewise.
34787 * gnulib/getopt_int.h: Likewise.
34788 * gnulib/gettext.h: Likewise.
34789
34790 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34791
34792 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34793 * normal/handler.c (read_handler_list): Likewise.
34794
34795 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34796
34797 Misc cleanup.
34798
34799 * kern/command.c (grub_register_command_prio): Use
34800 grub_zalloc() instead of explicitly zeroing data.
34801 * kern/list.c: Include `<grub/mm.h>'.
34802 (grub_named_list_find): Replace `0' with `NULL'.
34803 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34804 (fs_module_list): Change type to `grub_named_list_t'. Update all
34805 users.
34806 * normal/dyncmd.c (read_command_list): Add space between function
34807 call and parenthesis.
34808 * normal/handler.c (read_handler_list): Likewise.
34809
34810 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34811
34812 * normal/auth.c (punishment_delay): Moved from here ...
34813 (grub_auth_strcmp): ... to here (inside function).
34814
34815 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34816
34817 * include/grub/list.h (struct grub_named_list): Remove `const'
34818 qualifier from `name'.
34819 (struct grub_prio_list): Likewise.
34820
34821 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34822
34823 * normal/auth.c: Include `<grub/time.h>'.
34824 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34825
34826 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34827
34828 * normal/auth.c (punishment_delay): New variable.
34829 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34830 (grub_auth_check_authentication): Punish failed login attempts with
34831 an incremental (2^N) delay.
34832
34833 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34834
34835 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34836 path with $(srcdir).
34837
34838 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34839
34840 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34841
34842 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34843
34844 * util/i386/coreboot/grub-mkrescue.in: New file.
34845 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34846 variables.
34847
34848 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34849 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34850 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34851 requirements.
34852 * util/mkisofs/defaults.h: New file.
34853 * util/mkisofs/eltorito.c: Likewise.
34854 * util/mkisofs/exclude.h: Likewise.
34855 * util/mkisofs/fnmatch.c: Likewise.
34856 * util/mkisofs/getopt.c: Likewise.
34857 * util/mkisofs/getopt1.c: Likewise.
34858 * util/mkisofs/hash.c: Likewise.
34859 * util/mkisofs/include/fctldefs.h: Likewise.
34860 * util/mkisofs/include/mconfig.h: Likewise.
34861 * util/mkisofs/include/prototyp.h: Likewise.
34862 * util/mkisofs/include/statdefs.h: Likewise.
34863 * util/mkisofs/iso9660.h: Likewise.
34864 * util/mkisofs/joliet.c: Likewise.
34865 * util/mkisofs/match.c: Likewise.
34866 * util/mkisofs/match.h: Likewise.
34867 * util/mkisofs/mkisofs.c: Likewise.
34868 * util/mkisofs/mkisofs.h: Likewise.
34869 * util/mkisofs/multi.c: Likewise.
34870 * util/mkisofs/name.c: Likewise.
34871 * util/mkisofs/rock.c: Likewise.
34872 * util/mkisofs/tree.c: Likewise.
34873 * util/mkisofs/write.c: Likewise.
34874
34875 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34876
34877 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34878 being insecure.
34879
34880 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34881
34882 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34883 `grub-mkimage' (and use $0 when possible).
34884
34885 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34886
34887 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34888 error message for excessively large memory map.
34889
34890 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34891
34892 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34893 executable bit.
34894
34895 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34896
34897 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34898 message for coreboot users.
34899
34900 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34901
34902 Fix build with GNU gold.
34903
34904 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34905 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34906 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34907 link addresses.
34908 * aclocal.m4: Likewise.
34909
34910 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34911
34912 * configure.ac (AC_PREREQ): Bump to 2.59d.
34913 * INSTALL: Make it more clear when Autoconf and Ruby are
34914 needed and when to run `./autogen.sh'.
34915
34916 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34917
34918 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34919 OSes.
34920
34921 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34922
34923 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34924
34925 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34926
34927 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34928 giving it to GNU Mach.
34929
34930 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34931
34932 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34933 GNU partition number to get internal GRUB partition number.
34934
34935 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34936
34937 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34938 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34939
34940 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34941
34942 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34943 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34944 case.
34945
34946 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34947
34948 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34949
34950 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34951
34952 Fix build problem.
34953
34954 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34955 `-isystem=$(srcdir)/include'.
34956
34957 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34958
34959 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34960 checked (grub-install doesn't currently rely on it).
34961
34962 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34963
34964 Revert SVN r2660.
34965
34966 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34967 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34968 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34969 * conf/i386-ieee1275.rmk: Likewise.
34970 * conf/i386-pc.rmk: Likewise.
34971 * conf/powerpc-ieee1275.rmk: Likewise.
34972 * conf/sparc64-ieee1275.rmk: Likewise.
34973 * conf/x86_64-efi.rmk: Likewise.
34974
34975 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34976
34977 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34978
34979 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34980
34981 * include/grub/misc.h: Stop checking for APPLE_CC.
34982
34983 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34984
34985 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34986 doesn't cause an infinite call loop.
34987
34988 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34989
34990 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34991 strings.
34992
34993 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34994
34995 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34996 variable.
34997 * Makefile.in: Likewise.
34998
34999 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35000
35001 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35002
35003 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35004
35005 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35006
35007 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35008
35009 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35010
35011 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35012
35013 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35014 from here ...
35015 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35016
35017 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35018
35019 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35020 in $(MAKEINFO) invocation. This makes it clear in output that
35021 errors are being ignored.
35022
35023 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35024
35025 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35026 from here ...
35027 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35028 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35029 * conf/i386-ieee1275.rmk: Likewise.
35030 * conf/i386-pc.rmk: Likewise.
35031 * conf/powerpc-ieee1275.rmk: Likewise.
35032 * conf/sparc64-ieee1275.rmk: Likewise.
35033 * conf/x86_64-efi.rmk: Likewise.
35034
35035 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35036
35037 * util/grub-editenv.c (main): If only a command is given, use
35038 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35039 (usage): FILENAME is now optional and has a default.
35040
35041 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35042
35043 Improve grub-mkconfig performance when there are several menu
35044 entries on a single filesystem.
35045
35046 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35047 prepare_grub_to_access_device.
35048 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35049 * util/grub.d/30_os-prober.in: Likewise.
35050
35051 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35052
35053 * util/grub.d/10_freebsd.in: Remove.
35054 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35055 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35056
35057 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35058
35059 * docs/grub.cfg: Fix example usage of *BSD loaders.
35060
35061 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35062
35063 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35064 grub_util_error() call.
35065
35066 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35067
35068 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35069 `reserved_first_sector' member.
35070 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35071 `reserved_first_sector' to 1.
35072 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35073 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35074 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35075 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35076 filesystems which begin at first sector.
35077 (options): New option --skip-fs-probe.
35078 (main): Handle --skip-fs-probe and pass it to setup().
35079
35080 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35081
35082 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35083 (memset): Fix function prototype.
35084
35085 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35086 2009-10-25 Vasily Averin <vvs@parallels.com>
35087
35088 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35089 `dirent.direntlen == 0'.
35090
35091 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35092
35093 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35094 `cpio'.
35095 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35096
35097 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35098
35099 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35100 `__trampoline_setup' and `__ucmpdi2'.
35101 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35102 that libgcc provides.
35103
35104 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35105
35106 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35107 * include/grub/sparc64/libgcc.h (memset): Likewise.
35108 * include/grub/misc.h (memset, memcmp): New function prototypes.
35109
35110 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35111
35112 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35113 `cpio'.
35114 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35115
35116 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35117
35118 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35119 * docs/grub.cfg: Compensate for recent change in multiboot
35120 loader (since 2009-08-14 it won't pass filename to payload).
35121 * util/grub.d/10_hurd.in: Likewise.
35122
35123 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35124
35125 * config.guess: Update to latest version from config git
35126 repository.
35127 * config.sub: Likewise.
35128
35129 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35130
35131 Fix build on sparc64.
35132
35133 * configure.ac: Perform checks for libgcc symbols before
35134 adding `-nostdlib' to LDFLAGS.
35135
35136 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35137
35138 Let user specify OpenBSD root device.
35139
35140 * loader/i386/bsd.c (openbsd_root): New variable.
35141 (openbsd_opts): New option 'root'.
35142 (OPENBSD_ROOT_ARG): New macro.
35143 (grub_openbsd_boot): Use 'openbsd_root'.
35144 (grub_cmd_openbsd): Fill 'openbsd_root'.
35145
35146 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35147
35148 * NEWS: Misc adjustments.
35149
35150 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35151
35152 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35153
35154 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35155
35156 * configure.ac: Bump version to 1.97.
35157
35158 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35159
35160 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35161 -mno-3dnow on x86 architectures. Some toolchains enable these
35162 features by default, but they rely on registers that aren't enabled
35163 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35164
35165 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35166
35167 Make entry text a bit more readable.
35168
35169 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35170
35171 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35172
35173 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35174
35175 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35176
35177 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35178 operations.
35179
35180 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35181
35182 * configure.ac: Add missing dollar.
35183
35184 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35185
35186 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35187
35188 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35189 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35190 exports.
35191 * include/grub/sparc64/libgcc.h: Likewise. Use
35192 preprocessor conditionals.
35193
35194 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35195
35196 * conf/common.rmk (grub-dumpbios): Remove rule.
35197 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35198 * util/grub-dumpbios.in: Remove file.
35199
35200 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35201
35202 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35203 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35204
35205 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35206 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35207 users.
35208
35209 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35210 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35211 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35212 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35213 users.
35214
35215 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35216
35217 * term/tparm.c: Switch to GPLv3.
35218
35219 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35220
35221 * include/grub/i386/cpuid.h: Add header protection.
35222
35223 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35224
35225 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35226
35227 * include/grub/i386/cpuid.h: New file.
35228 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35229 (has_longmode): Rename to ...
35230 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35231 `static' attribute.
35232 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35233 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35234 on a CPU that doesn't implement AMD64 instruction set.
35235
35236 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35237
35238 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35239 that version.texi is rebuilt on version number changes.
35240
35241 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35242
35243 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35244 Fixes bug #27602.
35245
35246 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35247
35248 * util/i386/pc/grub-install.in: Source
35249 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35250 that the --grub-probe option will work.
35251 * util/sparc64/ieee1275/grub-install.in: Likewise.
35252
35253 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35254
35255 * configure.ac: Bump version to 1.97~beta4.
35256
35257 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35258
35259 Resync grub-mkdevicemap in x86_64-efi.
35260
35261 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35262 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35263 `util/devicemap.c'.
35264
35265 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35266
35267 * util/grub-editenv.c (create_envblk_file): Write new block with a
35268 .new suffix and then rename it into place, to ensure atomic
35269 creation.
35270
35271 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35272
35273 Do not automatically install headers.
35274
35275 * Makefile.in (include_DATA): Remove. Update all users.
35276
35277 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35278
35279 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35280 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35281
35282 * util/osdetect.lua: Remove.
35283 * script/lua/lauxlib.c: Likewise.
35284 * script/lua/ldebug.c: Likewise.
35285 * script/lua/grub_main.c: Likewise.
35286 * script/lua/lauxlib.h: Likewise.
35287 * script/lua/ldebug.h: Likewise.
35288 * script/lua/ltablib.c: Likewise.
35289 * script/lua/liolib.c: Likewise.
35290 * script/lua/lstrlib.c: Likewise.
35291 * script/lua/lualib.h: Likewise.
35292 * script/lua/ldo.c: Likewise.
35293 * script/lua/ldump.c: Likewise.
35294 * script/lua/ldo.h: Likewise.
35295 * script/lua/loslib.c: Likewise.
35296 * script/lua/lundump.c: Likewise.
35297 * script/lua/grub_lib.c: Likewise.
35298 * script/lua/ldblib.c: Likewise.
35299 * script/lua/lundump.h: Likewise.
35300 * script/lua/lmem.c: Likewise.
35301 * script/lua/grub_lib.h: Likewise.
35302 * script/lua/lmathlib.c: Likewise.
35303 * script/lua/lstate.c: Likewise.
35304 * script/lua/ltm.c: Likewise.
35305 * script/lua/lvm.c: Likewise.
35306 * script/lua/lmem.h: Likewise.
35307 * script/lua/lstate.h: Likewise.
35308 * script/lua/ltm.h: Likewise.
35309 * script/lua/ltable.c: Likewise.
35310 * script/lua/lvm.h: Likewise.
35311 * script/lua/llex.c: Likewise.
35312 * script/lua/lgc.c: Likewise.
35313 * script/lua/grub_lua.h: Likewise.
35314 * script/lua/loadlib.c: Likewise.
35315 * script/lua/lfunc.c: Likewise.
35316 * script/lua/lopcodes.c: Likewise.
35317 * script/lua/lparser.c: Likewise.
35318 * script/lua/ltable.h: Likewise.
35319 * script/lua/llex.h: Likewise.
35320 * script/lua/lgc.h: Likewise.
35321 * script/lua/lfunc.h: Likewise.
35322 * script/lua/lbaselib.c: Likewise.
35323 * script/lua/lopcodes.h: Likewise.
35324 * script/lua/lparser.h: Likewise.
35325 * script/lua/lzio.c: Likewise.
35326 * script/lua/linit.c: Likewise.
35327 * script/lua/lobject.c: Likewise.
35328 * script/lua/llimits.h: Likewise.
35329 * script/lua/lstring.c: Likewise.
35330 * script/lua/lzio.h: Likewise.
35331 * script/lua/lapi.c: Likewise.
35332 * script/lua/lcode.c: Likewise.
35333 * script/lua/lua.h: Likewise.
35334 * script/lua/lobject.h: Likewise.
35335 * script/lua/lstring.h: Likewise.
35336 * script/lua/lapi.h: Likewise.
35337 * script/lua/lcode.h: Likewise.
35338 * script/lua/luaconf.h: Likewise.
35339
35340 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35341
35342 * docs/grub.texi (Command-line and menu entry commands): Document
35343 date and echo commands.
35344
35345 2009-09-24 Pavel Roskin <proski@gnu.org>
35346
35347 * include/grub/kernel.h (struct grub_module_header): Remove
35348 `grub_module_header_types'. Make `type' unsigned. Make `size'
35349 32-bit on all platforms.
35350 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35351 8-bit field. Use grub_host_to_target32() for `size'.
35352 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35353 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35354 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35355
35356 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35357
35358 Fix "lost keypress" bug in at_keyboard.
35359
35360 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35361 Checks for readyness of input buffer (without flushing it).
35362 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35363 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35364
35365 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35366
35367 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35368 size check within GRUB_MACHINE_PCBIOS section.
35369
35370 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35371
35372 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35373 return value.
35374 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35375 KEYBOARD_ISREADY check.
35376 (grub_at_keyboard_checkkey): Rename to ...
35377 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35378 Remove gratuitous cast.
35379
35380 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35381
35382 * configure.ac: Call AC_PROG_MKDIR_P.
35383 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35384 version.texi in $(builddir) rather than $(srcdir).
35385 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35386 to makeinfo's @include search path.
35387
35388 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35389
35390 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35391
35392 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35393
35394 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35395 for `*.dpkg-new'.
35396
35397 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35398
35399 Build info documentation. Some code borrowed from Automake.
35400
35401 * configure.ac: Check for makeinfo.
35402 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35403 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35404 docs/version.texi.
35405 (MOSTLYCLEANFILES): Add vti.tmp.
35406 (docs/version.texi, docs/stamp-vti): Update automatically.
35407 (docs/grub.info): Build info documentation. Use --force and ignore
35408 errors for now.
35409 (all-local): Add $(INFOS).
35410 (install-local): Install info files.
35411 (uninstall): Uninstall info files.
35412 * docs/version.texi: Remove from revision control. This file is
35413 automatically generated on build now.
35414 * gendistlist.sh: Add `*.info'.
35415
35416 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35417
35418 * kern/term.c: Fix indentation.
35419
35420 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35421
35422 * util/hostdisk.c: Fix a comment.
35423
35424 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35425
35426 Fix regression introduced in r2539.
35427
35428 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35429 to 0xA1.
35430
35431 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35432
35433 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35434 os-prober. Under normal operation, it does not print anything to
35435 stderr; if it does, we need to debug it, and throwing away stderr
35436 makes that excessively difficult.
35437
35438 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35439
35440 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35441
35442 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35443
35444 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35445 AC_LANG_PROGRAM from autoconf.
35446 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35447 prototypes (fixes warning).
35448
35449 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35450 `--disable-werror' was used.
35451
35452 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35453
35454 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35455 uninitialized `lastaddr'.
35456
35457 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35458
35459 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35460
35461 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35462
35463 * commands/test.c (get_fileinfo): Return immediately if
35464 grub_fs_probe fails.
35465
35466 2009-09-14 José Martínez <xosemp@gmail.com>
35467
35468 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35469
35470 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35471
35472 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35473 output.
35474
35475 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35476
35477 * configure.ac: Remove --enable-grub-pe2elf. Only build
35478 grub-pe2elf when needed by the build system itself.
35479 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35480
35481 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35482
35483 * configure.ac: Bump version to 1.97~beta3.
35484 * docs/version.texi: Likewise.
35485
35486 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35487
35488 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35489 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35490 from here ...
35491 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35492 (grub_linux_setup_video): ... to here (with some adjustments).
35493
35494 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35495
35496 Fix memory corruption issue (spotted by Colin Watson).
35497
35498 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35499 causing returned size to be stored in an incorrect memory location.
35500 Fix use of uninitialized value when storing the returned size.
35501
35502 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35503
35504 Change clean rules to properly remove files
35505
35506 * genmk.rb: add new clean rules
35507 * Makefile.in (clean): add the new targets
35508 (mostlyclean): likewise
35509
35510 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35511
35512 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35513 to grub_uint64_t.
35514 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35515 non-resident files.
35516
35517 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35518
35519 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35520 part of bug #27349.
35521
35522 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35523
35524 * util/grub-mkconfig.in: Make the created config mode 400 and
35525 print a warning if it fails.
35526
35527 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35528
35529 * util/grub.d/40_custom.in: Ask user to type custom entries below
35530 comment, rather than below 'exec tail' line.
35531
35532 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35533
35534 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35535 visible in grub.cfg.
35536
35537 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35538
35539 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35540 file.
35541
35542 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35543
35544 * docs/grub.cfg: Add an example menu entry for memtest86+.
35545
35546 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35547
35548 * config.guess: Update to latest version from config git.
35549 * config.sub: Likewise.
35550
35551 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35552
35553 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35554 unknown-command case. Fixes bug #27320.
35555
35556 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35557
35558 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35559 `help' if the command exists.
35560
35561 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35562
35563 * INSTALL: Require GCC 4.1.3 or later.
35564
35565 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35566
35567 * Makefile.in (RMKFILES): add i386-qemu.rmk
35568 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35569 $(srcdir)/stamp-h.in
35570
35571 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35572
35573 * util/grub-probe.c (probe): Comment out buggy codepath, which
35574 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35575 should be re-enabled after 1.97.
35576
35577 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35578
35579 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35580 find searches for.
35581
35582 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35583
35584 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35585 unnecessary calls to grub_error.
35586
35587 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35588
35589 * NEWS: Mention `keystatus' and Unicode fonts.
35590
35591 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35592
35593 * configure.ac: Bump version to 1.97~beta2.
35594 * docs/version.texi: Likewise.
35595
35596 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35597
35598 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35599 containing unwind information in some cases where it previously did
35600 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35601 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35602 discussion.
35603
35604 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35605
35606 Embedding loadenv module into grub-emu
35607
35608 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35609 commands/loadenv.c
35610 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35611 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35612 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35614 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35615 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35616
35617 2009-09-03 Magnus Granberg <zorry@ume.nu>
35618
35619 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35620 include -fPIE in the default specs.
35621 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35622 to TARGET_CFLAGS.
35623
35624 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35625
35626 * INSTALL: Note that GNU Bison 2.3 or later is required.
35627
35628 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35629
35630 * kern/i386/pc/startup.S: Fix typo.
35631
35632 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35633
35634 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35635 according to GCS.
35636
35637 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35638
35639 * docs/grub.texi (Naming convention): Describe one-based partition
35640 numbering.
35641 (Device syntax): Likewise.
35642 (File name syntax): Likewise.
35643 (Block list syntax): Likewise.
35644 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35645 menu.lst.
35646 (File name syntax): Likewise.
35647 (Command-line and menu entry commands): Document acpi, blocklist,
35648 crc, export, insmod, keystatus, ls, set, and unset commands.
35649
35650 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35651
35652 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35653 to avoid implying that only one of --shift, --ctrl, or --alt may be
35654 used.
35655
35656 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35657
35658 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35659 rather than comparing against S_IFREG, which will almost never work.
35660
35661 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35662
35663 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35664 (write_blocklists): Likewise.
35665
35666 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35667
35668 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35669 argument to grub_printf.
35670
35671 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35672
35673 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35674 non GNU test.
35675
35676 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35677
35678 * kern/file.c (grub_file_read): Spelling fix
35679
35680 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35681
35682 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35683 loading of headers in some cases.
35684
35685 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35686
35687 * configure.ac: Bump version to 1.97~beta1.
35688 * docs/version.texi: Likewise.
35689
35690 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35691
35692 * include/grub/i386/xnu.h: Add license header.
35693 include grub/err.h explicitly.
35694
35695 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35696
35697 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35698 to `ufs' in the vfs.root.mountfrom kernel parameter.
35699
35700 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35701
35702 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35703
35704 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35705 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35706
35707 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35708 `ARRAY_SIZE' macro.
35709
35710 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35711
35712 * kern/file.c (grub_file_read): Check offset.
35713 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35714 * fs/jfs.c (grub_jfs_read_file): Likewise.
35715 * fs/ntfs.c (grub_ntfs_read): Likewise.
35716 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35717 * fs/minix.c (grub_minix_read_file): Correct offset check.
35718 * fs/ufs.c (grub_ufs_read_file): Likewise.
35719
35720 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35721
35722 * term/i386/pc/console.c (bios_data_area): Cast
35723 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35724
35725 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35726
35727 1-bit optimised blitters.
35728
35729 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35730 prototype.
35731 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35732 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35733 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35734 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35735 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35736 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35737 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35738 function.
35739 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35740 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35741 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35742 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35743 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35744 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35745 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35746 when possible.
35747 * video/video.c (grub_video_get_blit_format): Return
35748 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35749
35750 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35751
35752 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35753 the first argument to grub_printf.
35754
35755 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35756 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35757
35758 Add `getkeystatus' terminal method. Add a new `keystatus' command
35759 to query it.
35760
35761 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35762 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35763 modifier key bitmasks.
35764 (struct grub_term_input): Add `getkeystatus' member.
35765 (grub_getkeystatus): Add prototype.
35766 * kern/term.c (grub_getkeystatus): New function.
35767
35768 * include/grub/i386/pc/memory.h
35769 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35770 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35771 Data Area layout.
35772 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35773 (grub_console_term_input): Set `getkeystatus' member.
35774 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35775 constants.
35776 (grub_usb_keyboard_getreport): Likewise.
35777 (grub_usb_keyboard_checkkey): Likewise.
35778 (grub_usb_keyboard_getkeystatus): New function.
35779 (grub_usb_keyboard_term): Set `getkeystatus' member.
35780
35781 * commands/keystatus.c: New file.
35782 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35783 (keystatus_mod_SOURCES): New variable.
35784 (keystatus_mod_CFLAGS): Likewise.
35785 (keystatus_mod_LDFLAGS): Likewise.
35786 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35787 commands/keystatus.c.
35788 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35789 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35790 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35791 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35792 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35793 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35794
35795 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35796
35797 Split befs.mod and afs.mod into *_be.mod and *.mod
35798
35799 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35800 (grub_fstest_SOURCES): Likewise.
35801 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35802 (afs_be_mod_SOURCES): New variable.
35803 (afs_be_mod_CFLAGS): Likewise.
35804 (afs_be_mod_LDFLAGS): Likewise.
35805 (befs_be_mod_SOURCES): Likewise.
35806 (befs_be_mod_CFLAGS): Likewise.
35807 (befs_be_mod_LDFLAGS): Likewise.
35808 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35809 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35810 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35811 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35812 (grub_emu_SOURCES): Likewise.
35813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35814 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35815 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35816 * fs/afs_be.c: New file.
35817 * fs/befs_be.c: New file.
35818 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35819 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35820 (U16): Replaced with ...
35821 (grub_afs_to_cpu16): ...this. All users updated.
35822 (U32): Replaced with ...
35823 (grub_afs_to_cpu32): ...this. All users updated.
35824 (U64): Replaced with ...
35825 (grub_afs_to_cpu64): ...this. All users updated.
35826 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35827 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35828 (grub_afs_validate_sblock): Check only one endianness.
35829 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35830 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35831 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35832 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35833 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35834 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35835 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35836 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35837
35838 2009-08-26 Bean <bean123ch@gmail.com>
35839
35840 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35841 64-bit number.
35842 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35843 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35844 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35845
35846 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35847
35848 NetBSD memory map support.
35849
35850 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35851 (grub_netbsd_btinfo_mmap_header): New structure.
35852 (grub_netbsd_btinfo_mmap_entry): Likewise.
35853 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35854
35855 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35856
35857 Enable bsd.mod on coreboot.
35858
35859 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35860 (bsd_mod_SOURCES): New variable.
35861 (bsd_mod_CFLAGS): Likewise.
35862 (bsd_mod_LDFLAGS): Likewise.
35863 (bsd_mod_ASFLAGS): Likewise.
35864 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35865 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35866
35867 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35868
35869 Cleanup NetBSD root support.
35870
35871 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35872 grub_bsd_get_device.
35873 Fix typo.
35874
35875 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35876
35877 * util/grub.d/00_header.in: Move check for the video backend of
35878 gfxterm from here ...
35879 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35880 a suitable video backend.
35881
35882 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35883
35884 Fix breakage in grub-setup.
35885
35886 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35887 "msdos_partition_map".
35888
35889 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35890
35891 Fix breakage in normal/auth.c.
35892
35893 * normal/auth.c (grub_iswordseparator): New function.
35894
35895 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35896
35897 Authentication support.
35898
35899 * commands/password.c: New file.
35900 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35901 (password_mod_SOURCES): New variable.
35902 (password_mod_CFLAGS): Likewise.
35903 (password_mod_LDFLAGS): Likewise.
35904 (normal_mod_SOURCES): Add normal/auth.c.
35905 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35906 normal/auth.c.
35907 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35908 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35909 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35910 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35911 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35912 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35913 * include/grub/auth.h: New file.
35914 * include/grub/err.h (grub_err_t): New enum value
35915 GRUB_ERR_ACCESS_DENIED.
35916 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35917 'users'.
35918 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35919 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35920 users updated.
35921 * normal/auth.c: New file.
35922 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35923 (grub_cmdline_run): Don't allow to go to command line without
35924 authentication.
35925 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35926 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35927 menuentry without superuser rights.
35928 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35929 user isn't a superuser.
35930
35931 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35932
35933 Save space by inlining misc.c functions.
35934
35935 * kern/misc.c (grub_iswordseparator): Made static.
35936 * kern/misc.c (grub_strcat): Moved from here ...
35937 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35938 * kern/misc.c (grub_strncat): Moved from here ...
35939 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35940 * kern/misc.c (grub_strcasecmp): Moved from here ...
35941 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35942 * kern/misc.c (grub_strncasecmp): Moved from here ...
35943 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35944 * kern/misc.c (grub_isalpha): Moved from here ...
35945 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35946 * kern/misc.c (grub_isdigit): Moved from here ...
35947 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35948 * kern/misc.c (grub_isgraph): Moved from here ...
35949 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35950 * kern/misc.c (grub_tolower): Moved from here ...
35951 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35952
35953 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35954
35955 * script/sh/function.c (grub_script_function_find): Cut error message
35956 not to flood terminal.
35957 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35958 limit.
35959 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35960
35961 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35962
35963 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35964 `report' grub_uint8_t *.
35965 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35966 Use a 50-millisecond timeout rather than just repeating
35967 grub_usb_keyboard_getreport 50 times.
35968 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35969
35970 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35971
35972 Rename *_partition_map to part_*
35973
35974 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35975 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35976 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35977 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35978 All users updated.
35979 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35980 All users updated.
35981 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35982 * util/grub-probe.c (probe_partmap): Don't transform partition name
35983 to get module name.
35984
35985 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35986
35987 Fix OpenBSD and NetBSD support.
35988
35989 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35990 memory address conflict.
35991 (OPENBSD_MMAP_ACPI): New definition.
35992 (OPENBSD_MMAP_NVS): Likewise.
35993 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35994 and OPENBSD_MMAP_NVS.
35995 Add memory map terminator
35996 Explicit cast when calling grub_unix_real_boot.
35997 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35998
35999 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36000
36001 Let user specify NetBSD root device.
36002
36003 * loader/i386/bsd.c (netbsd_root): New variable.
36004 (netbsd_opts): New option 'root'.
36005 (NETBSD_ROOT_ARG): New macro.
36006 (grub_netbsd_boot): Use 'netbsd_root'.
36007 (grub_bsd_unload): Free 'netbsd_root'.
36008 (grub_cmd_netbsd): Fill 'netbsd_root'.
36009
36010 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36011
36012 Support for 64-bit NetBSD.
36013
36014 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36015 point when booting non-FreeBSD.
36016
36017 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36018
36019 Support --no-smp and --no-acpi for NetBSD.
36020
36021 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36022 (NETBSD_AB_NOACPI): Likewise.
36023 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36024 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36025
36026 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36027
36028 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36029 errors.
36030 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36031 errors. Call grub_error when needed.
36032
36033 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36034
36035 * commands/search.c (search_fs): Try searching without autoload first.
36036 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36037 filesystem module explicitly for faster booting.
36038
36039 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36040
36041 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36042
36043 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36044
36045 * util/grub.d/30_os-prober.in: Disable os-prober if
36046 `GRUB_DISABLE_OS_PROBER' was set to true.
36047
36048 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36049
36050 * partmap/pc.c: Rename to ...
36051 * partmap/msdos.c: ... this. Update all users.
36052 (grub_pc_partition_map): Rename to ...
36053 (grub_msdos_partition_map): ... this. Update all users.
36054
36055 * parttool/pcpart.c: Rename to ...
36056 * parttool/msdospart.c: ... this. Update all users.
36057
36058 * include/grub/pc_partition.h: Rename to ...
36059 * include/grub/msdos_partition.h: ... this. Update all users.
36060 (grub_pc_partition_bsd_entry): Rename to ...
36061 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36062 (grub_pc_partition_disk_label): Rename to ...
36063 (grub_msdos_partition_disk_label): ... this. Update all users.
36064 (grub_pc_partition_entry): Rename to ...
36065 (grub_msdos_partition_entry): ... this. Update all users.
36066 (grub_pc_partition_mbr): Rename to ...
36067 (grub_msdos_partition_mbr): ... this. Update all users.
36068 (grub_pc_partition): Rename to ...
36069 (grub_msdos_partition): ... this. Update all users.
36070 (grub_pc_partition_is_empty): Rename to ...
36071 (grub_msdos_partition_is_empty): ... this. Update all users.
36072 (grub_pc_partition_is_extended): Rename to ...
36073 (grub_msdos_partition_is_extended): ... this. Update all users.
36074 (grub_pc_partition_is_bsd): Rename to ...
36075 (grub_msdos_partition_is_bsd): ... this. Update all users.
36076
36077 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36078 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36079 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36080 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36081 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36082 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36083 (gpt_mod_LDFLAGS): Rename to ...
36084 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36085 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36086 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36087 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36088 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36089 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36090 (part_gpt_mod_LDFLAGS): ... this.
36091 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36092 `pcpart.mod' to `msdospart.mod'.
36093 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36094 to ...
36095 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36096 (msdospart_mod_LDFLAGS): ... this.
36097
36098 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36099
36100 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36101 (openbsd_opts): Likewise.
36102 (netbsd_opts): Likewise.
36103 (freebsd_flags): Added 0 terminator.
36104 (openbsd_flags): Likewise.
36105 (netbsd_flags): Likewise.
36106 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36107 (grub_cmd_freebsd): Transformed into extended command.
36108 (grub_cmd_openbsd): Likewise.
36109 (grub_cmd_netbsd): Likewise.
36110 (cmd_freebsd): Changed type to grub_extcmd_t.
36111 (cmd_openbsd): Likewise.
36112 (cmd_netbsd): Likewise.
36113 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36114 grub_cmd_openbsd as extended commands.
36115 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36116 cmd_netbsd and cmd_openbsd
36117
36118 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36119
36120 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36121
36122 2009-08-21 Pavel Roskin <proski@gnu.org>
36123
36124 * Makefile.in (install-local): When checking if a file is in the
36125 build directory, use "test -e" to detect symlinks.
36126
36127 * Makefile.in (install-local): Remove all files in
36128 $(DESTDIR)$(pkglibdir) before installing new files there.
36129
36130 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36131
36132 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36133 grub-mkelfimage.
36134
36135 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36136
36137 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36138 explicitly specified by the user.
36139
36140 2009-08-18 Pavel Roskin <proski@gnu.org>
36141
36142 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36143 grub_uint8_t pointer for data.
36144 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36145 Likewise.
36146 * video/fb/fbutil.c: Remove unnecessary casts.
36147
36148 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36149
36150 VBE cleanup.
36151
36152 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36153 (grub_vbe_set_video_mode): Save active mode info
36154 only after setting the mode.
36155 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36156 second argument.
36157
36158 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36159
36160 Rename variables for clarity.
36161
36162 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36163 (active_vbe_mode_info): ... this. All users updated.
36164 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36165 All users updated.
36166 (initial_mode): Rename to ...
36167 (initial_vbe_mode): ... this. All users updated.
36168 (mode_in_use): Rename to ..
36169 (vbe_mode_in_use): ... this. All users updated.
36170 (mode_list): Rename to ..
36171 (vbe_mode_list): ... this. All users updated.
36172 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36173 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36174 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36175 'mode_list_size' to 'vbe_mode_list_size'.
36176 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36177 'best_mode_info' to 'best_vbe_mode_info' and
36178 'best_mode' to 'best_vbe_mode'
36179
36180 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36181
36182 Remove duplicate grub_video_fb_get_video_ptr.
36183
36184 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36185 (grub_video_fb_get_video_ptr): ... this.
36186 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36187 * video/fb/fbutil.c: Add comment about addressing.
36188 (get_data_ptr): Rename to ...
36189 (grub_video_fb_get_video_ptr): ... this. All users updated.
36190 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36191
36192 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36193
36194 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36195 grub_dprintf() that was just added.
36196
36197 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36198
36199 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36200 (DEFAULT_VIDEO_MODE): Remove macros.
36201 (grub_linux_boot): Remove assumption that Linux has FB support,
36202 and use "text" as default video mode.
36203
36204 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36205
36206 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36207 grub_dprintf.
36208 * fs/fat.c (grub_fat_read_data): Likewise.
36209
36210 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36211
36212 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36213 payload.
36214 (grub_module): Likewise.
36215
36216 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36217
36218 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36219 mbi->cmdline but free playground.
36220
36221 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36222
36223 Handle group offset on UFS1.
36224
36225 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36226 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36227
36228 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36229
36230 Split ufs.mod into ufs1.mod and ufs2.mod.
36231
36232 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36233 (grub_fstest_SOURCES): Likewise.
36234 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36235 (ufs_mod_SOURCES): Remove.
36236 (ufs_mod_CFLAGS): Likewise.
36237 (ufs_mod_LDFLAGS): Likewise.
36238 (ufs1_mod_SOURCES): New variable.
36239 (ufs1_mod_CFLAGS): Likewise.
36240 (ufs1_mod_LDFLAGS): Likewise.
36241 (ufs2_mod_SOURCES): New variable.
36242 (ufs2_mod_CFLAGS): Likewise.
36243 (ufs2_mod_LDFLAGS): Likewise.
36244 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36245 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36246 Likewise.
36247 (grub_emu_SOURCES): Likewise.
36248 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36249 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36250 (grub_setup_SOURCES): Likewise.
36251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36252 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36253 (grub_setup_SOURCES): Likewise.
36254 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36255 Likewise.
36256 * fs/ufs2.c: New file.
36257 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36258
36259 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36260
36261 Framebuffer split.
36262
36263 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36264 subsystem at the end.
36265 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36266 (video_fb_mod_SOURCES): New variable.
36267 (video_fb_mod_CFLAGS): Likewise.
36268 (video_fb_mod_LDFLAGS): Likewise.
36269 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36270 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36271 * video/i386/pc/vbeblit.c: Moved from here ...
36272 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36273 * video/i386/pc/vbefill.c: Moved from here ...
36274 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36275 * video/i386/pc/vbeutil.c: Moved from here ...
36276 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36277 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36278 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36279 * include/grub/i386/pc/vbefill.h: Moved from here ...
36280 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36281 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36282 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36283 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36284 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36285 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36286 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36287 (grub_video_adapter): Added 'get_info_and_fini'.
36288 (grub_video_get_info_and_fini): New prototype.
36289 (grub_video_set_mode): make modestring const char *.
36290 * loader/i386/linux.c (grub_linux_setup_video): Use
36291 grub_video_get_info_and_fini.
36292 (grub_linux_boot): Move modesetting just before booting.
36293 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36294 grub_video_get_info_and_fini.
36295 * video/i386/pc/vbe.c: Moved framebuffer part ...
36296 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36297 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36298 grub_video_fbstd_colors and grub_video_fb_set_palette.
36299 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36300 grub_video_fb_init.
36301 (grub_video_vbe_fini): Use grub_video_fb_fini.
36302 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36303 render_target and use grub_video_fb_set_active_render_target and
36304 grub_video_fb_set_palette.
36305 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36306 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36307 (grub_video_vbe_adapter): Use framebuffer.
36308 * video/video.c (grub_video_get_info_and_fini): New function.
36309 (grub_video_set_mode): Make modestring const char *.
36310 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36311 values are already initialised.
36312
36313 2009-08-14 Pavel Roskin <proski@gnu.org>
36314
36315 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36316 ABS and APPLE_CC.
36317 * boot/i386/pc/diskboot.S: Likewise.
36318 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36319 sectors allow compilation on MacOSX.
36320 * conf/i386-pc.rmk: Enable unconditional compilation of
36321 lnxboot.img.
36322
36323 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36324
36325 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36326 * util/grub.d/00_header.in: Enter interruptible sleep if
36327 GRUB_HIDDEN_TIMEOUT is set.
36328
36329 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36330
36331 * include/grub/symbol.h: Add the LOCAL macro.
36332 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36333 starting with "L_".
36334
36335 2009-08-13 Pavel Roskin <proski@gnu.org>
36336
36337 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36338 any modern compilers we support.
36339
36340 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36341 Use local labels starting with "L_" so that Apple assembler
36342 knows they are local.
36343
36344 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36345
36346 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36347 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36348 (bsd_kernel_types): ... this enum.
36349
36350 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36351 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36352 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36353
36354 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36355 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36356 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36357 messages.
36358
36359 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36360
36361 * util/grub-dumpdevtree: Moved from here ...
36362 * util/i386/efi/grub-dumpdevtree: ... to here.
36363 (hexify): New function. Converts a string to its hex version.
36364 Generate hex versions of "efi" and "device-properties" by calling
36365 hexify() on the ASCII strings rather than by hardcoding numbers.
36366
36367 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36368
36369 * fs/jfs.c: Update copyright year.
36370
36371 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36372
36373 * util/grub.d/00_header.in: Fix a comment.
36374 * util/grub.d/10_linux.in: Likewise.
36375 * util/grub.d/10_windows.in: Likewise.
36376 * util/grub.d/10_hurd.in: Likewise.
36377
36378 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36379
36380 * util/grub-mkconfig.in: Allow the user to specify the used font
36381 with GRUB_FONT.
36382
36383 2009-08-08 Pavel Roskin <proski@gnu.org>
36384
36385 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36386 available, xfs.mod needs it now.
36387
36388 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36389 the "g" modifier in sed when the intention is to strip something
36390 once. This fixes comparison of kernels with multiple dashes.
36391
36392 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36393 on it. Add missing space before closing bracket. Fix
36394 misleading formatting.
36395
36396 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36397
36398 * docs/grub.texi: Major overhaul. Remove all sections that are
36399 specific to GRUB Legacy, or mostly composed of Legacy-specific
36400 information.
36401
36402 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36403
36404 * docs/version.texi: New file. Provides version information for
36405 grub.texi.
36406
36407 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36408
36409 * docs/grub.texi: Update CVS information to SVN.
36410 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36411
36412 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36413
36414 * util/grub-mkconfig.in: Remove a wrong `fi'.
36415
36416 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36417
36418 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36419 (grub_jfs_uuid): New function.
36420 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36421
36422 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36423
36424 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36425 of it to ...
36426 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36427 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36428
36429 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36430
36431 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36432 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36433 Update all users.
36434
36435 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36436 not just "vmlinu[zx]".
36437 Moved from here ...
36438 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36439 all users.
36440
36441 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36442 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36443 all users.
36444
36445 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36446
36447 * util/grub.d/10_freebsd.in: Use an absolute device path for
36448 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36449
36450 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36451
36452 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36453 handling of multiple abstraction modules.
36454
36455 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36456
36457 Fix a bug resulting in black screen when loading Linux using a
36458 packed video mode.
36459
36460 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36461 function.
36462
36463 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36464 (grub_vbe_bios_getset_dac_palette_width): New function.
36465 (grub_vbe_bios_get_dac_palette_width)
36466 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36467 grub_vbe_bios_getset_dac_palette_width()).
36468
36469 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36470 check for return status.
36471 (grub_vbe_get_video_mode_info): When getting information for a packed
36472 mode (<= 8 bpp), obtain DAC palette width using
36473 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36474 {red,green,blue}_mark_size.
36475
36476 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36477
36478 * commands/search.c (options): Fix help output to match actual code.
36479
36480 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36481
36482 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36483 of homegrown code.
36484
36485 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36486
36487 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36488 on XFS or ReiserFS.
36489
36490 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36491
36492 Support Apple partition map with sector size different from 512 bytes.
36493
36494 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36495 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36496 and 'apart.partmap_size'.
36497
36498 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36499 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36500
36501 Fix cpuid command.
36502
36503 * commands/i386/cpuid.c (options): New variable.
36504 (grub_cmd_cpuid): Return real error.
36505 (GRUB_MOD_INIT(cpuid)): Declare options.
36506
36507 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36508
36509 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36510 valid.
36511
36512 2009-07-31 Bean <bean123ch@gmail.com>
36513
36514 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36515 log2_inode.
36516 (grub_fshelp_node): Move inode field to the end.
36517 (grub_xfs_data): Remove inode field.
36518 (grub_xfs_inode_block): Calculate inode size using sblock.
36519 (grub_xfs_inode_offset): Likewise.
36520 (grub_xfs_read_inode): Calculate inode size using sblock.
36521 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36522 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36523 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36524 to match inode size.
36525 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36526 not accessible when data is null.
36527 (grub_xfs_open): Likewise.
36528
36529 2009-07-31 Bean <bean123ch@gmail.com>
36530
36531 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36532 Don't change pv->disk if it's already set.
36533
36534 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36535 (grub_raid_register): ... here.
36536 (grub_raid_rescan): Removed.
36537
36538 * include/grub/raid.h (grub_raid_rescan): Removed.
36539
36540 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36541 (fstest): Replace grub_raid_rescan with module fini function followed
36542 by init function.
36543
36544 * util/grub-probe.c: Add include file <grub/raid.h>.
36545 (probe_raid_level): New function.
36546 (probe): Detect abstraction by walking the disk device, support two
36547 level of abstraction (LVM on RAID) when detecting partition map.
36548
36549 2009-07-31 Pavel Roskin <proski@gnu.org>
36550
36551 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36552 to grub_zalloc(), it was erroneous.
36553 Reported by Bean <bean123ch@gmail.com>
36554
36555 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36556
36557 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36558 embedding zone, not only the first one.
36559
36560 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36561
36562 * term/gfxterm.c (clear_char): New function.
36563 (grub_virtual_screen_setup): Use clear_char.
36564 (scroll_up): Likewise.
36565 (grub_virtual_screen_cls): Likewise.
36566
36567 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36568
36569 * util/deviceiter.c (get_acceleraid_disk_name): New static
36570 function.
36571 (grub_util_iterate_devices): Handle Accelraid devices.
36572 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36573
36574 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36575
36576 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36577 separator for the suggested gfxpayload string (';' collides with the
36578 parser and needs escaping).
36579
36580 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36581
36582 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36583 Clear direction flag before jumping to OS.
36584 (grub_multiboot2_real_boot): Likewise.
36585
36586 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36587
36588 * util/i386/pc/grub-install: Fix parsing of --disk-module
36589 option.
36590
36591 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36592
36593 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36594 when embedding.
36595
36596 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36597
36598 * util/grub-mkconfig.in (package_version): New variable.
36599 Use it do display the version.
36600
36601 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36602
36603 * kern/file.c (grub_file_open): Revert to previous check with
36604 grub_errno.
36605
36606 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36607
36608 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36609 from help line. It's out of sync with code.
36610
36611 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36612
36613 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36614 entries on failed boot.
36615
36616 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36617
36618 * kern/file.c (grub_file_open): Fix an error check.
36619
36620 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36621
36622 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36623 partition map couldn't be identified.
36624
36625 2009-07-23 Pavel Roskin <proski@gnu.org>
36626
36627 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36628 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36629 case of little endian words becomes just an optimization.
36630 Respect const modifier.
36631 (md5_final): Use code that doesn't depend on endianness.
36632
36633 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36634 to avoid loss of upper bits if align is unsigned and shorter
36635 than addr.
36636
36637 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36638
36639 UUID support for UFS
36640
36641 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36642 (grub_ufs_uuid): New function.
36643 (grub_ufs_fs): add .uuid
36644
36645 2009-07-21 Pavel Roskin <proski@gnu.org>
36646
36647 * kern/dl.c (grub_dl_check_header): Make static.
36648
36649 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36650
36651 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36652 add drivemap for Vista. It breaks Windows 7.
36653
36654 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36655
36656 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36657 128 bytes
36658
36659 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36660
36661 Add BFS support
36662
36663 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36664 (grub_fstest_SOURCES): Likewise.
36665 (pkglib_MODULES): Add befs.mod.
36666 (befs_mod_SOURCES): New variable.
36667 (befs_mod_CFLAGS): Likewise.
36668 (befs_mod_LDFLAGS): Likewise.
36669 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36670 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36671 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36672 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36673 (grub_setup_SOURCES): Likewise.
36674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36675 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36676 (grub_setup_SOURCES): Likewise.
36677 * fs/befs.c: New file.
36678 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36679 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36680 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36681 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36682 (B_KEY_INDEX_ALIGN): New declaration.
36683 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36684 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36685 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36686 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36687 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36688 (grub_afs_mount) [MODE_BFS]: Likewise.
36689 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36690 (grub_afs_fs): Use GRUB_AFS_FSNAME
36691 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36692 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36693 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36694 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36695
36696 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36697
36698 * util/getroot.c (find_root_device): Add support for MacOSX.
36699 * util/hostdisk.c: Likewise.
36700
36701 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36702
36703 * font/font.c (find_glyph): Check whether a font is present to avoid
36704 segmentation fault.
36705
36706 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36707
36708 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36709
36710 2009-07-20 Pavel Roskin <proski@gnu.org>
36711
36712 * configure.ac: Trim excessively wordy excuses.
36713
36714 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36715
36716 Add symlink, mtime and label support to AtheFS.
36717
36718 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36719 (grub_afs_iterate_dir): Handle symlinks.
36720 (grub_afs_open): Use grub_afs_read_symlink.
36721 (grub_afs_dir): Likewise.
36722 Pass mtime.
36723 (grub_afs_label): New function.
36724 (grub_afs_fs): Add grub_afs_label.
36725 (grub_afs_read_symlink): New function.
36726
36727 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36728
36729 Fix AtheFS support.
36730
36731 * fs/afs.c: Fix comments style.
36732 (grub_afs_blockrun): Declare as packed.
36733 (grub_afs_datastream): Likewise.
36734 (grub_afs_bnode): Likewise.
36735 (grub_afs_btree): Likewise.
36736 (grub_afs_sblock): Likewise.
36737 Declare `name' as char.
36738 (grub_afs_inode): Declare as packed.
36739 Change void *vnode to grub_uint32_t unused.
36740 (grub_afs_iterate_dir): Check that key_size is positive.
36741 (grub_afs_mount): Don't read superblock twice.
36742 (grub_afs_dir): Don't free node in case of error,
36743 grub_fshelp_find_file already handles this.
36744 (grub_afs_open): Likewise.
36745
36746 2009-07-19 Pavel Roskin <proski@gnu.org>
36747
36748 * Makefile.in: Remove LIBLZO and enable_lzo.
36749 * conf/i386-pc.rmk: Remove lzo support.
36750 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36751 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36752 support.
36753 * kern/i386/pc/lzo1x.S: Remove.
36754 * kern/i386/pc/startup.S: Remove lzo support.
36755 * util/i386/pc/grub-mkimage.c: Likewise.
36756
36757 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36758
36759 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36760 * fs/xfs.c (grub_xfs_dir): Likewise.
36761 * fs/afs.c (grub_afs_dir): Likewise.
36762 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36763 (grub_iso9660_open): Likewise.
36764 * fs/jfs.c (grub_jfs_open): Likewise.
36765 * fs/ext2.c (grub_ext2_dir): Likewise.
36766 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36767 * script/sh/lexer.c (grub_script_yylex): Likewise.
36768
36769 2009-07-16 Pavel Roskin <proski@gnu.org>
36770
36771 * configure.ac: Never add "-c" to CFLAGS.
36772
36773 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36774
36775 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36776 grub_cv_cc_efiemu should be used.
36777
36778 * configure.ac: Typo fixes.
36779
36780 * kern/mm.c (grub_zalloc): New function.
36781 (grub_debug_zalloc): Likewise.
36782 * include/grub/mm.h: Declare grub_zalloc() and
36783 grub_debug_zalloc().
36784 * util/misc.c (grub_zalloc): New function.
36785 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36786 instead of grub_malloc(), remove unneeded initializations.
36787 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36788 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36789 * commands/parttool.c (grub_cmd_parttool): Likewise.
36790 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36791 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36792 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36793 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36794 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36795 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36796 (grub_cmd_efiemu_pnvram): Likewise.
36797 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36798 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36799 (grub_iso9660_iterate_dir): Likewise.
36800 * fs/jfs.c (grub_jfs_opendir): Likewise.
36801 * fs/ntfs.c (list_file): Likewise.
36802 (grub_ntfs_mount): Likewise.
36803 * kern/disk.c (grub_disk_open): Likewise.
36804 * kern/dl.c (grub_dl_load_core): Likewise.
36805 * kern/elf.c (grub_elf_file): Likewise.
36806 * kern/env.c (grub_env_context_open): Likewise.
36807 (grub_env_set): Likewise.
36808 (grub_env_set_data_slot): Likewise.
36809 * kern/file.c (grub_file_open): Likewise.
36810 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36811 * loader/i386/multiboot.c (grub_module): Likewise.
36812 * loader/xnu.c (grub_xnu_create_key): Likewise.
36813 (grub_xnu_create_value): Likewise.
36814 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36815 (read_config_file): Likewise.
36816 * normal/menu_entry.c (make_screen): Likewise.
36817 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36818 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36819 * script/sh/script.c (grub_script_parse): Likewise.
36820 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36821 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36822 * video/readers/png.c (grub_png_output_byte): Likewise.
36823 (grub_video_reader_png): Likewise.
36824
36825 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36826
36827 Enable all targets that can be built by default
36828
36829 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36830 grub-mkfont and grub-fstest if they can be built
36831
36832 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36833
36834 Fix hang and segmentation fault in grub-emu-usb
36835
36836 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36837 * util/usb.c (grub_libusb_devices): likewise
36838 (grub_libusb_init): rename to ...
36839 (GRUB_MOD_INIT (libusb)):...this
36840 (grub_libusb_fini): rename to ..
36841 (GRUB_MOD_FINI (libusb)):...this
36842 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36843 * include/grub/disk.h (grub_raid_init): removed, it's useless
36844 (grub_raid_fini): likewise
36845 (grub_lvm_init): likewise
36846 (grub_lvm_fini): likewise
36847 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36848 by grub_init_all
36849
36850 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36851
36852 Fix libusb
36853
36854 * Makefile.in (LIBUSB): new macro
36855 * genmk.rb (Utility/print_tail): new method
36856 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36857 (top level): call util.print_tail at the end.
36858
36859 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36860
36861 Make FreeBSD accept zpool.cache
36862
36863 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36864 type is /boot/zfs/zpool.cache
36865
36866 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36867
36868 Fix 64-bit efiemu
36869
36870 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36871 correct wrong typedef
36872 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36873
36874 2009-07-15 Pavel Roskin <proski@gnu.org>
36875
36876 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36877 * kern/disk.c (struct grub_disk_cache): Likewise.
36878
36879 * commands/probe.c (options): Typo fix.
36880
36881 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36882 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36883 accordingly.
36884 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36885
36886 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36887 the end of "Error" to make the message more readable.
36888
36889 * boot/i386/pc/boot.S (kernel_segment): Remove.
36890 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36891 for destination.
36892
36893 * boot/i386/pc/boot.S (boot_version): Remove.
36894 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36895 Remove.
36896
36897 * include/grub/i386/pc/boot.h: Sort all offsets.
36898 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36899 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36900 * boot/i386/pc/boot.S: Assert location of every offset listed in
36901 include/grub/i386/pc/boot.h.
36902
36903 2009-07-13 Pavel Roskin <proski@gnu.org>
36904
36905 * include/grub/i386/coreboot/machine.h: Rename
36906 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36907 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36908 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36909
36910 * kern/dl.c: Force native word size to suppress warnings when
36911 compiling grub-emu.
36912
36913 * kern/device.c (grub_device_iterate): Change struct part_ent to
36914 hold the name, not a pointer to it. Use one grub_malloc() per
36915 partition, not two. Free partition_name if grub_malloc() fails.
36916 Set ents to NULL only before grub_partition_iterate() is called.
36917
36918 2009-07-11 Bean <bean123ch@gmail.com>
36919
36920 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36921 childname.
36922
36923 2009-07-10 Bean <bean123ch@gmail.com>
36924 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36925
36926 * kern/ieee1275/openfw.c (grub_children_iterate)
36927 (grub_devalias_iterate): Fix size evaluation for property or path
36928 strings, which was broken since r2132.
36929
36930 2009-07-07 Pavel Roskin <proski@gnu.org>
36931
36932 * commands/search.c (search_file): Merge into ...
36933 (search_fs): ... this. Accept search type as argument.
36934 (grub_cmd_search): Pass search type to search_fs().
36935
36936 * include/grub/util/console.h: New file.
36937 * util/console.c: Use it instead of grub/machine/console.h.
36938 * util/grub-emu.c: Likewise.
36939
36940 * lib/arg.c (find_long_option): Remove.
36941 (find_long): Add `len' argument, make `s' const char *.
36942 (grub_arg_parse): Parse long options in place, not in a
36943 temporary buffer.
36944
36945 2009-07-06 Pavel Roskin <proski@gnu.org>
36946
36947 * commands/search.c (search_fs): Fix potential NULL pointer
36948 dereference.
36949
36950 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36951 function pointer.
36952
36953 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36954
36955 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36956 comparison.
36957
36958 2009-07-05 Pavel Roskin <proski@gnu.org>
36959
36960 * include/grub/i386/linux.h (struct linux_kernel_params):
36961 Restore padding3, it's still needed.
36962
36963 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36964 FreeBSD.
36965 * util/osdetect.lua: Likewise.
36966
36967 2009-07-05 Bean <bean123ch@gmail.com>
36968
36969 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36970
36971 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36972 (grub_lua_getenv): Likewise.
36973 (grub_lua_setenv): Likewise.
36974 (save_errno): New function.
36975 (push_result): Likewise.
36976 (grub_lua_enum_device): Likewise.
36977 (grub_lua_enum_file): Likewise.
36978 (grub_lua_file_open): Likewise.
36979 (grub_lua_file_close): Likewise.
36980 (grub_lua_file_seek): Likewise.
36981 (grub_lua_file_read): Likewise.
36982 (grub_lua_file_getline): Likewise.
36983 (grub_lua_file_getsize): Likewise.
36984 (grub_lua_file_getpos): Likewise.
36985 (grub_lua_file_eof): Likewise.
36986 (grub_lua_file_exist): Likewise.
36987 (grub_lua_add_menu): Likewise.
36988
36989 * script/lua/grub_lua.h (isupper): New inline function.
36990 (islower): Likewise.
36991 (ispunct): Likewise.
36992 (isxdigit): Likewise.
36993 (strcspn): Change to normal function.
36994 (strpbkr): New function declaration.
36995 (memchr): Likewise.
36996
36997 * script/lua/grub_main.c (scan_str): New function.
36998 (strcspn): Likewise.
36999 (strpbrk): Likewise.
37000 (memchr): Likewise.
37001
37002 * script/lua/linit.c (lualibs): Enable the string library.
37003
37004 * util/osdetect.lua: New file.
37005
37006 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37007
37008 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37009 `capabilities' member.
37010
37011 2009-07-02 Pavel Roskin <proski@gnu.org>
37012
37013 * genparttoollist.sh: Add missing newline at the end.
37014
37015 2009-07-01 Pavel Roskin <proski@gnu.org>
37016
37017 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37018
37019 * util/hostdisk.c (open_device): Remove `const' from
37020 `sysctl_size', as sysctlbyname() can change it (in this case it
37021 doesn't actually happen).
37022
37023 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37024 using signed long int constants.
37025
37026 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37027 constant to avoid a warning on FreeBSD.
37028
37029 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37030 where it's needed.
37031
37032 * Makefile.in: Install include/grub/machine symlink.
37033
37034 * Makefile.in: When installing symlinks, use "cp -fR", which
37035 works on FreeBSD and MacOSX.
37036 From Yves Blusseau <cl7m42e02@sneakemail.com>
37037
37038 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37039 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37040
37041 * util/misc.c: Move grub_reboot() and grub_halt() ...
37042 * util/grub-emu.c: ... here. Make main_env static.
37043 * include/grub/util/misc.h: Remove main_env.
37044
37045 * kern/mm.c: Use correct format to print size_t.
37046
37047 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37048 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37049 * kern/powerpc/dl.c: Likewise.
37050 * kern/sparc64/dl.c: Likewise.
37051 * kern/x86_64/dl.c: Likewise.
37052
37053 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37054
37055 Fix grub-emu build on sparc64-ieee1275.
37056
37057 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37058 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37059
37060 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37061
37062 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37063 (grub_reboot, grub_halt): New functions.
37064
37065 * util/i386/pc/misc.c: Delete. Update all users.
37066 * util/sparc64/ieee1275/misc.c: Likewise.
37067 * util/powerpc/ieee1275/misc.c: Likewise.
37068
37069 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37070
37071 * conf/i386.rmk (setjmp_mod_SOURCES)
37072 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37073 * conf/common.rmk (setjmp_mod_SOURCES)
37074 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37075 to use $(target_cpu).
37076 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37077 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37078 * conf/powerpc-ieee1275.rmk: Likewise.
37079 * conf/sparc64-ieee1275.rmk: Likewise.
37080
37081 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37082 $(target_cpu) for kern/$(target_cpu)/dl.c.
37083 * conf/i386-efi.rmk: Likewise.
37084 * conf/i386-ieee1275.rmk: Likewise.
37085 * conf/x86_64-efi.rmk: Likewise.
37086 * conf/i386-coreboot.rmk: Likewise.
37087 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37088 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37089 kern/$(target_cpu)/cache.S.
37090 * conf/sparc64-ieee1275.rmk: Likewise.
37091
37092 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37093
37094 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37095 type to `grub_uint8_t', and adjust `padding9' accordingly.
37096
37097 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37098
37099 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37100
37101 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37102 assembly in final jump, using register constraints.
37103
37104 (grub_linux_boot): For text mode, initialize `have_vga' using
37105 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37106
37107 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37108 right before the final jump.
37109
37110 Set `video_mode' to 0x3.
37111
37112 Document initialization of `video_page', `video_mode' and
37113 `video_ega_bx'.
37114
37115 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37116
37117 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37118 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37119 and set GRUB_LINUX_FLAG_QUIET appropriately.
37120
37121 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37122
37123 Fix build on Debian / sparc.
37124
37125 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37126
37127 2009-06-28 Pavel Roskin <proski@gnu.org>
37128
37129 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37130 fix a warning.
37131
37132 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37133
37134 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37135
37136 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37137 `err'.
37138
37139 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37140
37141 Revert r2338.
37142
37143 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37144 file can't be opened. grub_file_open() is already supposed to set
37145 grub_errno / grub_errmsg appropriately.
37146 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37147
37148 2009-06-27 Pavel Roskin <proski@gnu.org>
37149 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37150
37151 * include/grub/dl.h: Include grub/elf.h.
37152 (struct grub_dl): Add symtab field.
37153 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37154 GRUB_MODULES_MACHINE_READONLY.
37155 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37156 of the header for read-only modules.
37157 (grub_dl_unload): Free mod->symtab for read-only modules.
37158 * kern/i386/dl.c: Use mod->symtab.
37159 * kern/powerpc/dl.c: Likewise.
37160 * kern/sparc64/dl.c: Likewise.
37161 * kern/x86_64/dl.c: Likewise.
37162
37163 * conf/i386-qemu.rmk: New file.
37164 * kern/i386/qemu/startup.S: Likewise.
37165 * kern/i386/qemu/mmap.c: Likewise.
37166 * boot/i386/qemu/boot.S: Likewise.
37167 * include/grub/i386/qemu/time.h: Likewise.
37168 * include/grub/i386/qemu/serial.h: Likewise.
37169 * include/grub/i386/qemu/kernel.h: Likewise.
37170 * include/grub/i386/qemu/console.h: Likewise.
37171 * include/grub/i386/qemu/boot.h: Likewise.
37172 * include/grub/i386/qemu/init.h: Likewise.
37173 * include/grub/i386/qemu/machine.h: Likewise.
37174 * include/grub/i386/qemu/loader.h: Likewise.
37175 * include/grub/i386/qemu/memory.h: Likewise.
37176
37177 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37178 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37179 [qemu] (pkglib_IMAGES): Add `boot.img'.
37180 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37181 [qemu] (boot_img_FORMAT): New variables.
37182 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37183 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37184 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37185 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37186 [qemu] (kernel_img_FORMAT): New variables.
37187
37188 * configure.ac: Recognise `i386-qemu'.
37189
37190 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37191 (for no compression).
37192 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37193 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37194 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37195 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37196 ifdefs).
37197
37198 2009-06-27 Pavel Roskin <proski@gnu.org>
37199
37200 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37201 read.
37202 * efiemu/prepare32.c: Likewise.
37203 * efiemu/prepare64.c: Likewise.
37204
37205 2009-06-26 Pavel Roskin <proski@gnu.org>
37206
37207 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37208 * include/grub/elf.h: Define symbols without "32" or "64" based
37209 on GRUB_TARGET_WORDSIZE.
37210 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37211 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37212 ELF definitions.
37213 * efiemu/loadcore64.c: Likewise.
37214 * loader/i386/bsd32.c: Likewise.
37215 * loader/i386/bsd64.c: Likewise.
37216 * kern/dl.c: Remove own ELF definitions.
37217 * util/i386/efi/grub-mkimage.c: Likewise.
37218
37219 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37220
37221 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37222 segment 0x0 unconditionally, because the reference generated by
37223 GAS is an absolute address.
37224
37225 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37226
37227 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37228 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37229
37230 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37231
37232 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37233 indexes. Check for -f explicitly.
37234 (search_file): Improve error message.
37235 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37236
37237 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37238
37239 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37240 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37241
37242 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37243
37244 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37245 * conf/i386-ieee1275.rmk: Likewise.
37246 * conf/i386-coreboot.rmk: Likewise.
37247
37248 * kern/i386/pc/startup.S (grub_stop): Remove function.
37249 * kern/i386/ieee1275/startup.S: Likewise.
37250 * kern/i386/coreboot/startup.S: Likewise.
37251 * kern/i386/misc.S (grub_stop): New function.
37252
37253 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37254
37255 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37256 * kern/i386/realmode.S (real_to_prot): ... to here.
37257
37258 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37259
37260 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37261 with `kernel.img'.
37262 (kernel_elf_SOURCES): Rename to ...
37263 (kernel_img_SOURCES): ... this.
37264 (kernel_elf_HEADERS): Rename to ...
37265 (kernel_img_HEADERS): ... this. Update all users.
37266 (kernel_elf_ASFLAGS): Rename to ...
37267 (kernel_img_ASFLAGS): ... this.
37268 (kernel_elf_CFLAGS): Rename to ...
37269 (kernel_img_CFLAGS): ... this.
37270 (kernel_elf_LDFLAGS): Rename to ...
37271 (kernel_img_LDFLAGS): ... this.
37272 * conf/i386-coreboot.rmk: Likewise.
37273 * conf/powerpc-ieee1275.rmk: Likewise.
37274
37275 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37276 with "kernel.img".
37277
37278 2009-06-21 Pavel Roskin <proski@gnu.org>
37279
37280 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37281 to match nested functions.
37282 * loader/sparc64/ieee1275/linux.c: Likewise.
37283
37284 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37285
37286 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37287
37288 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37289 all i386 platforms.
37290
37291 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37292
37293 Fix asm file handling on ELF, and remove workarounds.
37294
37295 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37296 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37297 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37298 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37299
37300 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37301
37302 Load BSD ELF modules
37303
37304 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37305 and loader/i386/bsd64.c
37306 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37307 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37308 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37309 (grub_freebsd_load_elfmodule32): New declaration
37310 (grub_freebsd_load_elfmoduleobj64): Likewise
37311 (grub_freebsd_load_elf_meta32): Likewise
37312 (grub_freebsd_load_elf_meta64): Likewise
37313 (grub_freebsd_add_meta): Likewise
37314 (grub_freebsd_add_meta_module): Likewise
37315 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37316 (grub_freebsd_add_meta_module): Likewise and move module-specific
37317 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37318 (grub_cmd_freebsd): Add elf-kernel specific parts
37319 based on grub_freebsd_add_meta_module
37320 (grub_cmd_freebsd_module): Add type parsing moved from
37321 grub_freebsd_add_meta_module
37322 (grub_cmd_freebsd_module_elf): New function
37323 (cmd_freebsd_module_elf): New variable
37324 (GRUB_MOD_INIT): Register freebsd_module_elf
37325 * loader/i386/bsd32.c: New file
37326 * loader/i386/bsd64.c: Likewise
37327 * loader/i386/bsdXX.c: Likewise
37328 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37329 (grub_elf64_load): Likewise
37330 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37331 All users updated
37332 (grub_elf64_load_hook_t): Likewise
37333
37334 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37335
37336 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37337 variable.
37338 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37339 don't write a menu entry for recovery mode.
37340
37341 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37342
37343 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37344 after it's no longer needed.
37345
37346 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37347
37348 * include/grub/i386/loader.h (grub_linux_prot_size)
37349 (grub_linux_tmp_addr, grub_linux_real_addr)
37350 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37351 GRUB_MACHINE_PCBIOS.
37352 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37353 common grub_util_info() call to ...
37354 (generate_image): ... here.
37355 Fix use of uninitialized memory, comparison of signed with
37356 unsigned integers and memory leak.
37357 Remove bogus module address message.
37358
37359 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37360
37361 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37362 grub_raid_register
37363 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37364
37365 2009-06-19 Pavel Roskin <proski@gnu.org>
37366
37367 * configure.ac: Remove stray AC_MSG_CHECKING.
37368
37369 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37370
37371 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37372
37373 2009-06-18 Pavel Roskin <proski@gnu.org>
37374
37375 * conf/common.rmk: Add fs_file.mod.
37376 * disk/fs_file.c: New file.
37377 * include/grub/disk.h (enum grub_disk_dev_id): Add
37378 GRUB_DISK_DEVICE_FILE_ID.
37379
37380 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37381
37382 Fix build with Apple's toolchain. Part 2
37383
37384 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37385 a fake start
37386
37387 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37388
37389 Fix build with Apple's toolchain. Part 1
37390
37391 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37392 for long calls
37393 * configure.ac: remove a leftover AC_MSG_RESULT
37394 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37395 Apple's toolchain
37396
37397 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37398
37399 Fix warnings
37400
37401 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37402 (decomp_block): initialize ch
37403 use grub_memcpy instead of memcpy
37404
37405 2009-06-17 Pavel Roskin <proski@gnu.org>
37406
37407 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37408 version, use declarations needed to use vga_text as the startup
37409 console.
37410
37411 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37412 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37413 the kernel.
37414 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37415 and grub_at_keyboard_fini(), it's done on module load and
37416 unload.
37417
37418 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37419
37420 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37421 file can't be found.
37422 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37423
37424 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37425
37426 Fix newline handling
37427
37428 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37429 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37430 (grub_script_yylex): don't segfault on unterminated script
37431 newline terminates command and variable
37432
37433 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37434
37435 avoid double grub_adjust_range call. Bug reported by David Simner
37436
37437 * kern/disk.c (grub_disk_write): change to raw disk access before
37438 calling disk_read
37439
37440 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37441
37442 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37443 spaces, for the benefit of help2man.
37444 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37445
37446 2009-06-16 Pavel Roskin <proski@gnu.org>
37447
37448 * kern/i386/halt.c: Include grub/machine/init.h.
37449 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37450
37451 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37452
37453 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37454 drivemap menuentry.
37455
37456 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37457
37458 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37459 `echo' command.
37460
37461 2009-06-16 Pavel Roskin <proski@gnu.org>
37462
37463 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37464 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37465 save %dx, we only need %dl and we never change it.
37466 * boot/i386/pc/cdboot.S: Don't set the root drive.
37467 * boot/i386/pc/pxeboot.S: Likewise.
37468 * include/grub/i386/pc/boot.h: Remove
37469 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37470 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37471 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37472 * kern/i386/pc/init.c (make_install_device): Remove references
37473 to grub_root_drive.
37474 * kern/i386/pc/startup.S: Likewise.
37475 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37476
37477 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37478
37479 xnu_uuid command
37480
37481 * commands/xnu_uuid.c: new file
37482 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37483 (xnu_uuid_mod_SOURCES): new variable
37484 (xnu_uuid_mod_CFLAGS): likewise
37485 (xnu_uuid_mod_LDFLAGS): likewise
37486 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37487 * conf/i386-ieee1275.rmk: likewise
37488 * conf/i386-pc.rmk: likewise
37489 * conf/powerpc-ieee1275.rmk: likewise
37490 * conf/sparc64-ieee1275.rmk: likewise
37491 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37492
37493 2009-06-16 Pavel Roskin <proski@gnu.org>
37494
37495 * configure.ac: Avoid '==' in test command, it's not portable.
37496
37497 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37498
37499 Probe command
37500
37501 * commands/probe.c: new file
37502 * conf/common.rmk (pkglib_MODULES): add probe.mod
37503 (probe_mod_SOURCES): new variable
37504 (probe_mod_CFLAGS): likewise
37505 (probe_mod_LDFLAGS): likewise
37506 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37507 * conf/i386-ieee1275.rmk: likewise
37508 * conf/i386-pc.rmk: likewise
37509 * conf/powerpc-ieee1275.rmk: likewise
37510 * conf/sparc64-ieee1275.rmk: likewise
37511
37512 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37513
37514 Fix handling of string like \"hello\" and "a
37515 b"
37516
37517 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37518 (grub_script_yylex): fix parsing of quoting, escaping and newline
37519
37520 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37521
37522 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37523 handling
37524
37525 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37526
37527 * util/grub-mkconfig.in: Fix parsing of --output option.
37528
37529 2009-06-12 Pavel Roskin <proski@gnu.org>
37530
37531 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37532 genmk.rb don't need to be generated or installed.
37533
37534 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37535
37536 * commands/i386/pc/drivemap_int13h.S: add more comments
37537
37538 2009-06-11 Pavel Roskin <proski@gnu.org>
37539
37540 * Makefile.in (uninstall): Uninstall manuals.
37541
37542 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37543 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37544 and update-grub_lib in two places.
37545 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37546
37547 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37548 a compiler warning.
37549
37550 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37551 `entry_lo' to fix variable shadowing.
37552
37553 2009-06-11 Christian Franke <franke@computer.org>
37554
37555 * kern/misc.c (__enable_execute_stack): Add missing return type
37556 to prevent gcc warning.
37557
37558 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37559
37560 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37561
37562 2009-06-11 Pavel Roskin <proski@gnu.org>
37563
37564 * Makefile.in: Don't rely on any scripts being executable.
37565 Always use $(SHELL) to run shell scripts.
37566
37567 * configure.ac: Always define ___main if using -nostdlib. This
37568 fixes tests on Cygwin.
37569
37570 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37571
37572 UDF fix
37573
37574 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37575 is in bytes and not in blocks
37576
37577 2009-06-11 Pavel Roskin <proski@gnu.org>
37578
37579 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37580 warning.
37581
37582 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37583
37584 * util/grub.d/30_os-prober.in: Fix a comment. Source
37585 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37586 to set the root device. Place drivemap command in the generated
37587 chain entry.
37588
37589 2009-06-11 Pavel Roskin <proski@gnu.org>
37590
37591 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37592 have long been resolved.
37593
37594 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37595
37596 * util/grub.d/10_linux.in: Capitalise "Linux".
37597
37598 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37599
37600 2009-06-11 Pavel Roskin <proski@gnu.org>
37601
37602 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37603 fix a gcc warning and ensure that the function won't ever exit.
37604
37605 * kern/i386/ieee1275/init.c: Add missing prototype for
37606 grub_stop_floppy().
37607
37608 * loader/ieee1275/multiboot2.c [__i386__]: Include
37609 grub/cpu/multiboot.h.
37610
37611 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37612 casts to short - they are not portable and cause warnings. Fix
37613 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37614
37615 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37616
37617 Drivemap fixes
37618
37619 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37620 new function
37621 (grub_get_root_biosnumber_saved): new variable
37622 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37623 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37624 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37625 %dx after the call if necessary
37626 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37627 (boot_mod_SOURCES): remove
37628 (boot_mod_CFLAGS): remove
37629 (boot_mod_LDFLAGS): remove
37630 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37631 (boot_mod_SOURCES): new variable
37632 (boot_mod_CFLAGS): likewise
37633 (boot_mod_LDFLAGS): likewise
37634 * conf/i386-efi.rmk: likewise
37635 * conf/i386-ieee1275.rmk: likewise
37636 * conf/i386-pc.rmk: likewise
37637 * conf/powerpc-ieee1275.rmk: likewise
37638 * conf/sparc64-ieee1275.rmk: likewise
37639 * conf/x86_64-efi.rmk: likewise
37640 * include/grub/i386/pc/biosnum.h: new file
37641 * lib/i386/pc/biosnum.c: likewise
37642 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37643 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37644 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37645
37646 2009-06-10 Pavel Roskin <proski@gnu.org>
37647
37648 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37649 Use separate variables. Read only the file size at the end, but
37650 not the checksum that we don't use.
37651
37652 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37653 Adjust all callers.
37654
37655 * kern/ieee1275/openfw.c: Remove libc includes.
37656 * kern/ieee1275/cmain.c: Likewise.
37657 * include/grub/ieee1275/ieee1275.h: Likewise.
37658
37659 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37660 compiler warnings.
37661
37662 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37663
37664 * Makefile.in: Remove all trailing whitespace.
37665 * conf/i386-pc.rmk: Likewise.
37666 * conf/powerpc-ieee1275.rmk: Likewise.
37667 * conf/sparc64-ieee1275.rmk: Likewise.
37668 * docs/grub.texi: Likewise.
37669 * docs/texinfo.tex: Likewise.
37670 * disk/fs_uuid.c: Likewise.
37671 * disk/lvm.c: Likewise.
37672 * disk/scsi.c: Likewise.
37673 * disk/ata.c: Likewise.
37674 * disk/ieee1275/ofdisk.c: Likewise.
37675 * disk/i386/pc/biosdisk.c: Likewise.
37676 * disk/host.c: Likewise.
37677 * disk/raid.c: Likewise.
37678 * disk/efi/efidisk.c: Likewise.
37679 * disk/usbms.c: Likewise.
37680 * disk/memdisk.c: Likewise.
37681 * disk/loopback.c: Likewise.
37682 * kern/powerpc/dl.c: Likewise.
37683 * kern/device.c: Likewise.
37684 * kern/dl.c: Likewise.
37685 * kern/sparc64/dl.c: Likewise.
37686 * kern/ieee1275/ieee1275.c: Likewise.
37687 * kern/term.c: Likewise.
37688 * kern/fs.c: Likewise.
37689 * kern/i386/dl.c: Likewise.
37690 * kern/i386/pc/startup.S: Likewise.
37691 * kern/i386/pc/init.c: Likewise.
37692 * kern/i386/pc/mmap.c: Likewise.
37693 * kern/i386/pc/lzo1x.S: Likewise.
37694 * kern/i386/ieee1275/init.c: Likewise.
37695 * kern/i386/realmode.S: Likewise.
37696 * kern/i386/tsc.c: Likewise.
37697 * kern/partition.c: Likewise.
37698 * kern/corecmd.c: Likewise.
37699 * kern/file.c: Likewise.
37700 * kern/efi/efi.c: Likewise.
37701 * kern/efi/init.c: Likewise.
37702 * kern/efi/mm.c: Likewise.
37703 * kern/main.c: Likewise.
37704 * kern/err.c: Likewise.
37705 * kern/env.c: Likewise.
37706 * kern/disk.c: Likewise.
37707 * kern/generic/millisleep.c: Likewise.
37708 * kern/generic/rtc_get_time_ms.c: Likewise.
37709 * kern/misc.c: Likewise.
37710 * kern/parser.c: Likewise.
37711 * genmk.rb: Likewise.
37712 * configure.ac: Likewise.
37713 * boot/i386/pc/diskboot.S: Likewise.
37714 * boot/i386/pc/pxeboot.S: Likewise.
37715 * boot/i386/pc/boot.S: Likewise.
37716 * boot/i386/pc/lnxboot.S: Likewise.
37717 * boot/i386/pc/cdboot.S: Likewise.
37718 * parttool/pcpart.c: Likewise.
37719 * video/readers/tga.c: Likewise.
37720 * video/video.c: Likewise.
37721 * video/bitmap.c: Likewise.
37722 * lib/envblk.c: Likewise.
37723 * lib/i386/setjmp.S: Likewise.
37724 * fs/xfs.c: Likewise.
37725 * fs/afs.c: Likewise.
37726 * fs/fat.c: Likewise.
37727 * fs/ntfs.c: Likewise.
37728 * fs/udf.c: Likewise.
37729 * fs/affs.c: Likewise.
37730 * fs/iso9660.c: Likewise.
37731 * fs/hfs.c: Likewise.
37732 * fs/fshelp.c: Likewise.
37733 * fs/ext2.c: Likewise.
37734 * fs/jfs.c: Likewise.
37735 * fs/reiserfs.c: Likewise.
37736 * fs/hfsplus.c: Likewise.
37737 * fs/minix.c: Likewise.
37738 * fs/cpio.c: Likewise.
37739 * fs/sfs.c: Likewise.
37740 * fs/ufs.c: Likewise.
37741 * efiemu/prepare.c: Likewise.
37742 * efiemu/loadcore_common.c: Likewise.
37743 * efiemu/runtime/efiemu.sh: Likewise.
37744 * efiemu/runtime/efiemu.S: Likewise.
37745 * efiemu/runtime/efiemu.c: Likewise.
37746 * efiemu/pnvram.c: Likewise.
37747 * efiemu/main.c: Likewise.
37748 * efiemu/i386/pc/cfgtables.c: Likewise.
37749 * efiemu/i386/loadcore64.c: Likewise.
37750 * efiemu/i386/loadcore32.c: Likewise.
37751 * efiemu/loadcore.c: Likewise.
37752 * efiemu/symbols.c: Likewise.
37753 * efiemu/mm.c: Likewise.
37754 * include/grub/autoefi.h: Likewise.
37755 * include/grub/datetime.h: Likewise.
37756 * include/grub/term.h: Likewise.
37757 * include/grub/hfs.h: Likewise.
37758 * include/grub/lvm.h: Likewise.
37759 * include/grub/i386/tsc.h: Likewise.
37760 * include/grub/i386/linux.h: Likewise.
37761 * include/grub/i386/xnu.h: Likewise.
37762 * include/grub/i386/efiemu.h: Likewise.
37763 * include/grub/i386/pc/biosdisk.h: Likewise.
37764 * include/grub/i386/pc/memory.h: Likewise.
37765 * include/grub/i386/pc/vbe.h: Likewise.
37766 * include/grub/parttool.h: Likewise.
37767 * include/grub/video.h: Likewise.
37768 * include/grub/memory.h: Likewise.
37769 * include/grub/fs.h: Likewise.
37770 * include/grub/partition.h: Likewise.
37771 * include/grub/xnu.h: Likewise.
37772 * include/grub/efi/api.h: Likewise.
37773 * include/grub/efi/pe32.h: Likewise.
37774 * include/grub/efi/memory.h: Likewise.
37775 * include/grub/multiboot.h: Likewise.
37776 * include/grub/usbdesc.h: Likewise.
37777 * include/grub/multiboot2.h: Likewise.
37778 * include/grub/acpi.h: Likewise.
37779 * include/grub/efiemu/efiemu.h: Likewise.
37780 * include/grub/disk.h: Likewise.
37781 * include/grub/ieee1275/ieee1275.h: Likewise.
37782 * include/grub/net.h: Likewise.
37783 * include/grub/machoload.h: Likewise.
37784 * include/grub/macho.h: Likewise.
37785 * include/multiboot.h: Likewise.
37786 * genmoddep.awk: Likewise.
37787 * normal/main.c: Likewise.
37788 * normal/menu_entry.c: Likewise.
37789 * normal/menu_viewer.c: Likewise.
37790 * normal/completion.c: Likewise.
37791 * normal/cmdline.c: Likewise.
37792 * normal/misc.c: Likewise.
37793 * normal/datetime.c: Likewise.
37794 * bus/usb/usbtrans.c: Likewise.
37795 * bus/usb/ohci.c: Likewise.
37796 * bus/usb/uhci.c: Likewise.
37797 * bus/usb/usb.c: Likewise.
37798 * mmap/efi/mmap.c: Likewise.
37799 * mmap/i386/pc/mmap_helper.S: Likewise.
37800 * mmap/i386/pc/mmap.c: Likewise.
37801 * mmap/i386/mmap.c: Likewise.
37802 * mmap/i386/uppermem.c: Likewise.
37803 * mmap/mmap.c: Likewise.
37804 * commands/acpi.c: Likewise.
37805 * commands/echo.c: Likewise.
37806 * commands/blocklist.c: Likewise.
37807 * commands/loadenv.c: Likewise.
37808 * commands/usbtest.c: Likewise.
37809 * commands/boot.c: Likewise.
37810 * commands/parttool.c: Likewise.
37811 * commands/search.c: Likewise.
37812 * commands/cat.c: Likewise.
37813 * commands/i386/pc/play.c: Likewise.
37814 * commands/i386/pc/drivemap.c: Likewise.
37815 * commands/i386/pc/vbeinfo.c: Likewise.
37816 * commands/i386/pc/acpi.c: Likewise.
37817 * commands/i386/pc/vbetest.c: Likewise.
37818 * commands/ls.c: Likewise.
37819 * commands/cmp.c: Likewise.
37820 * commands/test.c: Likewise.
37821 * commands/efi/acpi.c: Likewise.
37822 * commands/gptsync.c: Likewise.
37823 * commands/help.c: Likewise.
37824 * partmap/amiga.c: Likewise.
37825 * partmap/apple.c: Likewise.
37826 * partmap/acorn.c: Likewise.
37827 * partmap/pc.c: Likewise.
37828 * partmap/sun.c: Likewise.
37829 * partmap/gpt.c: Likewise.
37830 * script/sh/lexer.c: Likewise.
37831 * script/sh/function.c: Likewise.
37832 * font/font.c: Likewise.
37833 * font/font_cmd.c: Likewise.
37834 * loader/powerpc/ieee1275/linux.c: Likewise.
37835 * loader/efi/chainloader.c: Likewise.
37836 * loader/multiboot_loader.c: Likewise.
37837 * loader/macho.c: Likewise.
37838 * loader/i386/multiboot.c: Likewise.
37839 * loader/i386/linux.c: Likewise.
37840 * loader/i386/pc/linux.c: Likewise.
37841 * loader/i386/pc/multiboot2.c: Likewise.
37842 * loader/i386/pc/chainloader.c: Likewise.
37843 * loader/i386/pc/xnu.c: Likewise.
37844 * loader/i386/bsd_trampoline.S: Likewise.
37845 * loader/i386/efi/linux.c: Likewise.
37846 * loader/i386/multiboot_elfxx.c: Likewise.
37847 * loader/i386/bsd_helper.S: Likewise.
37848 * loader/i386/bsd.c: Likewise.
37849 * loader/i386/linux_trampoline.S: Likewise.
37850 * loader/i386/xnu_helper.S: Likewise.
37851 * loader/i386/xnu.c: Likewise.
37852 * loader/i386/bsd_pagetable.c: Likewise.
37853 * loader/i386/multiboot_helper.S: Likewise.
37854 * loader/xnu.c: Likewise.
37855 * loader/xnu_resume.c: Likewise.
37856 * io/gzio.c: Likewise.
37857 * term/efi/console.c: Likewise.
37858 * term/terminfo.c: Likewise.
37859 * term/ieee1275/ofconsole.c: Likewise.
37860 * term/i386/pc/serial.c: Likewise.
37861 * term/i386/pc/vesafb.c: Likewise.
37862 * term/i386/pc/vga.c: Likewise.
37863 * term/usb_keyboard.c: Likewise.
37864 * term/gfxterm.c: Likewise.
37865 * aclocal.m4: Likewise.
37866 * util/lvm.c: Likewise.
37867 * util/grub.d/30_os-prober.in: Likewise.
37868 * util/grub.d/10_hurd.in: Likewise.
37869 * util/console.c: Likewise.
37870 * util/grub-macho2img.c: Likewise.
37871 * util/grub-probe.c: Likewise.
37872 * util/hostfs.c: Likewise.
37873 * util/i386/pc/grub-mkimage.c: Likewise.
37874 * util/i386/pc/grub-setup.c: Likewise.
37875 * util/i386/efi/grub-mkimage.c: Likewise.
37876 * util/grub-mkconfig.in: Likewise.
37877 * util/raid.c: Likewise.
37878 * util/resolve.c: Likewise.
37879 * util/grub-mkdevicemap.c: Likewise.
37880 * util/grub-emu.c: Likewise.
37881 * util/getroot.c: Likewise.
37882 * util/hostdisk.c: Likewise.
37883 * util/usb.c: Likewise.
37884 * util/grub-editenv.c: Likewise.
37885 * util/misc.c: Likewise.
37886
37887 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37888
37889 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37890 `genparttoollist.sh'.
37891 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37892 Add `*.sh' to the list find searches for and change `mdate.sh'
37893 to `mdate-sh'.
37894
37895 2009-06-10 Pavel Roskin <proski@gnu.org>
37896
37897 * include/grub/multiboot2.h: Provide compatibility defines for
37898 multiboot2.h.
37899 * include/multiboot2.h: Include stdint.h only if needed, using
37900 angle brackets.
37901 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37902 grub/multiboot2.h.
37903 * loader/ieee1275/multiboot2.c: Likewise.
37904 * loader/multiboot2.c: Likewise.
37905 * loader/multiboot_loader.c: Likewise.
37906
37907 * configure.ac: Use -nostdlib when probing for the target. It
37908 should not be required to have libc for the target.
37909
37910 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37911 they fail without libc headers for the target.
37912 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37913 exports.
37914 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37915 preprocessor conditionals.
37916
37917 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37918 build system doesn't need to be aware of the tar.c internals.
37919
37920 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37921
37922 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37923
37924 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37925
37926 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37927 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37928
37929 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37930
37931 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37932 aren't available if ata.mod gets used.
37933
37934 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37935
37936 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37937 initialising controller.
37938 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37939
37940 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37941
37942 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37943 to choose between ata and biosdisk module on i386-pc.
37944
37945 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37946
37947 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37948 Subclass and Programming Interface fields in terms of the 3 byte
37949 Class Code register.
37950 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37951
37952 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37953 interface is OHCI. Add grub_dprintf for symmetry with
37954 bus/usb/uhci.c.
37955 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37956 interface is UHCI. Add interf variable for programming
37957 interface. Print interface with class/subclass.
37958
37959 * bus/usb/ohci.c: Set interf with correct field.
37960
37961 * bus/usb/uhci.c: Remove unneeded doubled lines.
37962 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37963 Remove whitespace inside comment.
37964
37965 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37966
37967 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37968 as fallback an equivalent option without depth.
37969
37970 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37971
37972 Not fail if unable to retrieve C/H/S on LBA disks
37973
37974 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37975 if unable to retrieve C/H/S on LBA disks
37976
37977 2009-06-08 Pavel Roskin <proski@gnu.org>
37978
37979 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37980 about aliasing.
37981
37982 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37983
37984 * Makefile.in (uninstall): Remove all $lib_DATA files.
37985
37986 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37987
37988 Bugfix: install on partitionless device
37989
37990 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37991 is a whole disk
37992
37993 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37994
37995 * Makefile.in (uninstall): Remove all $include_DATA files.
37996
37997 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37998
37999 * commands/true.c: New file. Implement the true and false commands.
38000 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38001 (true_mod_SOURCES): New variable.
38002 (true_mod_CFLAGS): Likewise.
38003 (true_mod_LDFLAGS): Likewise.
38004
38005 2009-06-05 Colin D Bennett <colin@gibibit.com>
38006
38007 Optimized font character lookup using binary search instead of linear
38008 search. Fonts now are required to have the character index ordered by
38009 code point.
38010
38011 * font/font.c (load_font_index): Verify that fonts have ordered
38012 character indices.
38013 (find_glyph): Use binary search instead of linear search to find a
38014 character in a font.
38015
38016 2009-06-05 Michael Scherer <misc@mandriva.org>
38017
38018 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38019 uses case sensitive btree.
38020 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38021 only for case insensitive filesystems.
38022
38023 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38024
38025 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38026 * conf/common.rmk (search_mod_CFLAGS): likewise
38027
38028 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38029
38030 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38031 compensate a compiler bug
38032
38033 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38034
38035 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38036 instead of '\b'
38037
38038 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38039
38040 Definitions for creating asm symbols with Apple's CC
38041
38042 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38043 [APPLE_CC] (VARIABLE): likewise
38044
38045 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38046
38047 Disable lnxboot.img when compiled
38048 with Apple's CC
38049
38050 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38051 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38052 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38053 [! APPLE_CC] (CODE_LENG): skip
38054 [! APPLE_CC] (setup_sects): likewise
38055 [! APPLE_CC]: skip filling
38056
38057 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38058
38059 Address in trampolines based on 32-bit registers when compiled
38060 with Apple's CC
38061
38062 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38063 for addresses
38064 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38065
38066 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38067
38068 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38069
38070 * kern/misc.c [APPLE_CC] (memcpy): new function
38071 [APPLE_CC] (memmove): likewise
38072 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38073 (memcpy): define alias conditionally on !APPLE_CC
38074 (memset): likewise
38075 (abort): likewise
38076 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38077 APPLE_CC are defined
38078 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38079 (grub_assert_fail): make prototype conditional
38080
38081 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38082
38083 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38084
38085 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38086 grub-macho2img
38087 (CLEANFILES): add grub-macho2img
38088 (grub_macho2img_SOURCES): new variable
38089 * kern/i386/pc/startup.S (bss_start): new variable
38090 (bss_end): likewise
38091 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38092 * util/grub-macho2img.c: new file
38093
38094 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38095
38096 Use objconv when compiling with Apple's CC
38097
38098 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38099 (efiemu64.o): likewise
38100 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38101 when compiling with Apple's CC
38102 (efiemu64_s.o): likewise
38103 * configure.ac: check for objconv when compiling with Apple's CC
38104 * genmk.rb: use objconv for modules when compiled with Apple's CC
38105
38106 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38107
38108 Define segment as well as section when compiling with
38109 Apple's CC
38110
38111 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38112 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38113 (efiemu_convert_pointer): likewise
38114 (efiemu_set_virtual_address_map): likewise
38115 (efiemu_convert_pointer): likewise
38116 (efiemu_getcrc32): likewise
38117 (init_crc32_table): likewise
38118 (reflect): likewise
38119 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38120 (GRUB_MOD_DEP): likewise
38121
38122 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38123
38124 Allow a compilation without -mcmodel=large
38125
38126 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38127 when compiled without -mcmodel=large
38128 (filter_memory_map): remove memory post 4 GiB when compiled
38129 without -mcmodel=large
38130 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38131 TARGET_CFLAGS when -mcmodel=large isn't supported
38132
38133 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38134
38135 Remove nested functions in efiemu core
38136
38137 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38138
38139 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38140
38141 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38142
38143 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38144 temporary storage
38145 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38146 using Apple's CC
38147 (grub_cpu_is_tsc_supported): likewise
38148 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38149
38150 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38151
38152 Absolute addressing through constant with Apple's cc
38153
38154 * kern/i386/pc/startup.S: Define necessary constants
38155 and address through it when using ABS with Apple's CC
38156 * boot/i386/pc/diskboot.S: likewise
38157 * boot/i386/pc/boot.S: likewise
38158 * boot/i386/pc/lnxboot.S: likewise
38159 * boot/i386/pc/cdboot.S: likewise
38160 * mmap/i386/pc/mmap_helper.S: likewise
38161 * commands/i386/pc/drivemap_int13h.S: likewise
38162
38163 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38164
38165 Check if compiler is apple cc
38166
38167 * Makefile.in (ASFLAGS): new variable
38168 (TARGET_ASFLAGS): likewise
38169 (TARGET_MODULE_FORMAT): likewise
38170 (TARGET_APPLE_CC): likewise
38171 (OBJCONV): likewise
38172 (TARGET_IMG_CFLAGS): likewise
38173 (TARGET_CPPFLAGS): add includedir
38174 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38175 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38176 Check for linker script only if compiler isn't Apple's CC
38177 (TARGET_MODULE_FORMAT): set
38178 (TARGET_APPLE_CC): likewise
38179 (TARGET_ASFLAGS): likewise
38180 (ASFLAGS): likewise
38181 Check for objcopy only if compiler isn't Apple's CC
38182 Check for BSS symbol only if compiler isn't Apple's CC
38183 * genmk.rb: adapt nm options if we use Apple's utils
38184 * aclocal.m4 (grub_apple_cc): new test
38185 (grub_apple_target_cc): likewise
38186
38187 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38188
38189 Simplify sed expressions and improve awk
38190
38191 * Makefile.in (install-local): simplify sed expression
38192 * gencmdlist.sh: likewise
38193 * genmoddep.awk: avoid adding module as a dependency of itself
38194
38195 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38196
38197 Add missing start symbols
38198
38199 * boot/i386/pc/boot.S: add start
38200 * boot/i386/pc/pxeboot.S: likewise
38201
38202 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38203
38204 Fix wrong assumptions with grub-mkimage on EFI
38205
38206 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38207 (relocate_addresses): consider both r_addend and value at offset
38208 (make_mods_section): zerofill modinfo and header
38209 (convert_elf): write prefix here
38210
38211 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38212
38213 Use .asciz instead of .string
38214
38215 * i386/pc/diskboot.S: use .asciz instead of .string
38216 * i386/pc/boot.S: likewise
38217 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38218 (GRUB_MOD_NAME): likewise
38219
38220 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38221
38222 gfxpayload support
38223
38224 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38225 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38226 (grub_video_setup): remove
38227 (grub_video_set_mode): new prototype
38228 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38229 (vid_mode): remove
38230 (linux_vesafb_res): compile only on PCBIOS
38231 (grub_linux_boot): support gfxpayload
38232 * loader/i386/pc/xnu.c (video_hook): new function
38233 (grub_xnu_set_video): support gfxpayload
38234 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38235 (DEFAULT_VIDEO_HEIGHT): likewise
38236 (DEFAULT_VIDEO_FLAGS): likewise
38237 (DEFAULT_VIDEO_MODE): new definition
38238 (video_hook): new function
38239 (grub_gfxterm_init): use grub_video_set_mode
38240 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38241 loading xnu
38242 * video/video.c (grub_video_setup): removed
38243 (grub_video_set_mode): new function based on grub_gfxterm_init and
38244 grub_video_setup
38245
38246 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38247
38248 Avoid calling biosdisk in drivemap
38249
38250 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38251 (revparse_biosdisk): likewise
38252 (list_mappings): derive name from id directly
38253 (grub_cmd_drivemap): use tryparse_diskstring
38254
38255 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38256
38257 Script fixes
38258
38259 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38260 (grub_lexer_param): add tokenonhold
38261 (grub_script_create_cmdline): remove cmdline. All callers updated
38262 (grub_script_function_create): make functionname
38263 grub_script_arg. All callers updated
38264 (grub_script_execute_argument_to_string): new prototype
38265 * kern/parser.c (state_transitions): reorder
38266 (grub_parser_cmdline_state): fix a bug and make more compact
38267 * script/sh/execute.c (grub_script_execute_argument_to_string):
38268 make global
38269 (grub_script_execute_cmdline): use new format
38270 * script/sh/function.c (grub_script_function_create): make functionname
38271 grub_script_arg. All callers updated
38272 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38273 (grub_script_yylex): remove
38274 (grub_script_yylex2): renamed to ...
38275 (grub_script_yylex): ...renamed
38276 parse the expressions like a${b}c
38277 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38278 (GRUB_PARSER_TOKEN_VAR): remove
38279 (GRUB_PARSER_TOKEN_NAME): likewise
38280 ("if"): declare as typeless
38281 ("while"): likewise
38282 ("function"): likewise
38283 ("else"): likewise
38284 ("then"): likewise
38285 ("fi"): likewise
38286 (text): remove
38287 (argument): likewise
38288 (script): accept empty scripts and make exit on error
38289 (arguments): use GRUB_PARSER_TOKEN_ARG
38290 (function): likewise
38291 (command): move error handling to script
38292 (menuentry): move grub_script_lexer_ref before
38293 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38294 argument. All callers updated
38295
38296 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38297
38298 Prevent GRUB from probing floppies during boot.
38299
38300 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38301 * commands/search.c (options): Add --no-floppy.
38302 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38303 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38304 --no-floppy when searching for UUIDs.
38305
38306 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38307
38308 Simplify the code duplication in commands/search.c.
38309
38310 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38311 (search_fs): ... this. Update all users.
38312
38313 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38314
38315 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38316
38317 2009-05-28 Pavel Roskin <proski@gnu.org>
38318
38319 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38320 Remove the original symlink explicitly.
38321
38322 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38323 just one slash. That's how grub_fshelp_find_file() does it.
38324
38325 2009-05-26 Pavel Roskin <proski@gnu.org>
38326
38327 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38328 to `str'.
38329
38330 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38331 possibly unused.
38332
38333 2009-05-25 Christian Franke <franke@computer.org>
38334
38335 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38336 register.
38337 (grub_atapi_identify): Add wait after drive select.
38338 (grub_ata_identify): Do more strict status register check before
38339 calling grub_atapi_identify (). Suppress error message if status
38340 register is 0x00 after command failure. Add status register
38341 check after PIO read to avoid bogus identify due to stuck DRQ.
38342 Thanks to Pavel Roskin for testing.
38343 (grub_device_initialize): Remove unsafe status register check.
38344 Thanks to 'phcoder' for problem report and patch.
38345 Prevent sign extension in debug message.
38346
38347 2009-05-23 Colin D Bennett <colin@gibibit.com>
38348
38349 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38350 definition file, and functions defined in `normal/menu.c' have had
38351 their prototypes moved to `include/grub/menu.h' for consistency.
38352
38353 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38354 from normal.h.
38355 (grub_menu_get_entry): Likewise.
38356 (grub_menu_get_timeout): Likewise.
38357 (grub_menu_set_timeout): Likewise.
38358 (grub_menu_execute_entry): Likewise.
38359 (grub_menu_execute_with_fallback): Likewise.
38360 (grub_menu_entry_run): Likewise.
38361
38362 * include/grub/normal.h: Re-ordered and grouped function
38363 prototypes by file that the function is defined in.
38364 (grub_menu_execute_callback): Removed; moved to menu.h.
38365 (grub_menu_get_entry): Likewise.
38366 (grub_menu_get_timeout): Likewise.
38367 (grub_menu_set_timeout): Likewise.
38368 (grub_menu_execute_entry): Likewise.
38369 (grub_menu_execute_with_fallback): Likewise.
38370 (grub_menu_entry_run): Likewise.
38371 (grub_menu_addentry): Renamed from this ...
38372 (grub_normal_add_menu_entry): ... to this.
38373
38374 * normal/main.c (grub_menu_addentry): Renamed from this ...
38375 (grub_normal_add_menu_entry): ... to this.
38376
38377 * script/sh/execute.c (grub_script_execute_menuentry): Update
38378 reference to renamed grub_menu_addentry function.
38379
38380 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38381
38382 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38383
38384 2009-05-22 Pavel Roskin <proski@gnu.org>
38385
38386 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38387 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38388 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38389 compiling for the i386 targets, but not for the utilities.
38390
38391 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38392 to grub_uint8_t.
38393 (grub_root_drive): Likewise.
38394 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38395 remove alignment.
38396 (grub_root_drive): Change size to byte.
38397 (grub_start_addr): Remove.
38398 (grub_end_addr): Likewise.
38399 (grub_apm_bios_info): Likewise.
38400
38401 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38402
38403 * normal/i386: Remove.
38404 * normal/powerpc: Likewise.
38405 * normal/sparc64: Likewise.
38406 * normal/x86_64: Likewise.
38407
38408 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38409
38410 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38411 * loader/i386/linux_trampoline.S: Fix indentation
38412 * loader/i386/xnu_helper.S: Likewise
38413
38414 2009-05-18 Colin D Bennett <colin@gibibit.com>
38415
38416 Display error messages when parsing a Lua statement fails.
38417 Previously, executing a syntactically invalid statement like
38418 ")foo" or "bar;" would silently fail.
38419
38420 * script/lua/grub_main.c (handle_lua_error): New function.
38421 (grub_lua_parse_line): Improved reporting of Lua parser and
38422 execution errors.
38423
38424 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38425
38426 Remove -Werror which causes build to fail on some systems
38427
38428 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38429 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38430 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38431
38432 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38433
38434 trampoline for linux on 64-bit platform
38435
38436 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38437 loader/i386/efi/linux_trampoline.S
38438 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38439 declaration
38440 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38441 here
38442 * loader/i386/linux_trampoline.S: moved here
38443 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38444 trampoline
38445 (jumpvector): removed
38446 (grub_linux_trampoline_start): new declaration
38447 (grub_linux_trampoline_end): likewise
38448 (grub_linux_boot): use trampoline when on 64-bit platform
38449 * loader/i386/linux.c: likewise
38450
38451 2009-05-16 Pavel Roskin <proski@gnu.org>
38452
38453 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38454 const to avoid a warning.
38455 (grub_lua_setenv): Likewise.
38456 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38457 lmsg to fix a warning.
38458
38459 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38460
38461 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38462 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38463 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38464 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38465 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38466 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38467 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38468 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38469
38470 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38471
38472 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38473
38474 2009-05-16 Bean <bean123ch@gmail.com>
38475
38476 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38477 (lua_mod_SOURCES): New variable.
38478 (lua_mod_CFLAGS): Likewise.
38479 (lua_mod_LDFLAGS): Likewise.
38480
38481 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38482 (setjmp_mod_SOURCES): New variable.
38483 (setjmp_mod_CFLAGS): Likewise.
38484 (setjmp_LDFLAGS): Likewise.
38485
38486 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38487 (setjmp_mod_SOURCES): New variable.
38488 (setjmp_mod_CFLAGS): Likewise.
38489 (setjmp_LDFLAGS): Likewise.
38490
38491 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38492 (setjmp_mod_SOURCES): New variable.
38493 (setjmp_mod_CFLAGS): Likewise.
38494 (setjmp_LDFLAGS): Likewise.
38495
38496 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38497 (setjmp_mod_SOURCES): New variable.
38498 (setjmp_mod_CFLAGS): Likewise.
38499 (setjmp_LDFLAGS): Likewise.
38500
38501 * normal/i386/setjmp.S: Moved from here ...
38502 * lib/i386/setjmp.S: ... Moved here
38503 * normal/x86_64/setjmp.S: Moved from here ...
38504 * lib/x86_64/setjmp.S: ... Moved here
38505 * normal/powerpc/setjmp.S: Moved from here ...
38506 * lib/powerpc/setjmp.S: ... Moved here
38507 * normal/sparc64/setjmp.S: Moved from here ...
38508 * lib/sparc64/setjmp.S: ... Moved here
38509
38510 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38511 returns_twice in mingw.
38512
38513 * script/lua/grub_lib.c: New file.
38514 * script/lua/grub_lib.h: Likewise.
38515 * script/lua/grub_lua.h: Likewise.
38516 * script/lua/grub_main.c: Likewise.
38517 * script/lua/lapi.c: Likewise.
38518 * script/lua/lapi.h: Likewise.
38519 * script/lua/lauxlib.c: Likewise.
38520 * script/lua/lauxlib.h: Likewise.
38521 * script/lua/lbaselib.c: Likewise.
38522 * script/lua/lcode.c: Likewise.
38523 * script/lua/lcode.h: Likewise.
38524 * script/lua/ldblib.c: Likewise.
38525 * script/lua/ldebug.c: Likewise.
38526 * script/lua/ldebug.h: Likewise.
38527 * script/lua/ldo.c: Likewise.
38528 * script/lua/ldo.h: Likewise.
38529 * script/lua/ldump.c: Likewise.
38530 * script/lua/lfunc.c: Likewise.
38531 * script/lua/lfunc.h: Likewise.
38532 * script/lua/lgc.c: Likewise.
38533 * script/lua/lgc.h: Likewise.
38534 * script/lua/linit.c: Likewise.
38535 * script/lua/liolib.c: Likewise.
38536 * script/lua/llex.c: Likewise.
38537 * script/lua/llex.h: Likewise.
38538 * script/lua/llimits.h: Likewise.
38539 * script/lua/lmathlib.c: Likewise.
38540 * script/lua/lmem.c: Likewise.
38541 * script/lua/lmem.h: Likewise.
38542 * script/lua/loadlib.c: Likewise.
38543 * script/lua/lobject.c: Likewise.
38544 * script/lua/lobject.h: Likewise.
38545 * script/lua/lopcodes.c: Likewise.
38546 * script/lua/lopcodes.h: Likewise.
38547 * script/lua/loslib.c: Likewise.
38548 * script/lua/lparser.c: Likewise.
38549 * script/lua/lparser.h: Likewise.
38550 * script/lua/lstate.c: Likewise.
38551 * script/lua/lstate.h: Likewise.
38552 * script/lua/lstring.c: Likewise.
38553 * script/lua/lstring.h: Likewise.
38554 * script/lua/lstrlib.c: Likewise.
38555 * script/lua/ltable.c: Likewise.
38556 * script/lua/ltable.h: Likewise.
38557 * script/lua/ltablib.c: Likewise.
38558 * script/lua/ltm.c: Likewise.
38559 * script/lua/ltm.h: Likewise.
38560 * script/lua/lua.h: Likewise.
38561 * script/lua/luaconf.h: Likewise.
38562 * script/lua/lualib.h: Likewise.
38563 * script/lua/lundump.c: Likewise.
38564 * script/lua/lundump.h: Likewise.
38565 * script/lua/lvm.c: Likewise.
38566 * script/lua/lvm.h: Likewise.
38567 * script/lua/lzio.c: Likewise.
38568 * script/lua/lzio.h: Likewise.
38569
38570 2009-05-16 Bean <bean123ch@gmail.com>
38571
38572 * include/grub/kernel.h (grub_module_header_types): Add type
38573 OBJ_TYPE_CONFIG.
38574
38575 * kern/main.c (grub_load_config): New function.
38576 (grub_main): Call grub_load_config to read boot config.
38577
38578 * grub-mkimage (generate_image): New parameter config_path.
38579 (options): New option --config.
38580 (main): Parse --config option, and pass it to generate_image.
38581
38582 2009-05-14 Christian Franke <franke@computer.org>
38583
38584 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38585 This fixes build on Cygwin.
38586
38587 2009-05-14 Pavel Roskin <proski@gnu.org>
38588
38589 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38590 jump. This saves two bytes, so the typical case of 2 swapped
38591 drives would fit 32 bytes.
38592
38593 2009-05-13 Pavel Roskin <proski@gnu.org>
38594
38595 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38596 grub_uint32_t to avoid a warning.
38597
38598 * loader/i386/linux.c (allocate_pages): When assigning
38599 real_mode_mem, cast through grub_size_t to fix a warning. The
38600 code already makes sure that the value would fit a pointer.
38601 (grub_linux_setup_video): Cast render_target->data to
38602 grub_size_t to fix a warning.
38603
38604 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38605
38606 * commands/i386/pc/drivemap.c: New file - implement drivemap
38607 command.
38608 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38609 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38610
38611 2009-05-13 Pavel Roskin <proski@gnu.org>
38612
38613 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38614 embedding_area_exists.
38615
38616 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38617
38618 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38619 it easier to understand / work with.
38620 Improve warning messages for cases where there's no embedding area,
38621 or when it is too small (or core.img too large).
38622
38623 2009-05-13 Pavel Roskin <proski@gnu.org>
38624
38625 * loader/i386/pc/multiboot2.c: Add necessary includes for
38626 grub_multiboot2_real_boot().
38627
38628 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38629 PX record is always little-endian. We only need the lower 2
38630 bytes of the mode.
38631
38632 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38633 facilitate code reuse.
38634 (grub_cpio_mount): Use "struct head", not a char buffer. This
38635 fixes a warning reported by gcc 4.4.
38636
38637 * kernel/disk.c (grub_disk_read): Use void pointer for the
38638 buffer.
38639 (grub_disk_write): Use const void pointer for the buffer.
38640 Adjust all callers. Remove unnecessary casts.
38641
38642 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38643
38644 * util/i386/pc/grub-install.in: Update copyright year.
38645
38646 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38647
38648 gptsync
38649
38650 * commands/gptsync.c: new file
38651 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38652 (gptsync_mod_SOURCES): new variable
38653 (gptsync_mod_CFLAGS): likewise
38654 (gptsync_mod_LDFLAGS): likewise
38655 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38656 new definition
38657 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38658 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38659 * conf/i386-ieee1275.rmk: likewise
38660 * conf/i386-pc.rmk: likewise
38661 * conf/powerpc-ieee1275.rmk: likewise
38662
38663 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38664
38665 Fixed grub-emu
38666
38667 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38668 (grub_dl_ref): likewise
38669
38670 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38671
38672 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38673 split in two functions (one for msdos and one for gpt).
38674
38675 2009-05-08 Pavel Roskin <proski@gnu.org>
38676
38677 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38678 not modified.
38679
38680 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38681 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38682 Initialize them with -1. Add sanity check for bad1. Eliminate
38683 nerr variable.
38684
38685 2009-05-08 David S. Miller <davem@davemloft.net>
38686
38687 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38688
38689 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38690
38691 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38692 existence.
38693
38694 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38695
38696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38697 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38698
38699 2009-05-05 David S. Miller <davem@davemloft.net>
38700
38701 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38702
38703 2009-05-05 Pavel Roskin <proski@gnu.org>
38704
38705 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38706 of grub_dl_ref() and grub_dl_unref().
38707 * commands/parttool.c: Remove preprocessor conditionals around
38708 grub_dl_ref() and grub_dl_unref().
38709 * fs/affs.c: Likewise.
38710 * fs/afs.c: Likewise.
38711 * fs/cpio.c: Likewise.
38712 * fs/ext2.c: Likewise.
38713 * fs/fat.c: Likewise.
38714 * fs/hfs.c: Likewise.
38715 * fs/hfsplus.c: Likewise.
38716 * fs/iso9660.c: Likewise.
38717 * fs/jfs.c: Likewise.
38718 * fs/minix.c: Likewise.
38719 * fs/ntfs.c: Likewise.
38720 * fs/reiserfs.c: Likewise.
38721 * fs/sfs.c: Likewise.
38722 * fs/udf.c: Likewise.
38723 * fs/ufs.c: Likewise.
38724 * fs/xfs.c: Likewise.
38725 * include/grub/dl.h: Likewise.
38726 * loader/xnu.c: Likewise.
38727
38728 2009-05-04 Pavel Roskin <proski@gnu.org>
38729
38730 * commands/acpi.c: Remove unused variable my_mod.
38731 * partmap/amiga.c: Likewise.
38732 * partmap/apple.c: Likewise.
38733 * partmap/gpt.c: Likewise.
38734 * partmap/pc.c: Likewise.
38735 * partmap/sun.c: Likewise.
38736 * term/gfxterm.c: Likewise.
38737 * term/i386/pc/vesafb.c: Likewise.
38738 * term/i386/pc/vga.c: Likewise.
38739
38740 2009-05-04 David S. Miller <davem@davemloft.net>
38741
38742 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38743 pointer args to grub_ieee1275_get_property().
38744
38745 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38746
38747 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38748 devices, and do not traverse down under controller nodes.
38749
38750 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38751 (grub_ofdisk_open): Use it to un-escape "," characters.
38752 * kern/disk.c (find_part_sep): New.
38753 (grub_disk_open): Use it to find the first non-escaped ','
38754 character in the disk name.
38755 * util/ieee1275/devicemap.c (escape_of_path): New.
38756 (grub_util_emit_devicemap_entry): Use it.
38757 * util/sparc64/ieee1275/grub-install.in: Update script to
38758 strip partition specifiers properly by not triggering on
38759 '\' escaped ',' characters.
38760
38761 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38762
38763 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38764 to 0x300.
38765 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38766 resolutions.
38767 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38768 on documentation from Wikipedia).
38769
38770 2009-05-04 Pavel Roskin <proski@gnu.org>
38771
38772 * disk/ata.c: Spelling fixes.
38773 * disk/raid.c: Likewise.
38774 * disk/usbms.c: Likewise.
38775 * disk/dmraid_nvidia.c: Likewise.
38776 * kern/ieee1275/openfw.c: Likewise.
38777 * kern/ieee1275/init.c: Likewise.
38778 * kern/ieee1275/cmain.c: Likewise.
38779 * boot/i386/pc/cdboot.S: Likewise.
38780 * video/readers/png.c: Likewise.
38781 * video/i386/pc/vbe.c: Likewise.
38782 * fs/udf.c: Likewise.
38783 * fs/hfs.c: Likewise.
38784 * fs/reiserfs.c: Likewise.
38785 * efiemu/runtime/efiemu.c: Likewise.
38786 * efiemu/main.c: Likewise.
38787 * efiemu/mm.c: Likewise.
38788 * include/grub/elf.h: Likewise.
38789 * include/grub/xnu.h: Likewise.
38790 * include/grub/usbdesc.h: Likewise.
38791 * include/grub/usb.h: Likewise.
38792 * include/grub/script_sh.h: Likewise.
38793 * include/grub/lib/LzmaEnc.h: Likewise.
38794 * include/grub/efiemu/efiemu.h: Likewise.
38795 * include/grub/command.h: Likewise.
38796 * normal/menu.c: Likewise.
38797 * normal/main.c: Likewise.
38798 * normal/datetime.c: Likewise.
38799 * bus/usb/uhci.c: Likewise.
38800 * mmap/i386/uppermem.c: Likewise.
38801 * mmap/mmap.c: Likewise.
38802 * commands/acpi.c: Likewise.
38803 * commands/test.c: Likewise.
38804 * partmap/apple.c: Likewise.
38805 * font/font.c: Likewise.
38806 * loader/sparc64/ieee1275/linux.c: Likewise.
38807 * loader/macho.c: Likewise.
38808 * loader/i386/bsd_trampoline.S: Likewise.
38809 * loader/i386/bsd.c: Likewise.
38810 * loader/xnu.c: Likewise.
38811 * term/i386/pc/vesafb.c: Likewise.
38812 * term/usb_keyboard.c: Likewise.
38813 * util/resolve.c: Likewise.
38814 * util/getroot.c: Likewise.
38815
38816 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38817
38818 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38819
38820 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38821
38822 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38823 build error.
38824
38825 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38826
38827 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38828 parameter only available on BIOS.
38829
38830 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38831
38832 Removed wrong semicolon in declaration
38833
38834 * grub/misc.h (grub_dprintf): remove semicolon
38835
38836 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38837
38838 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38839 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38840 is done by grub_cmd_linux() now).
38841 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38842 restore video to text mode.
38843 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38844 indicates lack of "vga=" parameter. "vga=0" is mapped to
38845 `GRUB_LINUX_VID_MODE_NORMAL'.
38846
38847 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38848
38849 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38850 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38851 and `normal/script.c'. Add `kern/rescue_reader.c',
38852 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38853 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38854 `grub_script.tab.c'.
38855
38856 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38857 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38859 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38860 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38861
38862 * Makefile.in: Remove duplicated 2008 in Copyright line.
38863
38864 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38865
38866 * util/misc.c (grub_util_warn): New function. Emits a warning
38867 unconditionally.
38868 * include/grub/util/misc.h (grub_util_warn): New declaration.
38869
38870 * util/i386/pc/grub-install.in: Understand --force and pass it down
38871 to grub-setup.
38872
38873 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38874 down to setup().
38875 (setup): Improve error messages and add warnings when requested to
38876 install in odd layouts. Refuse to install using blocklists unless
38877 --force was set.
38878
38879 2009-05-04 martin f. krafft <madduck@madduck.net>
38880
38881 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38882
38883 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38884
38885 Updated copyright year
38886
38887 * fs/hfsplus.c: updated copyright year
38888
38889 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38890
38891 HFS+ UUID
38892
38893 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38894 in the space previously used by unused3
38895 (grub_hfsplus_uuid): new function
38896 (grub_hfsplus_fs): added uuid field
38897
38898 2009-05-03 Pavel Roskin <proski@gnu.org>
38899
38900 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38901 suppress warnings. It's no longer needed.
38902 * disk/host.c: Likewise.
38903 * disk/ata_pthru.c: Likewise.
38904 * disk/loopback.c: Likewise.
38905 * hook/datehook.c: Likewise.
38906 * parttool/pcpart.c: Likewise.
38907 * fs/i386/pc/pxe.c: Likewise.
38908 * fs/ntfscomp.c: Likewise.
38909 * efiemu/main.c: Likewise.
38910 * mmap/mmap.c: Likewise.
38911 * commands/crc.c: Likewise.
38912 * commands/hexdump.c: Likewise.
38913 * commands/hdparm.c: Likewise.
38914 * commands/acpi.c: Likewise.
38915 * commands/echo.c: Likewise.
38916 * commands/minicmd.c: Likewise.
38917 * commands/blocklist.c: Likewise.
38918 * commands/memrw.c: Likewise.
38919 * commands/loadenv.c: Likewise.
38920 * commands/usbtest.c: Likewise.
38921 * commands/lsmmap.c: Likewise.
38922 * commands/boot.c: Likewise.
38923 * commands/parttool.c: Likewise.
38924 * commands/configfile.c: Likewise.
38925 * commands/search.c: Likewise.
38926 * commands/ieee1275/suspend.c: Likewise.
38927 * commands/cat.c: Likewise.
38928 * commands/i386/pc/pxecmd.c: Likewise.
38929 * commands/i386/pc/play.c: Likewise.
38930 * commands/i386/pc/halt.c: Likewise.
38931 * commands/i386/pc/vbeinfo.c: Likewise.
38932 * commands/i386/pc/vbetest.c: Likewise.
38933 * commands/lspci.c: Likewise.
38934 * commands/date.c: Likewise.
38935 * commands/handler.c: Likewise.
38936 * commands/ls.c: Likewise.
38937 * commands/test.c: Likewise.
38938 * commands/cmp.c: Likewise.
38939 * commands/efi/loadbios.c: Likewise.
38940 * commands/efi/fixvideo.c: Likewise.
38941 * commands/halt.c: Likewise.
38942 * commands/help.c: Likewise.
38943 * commands/reboot.c: Likewise.
38944 * hello/hello.c: Likewise.
38945 * script/sh/main.c: Likewise.
38946 * loader/xnu.c: Likewise.
38947 * term/terminfo.c: Likewise.
38948 * term/i386/pc/serial.c: Likewise.
38949 * term/usb_keyboard.c: Likewise.
38950
38951 2009-05-03 David S. Miller <davem@davemloft.net>
38952
38953 * normal/menu.c: Include grub/parser.h
38954
38955 2009-05-03 Pavel Roskin <proski@gnu.org>
38956
38957 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38958 not char*.
38959 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38960 Suggested by Javier Martín <lordhabbit@gmail.com>
38961
38962 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38963 efiemu??.o doesn't exist.
38964 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38965 copying.
38966
38967 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38968
38969 FreeBSD 64-bit support
38970
38971 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38972 and loader/i386/bsd_trampoline.S
38973 (bsd_mod_ASFLAGS): new variable
38974 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38975 (FREEBSD_MODTYPE_KERNEL64): likewise
38976 (grub_bsd64_trampoline_start): likewise
38977 (grub_bsd64_trampoline_end): likewise
38978 (grub_bsd64_trampoline_selfjump): likewise
38979 (grub_bsd64_trampoline_gdt): likewise
38980 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38981 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38982 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38983 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38984 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38985 of "attrib" member
38986 * loader/i386/bsd_pagetable.c: new file
38987 * loader/i386/bsd_trampoline.S: likewise
38988 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38989 (ALIGN_VAR): likewise
38990 (entry_hi): new variable
38991 (kern_end_mdofs): likewise
38992 (is_64bit): likewise
38993 (grub_freebsd_add_meta): use ALIGN_VAR
38994 (grub_e820_mmap): new declaration
38995 (grub_freebsd_add_mmap): new function
38996 (grub_freebsd_add_meta_module): support 64 bit kernels
38997 (grub_freebsd_list_modules): use ALIGN_VAR
38998 (gdt_descriptor): new declaration
38999 (grub_freebsd_boot): support 64 bit kernels
39000 (grub_bsd_elf64_hook): new function
39001 (grub_bsd_load_elf): support elf64
39002
39003 2009-05-03 Bean <bean123ch@gmail.com>
39004
39005 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39006 after we get the result of if statement.
39007
39008 2009-05-03 Bean <bean123ch@gmail.com>
39009
39010 * Makefile.in (enable_efiemu): New variable.
39011
39012 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39013 set.
39014 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39015 path.
39016 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39017 path, add -mno-red-zone option.
39018 (efiemu64_s.o): Likewise.
39019 (efiemu64.o): Use macro $^ for source file.
39020
39021 * configure.ac (--enable-efiemu): New option.
39022
39023 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39024
39025 xnu support
39026
39027 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39028 (pkglib_MODULES): add xnu.mod
39029 (xnu_mod_SOURCES): new variable
39030 (xnu_mod_CFLAGS): likewise
39031 (xnu_mod_LDFLAGS): likewise
39032 (xnu_mod_ASFLAGS): likewise
39033 * conf/i386-pc.rmk: likewise
39034 * conf/x86_64-efi.rmk: likewise
39035 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39036 new declaration
39037 * include/grub/i386/macho.h: new file
39038 * include/grub/i386/xnu.h: likewise
39039 * include/grub/macho.h: likewise
39040 * include/grub/machoload.h: likewise
39041 * include/grub/x86_64/macho.h: likewise
39042 * include/grub/x86_64/xnu.h: likewise
39043 * include/grub/xnu.h: likewise
39044 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39045 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39046 * loader/i386/efi/xnu.c: new file
39047 * loader/i386/pc/xnu.c: likewise
39048 * loader/i386/xnu.c: likewise
39049 * loader/i386/xnu_helper.S: likewise
39050 * loader/macho.c: likewise
39051 * loader/xnu.c: likewise
39052 * loader/xnu_resume.c: likewise
39053 * util/grub-dumpdevtree: likewise
39054 * include/grub/i386/pit.h: include grub/err.h
39055 (grub_pit_wait): export
39056 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39057
39058 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39059
39060 Efiemu
39061
39062 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39063 _linux_efi, linux_efi.
39064 new files in grub-emu
39065 new targets efiemu32.o and efiemu64.o
39066 * loader/linux_normal_efiemu.c: likewise
39067 * loader/i386/efi/linux.c: added preliminary efiemu support
39068 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39069 files to copy
39070 * include/grub/autoefi.h: new file
39071 * include/grub/i386/efiemu.h: likewise
39072 * include/grub/i386/pc/efiemu.h: likewise
39073 * include/grub/efi/api.h: add LL suffix when necessary
39074 new definitions relating to tables
39075 * include/grub/efiemu/efiemu.h: new file
39076 * include/grub/efiemu/runtime.h: likewise
39077 * efiemu/prepare.c: likewise
39078 * efiemu/loadcore_common.c: likewise
39079 * efiemu/loadcore64.c: likewise
39080 * efiemu/runtime/efiemu.sh: likewise
39081 * efiemu/runtime/efiemu.S: likewise
39082 * efiemu/runtime/efiemu.c: likewise
39083 * efiemu/runtime/config.h: likewise
39084 * efiemu/prepare32.c: likewise
39085 * efiemu/main.c: likewise
39086 * efiemu/modules/pnvram.c: likewise
39087 * efiemu/modules/i386: likewise
39088 * efiemu/modules/i386/pc: likewise
39089 * efiemu/modules/acpi.c: likewise
39090 * efiemu/i386/pc/cfgtables.c: likewise
39091 * efiemu/i386/loadcore64.c: likewise
39092 * efiemu/i386/loadcore32.c: likewise
39093 * efiemu/prepare64.c: likewise
39094 * efiemu/loadcore.c: likewise
39095 * efiemu/symbols.c: likewise
39096 * efiemu/mm.c: likewise
39097 * efiemu/loadcore32.c: likewise
39098
39099 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39100
39101 ACPI spoofing
39102
39103 * commands/acpi.c: new file
39104 * commands/i386/pc/acpi.c: likewise
39105 * commands/efi/acpi.c: likewise
39106 * include/grub/acpi.h: likewise
39107 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39108 (acpi_mod_SOURCES): new variable
39109 (acpi_mod_CFLAGS): likewise
39110 (acpi_mod_LDFLAGS): likewise
39111 * conf/i386-efi.rmk: likewise
39112 * conf/x86_64-efi.rmk: likewise
39113
39114 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39115
39116 Missing part from mmap patch
39117
39118 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39119 (grub_mmap_unregister)
39120 (grub_mmap_free_and_unregister): use grub_mmap_register
39121
39122 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39123
39124 Mmap services
39125
39126 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39127 * loader/i386/linux.c (find_mmap_size): likewise
39128 (allocate_pages): likewise
39129 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39130 (grub_fill_multiboot_mmap): likewise
39131 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39132 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39133 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39134 (OPENBSD_MMAP_RESERVED): likewise
39135 * include/grub/i386/pc/memory.h: include grub/memory.h
39136 (grub_lower_mem): removed
39137 (grub_upper_mem): likewise
39138 (GRUB_MACHINE_MEMORY_ACPI): new definition
39139 (GRUB_MACHINE_MEMORY_NVS): likewise
39140 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39141 (GRUB_MACHINE_MEMORY_HOLE): likewise
39142 (grub_machine_mmap_register): likewise
39143 (grub_machine_mmap_unregister): likewise
39144 (grub_machine_get_upper): likewise
39145 (grub_machine_get_lower): likewise
39146 (grub_machine_get_post64): likewise
39147 * include/grub/i386/efi/memory.h: new file
39148 * include/grub/x86_64/efi/memory.h: likewise
39149 * include/grub/efi/memory.h: likewise
39150 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39151 (mmap_mod_SOURCES): new variable
39152 (mmap_mod_LDFLAGS): likewise
39153 (mmap_mod_ASFLAGS): likewise
39154 * conf/i386-coreboot.rmk: likewise
39155 * conf/i386-ieee1275.rmk: likewise
39156 * conf/i386-efi.rmk: likewise
39157 * conf/x86_64-efi.rmk: likewise
39158 * include/grub/types.h (UINT_TO_PTR): new macro
39159 (PTR_TO_UINT32): likewise
39160 (PTR_TO_UINT64): likewise
39161 * include/grub/memory.h: new file
39162 * mmap/i386/pc/mmap.c: likewise
39163 * mmap/i386/pc/mmap_helper.S: likewise
39164 * mmap/i386/uppermem.c: likewise
39165 * mmap/mmap.c: likewise
39166 * mmap/efi/mmap.c: likewise
39167 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39168 grub_upper_mem
39169 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39170 (grub_upper_mem): likewise
39171 (grub_machine_init): don't use grub_upper_mem,
39172 make grub_lower_mem local
39173 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39174 grub_mmap_iterate and grub_mmap_get_upper
39175 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39176
39177 2009-05-02 Bean <bean123ch@gmail.com>
39178
39179 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39180 script/sh/parser.y.
39181 (pkglib_MODULES): Add normal.mod and sh.mod.
39182 (normal_SOURCES): New variable.
39183 (normal_mod_CFLAGS): Likewise.
39184 (normal_mod_LDFLAGS): Likewise.
39185 (sh_mod_SOURCES): Likewise.
39186 (sh_mod_CFLAGS): Likewise.
39187 (sh_mod_LDFLAGS): Likewise.
39188
39189 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39190 script/sh/lexer.c_DEPENDENCIES.
39191 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39192 kern/rescue_reader.c and kern/rescue_parser.c.
39193 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39194 (grub_emu_SOURCES): Change source files.
39195 (pkglib_MODULES): Remove normal.mod.
39196 (normal_SOURCES): Removed.
39197 (normal_mod_CFLAGS): Likewise.
39198 (normal_mod_LDFLAGS): Likewise.
39199 * conf/i386-coreboot.rmk: Likewise.
39200 * conf/i386-efi.rmk: Likewise.
39201 * conf/i386-ieee1276.rmk: Likewise.
39202 * conf/powerpc-ieee1275.rmk: Likewise.
39203 * conf/sparc64-ieee1275.rmk: Likewise.
39204 * conf/x86_64-efi.rmk: Likewise.
39205
39206 * include/grub/command.h (grub_command_execute): New inline function.
39207
39208 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39209
39210 * include/grub/normal.h: Remove <grub/setjmp.h>.
39211 (grub_fs_module_list): Moved to normal/autofs.c.
39212 (grub_exit_env): Removed.
39213 (grub_command_execute): Likewise.
39214 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39215 parameter script.
39216 (read_command_list): New function declaration.
39217 (read_fs_list): Likewise.
39218
39219 * include/parser.h: Include <grub/reader.h>.
39220 (grub_parser_split_cmdline): Change type of getline parameter.
39221 (grub_parser): New structure.
39222 (grub_parser_class): New variable.
39223 (grub_parser_execute): New function declaration.
39224 (grub_register_rescue_parser): Likewise.
39225 (grub_parser_register): New inline function.
39226 (grub_parser_unregister): Likewise.
39227 (grub_parser_get_current): Likewise.
39228 (grub_parser_set_current): Likewise.
39229
39230 * include/grub/reader.h: New file.
39231 * kern/reader.c: Likewise.
39232 * kern/rescue_parser.c: Likewise.
39233 * kern/rescue_reader.c: Likewise.
39234 * normal/autofs.c: Likewise.
39235 * normal/dyncmd.c: Likewise.
39236
39237 * include/grub/rescue.h: Removed.
39238 * normal/command.h: Likewise.
39239
39240 * include/grub/script.h: Moved to ...
39241 * include/grub/script_sh.h: ... Moved here.
39242 * normal/execute.c: Moved to ...
39243 * script/sh/execute.c: ... Moved here.
39244 * normal/function.c: Moved to ...
39245 * script/sh/function.c: ... Moved here.
39246 * normal/lexer.c: Moved to ...
39247 * script/sh/lexer.c: ... Moved here.
39248 * normal/parser.y: Moved to ...
39249 * script/sh/parser.y: ... Moved here.
39250 * normal/script.c: Moved to ...
39251 * script/sh/script.c: ... Moved here.
39252
39253 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39254 <grub/reader.h>.
39255 (grub_exit_env): Removed.
39256 (fs_module_list): Moved to normal/autofs.c.
39257 (grub_file_getline): Don't handle comment here.
39258 (free_menu): Skip removed field entry->commands.
39259 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39260 script parameter.
39261 (read_config_file): Removed nested parameter, change getline function.
39262 (grub_enter_normal_mode): Removed.
39263 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39264 (read_command_list): Likewise.
39265 (autoload_fs_module): Moved to normal/autofs.c.
39266 (read_fs_list): Likewise.
39267 (reader_nested): New variable.
39268 (grub_normal_execute): Run parser.sh to switch to sh parser.
39269 (grub_cmd_rescue): Removed.
39270 (cmd_normal): Removed.
39271 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39272 rescue command.
39273 (grub_cmdline_run): New function.
39274 (grub_normal_reader_init): Likewise.
39275 (grub_normal_read_line): Likewise.
39276 (grub_env_write_pager): Likewise.
39277 (cmdline): New variable.
39278 (grub_normal_reader): Likewise.
39279 (GRUB_MOD_INIT): Register normal reader and set as current, register
39280 pager hook, register normal command with grub_register_command_prio,
39281 so that it won't show up in command.lst.
39282 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39283 grub_fs_autoload_hook.
39284
39285 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39286 (grub_menu_execute_entry): Replace grub_script_execute with
39287 grub_parser_execute, change parameter to grub_command_execute.
39288
39289 * normal/menu_text.c: Remove <grub/script.h>.
39290
39291 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39292 and <grub/parser.h>.
39293 (run): Change editor_getline to use new parser interface. Change
39294 parameter to grub_command_execute.
39295
39296 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39297 <grub/reader.h> and <grub/parser.h>.
39298 (grub_load_normal_mode): Execute normal command.
39299 (grub_main): Call grub_register_core_commands,
39300 grub_register_rescue_parser and grub_register_rescue_reader, use
39301 grub_reader_loop to enter input loop.
39302
39303 * kern/parser.c (grub_parser_split_cmdline): Change type of
39304 getline parameter.
39305 (grub_parser_class): New variable.
39306 (grub_parser_execute): New function.
39307
39308 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39309 * loader/multiboot2.c: Likewise.
39310 * loader/sparc64/ieee1275/linux.c: Likewise.
39311
39312 * util/grub-emu.c (read_command_list): New dummy function.
39313
39314 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39315
39316 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39317 count to 16 for CCISS and IDA.
39318
39319 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39320
39321 * normal/menu_text.c (grub_wait_after_message): Print a newline
39322 after waiting for user input.
39323
39324 * loader/i386/linux.c: Include `<grub/normal.h>'.
39325 (grub_cmd_linux): Improve the error message about `ask' mode, by
39326 waiting for user input so it's not missed (we can do this, since
39327 user requested interaction).
39328
39329 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39330
39331 Added missing lst to grub-mkrescue
39332
39333 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39334 and ${input_dir}/parttool.lst
39335
39336 2009-04-30 David S. Miller <davem@davemloft.net>
39337
39338 * util/hostdisk.c (device_is_wholedisk): New function.
39339 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39340 zero only if device_is_wholedisk() returns true.
39341
39342 * util/hostdisk.c (convert_system_partition_to_system_disk):
39343 Handle virtual disk devices named /dev/vdiskX as found on sparc
39344 and powerpc.
39345
39346 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39347 lettered partition specifier is found, convert to numbered.
39348
39349 2009-04-29 David S. Miller <davem@davemloft.net>
39350
39351 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39352 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39353
39354 * normal/command.c: Add missing newline at end of file.
39355
39356 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39357 warnings.
39358 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39359 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39360 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39361 ihandles have a 32-bit type but need to be stored in a "void *".
39362
39363 2009-04-28 Pavel Roskin <proski@gnu.org>
39364
39365 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39366 not disk. Adjust all dependencies.
39367 (grub_fs_uuid_close): Use grub_device_close(), not
39368 grub_disk_close().
39369
39370 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39371 parent's partition, don't copy it by reference, as it gets freed
39372 on close.
39373
39374 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39375
39376 Preboot hooks support
39377
39378 * commands/boot.c (struct grub_preboot_t): new declaration
39379 (preboots_head): new variable
39380 (preboots_tail): likewise
39381 (grub_loader_register_preboot_hook): new function
39382 (grub_loader_unregister_preboot_hook): likewise
39383 (grub_loader_set): launch preboot hooks
39384 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39385 (grub_loader_register_preboot_hook): new declaration
39386 (grub_loader_unregister_preboot_hook): likewise
39387
39388 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39389
39390 Warning fix
39391
39392 * disk/scsi.c (grub_scsi_open): added missing cast when
39393 calling grub_dprintf
39394
39395 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39396
39397 Bug and warning fixes
39398
39399 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39400 declaration
39401 * commands/test.c (test_parse): fixed bug with file tests and corrected
39402 declaration of find_file
39403
39404 2009-04-26 Pavel Roskin <proski@gnu.org>
39405
39406 * Makefile.in: Don't install empty manual pages if help2man is
39407 missing. Use help2man option for output, not shell redirection.
39408
39409 2009-04-26 David S. Miller <davem@davemloft.net>
39410
39411 * util/grub-mkdevicemap.c (make_device_map): Add missing
39412 NESTED_FUNC_ATTR to process_device().
39413
39414 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39415
39416 Test command
39417
39418 * commands/test.c: rewritten to use bash-like test
39419
39420 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39421
39422 Parttool autoloading and improvements
39423
39424 * Makefile.in (pkglib_DATA): add parttool.lst
39425 (parttool.lst): new target
39426 * genmk.rb: generate parttool-*
39427 (CLEANFILES): add #{parttool}
39428 (PARTTOOLFILES): new variable
39429 * genparttoollist.sh: new file
39430 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39431 (grub_pcpart_type): likewise
39432 * commands/parttool.c (helpmsg): new variable
39433 (grub_cmd_parttool): output help if not enough arguments are supplied
39434 autoload modules
39435 (GRUB_MOD_INIT(parttool)): use helpmsg
39436
39437 2009-04-24 David S. Miller <davem@davemloft.net>
39438
39439 Avoiding opening same device multiple times in device iterator.
39440
39441 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39442 and use it to build a list of partitions in iterate_disk() and
39443 iterate_partition().
39444
39445 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39446 on disk->data.
39447
39448 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39449 grub_devalias_iterate() result instead of unconditional 0.
39450 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39451 Also, capture hook return value, either directly or via
39452 grub_children_iterate(), and propagate to caller.
39453 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39454 grub_children_iterate): Return value is now 'int' instead of
39455 'grub_err_t'.
39456 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39457 like a proper iterator, stopping when hooks return non-zero.
39458 (grub_devalias_iterate): Likewise.
39459
39460 2009-04-23 David S. Miller <davem@davemloft.net>
39461
39462 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39463
39464 2009-04-22 David S. Miller <davem@davemloft.net>
39465
39466 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39467 is larger than address_cells, use that value for address_cells too.
39468
39469 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39470 IEEE1275_MAX_PATH_LEN): Define.
39471 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39472 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39473 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39474 'devtype'. Explicitly NULL terminate devalias expansion.
39475
39476 * util/sparc64/ieee1275/misc.c: New file.
39477 * util/sparc64/ieee1275/grub-setup.c: New file.
39478 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39479 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39480 * util/sparc64/ieee1275/grub-install.in: New file.
39481 * util/ieee1275/ofpath.c: New file.
39482 * util/ieee1275/devicemap.c: New file.
39483 * util/devicemap.c: New file.
39484 * util/deviceiter.c: New file.
39485 * kern/sparc64/ieee1275/init.c: New file.
39486 * include/grub/util/ofpath.h: New file.
39487 * include/grub/util/deviceiter.h: New file.
39488 * util/grub-mkdevicemap.c: Include deviceiter.h.
39489 Implement using grub_util_emit_devicemap_entry and
39490 grub_util_iterate_devices.
39491 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39492 util/devicemap.c into grub-mkdevicemap
39493 * conf/i386-efi.rmk: Likewise.
39494 * conf/i386-ieee1275.rmk: Likewise.
39495 * conf/i386-pc.rmk: Likewise.
39496 * conf/powerpc-ieee1275.rmk: Likewise.
39497 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39498 images and installation utilities. Build kernel as image
39499 instead of as elf binary. Use common rules as much as possible.
39500
39501 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39502
39503 Correct GPT definition
39504
39505 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39506 of "attrib" member
39507
39508 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39509
39510 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39511
39512 2009-04-19 David S. Miller <davem@davemloft.net>
39513
39514 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39515 (grub_rescue_cmd_linux): Rename to...
39516 (grub_cmd_linux): and fix prototype.
39517 (grub_rescue_cmd_initrd): Rename to...
39518 (grub_cmd_initrd): and fix prototype.
39519 (cmd_linux, cmd_initrd): New.
39520 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39521 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39522
39523 2009-04-17 Pavel Roskin <proski@gnu.org>
39524
39525 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39526 format.
39527 (grub_ohci_transfer): Likewise.
39528
39529 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39530
39531 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39532 return without a value. Fix inconsistent indentation.
39533
39534 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39535 match struct grub_fs.
39536
39537 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39538 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39539 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39540 * commands/lspci.c (grub_lspci_iter): Likewise.
39541
39542 2009-04-16 Bean <bean123ch@gmail.com>
39543
39544 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39545 value.
39546
39547 2009-04-15 Pavel Roskin <proski@gnu.org>
39548
39549 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39550 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39551 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39552 definitions.
39553
39554 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39555
39556 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39557 that no multiple data or metadata areas are supported and `Unknown
39558 metadata header'.
39559
39560 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39561
39562 Move loader out of the kernel
39563
39564 * kern/loader.c: moved to ...
39565 * commands/boot.c: ... moved here
39566 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39567 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39568 * include/grub/kernel.h (grub_machine_fini): export
39569 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39570 (grub_loader_set): likewise
39571 (grub_loader_unset): likewise
39572 (grub_loader_boot): likewise
39573 * conf/common.rmk: new module boot.mod
39574 (pkglib_MODULES): add boot.mod
39575 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39576 (grub_emu_SOURCES): likewise
39577 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39578 (grub_emu_SOURCES): likewise
39579 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39580 (grub_emu_SOURCES): likewise
39581 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39582 (grub_emu_SOURCES): likewise
39583 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39584 (grub_emu_SOURCES): likewise
39585 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39586 (grub_emu_SOURCES): likewise
39587 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39588 (grub_emu_SOURCES): likewise
39589
39590 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39591
39592 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39593
39594 * kern/misc.c (grub_itoa): Removed function
39595 (grub_ltoa): likewise
39596 (grub_vsprintf): use grub_lltoa
39597
39598 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39599
39600 Restore grub-emu
39601
39602 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39603 * conf/i386-coreboot.rmk: likewise
39604 * conf/i386-ieee1275.rmk: likewise
39605 * conf/powerpc-ieee1275.rmk: likewise
39606
39607 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39608
39609 * INSTALL: Add that `./autogen.sh' needs to be run before
39610 `./configure.'.
39611
39612 2009-04-14 Bean <bean123ch@gmail.com>
39613
39614 * Makefile.in (pkglib_DATA): Add handler.lst.
39615 (handler.lst): New rule.
39616
39617 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39618 * conf/i386-coreboot.rmk: Likewise.
39619 * conf/i386-ieee1275.rmk: Likewise.
39620 * conf/i386-efi.rmk: Likewise.
39621 * conf/x86_64-efi.rmk: Likewise.
39622 * conf/powerpc-ieee1275.rmk: Likewise.
39623 * conf/sparc64-ieee1275.rmk: Likewise.
39624
39625 * genhandlerlist.sh: New file.
39626
39627 * genmk.rb: Add rules to generate handler.lst.
39628
39629 * include/grub/normal.h (grub_file_getline): New function definition.
39630 (read_handler_list): Likewise.
39631 (free_handler_list): Likewise.
39632
39633 * include/grub/term.h (grub_term_register_input): Add name parameter
39634 for auto generation of handler.lst.
39635 (grub_term_register_output): Likewise.
39636
39637 * normal/handler.c: New file.
39638
39639 * normal/main.c (get_line): Renamed to grub_file_getline.
39640 (read_config_file): Use the newly renamed grub_file_getline.
39641 (read_command_list): Likewise.
39642 (read_fs_list): Likewise.
39643 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39644 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39645
39646 * term/efi/console.c (grub_console_init): Add name parameter for auto
39647 generation of handler.lst.
39648 * term/gfxterm.c: Likewise.
39649 * term/i386/pc/at_keyboard.c: Likewise.
39650 * term/i386/pc/console.c: Likewise.
39651 * term/i386/pc/serial.c: Likewise.
39652 * term/i386/pc/vesafb.c: Likewise.
39653 * term/i386/pc/vga.c: Likewise.
39654 * term/i386/pc/vga_text.c: Likewise.
39655 * term/ieee1275/ofconsole.c: Likewise.
39656 * term/usb_keyboard.c: Likewise.
39657
39658 2009-04-14 Bean <bean123ch@gmail.com>
39659
39660 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39661 properly with null character.
39662
39663 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39664
39665 * configure: Remove.
39666 * config.h.in: Likewise.
39667 * stamp-h.in: Likewise.
39668 * DISTLIST: Likewise.
39669 * conf/common.mk: Likewise.
39670 * conf/i386-coreboot.mk: Likewise.
39671 * conf/i386-efi.mk: Likewise.
39672 * conf/i386-ieee1275.mk: Likewise.
39673 * conf/i386.mk: Likewise.
39674 * conf/i386-pc.mk: Likewise.
39675 * conf/powerpc-ieee1275.mk: Likewise.
39676 * conf/sparc64-ieee1275.mk: Likewise.
39677 * conf/x86_64-efi.mk: Likewise.
39678
39679 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39680 develop on GRUB.
39681
39682 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39683 David S. Miller <davem@davemloft.net>
39684
39685 * util/hostdisk.c (make_device_name): Fix buffer length
39686 calculations.
39687
39688 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39689
39690 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39691 <sys/param.h> and <sys/sysctl.h>.
39692 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39693 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39694 opening the device and reset them afterwards.
39695
39696 2009-04-13 Pavel Roskin <proski@gnu.org>
39697
39698 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39699 Reported by John Stanley <jpsinthemix@verizon.net>
39700
39701 2009-04-13 Robert Millan <rmh@aybabtu.com>
39702
39703 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39704 that name for menuentries when appropriate.
39705
39706 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39707
39708 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39709
39710 2009-04-13 Robert Millan <rmh@aybabtu.com>
39711
39712 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39713 to Linux, simply abort telling the user it's no longer supported.
39714
39715 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39716
39717 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39718 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39719 `freebsd_loadenv' only when devices.hints exist.
39720
39721 2009-04-13 Pavel Roskin <proski@gnu.org>
39722
39723 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39724
39725 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39726
39727 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39728 partition number.
39729 (grub_drive): Likewise.
39730
39731 2009-04-13 David S. Miller <davem@davemloft.net>
39732
39733 * kern/sparc64/ieee1275/ieee1275.c: New file.
39734 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39735 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39736 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39737 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39738 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39739 grub_ieee1275_alloc_physmem): Declare new exported functions.
39740
39741 * include/grub/sparc64/ieee1275/loader.h: New file.
39742 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39743 * include/grub/sparc64/kernel.h: Likewise.
39744 * loader/sparc64/ieee1275/linux.c: Likewise.
39745
39746 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39747 (grub_fstest_SOURCES): Likewise.
39748
39749 * util/hostdisk.c (make_device_name): Do not make any assumptions
39750 about the length of drive names.
39751
39752 * kern/dl.c (grub_dl_load_file): Close file immediately when
39753 we are done using it.
39754
39755 2009-04-12 David S. Miller <davem@davemloft.net>
39756
39757 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39758 values. Noticed by Pavel Roskin.
39759
39760 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39761 target compiler.
39762
39763 * genmk.rb: Add more flexible image type specification, also
39764 pass --strip-unneeded to objcopy.
39765 * conf/i386-pc.rmk: Use *_FORMAT.
39766 * conf/i386-pc.mk: Rebuilt.
39767
39768 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39769 (OFDISK_HASH_SZ): Define.
39770 (ofdisk_hash): New hash table.
39771 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39772 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39773 instead of device phandle which is not unique.
39774
39775 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39776 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39777 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39778 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39779 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39780 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39781 GRUB_KERNEL_MACHINE_DATA_END): Define.
39782 (grub_kernel_image_size, grub_total_module_size): Declare.
39783
39784 2009-04-12 Pavel Roskin <proski@gnu.org>
39785
39786 * configure.ac: Change the logic when we check for target tools.
39787 Do it when the target is specified and it's different from the
39788 specified value of the host.
39789
39790 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39791
39792 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39793 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39794 GNU/kFreeBSD. Check if a device is a character device. Use
39795 DIOCGMEDIASIZE to get the size.
39796 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39797 support for GNU/kFreeBSD.
39798 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39799 is a character device instead of a block device. Add support for
39800 FreeBSD device names.
39801
39802 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39803 is a character device instead of a block device.
39804
39805 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39806 is a character device instead of a block device.
39807
39808 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39809
39810 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39811 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39812 FreeBSD. Check if a device is a character device. Use
39813 DIOCGMEDIASIZE to get the size.
39814 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39815 support for FreeBSD.
39816 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39817 is a character device instead of a block device. Add support for
39818 FreeBSD device names.
39819
39820 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39821 a character device instead of a block device.
39822 (grub_util_check_char_device): New function.
39823
39824 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39825 a character device instead of a block device.
39826
39827 * include/grub/util/getroot.h (grub_util_check_char_device): New
39828 prototype.
39829
39830 2009-04-11 David S. Miller <davem@davemloft.net>
39831
39832 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39833 static libgcc.
39834 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39835 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39836 function, if present.
39837 (__bswapdi2): Likewise.
39838
39839 * include/grub/sparc64/ieee1275/boot.h: New file.
39840 * boot/sparc64/ieee1275/boot.S: Likewise.
39841 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39842
39843 * kern/misc.c (grub_ltoa): New function.
39844 (grub_vsprintf): Use it to format 'long' integers.
39845
39846 2009-04-10 David S. Miller <davem@davemloft.net>
39847
39848 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39849 slots are of type grub_ieee1275_cell_t.
39850 (grub_nand_read): Likewise.
39851 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39852 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39853 macros are used to compare values in arg/ret block of the call.
39854 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39855 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39856 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39857 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39858 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39859 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39860 grub_ieee1275_close, grub_ieee1275_set_property,
39861 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39862 grub_ieee1275_cell_t.
39863 * kern/ieee1275/openfw.c (grub_map): Likewise.
39864 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39865 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39866
39867 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39868 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39869 (grub_devalias_iterate): Likewise.
39870
39871 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39872
39873 UFS improvements
39874
39875 * fs/ufs.c (INODE_NBLOCKS): new definition
39876 (struct grub_ufs_dirent): added fields for non-BSD dirents
39877 (grub_ufs_get_file_block): fixed double indirect handling
39878 (grub_ufs_lookup_symlink): use more robust way to determine whether
39879 symlink is inline
39880 (grub_ufs_find_file): support for non-BSD dirents
39881 (grub_ufs_dir): support for non-BSD dirents
39882
39883 2009-04-10 Bean <bean123ch@gnail.com>
39884
39885 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39886 attribute, otherwise the size would be wrong for i386 platform.
39887
39888 * include/grub/pci.h (grub_pci_read_word): New inline function.
39889 (grub_pci_read_byte): Likewise.
39890 (grub_pci_write): Likewise.
39891 (grub_pci_write_word): Likewise.
39892 (grub_pci_write_byte): Likewise.
39893
39894 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39895
39896 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39897 (find_framebuf): Scan pci to locate the frame buffer address.
39898
39899 * commands/efi/fixvideo.c: New file.
39900
39901 * commands/efi/loadbios.c: Likewise.
39902
39903 * commands/memrw.c: Likewise.
39904
39905 * util/grub-dumpbios.in: Likewise.
39906
39907 * conf/common.rmk (grub-dumpbios): New utility.
39908 (pkglib_MODULES): New module memrw.mod.
39909 (memrw_mod_SOURCE): New macro.
39910 (memrw_mod_CFLAGS): Likewise.
39911 (memrw_mod_LDFLAGS): Likewise.
39912
39913 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39914 fixvideo.mod.
39915 (loadbios_mod_SOURCE): New macro.
39916 (loadbios_mod_CFLAGS): Likewise.
39917 (loadbios_mod_LDFLAGS): Likewise.
39918 (fixvideo_mod_SOURCE): Likewise.
39919 (fixvideo_mod_CFLAGS): Likewise.
39920 (fixvideo_mod_LDFLAGS): Likewise.
39921
39922 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39923 fixvideo.mod.
39924 (loadbios_mod_SOURCE): New macro.
39925 (loadbios_mod_CFLAGS): Likewise.
39926 (loadbios_mod_LDFLAGS): Likewise.
39927 (fixvideo_mod_SOURCE): Likewise.
39928 (fixvideo_mod_CFLAGS): Likewise.
39929 (fixvideo_mod_LDFLAGS): Likewise.
39930
39931 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39932
39933 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39934
39935 2009-04-07 David S. Miller <davem@davemloft.net>
39936
39937 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39938 support for R_SPARC_OLO10 relocations. Fix compile warning for
39939 R_SPARC_WDISP30 case.
39940 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39941
39942 2009-04-06 Pavel Roskin <proski@gnu.org>
39943
39944 * include/grub/misc.h (ARRAY_SIZE): New macro.
39945 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39946 New macro.
39947 * loader/i386/linux.c (allocate_pages): Use free_pages().
39948 (grub_linux_unload): Don't use free_pages().
39949 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39950 wrong index. Treat all other modes as text modes.
39951 (grub_cmd_linux): Initialize vid_mode unconditionally to
39952 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39953
39954 * commands/help.c (print_command_help): Use cmd->prio, not
39955 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39956
39957 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39958
39959 Parttool
39960
39961 * parttool/pcpart.c: new file
39962 * commands/parttool.c: likewise
39963 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39964 (parttool_mod_SOURCES): new variable
39965 (parttool_mod_CFLAGS): likewise
39966 (parttool_mod_LDFLAGS): likewise
39967 (pcpart_mod_SOURCES): likewise
39968 (pcpart_mod_CFLAGS): likewise
39969 (pcpart_mod_LDFLAGS): likewise
39970 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39971 and parttool/pcpart.c
39972 * conf/i386-efi.rmk: likewise
39973 * conf/i386-ieee1275.rmk: likewise
39974 * conf/i386-pc.rmk: likewise
39975 * conf/powerpc-ieee1275.rmk: likewise
39976 * conf/sparc64-ieee1275.rmk: likewise
39977 * conf/x86_64-ieee1275.rmk: likewise
39978
39979 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39980
39981 Support for mtime and further expandability of dir command
39982
39983 * include/grub/lib/datetime.h: moved to ...
39984 * include/grub/datetime.h: ... moved here and added
39985 declaration of grub_unixtime2datetime. All users updated
39986 * include/grub/fs.h: new syntax for dir and mtime functions in
39987 struct grub_fs
39988 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39989 and GRUB_FSHELP_FLAGS_MASK
39990 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39991 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39992 (grub_ext2_mtime): new function
39993 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39994 (grub_hfsplus_mtime): new function
39995 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39996 (GRUB_UFS_ATTR_FILE): likewise
39997 (GRUB_UFS_ATTR_LNK): likewise
39998 (struct grub_ufs_sblock): new fields mtime
39999 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40000 all users updated
40001 (grub_ufs_dir): mtime support
40002 (grub_ufs_mtime): new function
40003 * fs/affs.c (grub_affs_dir): use new dir syntax
40004 * fs/afs.c (grub_afs_dir): likewise
40005 * fs/cpio.c (grub_cpio_dir): likewise
40006 * fs/fat.c (grub_fat_find_dir): likewise
40007 * fs/hfs.c (grub_hfs_dir): likewise
40008 * fs/iso9660.c (grub_iso9660_dir): likewise
40009 * fs/jfs.c (grub_jfs_dir): likewise
40010 * fs/minix.c (grub_minix_dir): likewise
40011 * fs/ntfs.c (grub_ntfs_dir): likewise
40012 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40013 * fs/sfs.c (grub_sfs_dir): likewise
40014 * fs/xfs.c (grub_xfs_dir): likewise
40015 * util/hostfs.c (grub_hostfs_dir): likewise
40016 * lib/datetime.c: moved to ...
40017 * normal/datetime.c: ... moved here
40018 (grub_unixtime2datetime): new function
40019 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40020 * normal/completion.c (iterate_dir): use new dir syntax
40021 * normal/misc.c (grub_normal_print_device_info): tell the
40022 last modification time of a volume
40023 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40024 * conf/common.rmk: added lib/datetime.c to ls.mod
40025 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40026 (normal_mod_SOURCES): likewise
40027 (datetime_mod_SOURCES): Removed lib/datetime.c
40028 * conf/i386-efi.rmk: likewise
40029 * conf/i386-ieee1275.rmk: likewise
40030 * conf/i386-pc.rmk: likewise
40031 * conf/powerpc-ieee1275.rmk: likewise
40032 * conf/sparc64-ieee1275.rmk: likewise
40033 * conf/x86_64-efi.rmk: likewise
40034
40035 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40036
40037 Trim trailing spaces in FAT label and support mtools-like labels
40038
40039 * fs/fat.c (grub_fat_iterate_dir): New function based
40040 on grub_fat_find_dir
40041 (grub_fat_find_dir): use grub_fat_iterate_dir
40042 (grub_fat_label): likewise
40043
40044 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40045
40046 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40047 and command.h
40048 remove extraneous kernel_elf_HEADERS
40049
40050 2009-04-04 Bean <bean123ch@gnail.com>
40051
40052 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40053
40054 * util/misc.c: Likewise.
40055
40056 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40057
40058 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40059 instead of grub_printf.
40060
40061 2009-04-03 Robert Millan <rmh@aybabtu.com>
40062
40063 * loader/i386/linux.c (grub_linux_setup_video): Fill
40064 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40065 values from `mode info' structure instead of hardcoded
40066 values.
40067
40068 2009-04-01 Pavel Roskin <proski@gnu.org>
40069
40070 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40071 unused now.
40072 * genmk.rb: Likewise.
40073 * configure.ac: Likewise.
40074
40075 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40076
40077 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40078 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40079
40080 2009-04-01 David S. Miller <davem@davemloft.net>
40081
40082 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40083 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40084 (grub_setjmp): Mark with 'returns_twice' attribute.
40085 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40086 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40087 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40088
40089 2009-04-01 Robert Millan <rmh@aybabtu.com>
40090
40091 Reapply fix from 2008-07-28 which was accidentally reverted; also
40092 perform the same fix to a similar check in same function.
40093
40094 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40095 with the same number are found, just use issue a warning with
40096 grub_dprintf(), as this error has been reported to be non-fatal.
40097
40098 2009-03-31 Pavel Roskin <proski@gnu.org>
40099
40100 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40101 for cross-compilation.
40102
40103 2009-03-30 Robert Millan <rmh@aybabtu.com>
40104
40105 Fix i386-ieee1275 build.
40106
40107 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40108 Remove declaration.
40109
40110 2009-03-30 Pavel Roskin <proski@gnu.org>
40111
40112 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40113 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40114 zero-terminated, rely only on the strlen value. Fix comparison
40115 of strings differing in length.
40116
40117 2009-03-30 Robert Millan <rmh@aybabtu.com>
40118
40119 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40120 checking for abi version. Improve error messages on BIOS to notify
40121 user about `linux16' command.
40122
40123 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40124
40125 Leak fixes
40126
40127 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40128 in case of collision
40129 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40130
40131 2009-03-29 Robert Millan <rmh@aybabtu.com>
40132
40133 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40134 set `vid_mode' accordingly.
40135 (grub_linux_boot): Process `vid_mode' and set video mode.
40136
40137 2009-03-29 Robert Millan <rmh@aybabtu.com>
40138
40139 * util/grub.d/10_linux.in (linux_entry): New function.
40140 Factorize generation of Linux boot entries.
40141
40142 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40143
40144 Make the format of Environment Block plain text. The boot loader
40145 part is not tested well yet.
40146
40147 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40148 (buffer): Removed.
40149 (envblk): Likewise.
40150 (usage): Remove "info" and "clear". Add "unset". Update the
40151 description of "set", as this does not delete variables any
40152 longer.
40153 (create_envblk_file): Complete rewrite.
40154 (open_envblk_file): Likewise.
40155 (cmd_info): Removed.
40156 (cmd_list): Likewise.
40157 (cmd_set): Likewise.
40158 (cmd_clear): Likewise.
40159 (list_variables): New function.
40160 (write_envblk): Likewise.
40161 (set_variables): Likewise.
40162 (unset_variables): Likewise.
40163 (main): Complete rewrite.
40164
40165 * commands/loadenv.c (buffer): Removed.
40166 (envblk): Likewise.
40167 (open_envblk_file): New function.
40168 (read_envblk_file): Complete rewrite.
40169 (grub_cmd_load_env): Likewise.
40170 (grub_cmd_list_env): Likewise.
40171 (struct blocklist): New struct.
40172 (free_blocklists): New function.
40173 (check_blocklists): Likewise.
40174 (write_blocklists): Likewise.
40175 (grub_cmd_save_env): Complete rewrite.
40176
40177 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40178 a plain text signature.
40179 (GRUB_ENVBLK_MAXLEN): Removed.
40180 (struct grub_envblk): Complete rewrite.
40181 (grub_envblk_find): Removed.
40182 (grub_envblk_insert): Likewise.
40183 (grub_envblk_open): New prototype.
40184 (grub_envblk_set): Likewise.
40185 (grub_envblk_delete): Put const to VALUE.
40186 (grub_envblk_iterate): Put const to NAME and VALUE.
40187 (grub_envblk_close): New prototype.
40188 (grub_envblk_buffer): New inline function.
40189 (grub_envblk_size): Likewise.
40190
40191 * lib/envblk.c: Include grub/mm.h.
40192 (grub_env_find): Removed.
40193 (grub_envblk_open): New function.
40194 (grub_envblk_close): Likewise.
40195 (escaped_value_len): Likewise.
40196 (find_next_line): Likewise.
40197 (grub_envblk_insert): Removed.
40198 (grub_envblk_set): New function.
40199 (grub_envblk_delete): Complete rewrite.
40200 (grub_envblk_iterate): Likewise.
40201
40202 2009-03-28 Robert Millan <rmh@aybabtu.com>
40203
40204 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40205 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40206 variables. Use 16-bit loader.
40207 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40208 loader.
40209 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40210 (grub_linux16_boot): ... this. Update all users.
40211 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40212 (grub_linux_boot): ... this. Update all users.
40213
40214 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40215 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40216 commands to `linux16' and `initrd16'.
40217 (GRUB_MOD_FINI(linux)): Rename to ...
40218 (GRUB_MOD_FINI(linux16)): ... this.
40219
40220 2009-03-24 Pavel Roskin <proski@gnu.org>
40221
40222 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40223 not just for compilation.
40224
40225 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40226
40227 Move multiboot helper out of kernel
40228
40229 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40230 `loader/i386/multiboot_helper.S'.
40231 * conf/i386-coreboot.rmk: Likewise
40232 * conf/i386-ieee1275.rmk: Likewise
40233
40234 * kern/i386/loader.S: Move multiboot helpers from here...
40235 * loader/i386/multiboot_helper.S: ...moved here
40236 * include/grub/i386/loader.h: Move declarations of multiboot
40237 helpers from here...
40238 * include/grub/i386/multiboot.h: ...moved here
40239 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40240
40241 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40242
40243 * kern/env.c (grub_env_context_open): Added an argument to specify
40244 whether a new context inherits exported variables from current
40245 one. This is useful when making a sandbox to interpret a config
40246 file.
40247 All callers updated.
40248
40249 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40250
40251 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40252
40253 * kern/env.c (grub_env_context_close): Fix memory leaks.
40254
40255 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40256
40257 * normal/main.c (grub_normal_execute): Added an argument
40258 BATCH to specify if an interactive interface should be provided
40259 after reading a config file.
40260 All callers updated.
40261 (read_command_list): Prevent being executed twice.
40262 (read_fs_list): Likewise.
40263
40264 * include/grub/normal.h (grub_normal_execute): Updated the
40265 prototype.
40266
40267 2009-03-22 Pavel Roskin <proski@gno.org>
40268
40269 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40270 _start.
40271 * kern/i386/pc/startup.S: Likewise.
40272 * kern/i386/efi/startup.S: Likewise.
40273 * kern/i386/ieee1275/startup.S: Likewise.
40274 * kern/i386/coreboot/startup.S: Likewise.
40275 * kern/x86_64/efi/startup.S: Likewise.
40276
40277 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40278 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40279 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40280
40281 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40282
40283 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40284
40285 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40286 limit detection.
40287 Use vaddr of correct segment for entry_point.
40288
40289 2009-03-21 Bean <bean123ch@gmail.com>
40290
40291 * commands/blocklist.c: Add include file <grub/command.h>, remove
40292 <grub/normal.h> and <grub/arg.h>.
40293 (grub_cmd_blocklist): Use the new command interface.
40294 (GRUB_MOD_INIT): Likewise.
40295 (GRUB_MOD_FINI): Likewise.
40296 * commands/boot.c: Likewise.
40297 * commands/cat.c: Likewise.
40298 * commands/cmp.c: Likewise.
40299 * commands/configfile.c: Likewise.
40300 * commands/crc.c: Likewise.
40301 * commands/echo.c: Likewise.
40302 * commands/halt.c: Likewise.
40303 * commands/handler.c: Likewise.
40304 * commands/hdparm.c: Likewise.
40305 * commands/help.c: Likewise.
40306 * commands/hexdump.c: Likewise.
40307 * commands/loadenv.c: Likewise.
40308 * commands/ls.c: Likewise.
40309 * commands/lsmmap.c: Likewise.
40310 * commands/lspci.c: Likewise.
40311 * commands/loadenv.c: Likewise.
40312 * commands/read.c: Likewise.
40313 * commands/reboot.c: Likewise.
40314 * commands/search.c: Likewise.
40315 * commands/sleep.c: Likewise.
40316 * commands/test.c: Likewise.
40317 * commands/usbtest.c: Likewise.
40318 * commands/videotest.c: Likewise.
40319 * commands/i386/cpuid.c: Likewise.
40320 * commands/i386/pc/halt.c: Likewise.
40321 * commands/i386/pc/play.c: Likewise.
40322 * commands/i386/pc/pxecmd.c: Likewise.
40323 * commands/i386/pc/vbeinfo.c: Likewise.
40324 * commands/i386/pc/vbetest.c: Likewise.
40325 * commands/ieee1275/suspend.c: Likewise.
40326 * disk/loopback.c: Likewise.
40327 * font/font_cmd.c: Likewise.
40328 * hello/hello.c: Likewise.
40329 * loader/efi/appleloader.c: Likewise.
40330 * loader/efi/chainloader.c: Likewise.
40331 * loader/i386/bsd.c: Likewise.
40332 * loader/i386/efi/linux.c: Likewise.
40333 * loader/i386/ieee1275/linux.c: Likewise.
40334 * loader/i386/linux.c: Likewise.
40335 * loader/i386/pc/chainloader.c: Likewise.
40336 * loader/i386/pc/linux.c: Likewise.
40337 * loader/powerpc/ieee1275/linux.c: Likewise.
40338 * loader/multiboot_loader.c: Likewise.
40339 * term/gfxterm.c: Likewise.
40340 * term/i386/pc/serial.c: Likewise.
40341 * term/terminfo.c: Likewise.
40342
40343 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40344 * term/i386/pc/vga.c: Likewise.
40345 * video/readers/jpeg.c: Likewise.
40346 * video/readers/png.c: Likewise.
40347 * video/readers/tga.c: Likewise.
40348
40349 * util/grub-fstest (cmd_loopback): Removed.
40350 (cmd_blocklist): Likewise.
40351 (cmd_ls): Likewise.
40352 (grub_register_command): Likewise.
40353 (grub_unregister_command): Likewise.
40354 (execute_command): Use grub_command_find to locate command and execute
40355 it.
40356
40357 * include/grub/efi/chainloader.h: Removed.
40358 * loader/efi/chainloader_normal.c: Likewise.
40359 * loader/i386/bsd_normal.c: Likewise.
40360 * loader/i386/pc/chainloader_normal.c: Likewise.
40361 * loader/i386/pc/multiboot_normal.c: Likewise.
40362 * loader/linux_normal.c: Likewise.
40363 * loader/multiboot_loader_normal.c: Likewise.
40364 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40365
40366 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40367 and grub_register_command_p1.
40368
40369 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40370 kern/command.c, lib/arg.c and commands/extcmd.c.
40371 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40372 (minicmd_mod_SOURCES): New variable.
40373 (minicmd_mod_CFLAGS): Likewise.
40374 (minicmd_mod_LDFLAGS): Likewise.
40375 (extcmd_mod_SOURCES): Likewise.
40376 (extcmd_mod_CFLAGS): Likewise.
40377 (extcmd_mod_LDFLAGS): Likewise.
40378 (boot_mod_SOURCES): Removed.
40379 (boot_mod_CFLAGS): Likewise.
40380 (boot_mod_LDFLAGS): Likewise.
40381
40382 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40383 kern/corecmd.c.
40384 (kernel_img_HEADERS): Add command.h.
40385 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40386 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40387 and lib/arg.c.
40388 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40389 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40390 remove the corresponding normal mode command.
40391 (normal_mod_SOURCES): Remove normal/arg.c.
40392 * conf/i386-coreboot.rmk: Likewise.
40393 * conf/i386-efi.rmk: Likewise.
40394 * conf/i386-ieee1275.rmk: Likewise.
40395 * conf/powerpc-ieee1275.rmk: Likewise.
40396 * conf/x86_64-efi.rmk: Likewise.
40397
40398 * include/grub/arg.h: Move from here ...
40399 * include/grub/lib/arg.h: ... to here.
40400
40401 * normal/arg.c: Move from here ...
40402 * lib/arg.c: ... to here.
40403
40404 * commands/extcmd.c: New file.
40405 * commands/minicmd.c: Likewise.
40406 * include/grub/command.h: Likewise.
40407 * include/grub/extcmd.h: Likewise.
40408 * kern/command.c: Likewise.
40409 * kern/corecmd.c: Likewise.
40410
40411 * kern/list.c (grub_list_iterate): Return int instead of void.
40412 (grub_list_insert): New function.
40413 (grub_prio_list_insert): Likewise.
40414
40415 * kern/rescue.c (grub_rescue_command): Removed.
40416 (grub_rescue_command_list): Likewise.
40417 (grub_rescue_register_command): Likewise.
40418 (grub_rescue_unregister_command): Likewise.
40419 (grub_rescue_cmd_boot): Move to minicmd.c
40420 (grub_rescue_cmd_help): Likewise.
40421 (grub_rescue_cmd_info): Likewise.
40422 (grub_rescue_cmd_boot): Likewise.
40423 (grub_rescue_cmd_testload): Likewise.
40424 (grub_rescue_cmd_dump): Likewise.
40425 (grub_rescue_cmd_rmmod): Likewise.
40426 (grub_rescue_cmd_lsmod): Likewise.
40427 (grub_rescue_cmd_exit): Likewise.
40428 (grub_rescue_print_devices): Moved to corecmd.c.
40429 (grub_rescue_print_files): Likewise.
40430 (grub_rescue_cmd_ls): Likewise.
40431 (grub_rescue_cmd_insmod): Likewise.
40432 (grub_rescue_cmd_set): Likewise.
40433 (grub_rescue_cmd_unset): Likewise.
40434 (attempt_normal_mode): Use grub_command_find to get normal module.
40435 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40436 commands, remove grub_rescue_register_command calls.
40437
40438 * normal/command.c (grub_register_command): Removed.
40439 (grub_unregister_command): Likewise.
40440 (grub_command_find): Likewise.
40441 (grub_iterate_commands): Likewise.
40442 (rescue_command): Likewise.
40443 (export_command): Moved to corecmd.c.
40444 (set_command): Removed.
40445 (unset_command): Likewise.
40446 (insmod_command): Likewise.
40447 (rmmod_command): Likewise.
40448 (lsmod_command): Likewise.
40449 (grub_command_init): Likewise.
40450
40451 * normal/completion.c (iterate_command): Use cmd->prio to check for
40452 active command.
40453 (complete_arguments): Use grub_extcmd_t structure to find options.
40454 (grub_normal_do_completion): Change function grub_iterate_commands to
40455 grub_command_iterate.
40456
40457 * normal/execute.c (grub_script_execute_cmd): No need to parse
40458 argument here.
40459
40460 * normal/main.c (grub_dyncmd_dispatcher): New function.
40461 (read_command_list): Register unload commands as dyncmd.
40462 (grub_cmd_normal): Use new command interface, register rescue,
40463 unregister normal at entry, register normal, unregister rescue at exit.
40464
40465 * include/grub/list.h (grub_list_test_t): New type.
40466 (grub_list_iterate): Return int instead of void.
40467 (grub_list_insert): New function.
40468 (GRUB_AS_NAMED_LIST_P): New macro.
40469 (GRUB_AS_PRIO_LIST): Likewise.
40470 (GRUB_AS_PRIO_LIST_P): Likewise.
40471 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40472 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40473 (grub_prio_list): New structure.
40474 (grub_prio_list_insert): New function.
40475 (grub_prio_list_remove): New inline function.
40476
40477 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40478 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40479 (GRUB_COMMAND_FLAG_MENU): Likewise.
40480 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40481 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40482 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40483 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40484 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40485 (grub_command): Likewise.
40486 (grub_register_command): Likewise.
40487 (grub_command_find): Likewise.
40488 (grub_iterate_commands): Likewise.
40489 (grub_command_init): Likewise.
40490 (grub_arg_parse): Likewise.
40491 (grub_arg_show_help): Likewise.
40492
40493 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40494 (grub_rescue_unregister_command): Likewise.
40495
40496 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40497 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40498 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40499
40500 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40501 grub_rescue_cmd_initrd.
40502 * include/grub/i386/loader.h: Likewise.
40503 * include/grub/x86_64/loader.h: Likewise.
40504
40505 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40506
40507 2009-03-21 Bean <bean123ch@gmail.com>
40508
40509 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40510 instead of stat in mingw environment.
40511
40512 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40513
40514 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40515
40516 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40517 AC_CONFIG_LINKS.
40518
40519 2009-03-21 Bean <bean123ch@gmail.com>
40520
40521 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40522 out of range error.
40523
40524 2009-03-18 Michel Dänzer <michel@daenzer.net>
40525
40526 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40527 checking inode flags for EXT4_EXTENTS_FLAG.
40528
40529 2009-03-18 Robert Millan <rmh@aybabtu.com>
40530
40531 * loader/i386/linux.c: Include `<grub/video.h>' and
40532 `<grub/i386/pc/vbe.h>'..
40533 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40534 (grub_linux32_boot): Attempt to configure video settings with
40535 grub_linux_setup_video().
40536 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40537 to avoid grub_console_fini() which would step out of graphical mode
40538 unconditionally.
40539
40540 2009-03-14 Robert Millan <rmh@aybabtu.com>
40541
40542 Fix build on powerpc.
40543 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40544
40545 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40546
40547 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40548 background image command.
40549
40550 2009-03-12 Colin D Bennett <colin@gibibit.com>
40551
40552 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40553 (grub_gfxterm_putchar): Extract pairs of identical calls to
40554 draw_cursor out of conditional blocks.
40555
40556 2009-03-11 Pavel Roskin <proski@gnu.org>
40557
40558 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40559 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40560
40561 2009-03-11 Robert Millan <rmh@aybabtu.com>
40562
40563 * loader/i386/multiboot_elfxx.c
40564 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40565
40566 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40567
40568 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40569 `kern/handler.c'.
40570
40571 2009-03-11 Robert Millan <rmh@aybabtu.com>
40572
40573 * loader/i386/multiboot.c (code_size): New variable.
40574 (grub_multiboot): Define offsets by adding to `code_size' rather
40575 than subtracting from `grub_multiboot_payload_size'. Provide
40576 4-byte alignment to MBI and others by increasing
40577 `boot_loader_name_length' appropriately.
40578
40579 * loader/i386/multiboot_elfxx.c
40580 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40581
40582 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40583
40584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40585 `fs/ext2.c'.
40586
40587 2009-03-08 Robert Millan <rmh@aybabtu.com>
40588
40589 Make loader/i386/linux.c usable on i386-pc again.
40590
40591 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40592 memory to heap.
40593 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40594 `#error' stanza.
40595
40596 2009-03-07 Bean <bean123ch@gmail.com>
40597
40598 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40599 allocation.
40600
40601 2009-03-06 Robert Millan <rmh@aybabtu.com>
40602
40603 Fix display issue on terminals with screen size other than 80x25
40604 (e.g. gfxterm with resolution higher than 640x480).
40605
40606 * normal/main.c (grub_normal_init_page): Display title text in a
40607 position relative to the center of the terminal instead of relying
40608 on a hardcoded offset.
40609
40610 2009-03-04 Robert Millan <rmh@aybabtu.com>
40611
40612 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40613 installed.
40614
40615 * Makefile.in (host_kernel): New variable.
40616 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40617 scripts instead of just the windows one.
40618 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40619
40620 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40621
40622 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40623 `kern/handler.c'.
40624 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40625 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40626 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40627 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40628 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40629 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40630
40631 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40632
40633 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40634 or if there's no space for the disk label and print the partition number on a
40635 invalid magic.
40636
40637 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40638
40639 * util/misc.c: Include <time.h>.
40640 (grub_millisleep): New function.
40641
40642 2009-03-04 Bean <bean123ch@gmail.com>
40643
40644 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40645 another option -mno-red-zone.
40646
40647 * commands/handler.c: Change module description.
40648
40649 * kern/handler.c: Add missing space at the end of description line.
40650
40651 * kern/list.c: Likewise.
40652
40653 2009-03-03 Robert Millan <rmh@aybabtu.com>
40654
40655 Move more components to the relocation area, and fix mbi pointer
40656 handling to use the destination rather than the origin (thanks to
40657 Vladimir Serbinenko for spotting).
40658
40659 * loader/i386/multiboot.c (mbi_dest): New variable.
40660 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40661 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40662 relocation area.
40663
40664 2009-03-01 Bean <bean123ch@gmail.com>
40665
40666 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40667 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40668 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40669 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40670
40671 * loader/i386/efi/linux.c (acpi_guid): New variable.
40672 (acpi_guid): Likewise.
40673 (EBDA_SEG_ADDR): New constant.
40674 (LOW_MEM_ADDR): Likewise.
40675 (FAKE_EBDA_SEG): Likewise.
40676 (fake_bios_data): New function.
40677 (grub_linux_boot): Call fake_bios_data.
40678
40679 2009-03-01 Bean <bean123ch@gmail.com>
40680
40681 * commands/terminal.c: Removed.
40682
40683 * commands/handler.c: New file.
40684
40685 * include/grub/list.h: Likewise.
40686
40687 * include/grub/handler.h: Likewise.
40688
40689 * kern/list.c: Likewise.
40690
40691 * kern/handler.c: Likewise.
40692
40693 * kern/term.h: Include header file <grub/handler.h>.
40694 (grub_term_input): Move next field to the beginning.
40695 (grub_term_output): Likewise.
40696 (grub_term_input_class): New variable.
40697 (grub_term_output_class): Likewise.
40698 (grub_term_register_input): Changed to inline function.
40699 (grub_term_register_output): Likewise.
40700 (grub_term_unregister_input): Likewise.
40701 (grub_term_unregister_output): Likewise.
40702 (grub_term_set_current_input): Likewise.
40703 (grub_term_set_current_output): Likewise.
40704 (grub_term_get_current_input): Likewise.
40705 (grub_term_get_current_output): Likewise.
40706 (grub_term_iterate_input): Removed.
40707 (grub_term_iterate_output): Likewise.
40708
40709 * kern/term.c (grub_term_list_input): Removed.
40710 (grub_term_list_output): Likewise.
40711 (grub_term_input_class): New variable.
40712 (grub_term_output_class): Likewise.
40713 (grub_cur_term_input): Change variable as macro.
40714 (grub_cur_term_output): Likewise.
40715 (grub_term_register_input): Removed.
40716 (grub_term_register_output): Likewise.
40717 (grub_term_unregister_input): Likewise.
40718 (grub_term_unregister_output): Likewise.
40719 (grub_term_set_current_input): Likewise.
40720 (grub_term_set_current_output): Likewise.
40721 (grub_term_iterate_input): Likewise.
40722 (grub_term_iterate_output): Likewise.
40723 (grub_term_get_current_input): Likewise.
40724 (grub_term_get_current_output): Likewise.
40725
40726 * util/grub-editenv.c: Include header file <grub/handler.h>.
40727 (grub_term_get_current_input): Removed.
40728 (grub_term_get_current_output): Likewise.
40729 (grub_term_input_class): New variable.
40730 (grub_term_output_class): Likewise.
40731
40732 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40733 (grub_term_get_current_output): Likewise.
40734 (grub_term_input_class): New variable.
40735 (grub_term_output_class): Likewise.
40736
40737 * util/grub-probe.c (grub_term_get_current_input): Removed.
40738 (grub_term_get_current_output): Likewise.
40739 (grub_term_input_class): New variable.
40740 (grub_term_output_class): Likewise.
40741
40742 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40743 (grub_term_get_current_output): Likewise.
40744 (grub_term_input_class): New variable.
40745 (grub_term_output_class): Likewise.
40746
40747 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40748 (terminal_mod_SOURCES): Likewise.
40749 (terminal_mod_CFLAGS): Likewise.
40750 (terminal_mod_LDFLAGS): Likewise.
40751
40752 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40753 handler.c.
40754 (kernel_img_SOURCES): Add list.c and handler.c.
40755 (kernel_img_HEADERS): Add list.h and handler.h.
40756
40757 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40758 handler.c.
40759 (kernel_mod_SOURCES): Add list.c and handler.c.
40760 (kernel_mod_HEADERS): Add list.h and handler.h.
40761
40762 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40763 handler.c.
40764 (kernel_elf_SOURCES): Add list.c and handler.c.
40765 (kernel_elf_HEADERS): Add list.h and handler.h.
40766
40767 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40768 handler.c.
40769 (kernel_elf_SOURCES): Add list.c and handler.c.
40770 (kernel_elf_HEADERS): Add list.h and handler.h.
40771
40772 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40773 handler.c.
40774 (kernel_mod_SOURCES): Add list.c and handler.c.
40775 (kernel_mod_HEADERS): Add list.h and handler.h.
40776
40777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40778 handler.c.
40779 (kernel_elf_SOURCES): Add list.c and handler.c.
40780 (kernel_elf_HEADERS): Add list.h and handler.h.
40781
40782 2009-02-27 Robert Millan <rmh@aybabtu.com>
40783
40784 Factorize elf32 / elf64 code in Multiboot loader. This will
40785 prevent it from getting out of sync again.
40786
40787 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40788 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40789 grub_multiboot_load_elf64): Move from here ...
40790 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40791 grub_multiboot_load_elf): ... to here (new file).
40792
40793 2009-02-27 Robert Millan <rmh@aybabtu.com>
40794
40795 * util/grub.d/10_linux.in: Rename "single-user mode" to
40796 "recovery mode".
40797
40798 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40799
40800 Don't leak in SCSI code.
40801 * disk/scsi.c (grub_scsi_close): free `scsi'.
40802
40803 2009-02-27 Robert Millan <rmh@aybabtu.com>
40804
40805 * loader/i386/pc/multiboot.c: Move from here ...
40806 * loader/i386/multiboot.c: ... to here. Update all users.
40807
40808 2009-02-27 Robert Millan <rmh@aybabtu.com>
40809
40810 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40811 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40812
40813 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40814
40815 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40816 b-tree.
40817
40818 2009-02-27 Robert Millan <rmh@aybabtu.com>
40819
40820 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40821 `0x' qualifier as 0 when base is specified as parameter).
40822
40823 2009-02-24 Bean <bean123ch@gmail.com>
40824
40825 * configure.ac: Check for -mcmodel=large in x86_64 target.
40826
40827 * include/grub/efi/api.h (efi_call_10): New macro.
40828 (efi_wrap_10): New function.
40829
40830 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40831 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40832 (GRUB_PE32_REL_BASED_LOW): Likewise.
40833 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40834 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40835 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40836 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40837 (GRUB_PE32_REL_BASED_REL): Likewise.
40838 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40839 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40840 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40841
40842 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40843 issue.
40844
40845 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40846 (efi_wrap_10): New function.
40847
40848 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40849
40850 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40851 MB/MBP model (NV chipset).
40852 (devdata_devs): Add devpath_5 to the list.
40853
40854 * load/i386/efi/linux.c (video_base): Remove variable.
40855 (RGB_MASK): New macro.
40856 (RGB_MAGIC): Likewise.
40857 (LINE_MIN): Likewise.
40858 (LINE_MAX): Likewise.
40859 (FBTEST_STEP): Likewise.
40860 (FBTEST_COUNT): Likewise.
40861 (fb_list): New variable.
40862 (grub_find_video_card): Remove function.
40863 (find_framebuf): New function.
40864 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40865 line length.
40866
40867 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40868 problem for x86_64.
40869
40870 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40871
40872 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40873
40874 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40875 coding tool name.
40876
40877 2009-02-22 Robert Millan <rmh@aybabtu.com>
40878
40879 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40880 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40881 in our relocation, instead of using it directly from heap. Also
40882 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40883
40884 2009-02-21 Robert Millan <rmh@aybabtu.com>
40885
40886 Implement USB keyboard support (based on patch by Marco Gerards)
40887
40888 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40889 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40890 (usb_keyboard_mod_LDFLAGS): New variables.
40891
40892 * term/usb_keyboard.c: New file.
40893
40894 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40895
40896 Corrected wrong declaration
40897
40898 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40899
40900 2009-02-14 Christian Franke <franke@computer.org>
40901
40902 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40903 (grub_lspci_iter): Print class code and programming interface byte.
40904
40905 2009-02-14 Christian Franke <franke@computer.org>
40906
40907 * gendistlist.sh: Ignore `.svn' directories.
40908
40909 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40910
40911 * fs/fat.c: Add 2009 to Copyright line.
40912
40913 2009-02-14 Christian Franke <franke@computer.org>
40914
40915 * commands/hdparm.c: New file. Provides `hdparm' command
40916 which sends ATA commands via grub_disk_ata_pass_through ().
40917
40918 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40919
40920 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40921 and <grub/cpu/io.h> to include/grub/ata.h.
40922 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40923 (GRUB_CDROM_SECTOR_SIZE): Remove.
40924 (GRUB_ATA_*): Move to include/grub/ata.h.
40925 (GRUB_ATAPI_*): Likewise.
40926 (enum grub_ata_commands): Likewise.
40927 (enum grub_ata_timeout_milliseconds): Likewise.
40928 (struct grub_ata_device): Likewise.
40929 (grub_ata_regset): Likewise.
40930 (grub_ata_regget): Likewise.
40931 (grub_ata_regset2): Likewise.
40932 (grub_ata_regget2): Likewise.
40933 (grub_ata_check_ready): Likewise.
40934 (grub_ata_wait_not_busy): Remove static, exported in
40935 include/grub/ata.h.
40936 (grub_ata_wait_drq): Likewise.
40937 (grub_ata_pio_read): Likewise.
40938
40939 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40940 function for hdparm.mod.
40941
40942 * include/grub/ata.h: New file, contains declarations from
40943 disk/ata.c.
40944 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40945
40946 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40947 (grub_disk_ata_pass_through): New exported variable.
40948
40949 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40950
40951 2009-02-13 Colin D Bennett <colin@gibibit.com>
40952
40953 Support multiple fallback entries, and provide an API to support
40954 executing default+fallback menu entries. Renamed the `terminal' menu
40955 viewer to `text'.
40956
40957 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40958 variable declaration.
40959 (grub_menu_execute_callback): New structure declaration.
40960 (grub_menu_execute_callback_t): New typedef.
40961 (grub_menu_execute_with_fallback): New function declaration.
40962 (grub_menu_get_entry): Likewise.
40963 (grub_menu_get_timeout): Likewise.
40964 (grub_menu_set_timeout): Likewise.
40965
40966 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40967
40968 * normal/menu.c (grub_wait_after_message): Moved to
40969 `normal/menu_text.c'.
40970 (draw_border): Likewise.
40971 (print_message): Likewise.
40972 (print_entry): Likewise.
40973 (print_entries): Likewise.
40974 (grub_menu_init_page): Likewise.
40975 (get_entry_number): Likewise.
40976 (print_timeout): Likewise.
40977 (run_menu): Likewise.
40978 (grub_menu_execute_entry): Likewise.
40979 (show_text_menu): Likewise.
40980 (get_and_remove_first_entry_number): New function.
40981 (grub_menu_execute_with_fallback): Likewise.
40982 (get_entry): Renamed to ...
40983 (grub_menu_get_entry): .. this and made it global.
40984 (get_timeout): Renamed to ...
40985 (grub_menu_get_timeout): ... this and made it global.
40986 (set_timeout): Renamed to ...
40987 (grub_menu_set_timeout): ... this and made it global.
40988 (grub_normal_terminal_menu_viewer): Renamed to ...
40989 (grub_normal_text_menu_viewer): ... this.
40990
40991 * normal/menu_text.c: New file. Extracted text-menu-specific code
40992 from normal/menu.c.
40993
40994 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40995 (normal_mod_SOURCES): Likewise.
40996
40997 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40998 (normal_mod_SOURCES): Likewise.
40999
41000 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41001 (normal_mod_SOURCES): Likewise.
41002
41003 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41004 (normal_mod_SOURCES): Likewise.
41005
41006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41007 (normal_mod_SOURCES): Likewise.
41008
41009 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41010 (normal_mod_SOURCES): Likewise.
41011
41012 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41013 (normal_mod_SOURCES): Likewise.
41014
41015 2009-02-11 Robert Millan <rmh@aybabtu.com>
41016
41017 * util/grub.d/00_header.in: Update old reference to `font' command.
41018
41019 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41020
41021 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41022
41023 Based on patch from Javier Martín.
41024
41025 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41026
41027 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41028 to avoid false positives with FAT.
41029 (grub_fstest_SOURCES): Likewise.
41030 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41031 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41033 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41034 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41035 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41036
41037 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41038
41039 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41040 bpb.version_specific.fat12_or_fat16.fstype and
41041 bpb.version_specific.fat32.fstype.
41042
41043 2009-02-08 Robert Millan <rmh@aybabtu.com>
41044
41045 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41046
41047 2009-02-08 Robert Millan <rmh@aybabtu.com>
41048
41049 * Makefile.in (host_os, host_cpu): New variables.
41050 (target_os): Remove. Update all users.
41051
41052 2009-02-08 Marco Gerards <marco@gnu.org>
41053
41054 * Makefile.in (enable_grub_emu_usb): New variable.
41055 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41056 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41057 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41058 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41059 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41060 `usbtest.mod' and `usbms.mod'.
41061 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41062 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41063 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41064 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41065 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41066 variables.
41067
41068 * disk/usbms.c: New file.
41069
41070 * include/grub/usb.h: Likewise.
41071
41072 * include/grub/usbtrans.h: Likewise.
41073
41074 * include/grub/usbdesc.h: Likewise.
41075
41076 * bus/usb/usbtrans.c: Likewise.
41077
41078 * bus/usb/ohci.c: Likewise.
41079
41080 * bus/usb/uhci.c: Likewise.
41081
41082 * bus/usb/usbhub.c: Likewise.
41083
41084 * bus/usb/usb.c: Likewise.
41085
41086 * commands/usbtest.c: Likewise.
41087
41088 * util/usb.c: Likewise.
41089
41090 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41091
41092 * configure.ac: Test for libusb presence.
41093
41094 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41095
41096 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41097
41098 * kern/mm.c: Add more comments.
41099
41100 2009-02-08 Robert Millan <rmh@aybabtu.com>
41101
41102 Patch from Javier Martín.
41103 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41104 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41105
41106 2009-02-08 Robert Millan <rmh@aybabtu.com>
41107
41108 * fs/cpio.c: Split tar functionality to ...
41109 * fs/tar.c: ... here (new file). Update all users.
41110
41111 2009-02-07 Robert Millan <rmh@aybabtu.com>
41112
41113 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41114 backward-incompatible features.
41115
41116 Based on patch from Javier Martín, with some adjustments.
41117
41118 2009-02-07 Michael Scherer <misc@mandriva.org>
41119
41120 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41121
41122 2009-02-07 Robert Millan <rmh@aybabtu.com>
41123
41124 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41125 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41126 after the RAID stuff.
41127
41128 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41129
41130 Fixes problem when running vbetest command as reported by
41131 Vladimir Serbinenko <phcoder@gmail.com>.
41132
41133 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41134
41135 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41136
41137 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41138 /dev/md/NpN style mdraid devices.
41139
41140 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41141
41142 * util/unifont2pff.rb: Remove.
41143
41144 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41145
41146 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41147 `#'.
41148
41149 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41150
41151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41152 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41153 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41154 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41156 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41157 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41158
41159 2009-02-02 Christian Franke <franke@computer.org>
41160
41161 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41162
41163 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41164
41165 * INSTALL: Note that we now require at least autoconf 2.59 and
41166 that LZO is optional.
41167
41168 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41169
41170 Base on patch on bug #24154 created by Tomas Tintera
41171 <trosos@seznam.cz>.
41172
41173 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41174
41175 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41176
41177 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41178 <bero@arklinux.org>.
41179
41180 * normal/parser.y (script_init): Add missing semicolon.
41181
41182 2009-01-31 Colin D Bennett <colin@gibibit.com>
41183
41184 * normal/main.c: Add include to grub/menu_viewer.h.
41185 (free_menu_entry_classes): Added.
41186 (grub_normal_menu_addentry): Added class property handling.
41187 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41188 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41189
41190 * normal/menu_viewer.c: New file.
41191
41192 * normal/menu.c (run_menu_entry): Renamed to ...
41193 (grub_menu_execute_entry): ... this and made it as global.
41194 (grub_menu_run): Renamed to ...
41195 (show_text_menu): ... this and made it local.
41196 (show_text_menu): Adapt to new function names.
41197 (grub_normal_terminal_menu_viewer): New global variable.
41198
41199 * include/grub/menu.h: New file.
41200
41201 * include/grub/menu_viewer.h: New file.
41202
41203 * include/grub/normal.h: Added include to grub/menu.h.
41204 (grub_menu_entry): Moved to include/grub/menu.h.
41205 (grub_menu_entry_t): Likewise.
41206 (grub_menu): Likewise.
41207 (grub_menu_t): Likewise.
41208 (grub_normal_terminal_menu_viewer): Added.
41209 (grub_menu_execute_entry): Likewise.
41210 (grub_menu_run): Removed.
41211
41212 * DISTLIST: Added include/grub/menu.h.
41213 Added include/grub/menu_viewer.h.
41214 Added normal/menu_viewer.c.
41215
41216 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41217
41218 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41219 arglist for menutitle arguments.
41220
41221 * normal/main.c (grub_normal_menu_addentry): Likewise.
41222
41223 * normal/parser.y (menuentry): Likewise.
41224
41225 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41226
41227 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41228 (grub_script_create_cmdmenu): Likewise.
41229
41230 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41231
41232 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41233 changes.
41234
41235 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41236
41237 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41238
41239 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41240
41241 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41242
41243 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41244
41245 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41246
41247 2009-01-30 Christian Franke <franke@computer.org>
41248
41249 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41250 in option help text.
41251
41252 2009-01-27 Pavel Roskin <proski@gnu.org>
41253
41254 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41255
41256 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41257
41258 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41259
41260 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41261
41262 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41263 unregister function.
41264
41265 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41266
41267 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41268
41269 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41270
41271 * util/grub-mkfont.c (usage): Fix typo.
41272
41273 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41274
41275 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41276
41277 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41278
41279 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41280
41281 * kern/misc.c (grub_strcasecmp): New function.
41282 (grub_strcasecmp): Use grub_size_t instead of int for length.
41283 Fix return value.
41284 * include/grub/misc.h: Update function prototypes.
41285
41286 2009-01-26 Robert Millan <rmh@aybabtu.com>
41287
41288 * configure.ac: Fix cross-compilation check.
41289
41290 2009-01-22 Christian Franke <franke@computer.org>
41291
41292 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41293 (precision) digit string. Allow `.format2' without `format1' (width).
41294 Limit input chars for `%s' output to `format2' if specified. This is
41295 compatible with standard printf ().
41296
41297 2009-01-22 Christian Franke <franke@computer.org>
41298
41299 * disk/ata.c (grub_ata_wait_status): Replace by ...
41300 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41301 other status bits may be invalid while BSY is asserted.
41302 (grub_ata_check_ready): New function.
41303 (grub_ata_cmd): Removed.
41304 (grub_ata_wait_drq): New function.
41305 (grub_ata_strncpy): Remove inline.
41306 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41307 and error check now done by grub_ata_wait_drq ().
41308 (grub_ata_pio_write): Likewise.
41309 (grub_atapi_identify): Set DEV before check for !BSY. Use
41310 grub_ata_wait_drq () to wait for data.
41311 (grub_ata_device_initialize): Add status register check to
41312 detect missing SATA slave devices. Add debug messages.
41313 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41314 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41315 transfer loop by grub_ata_pio_write ().
41316 (grub_ata_identify): Set DEV before check for !BSY. Use
41317 grub_ata_wait_drq () to wait for data.
41318 (grub_ata_setaddress): Set DEV before check for !BSY.
41319 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41320 read/write in one loop. Fix invalid command on write. Fix incomplete
41321 command on (size % batch) == 0. Add missing error check after write of
41322 last block. Add debug messages.
41323 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41324
41325 2009-01-19 Christian Franke <franke@computer.org>
41326
41327 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41328 (GRUB_ATAPI_IREASON_*): Likewise.
41329 (grub_ata_pio_write): Fix timeout error return.
41330 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41331 (grub_atapi_wait_drq): New function.
41332 (grub_atapi_packet): New parameter `size'.
41333 Use grub_atapi_wait_drq () and direct write instead of
41334 grub_ata_pio_write ().
41335 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41336 reads the number of bytes requested by the device for each DRQ
41337 assertion.
41338 (grub_atapi_write): Remove old implementation, return not
41339 implemented instead.
41340
41341 2009-01-19 Christian Franke <franke@computer.org>
41342
41343 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41344 of 512 to calculate data size.
41345 (grub_scsi_read12): Likewise.
41346 (grub_scsi_write10): Likewise.
41347 (grub_scsi_write12): Likewise.
41348 (grub_scsi_read): Adjust size according to blocksize.
41349 Add checks for invalid blocksize and unaligned transfer.
41350
41351 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41352
41353 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41354
41355 * term/gfxterm.c (write_char): Fix background rendering for wide
41356 width glyphs.
41357
41358 2009-01-19 Robert Millan <rmh@aybabtu.com>
41359
41360 * config.guess: Update to latest version from config git.
41361 * config.sub: Likewise.
41362
41363 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41364
41365 * Makefile.in: Change font compilation to use new grub-mkfont instead
41366 of java version.
41367
41368 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41369 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41370 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41371 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41372 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41373 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41374 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41375 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41376 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41377
41378 2009-01-16 Christian Franke <franke@computer.org>
41379
41380 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41381 (enum grub_ata_timeout_milliseconds): New enum.
41382 (grub_ata_wait_status): Add parameter milliseconds.
41383 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41384 recovery from timed-out commands.
41385 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41386 return grub_errno instead of REG_ERROR.
41387 (grub_ata_pio_write): Add parameter milliseconds.
41388 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41389 Pass milliseconds to grub_ata_wait_status () and
41390 grub_ata_pio_read ().
41391 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41392 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41393 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41394 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41395 It is not suitable for device detection, because DEV bit is ignored,
41396 the command may run too long, and not all devices set the signature
41397 properly.
41398 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41399 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41400 Fix device selection, DEV bit must be set first to address the registers
41401 of the correct device.
41402 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41403 grub_ata_pio_read/write ().
41404 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41405 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41406
41407 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41408
41409 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41410
41411 2009-01-13 Bean <bean123ch@gmail.com>
41412
41413 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41414
41415 2009-01-13 Bean <bean123ch@gmail.com>
41416
41417 * Makefile.in: (enable_grub_mkfont): New variable.
41418 (freetype_cflags): Likewise.
41419 (freetype_libs): Likewise.
41420
41421 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41422 (grub_mkfont_SOURCES): New variable.
41423 (grub_mkfont_CFLAGS): Likewise.
41424 (grub_mkfont_LDFLAGS): Likewise.
41425
41426 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41427 library if `--enable-grub-mkfont' is requested.
41428 (enable_grub_mkfont): New variable.
41429 (freetype_cflags): Likewise.
41430 (freetype_libs): Likewise.
41431
41432 * util/grub-mkfont.c: New file.
41433
41434 2009-01-12 Christian Franke <franke@computer.org>
41435
41436 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41437 mode check. Fix setting of compat_use[].
41438
41439 2009-01-10 Robert Millan <rmh@aybabtu.com>
41440
41441 Update a few copyright years which we forgot to do in 2008 (only for
41442 files whose changes made in 2008 were copyright-significant)
41443
41444 * Makefile.in: Add 2008 to Copyright line.
41445 * disk/ieee1275/ofdisk.c: Likewise.
41446 * disk/efi/efidisk.c: Likewise.
41447 * kern/dl.c: Likewise.
41448 * kern/sparc64/ieee1275/init.c: Likewise.
41449 * kern/mm.c: Likewise.
41450 * kern/efi/mm.c: Likewise.
41451 * boot/i386/pc/boot.S: Likewise.
41452 * genfslist.sh: Likewise.
41453 * fs/iso9660.c: Likewise.
41454 * fs/hfs.c: Likewise.
41455 * fs/jfs.c: Likewise.
41456 * fs/minix.c: Likewise.
41457 * fs/ufs.c: Likewise.
41458 * gensymlist.sh.in: Likewise.
41459 * genkernsyms.sh.in: Likewise.
41460 * include/grub/misc.h: Likewise.
41461 * include/grub/types.h: Likewise.
41462 * include/grub/symbol.h: Likewise.
41463 * include/grub/elf.h: Likewise.
41464 * include/grub/kernel.h: Likewise.
41465 * include/grub/disk.h: Likewise.
41466 * include/grub/dl.h: Likewise.
41467 * include/grub/i386/linux.h: Likewise.
41468 * include/grub/i386/pc/biosdisk.h: Likewise.
41469 * include/grub/efi/api.h: Likewise.
41470 * include/grub/efi/pe32.h: Likewise.
41471 * include/grub/util/misc.h: Likewise.
41472 * normal/execute.c: Likewise.
41473 * normal/arg.c: Likewise.
41474 * normal/completion.c: Likewise.
41475 * normal/lexer.c: Likewise.
41476 * normal/parser.y: Likewise.
41477 * normal/misc.c: Likewise.
41478 * commands/i386/pc/vbeinfo.c: Likewise.
41479 * commands/hexdump.c: Likewise.
41480 * commands/terminal.c: Likewise.
41481 * commands/ls.c: Likewise.
41482 * commands/help.c: Likewise.
41483 * partmap/pc.c: Likewise.
41484 * loader/efi/chainloader.c: Likewise.
41485 * loader/multiboot_loader.c: Likewise.
41486 * loader/i386/pc/multiboot2.c: Likewise.
41487 * term/efi/console.c: Likewise.
41488 * term/i386/pc/serial.c: Likewise.
41489 * util/lvm.c: Likewise.
41490 * util/console.c: Likewise.
41491 * util/i386/efi/grub-mkimage.c: Likewise.
41492 * util/raid.c: Likewise.
41493
41494 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41495
41496 * commands/videotest.c: Removed include to grub/machine/memory.h.
41497
41498 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41499 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41500 (video_mod_SOURCES): Removed.
41501 (video_mod_CFLAGS): Likewise.
41502 (video_mod_LDFLAGS): Likewise.
41503 (gfxterm_mod_SOURCES): Likewise.
41504 (gfxterm_mod_CFLAGS): Likewise.
41505 (gfxterm_mod_LDFLAGS): Likewise.
41506 (videotest_mod_SOURCES): Likewise.
41507 (videotest_mod_CFLAGS): Likewise.
41508 (videotest_mod_LDFLAGS): Likewise.
41509 (bitmap_mod_SOURCES): Likewise.
41510 (bitmap_mod_CFLAGS): Likewise.
41511 (bitmap_mod_LDFLAGS): Likewise.
41512 (tga_mod_SOURCES): Likewise.
41513 (tga_mod_CFLAGS): Likewise.
41514 (tga_mod_LDFLAGS): Likewise.
41515 (jpeg_mod_SOURCES): Likewise.
41516 (jpeg_mod_CFLAGS): Likewise.
41517 (jpeg_mod_LDFLAGS): Likewise.
41518 (png_mod_SOURCES): Likewise.
41519 (png_mod_CFLAGS): Likewise.
41520 (png_mod_LDFLAGS): Likewise.
41521
41522 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41523 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41524 (video_mod_SOURCES): Added.
41525 (video_mod_CFLAGS): Likewise.
41526 (video_mod_LDFLAGS): Likewise.
41527 (videotest_mod_SOURCES): Likewise.
41528 (videotest_mod_CFLAGS): Likewise.
41529 (videotest_mod_LDFLAGS): Likewise.
41530 (bitmap_mod_SOURCES): Likewise.
41531 (bitmap_mod_CFLAGS): Likewise.
41532 (bitmap_mod_LDFLAGS): Likewise.
41533 (tga_mod_SOURCES): Likewise.
41534 (tga_mod_CFLAGS): Likewise.
41535 (tga_mod_LDFLAGS): Likewise.
41536 (jpeg_mod_SOURCES): Likewise.
41537 (jpeg_mod_CFLAGS): Likewise.
41538 (jpeg_mod_LDFLAGS): Likewise.
41539 (png_mod_SOURCES): Likewise.
41540 (png_mod_CFLAGS): Likewise.
41541 (png_mod_LDFLAGS): Likewise.
41542 (gfxterm_mod_SOURCES): Likewise.
41543 (gfxterm_mod_CFLAGS): Likewise.
41544 (gfxterm_mod_LDFLAGS): Likewise.
41545
41546 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41547 grub/machine/console.h.
41548
41549 2009-01-04 Jerone Young <jerone@gmail.com>
41550
41551 Make on screen instructions clearer
41552
41553 Based on patch created by Jidanni <jidanni@jidanni.org>
41554
41555 * normal/menu.c: print clearer instructions on the screen
41556
41557 2009-01-02 Colin D Bennett <colin@gibibit.com>
41558
41559 New font engine.
41560
41561 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41562 build system and fixed gfxterm.c to work with different sized fonts.
41563
41564 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41565
41566 * configure: Re-generated.
41567
41568 * DISTLIST: Removed font/manager.c.
41569 Added font/font.c.
41570 Added font/font_cmd.c.
41571
41572 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41573 compilation.
41574
41575 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41576
41577 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41578
41579 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41580
41581 * normal/menu.c: Likewise.
41582
41583 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41584 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41585
41586 * include/grub/font.h: Replaced with new file.
41587
41588 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41589 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41590 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41591 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41592 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41593 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41594 fg_red, fg_green, fg_blue, fg_alpha.
41595 (grub_video_adapter): Removed blit_glyph.
41596 (grub_video_blit_glyph): Removed.
41597
41598 * font/manager.c: Removed file.
41599
41600 * font/font.c: New file.
41601
41602 * font/font_cmd.c: Likewise.
41603
41604 * video/video.c (grub_video_blit_glyph): Removed.
41605
41606 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41607 (grub_video_vbe_map_rgba): Likewise.
41608 (grub_video_vbe_unmap_color_int): Likewise.
41609 (grub_video_vbe_blit_glyph): Removed.
41610 (grub_video_vbe_adapter): Removed blit_glyph.
41611
41612 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41613 (get_pixel): Likewise.
41614 (set_pixel): Likewise.
41615
41616 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41617
41618 * term/gfxterm.c: Adapted to new font engine.
41619
41620 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41621
41622 * term/i386/pc/vga.c: Likewise.
41623
41624 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41625
41626 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41627
41628 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41629
41630 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41631
41632 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41633
41634 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41635
41636 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41637
41638 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41639
41640 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41641
41642 * util/grub.d/00_header.in: Changed to use new loadfont command.
41643
41644 * util/grub-mkconfig_lib.in: Changed font extension.
41645
41646 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41647
41648 * util/getroot.c (grub_util_get_grub_dev): Add support for
41649 /dev/md/dNNpNN style partitionable mdraid devices.
41650
41651 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41652
41653 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41654 at a time limit of the PXE TFTP API correctly.
41655 (grub_pxefs_close): Likewise.
41656
41657 2008-11-29 Robert Millan <rmh@aybabtu.com>
41658
41659 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41660 grub_ata_device_initialize() calls.
41661
41662 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41663
41664 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41665 iteration failed.
41666 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41667
41668 2008-11-28 Robert Millan <rmh@aybabtu.com>
41669
41670 Fix build on powerpc-ieee1275. Based on patch created by
41671 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41672 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41673 `kern/ieee1275/mmap.c'.
41674 * include/grub/powerpc/ieee1275/memory.h: New file.
41675
41676 Provide grub-install on coreboot.
41677 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41678 (grub_install_SOURCES): New variable.
41679 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41680 usable on coreboot.
41681
41682 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41683
41684 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41685 to `grub_term_input_t'.
41686 (grub_term_get_current_output): Change return type to
41687 `grub_term_output_t'.
41688
41689 2008-11-22 Robert Millan <rmh@aybabtu.com>
41690
41691 Fix breakage on coreboot due to declaration mismatch.
41692 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41693 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41694 grub_vga_text_cls().
41695
41696 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41697 comments. Avoid copying one more byte than necessary (just in case).
41698
41699 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41700 to 0x200000 (avoids trouble with some OFW implementations, and matches
41701 with the one in Yaboot).
41702 Reported by Manoel Abranches
41703
41704 2008-11-20 Robert Millan <rmh@aybabtu.com>
41705
41706 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41707 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41708
41709 * util/grub-mkconfig_lib.in (grub_warn): New function.
41710 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41711 warnings, to obtain consistent formatting.
41712 * util/grub.d/00_header.in: Likewise.
41713 * util/update-grub_lib.in: Likewise.
41714
41715 * loader/i386/linux.c (allocate_pages): Fix a warning.
41716 Move comment text to `#error' stanza.
41717
41718 Harmonize ieee1275's grub_available_iterate() with the generic
41719 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41720 build problem on i386-ieee1275):
41721 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41722 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41723 parameter `type'. Update all users of this function.
41724 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41725 `kern/ieee1275/mmap.c'.
41726 * kern/ieee1275/init.c
41727 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41728 with ...
41729 (grub_machine_mmap_iterate): ... this.
41730 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41731 return type to `grub_err_t'. Update all implementations of this
41732 function prototype.
41733 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41734 Likewise.
41735
41736 Add `lsmmap' command (lists firmware-provided memory map):
41737 * commands/lsmmap.c: New file.
41738 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41739 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41740 variables.
41741 * conf/powerpc-ieee1275.rmk: Likewise.
41742 * conf/i386-coreboot.rmk: Likewise.
41743 * conf/i386-ieee1275.rmk: Likewise.
41744
41745 2008-11-19 Robert Millan <rmh@aybabtu.com>
41746
41747 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41748 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41749 constraints to initrd allocation (based on code from
41750 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41751 for Linux to find it.
41752
41753 2008-11-14 Robert Millan <rmh@aybabtu.com>
41754
41755 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41756 order to cope with duplicate slashes.
41757
41758 2008-11-14 Robert Millan <rmh@aybabtu.com>
41759
41760 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41761 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41762 don't want to mess with lower memory, because it is used in the Linux
41763 loader.
41764
41765 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41766 an appropriate place in lower memory, between 0x10000 and 0x90000,
41767 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41768 is in our heap (probably as a result of it being corrupted during
41769 decompression). Add #error instance with comment to explain why this
41770 loader isn't currently usable on PC/BIOS.
41771
41772 2008-11-14 Robert Millan <rmh@aybabtu.com>
41773
41774 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41775 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41776
41777 2008-11-12 Robert Millan <rmh@aybabtu.com>
41778
41779 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41780
41781 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41782 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41783 from here ...
41784 * include/grub/i386/pc/memory.h: ... to here.
41785
41786 2008-11-12 Robert Millan <rmh@aybabtu.com>
41787
41788 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41789 split).
41790
41791 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41792 (grub_console_cur_color, grub_console_real_putchar)
41793 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41794 (grub_console_setcolorstate, grub_console_setcolor)
41795 (grub_console_getcolor): Move from here ...
41796 * include/grub/i386/vga_common.h: ... to here (new file).
41797
41798 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41799 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41800 `<grub/i386/io.h>'.
41801 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41802 `<grub/i386/vga_common.h>'.
41803
41804 2008-11-12 Robert Millan <rmh@aybabtu.com>
41805
41806 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41807 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41808 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41809 variables.
41810 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41811 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41812
41813 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41814 grub_console_init() with call to grub_vga_text_init().
41815 (grub_machine_fini): Replace call to
41816 grub_console_fini() with call to grub_vga_text_fini() and
41817 grub_at_keyboard_fini().
41818
41819 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41820 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41821 (grub_console_setcolorstate, grub_console_setcolor)
41822 (grub_console_getcolor): New function prototypes.
41823
41824 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41825 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41826 (grub_vga_text_setcursor): Static-ize.
41827 (grub_vga_text_term): New structure.
41828 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41829
41830 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41831 (grub_console_cur_color, grub_console_standard_color)
41832 (grub_console_normal_color, grub_console_highlight_color)
41833 (map_char, grub_console_putchar, grub_console_getcharwidth)
41834 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41835 (grub_console_getcolor): Move from here ...
41836 * term/i386/vga_common.c: ... to here (same function names).
41837
41838 2008-11-12 Robert Millan <rmh@aybabtu.com>
41839
41840 Use newly-added Multiboot support in coreboot.
41841
41842 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41843 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41844
41845 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41846 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41847 (codestart): Store the MBI in `startup_multiboot_info' when we're
41848 being loaded using Multiboot.
41849
41850 * kern/i386/coreboot/init.c (grub_machine_init): Move
41851 grub_at_keyboard_init() call to beginning of function (useful for
41852 debugging). Call grub_machine_mmap_init() before attempting to use
41853 grub_machine_mmap_iterate().
41854 (grub_lower_mem, grub_upper_mem): Move from here ...
41855 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41856 here (new file).
41857
41858 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41859 function prototype.
41860
41861 2008-11-12 Robert Millan <rmh@aybabtu.com>
41862
41863 Fix a regression introduced by the at_keyboard.mod split. Because
41864 some terminals are default on some platforms and non-default on
41865 others, the first terminal being registered determines which is
41866 going to be default.
41867
41868 * kern/term.c (grub_term_register_input): If this is the first
41869 terminal being registered, set it as the current one.
41870 (grub_term_register_output): Likewise.
41871
41872 * term/efi/console.c (grub_console_init): Do not call
41873 grub_term_set_current_output() or grub_term_set_current_input().
41874 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41875 * term/i386/pc/console.c (grub_console_init): Likewise.
41876 (grub_console_fini): Do not call grub_term_set_current_input()
41877 (but leave grub_term_set_current_output() to restore text mode).
41878
41879 2008-11-10 Robert Millan <rmh@aybabtu.com>
41880
41881 * util/grub.d/00_header.in: Add backward compatibility check for
41882 versions of terminal.mod that don't understand `terminal_input' or
41883 `terminal_output'.
41884
41885 2008-11-09 Robert Millan <rmh@aybabtu.com>
41886
41887 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41888 `terminal_input' / `terminal_output', not `terminal'.
41889
41890 2008-11-08 Robert Millan <rmh@aybabtu.com>
41891
41892 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41893 (DISTCLEANFILES): Add `build_env.mk'.
41894
41895 2008-11-08 Robert Millan <rmh@aybabtu.com>
41896
41897 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41898 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41899 members. Update all users.
41900 * util/console.c (grub_ncurses_term): Split in ...
41901 (grub_ncurses_term_input): ... this, and ...
41902 (grub_ncurses_term_output): ... this. Update all users.
41903 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41904
41905 2008-11-08 Robert Millan <rmh@aybabtu.com>
41906
41907 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41908 (PKGDATA): Add $(pkgdata_SRCDIR).
41909 (pkglib_BUILDDIR): New variable.
41910 (pkgdata_SRCDIR): New variable.
41911 (build_env.mk): New target.
41912 (include_DATA): New variable.
41913 (install-local): Install $(include_DATA) files in $(includedir).
41914
41915 2008-11-07 Pavel Roskin <proski@gnu.org>
41916
41917 * gendistlist.sh: Use C locale for sorting to ensure consistent
41918 output on all systems.
41919
41920 * util/grub.d/00_header.in: Remove incorrect space before
41921 "serial".
41922
41923 2008-11-07 Robert Millan <rmh@aybabtu.com>
41924
41925 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41926 per specification.
41927 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41928 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41929 (based on find_multi_boot1_header).
41930 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41931 using find_multi_boot2_header(), and abort if neither Multiboot or
41932 Multiboot headers were found.
41933
41934 2008-11-07 Robert Millan <rmh@aybabtu.com>
41935
41936 Modularize at_keyboard.mod:
41937
41938 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41939 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41940 (at_keyboard_mod_LDFLAGS): New variables.
41941
41942 Actual terminal split:
41943
41944 * include/grub/term.h (struct grub_term): Split in ...
41945 (struct grub_term_input): ... this, and ...
41946 (struct grub_term_output): ... this. Update all users.
41947 (grub_term_set_current): Split in ...
41948 (grub_term_set_current_input): ... this, and ...
41949 (grub_term_set_current_output): ... this.
41950 (grub_term_get_current): Split in ...
41951 (grub_term_get_current_input): ... this, and ...
41952 (grub_term_get_current_output): ... this.
41953 (grub_term_register): Split in ...
41954 (grub_term_register_input): ... this, and ...
41955 (grub_term_register_output): ... this.
41956 (grub_term_unregister): Split in ...
41957 (grub_term_unregister_input): ... this, and ...
41958 (grub_term_unregister_output): ... this.
41959 (grub_term_iterate): Split in ...
41960 (grub_term_iterate_input): ... this, and ...
41961 (grub_term_iterate_output): ... this.
41962
41963 * kern/term.c (grub_term_list): Split in ...
41964 (grub_term_list_input): ... this, and ...
41965 (grub_term_list_output): ... this. Update all users.
41966 (grub_cur_term): Split in ...
41967 (grub_cur_term_input): ... this, and ...
41968 (grub_cur_term_output): ... this. Update all users.
41969 (grub_term_set_current): Split in ...
41970 (grub_term_set_current_input): ... this, and ...
41971 (grub_term_set_current_output): ... this.
41972 (grub_term_get_current): Split in ...
41973 (grub_term_get_current_input): ... this, and ...
41974 (grub_term_get_current_output): ... this.
41975 (grub_term_register): Split in ...
41976 (grub_term_register_input): ... this, and ...
41977 (grub_term_register_output): ... this.
41978 (grub_term_unregister): Split in ...
41979 (grub_term_unregister_input): ... this, and ...
41980 (grub_term_unregister_output): ... this.
41981 (grub_term_iterate): Split in ...
41982 (grub_term_iterate_input): ... this, and ...
41983 (grub_term_iterate_output): ... this.
41984
41985 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41986 a check for input and one for output (and only attempt to get keys
41987 from user when input works).
41988
41989 * util/grub-probe.c (grub_term_get_current): Split in ...
41990 (grub_term_get_current_input): ... this, and ...
41991 (grub_term_get_current_output): ... this.
41992 * util/grub-fstest.c: Likewise.
41993 * util/i386/pc/grub-setup.c: Likewise.
41994 * util/grub-editenv.c: Likewise.
41995
41996 Portability adjustments:
41997
41998 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41999 `term/i386/pc/at_keyboard.c'.
42000 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42001 grub_keyboard_controller_init() (now handled by terminal .init).
42002 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42003 grub_at_keyboard_init().
42004 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42005 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42006 at_keyboard.mod via input terminal interface).
42007 * include/grub/i386/coreboot/console.h: Convert into a stub for
42008 `<grub/i386/pc/console.h>'.
42009
42010 Migrate full terminals to new API:
42011
42012 * term/efi/console.c (grub_console_term): Split into ...
42013 (grub_console_term_input): ... this, and ...
42014 (grub_console_term_output): ... this. Update all users.
42015 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42016 (grub_ofconsole_init): Split into ...
42017 (grub_ofconsole_init_input): ... this, and ...
42018 (grub_ofconsole_init_output): ... this.
42019 (grub_ofconsole_term): Split into ...
42020 (grub_ofconsole_term_input): ... this, and ...
42021 (grub_ofconsole_term_output): ... this. Update all users.
42022 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42023 (grub_serial_term_input): ... this, and ...
42024 (grub_serial_term_output): ... this. Update all users.
42025 * term/i386/pc/console.c (grub_console_term): Split into ...
42026 (grub_console_term_input): ... this, and ...
42027 (grub_console_term_output): ... this. Update all users.
42028 (grub_console_term_input): Only enable it on PC/BIOS platform.
42029 (grub_console_init): Remove grub_keyboard_controller_init() call.
42030
42031 Migrate input terminals to new API:
42032
42033 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42034 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42035 i386-specific anyway).
42036 (grub_console_checkkey): Rename to ...
42037 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42038 users.
42039 (grub_keyboard_controller_orig): New variable.
42040 (grub_console_getkey): Rename to ...
42041 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42042 users.
42043 (grub_keyboard_controller_init): Static-ize. Save original
42044 controller value so that it can be restored ...
42045 (grub_keyboard_controller_fini): ... here (new function).
42046 (grub_at_keyboard_term): New structure.
42047 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42048 functions.
42049
42050 Migrate output terminals to new API:
42051
42052 * term/i386/pc/vga.c (grub_vga_term): Change type to
42053 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42054 members. Update all users.
42055 * term/gfxterm.c (grub_video_term): Change type to
42056 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42057 members. Update all users.
42058 * include/grub/i386/pc/console.h (grub_console_checkkey)
42059 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42060 etc).
42061
42062 Migrate `terminal' command and userland tools to new API:
42063
42064 * commands/terminal.c (grub_cmd_terminal): Split into ...
42065 (grub_cmd_terminal_input): ... this, and ...
42066 (grub_cmd_terminal_output): ... this.
42067 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42068 `terminal_input' and `terminal_output'.
42069 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42070 `terminal_input' / `terminal_output' API.
42071 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42072 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42073 provided ${GRUB_TERMINAL}, convert it).
42074
42075 2008-11-04 Robert Millan <rmh@aybabtu.com>
42076
42077 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42078 for FreeBSD.
42079 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42080
42081 2008-11-03 Bean <bean123ch@gmail.com>
42082
42083 * kern/elf.c (grub_elf32_load): Revert to previous code.
42084 (grub_elf64_load): Likewise.
42085
42086 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42087
42088 2008-11-01 Robert Millan <rmh@aybabtu.com>
42089
42090 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42091 (TARGET_CPPFLAGS): Likewise.
42092 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42093
42094 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42095
42096 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42097
42098 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42099
42100 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42101 addition of objects until the code is not going to be able to fail.
42102
42103 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42104
42105 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42106 (add a missing NULL check, and correct them by moving the pointer
42107 operations after the actual check).
42108
42109 2008-10-29 Robert Millan <rmh@aybabtu.com>
42110
42111 * util/i386/pc/grub-install.in: Handle empty string as output from
42112 make_system_path_relative_to_its_root().
42113
42114 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42115
42116 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42117 circular metadata worst case scenario. If the metadata is circular
42118 then copy the wrap in place.
42119 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42120 project lib/format_text/layout.h
42121 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42122
42123 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42124
42125 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42126
42127 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42128
42129 * util/update-grub_lib.in: Mention filename in warning message.
42130
42131 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42132
42133 * NEWS: Update for rename of update-grub to grub-mkconfig.
42134
42135 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42136
42137 * util/update-grub_lib.in: Copy to ...
42138 * util/grub-mkconfig_lib.in: ... this. Update all users.
42139 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42140 * util/update-grub.in: Rename to ...
42141 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42142 option. Add `--output' option to allow users to specify the generated
42143 configuration file. Default to stdout.
42144 (update_grub_dir): Rename to ...
42145 (grub_mkconfig_dir): ... this.
42146 (grub_cfg): Default to an empty string.
42147 * conf/common.rmk (update-grub): Rename to ...
42148 (grub-mkconfig): ... this.
42149 (update-grub_lib): Copy to ...
42150 (grub-mkconfig_lib): ... this.
42151 (update-grub_SCRIPTS): Copy to ...
42152 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42153 (update-grub_DATA): Rename to ...
42154 (grub-mkconfig_DATA): ... this.
42155
42156 2008-09-28 Robert Millan <rmh@aybabtu.com>
42157
42158 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42159 to `modified'. Add the real `created' field.
42160 (grub_iso9660_uuid): Use `modified' rather than `created' for
42161 constructing the UUID.
42162
42163 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42164
42165 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42166 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42167
42168 2008-09-28 Bean <bean123ch@gmail.com>
42169
42170 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42171 Thanks to Christian Franke for finding this bug.
42172
42173 2008-09-25 Robert Millan <rmh@aybabtu.com>
42174
42175 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42176 instances of grub_util_get_disk_name() (see previous commit).
42177
42178 2008-09-25 Robert Millan <rmh@aybabtu.com>
42179
42180 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42181 `util/i386/get_disk_name.c'.
42182 * conf/i386-efi.rmk: Likewise.
42183 * conf/x86_64-efi.rmk: Likewise.
42184 * conf/i386-coreboot.rmk: Likewise.
42185 * conf/i386-ieee1275.rmk: Likewise.
42186 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42187 `util/ieee1275/get_disk_name.c'.
42188 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42189 * util/ieee1275/get_disk_name.c: Remove file.
42190 * util/i386/get_disk_name.c: Remove file.
42191 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42192 "hd%d" for device.map entries, rather than using
42193 grub_util_get_disk_name().
42194
42195 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42196
42197 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42198 warning.
42199 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42200
42201 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42202
42203 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42204 Changed to 0x5100.
42205 (GRUB_TERM_PPAGE): Changed to 0x4900.
42206
42207 2008-09-24 Robert Millan <rmh@aybabtu.com>
42208
42209 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42210 macros (they were i386-pc specific).
42211 * include/grub/sparc64/ieee1275/console.h: Likewise.
42212 * include/grub/efi/console.h: Likewise.
42213
42214 2008-09-22 Bean <bean123ch@gmail.com>
42215
42216 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42217 resident and in attribute list.
42218
42219 * include/grub/ntfs.h (BMP_LEN): Removed.
42220
42221 2008-09-22 Bean <bean123ch@gmail.com>
42222
42223 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42224 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42225
42226 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42227 error occurs, as grub_disk_open will call grub_disk_close, which will
42228 call p->close (scsi).
42229
42230 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42231
42232 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42233 (AC_PREREQ): Bumped to 2.59.
42234 (AC_TRY_COMPILE): Replace obsolete macro with ...
42235 (AC_COMPILE_IFELSE): ... this.
42236 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42237 (AC_LINK_IFELSE): ... this.
42238
42239 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42240
42241 * autogen.sh: Add a call to `gendistlist.sh'.
42242
42243 2008-09-19 Christian Franke <franke@computer.org>
42244
42245 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42246 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42247 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42248 Export __enable_execute_stack() to modules.
42249 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42250 New function.
42251
42252 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42253
42254 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42255 Sort the list.
42256
42257 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42258
42259 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42260 #include <grub/util/hostdisk.h>.
42261
42262 2008-09-08 Robert Millan <rmh@aybabtu.com>
42263
42264 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42265 segments when their filesz is zero (grub_file_read() interprets
42266 zero-size as "read until EOF", which results in memory corruption).
42267 Use `lowest_segment' rather than 0 for calculating the current
42268 segment load address.
42269
42270 2008-09-08 Robert Millan <rmh@aybabtu.com>
42271
42272 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42273 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42274 clobbered useful information.
42275
42276 2008-09-08 Robert Millan <rmh@aybabtu.com>
42277
42278 * include/grub/util/biosdisk.h: Move to ...
42279 * include/grub/util/hostdisk.h: ... here. Update all users.
42280 * util/biosdisk.c: Move to ...
42281 * util/hostdisk.c: ... here. Update all users.
42282
42283 2008-09-07 Robert Millan <rmh@aybabtu.com>
42284
42285 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42286 variables.
42287 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42288 and length can be stored directly in the `mbi->mmap_addr' and
42289 `mbi->mmap_length' struct fields.
42290
42291 2008-09-07 Robert Millan <rmh@aybabtu.com>
42292
42293 * conf/i386.rmk: New file. Provides declaration for building
42294 `cpuid.mod'.
42295 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42296 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42297 variables.
42298 Include `conf/i386.mk'.
42299 * conf/i386-efi.rmk: Likewise.
42300 * conf/x86_64-efi.rmk: Likewise.
42301 * conf/i386-coreboot.rmk: Likewise.
42302 * conf/i386-ieee1275.rmk: Likewise.
42303
42304 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42305
42306 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42307 Adds optimization support for BGR based modes.
42308
42309 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42310 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42311 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42312 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42313 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42314 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42315 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42316 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42317 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42318 (grub_video_i386_vbeblit_index_index): Likewise.
42319 (grub_video_i386_vbeblit_replace_directN): Added.
42320 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42321 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42322 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42323 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42324 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42325 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42326 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42327 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42328 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42329 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42330 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42331 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42332 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42333
42334 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42335 (grub_video_i386_vbefill_R8G8B8): Likewise.
42336 (grub_video_i386_vbefill_index): Likewise.
42337 (grub_video_i386_vbefill_direct32): Added.
42338 (grub_video_i386_vbefill_direct24): Likewise.
42339 (grub_video_i386_vbefill_direct16): Likewise.
42340 (grub_video_i386_vbefill_direct8): Likewise.
42341
42342 * include/grub/video.h (grub_video_blit_format): Removed
42343 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42344 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42345 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42346 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42347 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42348
42349 * video/video.c (grub_video_get_blit_format): Updated to use new
42350 blit formats. Added handling for 16 bit color modes.
42351
42352 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42353 fillers.
42354 (common_blitter): Updated to use new blitters.
42355
42356 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42357 Removed.
42358 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42359 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42360 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42361 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42362 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42363 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42364 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42365 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42366 (grub_video_i386_vbeblit_index_index): Likewise.
42367 (grub_video_i386_vbeblit_replace_directN): Added.
42368 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42369 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42370 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42371 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42372 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42373 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42374 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42375 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42376 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42377 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42378 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42379 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42380 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42381
42382 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42383 (grub_video_i386_vbefill_R8G8B8): Likewise.
42384 (grub_video_i386_vbefill_index): Likewise.
42385 (grub_video_i386_vbefill_direct32): Added.
42386 (grub_video_i386_vbefill_direct24): Likewise.
42387 (grub_video_i386_vbefill_direct16): Likewise.
42388 (grub_video_i386_vbefill_direct8): Likewise.
42389
42390 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42391 types.
42392
42393 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42394 types.
42395
42396 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42397 blitter types.
42398
42399 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42400 types.
42401
42402 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42403
42404 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42405 RAID level 1.
42406
42407 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42408
42409 * fs/iso9660.c (grub_iso9660_date): New structure.
42410 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42411 (grub_iso9660_uuid): New function.
42412
42413 2008-09-05 Bean <bean123ch@gmail.com>
42414
42415 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42416
42417 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42418 insensitive bit for names in Win32 and Win32 & DOS namespace.
42419
42420 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42421
42422 * include/grub/types.h (LONG_MAX): Likewise.
42423
42424 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42425
42426 * util/getroot.c: Include <config.h>.
42427 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42428 add support for /dev/md/N devices and handle LVM double dash escaping.
42429
42430 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42431
42432 * config.guess: Update to latest version from config git.
42433 * config.sub: Likewise.
42434
42435 2008-09-03 Robert Millan <rmh@aybabtu.com>
42436
42437 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42438 `disk->total_sectors'.
42439
42440 2008-09-01 Colin D Bennett <colin@gibibit.com>
42441
42442 * include/grub/normal.h: Fixed incorrect comment for
42443 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42444
42445 2008-09-01 Colin D Bennett <colin@gibibit.com>
42446
42447 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42448 values with defines.
42449
42450 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42451 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42452 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42453 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42454 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42455 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42456 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42457 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42458 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42459 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42460 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42461 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42462 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42463 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42464 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42465 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42466 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42467 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42468 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42469
42470 2008-08-31 Robert Millan <rmh@aybabtu.com>
42471
42472 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42473 declaration.
42474 (grub_multiboot): Fix a few warnings.
42475
42476 2008-08-31 Robert Millan <rmh@aybabtu.com>
42477
42478 * loader/i386/pc/multiboot.c: Update comment not to say that
42479 boot_device support is unimplemented.
42480
42481 2008-08-31 Robert Millan <rmh@aybabtu.com>
42482
42483 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42484 or memory map support are unimplemented.
42485
42486 2008-08-31 Colin D Bennett <colin@gibibit.com>
42487
42488 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42489
42490 2008-08-31 Colin D Bennett <colin@gibibit.com>
42491
42492 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42493 total video memory in 'vbeinfo' output; show color format details for
42494 each video mode.
42495
42496 2008-08-30 Pavel Roskin <proski@gnu.org>
42497
42498 * util/genmoddep.c: Remove for real this time.
42499 * DISTLIST: Remove util/genmoddep.c.
42500
42501 2008-08-30 Robert Millan <rmh@aybabtu.com>
42502
42503 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42504 as required by Multiboot spec (it was already 4-byte aligned, but
42505 only by chance).
42506
42507 2008-08-29 Pavel Roskin <proski@gnu.org>
42508
42509 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42510 * kern/powerpc/ieee1275/startup.S: ... this.
42511 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42512 * DISTLIST: Likewise.
42513
42514 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42515 grub/cpu/kernel.h. Add start label for consistency with other
42516 platforms. Add grub_prefix immediately after start. Add jump
42517 to the code after grub_prefix.
42518 * include/grub/powerpc/kernel.h: Provide valid values for
42519 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42520
42521 2008-08-29 Bean <bean123ch@gmail.com>
42522
42523 * configure.ac: Change host_os to cygwin for mingw.
42524 (asprintf): New check for function.
42525
42526 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42527 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42528
42529 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42530 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42531 sync, sleep and grub_util_get_disk_size for mingw.
42532
42533 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42534 to get size in mingw.
42535 (open_device): Use flag O_BINARY if it's defined.
42536 (find_root_device): Add dummy code for mingw.
42537
42538 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42539 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42540 (get_scsi_disk_name): Return 0 for mingw.
42541
42542 * util/hostfs.c: #include <grub/util/misc.h>.
42543 (grub_hostfs_open): Use "rb" flag to open file, use
42544 grub_util_get_disk_size to get disk size for mingw.
42545
42546 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42547 (asprintf): New function if HAVE_ASPRINTF is not set.
42548 (sync): New function for mingw.
42549 (sleep): Likewise.
42550 (grub_util_get_disk_size): Likewise.
42551
42552 2008-08-28 Pavel Roskin <proski@gnu.org>
42553
42554 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42555 kern/time.c.
42556
42557 2008-08-28 Robert Millan <rmh@aybabtu.com>
42558
42559 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42560
42561 2008-08-28 Robert Millan <rmh@aybabtu.com>
42562
42563 Change find_grub_drive() syntax so it doesn't prevent it from
42564 detecting NULL names as errors.
42565
42566 * util/biosdisk.c (find_grub_drive): Move free slot search code
42567 from here ...
42568 (find_free_slot): ... to here.
42569 (read_device_map): Use find_free_slot() to search for free slots.
42570
42571 2008-08-27 Marco Gerards <marco@gnu.org>
42572
42573 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42574 (scsi_mod_SOURCES): New variable.
42575 (scsi_mod_CFLAGS): Likewise
42576 (scsi_mod_LDFLAGS): Likewise.
42577
42578 * disk/scsi.c: New file.
42579
42580 * include/grub/scsi.h: Likewise.
42581
42582 * include/grub/scsicmd.h: Likewise.
42583
42584 * disk/ata.c: Include <grub/scsi.h>.
42585 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42586 instead.
42587 (grub_ata_iterate): Skip ATAPI devices.
42588 (grub_ata_open): Only handle ATAPI devices.
42589 (struct grub_atapi_read): Removed.
42590 (grub_atapi_readsector): Likewise.
42591 (grub_ata_read): No longer handle ATAPI devices.
42592 (grub_ata_write): Likewise.
42593 (grub_atapi_iterate): New function.
42594 (grub_atapi_read): Likewise.
42595 (grub_atapi_write): Likewise.
42596 (grub_atapi_open): Likewise.
42597 (grub_atapi_close): Likewise.
42598 (grub_atapi_dev): New variable.
42599 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42600 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42601
42602 * include/grub/disk.h (enum grub_disk_dev_id): Add
42603 `GRUB_DISK_DEVICE_SCSI_ID'.
42604
42605 2008-08-26 Robert Millan <rmh@aybabtu.com>
42606
42607 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42608 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42609 descriptive.
42610
42611 2008-08-23 Bean <bean123ch@gmail.com>
42612
42613 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42614 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42615 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42616 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42617 dm_nv.mod.
42618 (raid5rec_mod_SOURCES): New macro.
42619 (raid5rec_mod_CFLAGS): Likewise.
42620 (raid5rec_mod_LDFLAGS): Likewise.
42621 (raid6rec_mod_SOURCES): Likewise.
42622 (raid6rec_mod_CFLAGS): Likewise.
42623 (raid6rec_mod_LDFLAGS): Likewise.
42624 (mdraid_mod_SOURCES): Likewise.
42625 (mdraid_mod_CFLAGS): Likewise.
42626 (mdraid_mod_LDFLAGS): Likewise.
42627 (dm_nv_mod_SOURCES): Likewise.
42628 (dm_nv_mod_CFLAGS): Likewise.
42629 (dm_nv_mod_LDFLAGS): Likewise.
42630
42631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42632 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42633 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42634
42635 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42636 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42637
42638 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42639
42640 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42641
42642 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42643
42644 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42645
42646 * disk/raid5_recover.c: New file.
42647
42648 * disk/raid6_recover.c: Likewise.
42649
42650 * disk/mdraid_linux.c: Likewise.
42651
42652 * disk/dmraid_nvidia.c: Likewise.
42653
42654 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42655 ULONG_MAX.
42656
42657 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42658 calculate the size of raid device.
42659 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42660 different layout of raid5.
42661 (grub_raid_scan_device): Remove code specific to mdraid.
42662 (grub_raid_list): New variable.
42663 (free_array): New function.
42664 (grub_raid_register): Likewise.
42665 (grub_raid_unregister): Likewise.
42666 (grub_raid_rescan): Likewise.
42667 (GRUB_MOD_INIT): Don't iterate device here.
42668 (GRUB_MOD_FINI): Use free_array to release resource.
42669
42670 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42671 (grub_raid5_recover_func_t): New function variable type.
42672 (grub_raid6_recover_func_t): Likewise.
42673 (grub_raid5_recover_func): New variable.
42674 (grub_raid6_recover_func): Likewise.
42675 (grub_raid_register): New function.
42676 (grub_raid_unregister): Likewise.
42677 (grub_raid_rescan): Likewise.
42678 (grub_raid_block_xor): Likewise.
42679
42680 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42681 (CMD_CRC): New macro.
42682 (part): Removed.
42683 (read_file): Handle device as well as file.
42684 (cmd_crc): New function.
42685 (fstest): Handle multiple disks.
42686 (options): Remove part, raw and long, add root and diskcount.
42687 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42688 (main): Find the first non option entry and ignore subsequent options,
42689 add handling for the new options, support multiple disks.
42690
42691 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42692
42693 2008-08-23 Bean <bean123ch@gmail.com>
42694
42695 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42696
42697 * genfslist.sh: Ignore kernel.mod.
42698
42699 * genpartmaplist.sh: Likewise.
42700
42701 2008-08-23 Robert Millan <rmh@aybabtu.com>
42702
42703 * util/getroot.c (find_root_device): Skip anything that starts with
42704 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42705
42706 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42707
42708 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42709 * util/grub.d/00_header.in: Allow the administrator to change default
42710 gfxmode via ${GRUB_GFXMODE}.
42711
42712 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42713
42714 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42715
42716 2008-08-21 Robert Millan <rmh@aybabtu.com>
42717
42718 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42719 loader.
42720 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42721 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42722
42723 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42724
42725 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42726 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42727
42728 2008-08-19 Robert Millan <rmh@aybabtu.com>
42729
42730 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42731 (struct grub_virtual_screen): Remove `cursor_color'.
42732 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42733 initialization.
42734 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42735
42736 2008-08-18 Robert Millan <rmh@aybabtu.com>
42737
42738 Unify (identical) linux_normal.c files.
42739 * loader/i386/efi/linux_normal.c: Move from here ...
42740 * loader/linux_normal.c: ... to here. Update all users.
42741 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42742 * loader/i386/ieee1275/linux_normal.c: Likewise.
42743
42744 2008-08-18 Robert Millan <rmh@aybabtu.com>
42745
42746 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42747 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42748 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42749 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42750 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42751 New macros.
42752 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42753 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42754 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42755 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42756 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42757 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42758 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42759 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42760 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42761 portably using grub_getxy().
42762 Replace `-EFI' with `-bzImage' in boot message.
42763
42764 2008-08-17 Robert Millan <rmh@aybabtu.com>
42765
42766 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42767
42768 2008-08-17 Robert Millan <rmh@aybabtu.com>
42769
42770 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42771
42772 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42773 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42774 (grub_machine_mmap_iterate): New function declaration.
42775 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42776 structure.
42777 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42778 macros.
42779
42780 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42781 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42782 Move e820 parsing from here ...
42783 * kern/i386/pc/mmap.c: New file.
42784 (grub_machine_mmap_iterate): ... to here.
42785
42786 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42787 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42788 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42789 (grub_available_iterate): Redeclare to return `void', and redeclare
42790 its hook to use grub_uint64_t as addr and size parameters, and rename
42791 to ...
42792 (grub_machine_mmap_iterate): ... this. Update all users.
42793
42794 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42795 to make it more readable. Rename to ...
42796 (grub_machine_mmap_iterate): ... this.
42797
42798 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42799 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42800 (grub_multiboot): Allocate an extra region after the payload, and fill
42801 it with a Multiboot memory map. Adjust a.out loader to calculate size
42802 with the extra space.
42803 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42804 with the extra space.
42805
42806 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42807
42808 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42809
42810 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42811
42812 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42813 mdate-sh to the list `find' searches for.
42814 * DISTLIST: Regenerated.
42815
42816 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42817
42818 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42819 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42820 genmoddep.awk, gensymlist.sh.in.
42821 (DISTDIRS): Add bus, docs, hook, lib.
42822 * DISTLIST: Regenerated.
42823 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42824
42825 2008-08-16 Robert Millan <rmh@aybabtu.com>
42826
42827 * disk/raid.c (grub_raid_init): Handle/report errors set by
42828 grub_device_iterate().
42829 * disk/lvm.c (grub_lvm_init): Likewise.
42830
42831 2008-08-15 Bean <bean123ch@gmail.com>
42832
42833 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42834 and datehook.mod.
42835 (datetime_mod_SOURCES): New macro.
42836 (datetime_mod_CFLAGS): Likewise.
42837 (datetime_mod_LDFLAGS): Likewise.
42838 (date_mod_SOURCES): Likewise.
42839 (date_mod_CFLAGS): Likewise.
42840 (date_mod_LDFLAGS): Likewise.
42841 (datehook_mod_SOURCES): Likewise.
42842 (datehook_mod_CFLAGS): Likewise.
42843 (datehook_mod_LDFLAGS): Likewise.
42844
42845 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42846 and datehook.mod.
42847 (datetime_mod_SOURCES): New macro.
42848 (datetime_mod_CFLAGS): Likewise.
42849 (datetime_mod_LDFLAGS): Likewise.
42850 (date_mod_SOURCES): Likewise.
42851 (date_mod_CFLAGS): Likewise.
42852 (date_mod_LDFLAGS): Likewise.
42853 (datehook_mod_SOURCES): Likewise.
42854 (datehook_mod_CFLAGS): Likewise.
42855 (datehook_mod_LDFLAGS): Likewise.
42856
42857 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42858 and datehook.mod.
42859 (datetime_mod_SOURCES): New macro.
42860 (datetime_mod_CFLAGS): Likewise.
42861 (datetime_mod_LDFLAGS): Likewise.
42862 (date_mod_SOURCES): Likewise.
42863 (date_mod_CFLAGS): Likewise.
42864 (date_mod_LDFLAGS): Likewise.
42865 (datehook_mod_SOURCES): Likewise.
42866 (datehook_mod_CFLAGS): Likewise.
42867 (datehook_mod_LDFLAGS): Likewise.
42868
42869 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42870 and datehook.mod.
42871 (datetime_mod_SOURCES): New macro.
42872 (datetime_mod_CFLAGS): Likewise.
42873 (datetime_mod_LDFLAGS): Likewise.
42874 (date_mod_SOURCES): Likewise.
42875 (date_mod_CFLAGS): Likewise.
42876 (date_mod_LDFLAGS): Likewise.
42877 (datehook_mod_SOURCES): Likewise.
42878 (datehook_mod_CFLAGS): Likewise.
42879 (datehook_mod_LDFLAGS): Likewise.
42880
42881 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42882 and datehook.mod.
42883 (datetime_mod_SOURCES): New macro.
42884 (datetime_mod_CFLAGS): Likewise.
42885 (datetime_mod_LDFLAGS): Likewise.
42886 (date_mod_SOURCES): Likewise.
42887 (date_mod_CFLAGS): Likewise.
42888 (date_mod_LDFLAGS): Likewise.
42889 (datehook_mod_SOURCES): Likewise.
42890 (datehook_mod_CFLAGS): Likewise.
42891 (datehook_mod_LDFLAGS): Likewise.
42892
42893 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42894
42895 * commands/date.c: New file.
42896
42897 * hook/datehook.c: Likewise.
42898
42899 * include/grub/lib/datetime.h: Likewise.
42900
42901 * include/grub/i386/cmos.h: Likewise.
42902
42903 * lib/datetime.c: Likewise.
42904
42905 * lib/i386/datetime.c: Likewise.
42906
42907 * lib/efi/datetime.c: Likewise.
42908
42909 2008-08-14 Robert Millan <rmh@aybabtu.com>
42910
42911 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42912 (grub_mkelfimage_SOURCES): New variable.
42913 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42914
42915 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42916 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42917 * conf/powerpc-ieee1275.rmk: Likewise.
42918 * conf/i386-ieee1275.rmk: Likewise.
42919
42920 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42921 * kern/i386/coreboot/init.c: Likewise.
42922
42923 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42924 with `<grub/cpu/kernel.h>'.
42925 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42926 to ...
42927 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42928 * kern/i386/coreboot/startup.S: Likewise.
42929
42930 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42931 (GRUB_MOD_GAP): Remove.
42932 * include/grub/powerpc/kernel.h: New file.
42933 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42934 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42935 * include/grub/i386/kernel.h: New file.
42936 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42937 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42938 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42939
42940 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42941 `grub-mkelfimage'.
42942 Use --directory when invoking grub_mkimage.
42943
42944 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42945 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42946 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42947 and GRUB_KERNEL_CPU_PREFIX.
42948
42949 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42950
42951 * include/grub/err.h (grub_err_printf): New function prototype.
42952 * util/misc.c (grub_err_printf): New function.
42953 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42954 grub_printf.
42955 * kern/err.c (grub_print_error): Use grub_err_printf.
42956
42957 2008-08-13 Robert Millan <rmh@aybabtu.com>
42958
42959 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42960
42961 2008-08-13 Robert Millan <rmh@aybabtu.com>
42962
42963 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42964 boot entry.
42965
42966 2008-08-12 Robert Millan <rmh@aybabtu.com>
42967
42968 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42969 of the relocation code from here ...
42970 (grub_multiboot): ... to here.
42971 (forward_relocator, backward_relocator): Move from here ...
42972 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42973 (grub_multiboot_backward_relocator): ... to here.
42974 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42975 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42976 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42977 (grub_multiboot_forward_relocator_end)
42978 (grub_multiboot_backward_relocator)
42979 (grub_multiboot_backward_relocator_end): New variables.
42980
42981 2008-08-12 Bean <bean123ch@gmail.com>
42982
42983 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42984
42985 2008-08-11 Robert Millan <rmh@aybabtu.com>
42986
42987 * kern/i386/linuxbios/startup.S: Move from here ...
42988 * kern/i386/coreboot/startup.S: ... to here.
42989
42990 * kern/i386/linuxbios/init.c: Move from here ...
42991 * kern/i386/coreboot/init.c: ... to here.
42992
42993 * kern/i386/linuxbios/table.c: Move from here ...
42994 * kern/i386/coreboot/mmap.c: ... to here.
42995
42996 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42997
42998 2008-08-11 Robert Millan <rmh@aybabtu.com>
42999
43000 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43001 errors. Leave it to the upper layer to handle them.
43002
43003 2008-08-09 Christian Franke <franke@computer.org>
43004
43005 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43006 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43007 Install `grub.d/10_windows' only on Cygwin.
43008 * configure.ac: Add subst of `target_os'.
43009 Check `target_os' also before setting TARGET_OBJ2ELF.
43010 Add `--enable-grub-pe2elf'.
43011
43012 2008-08-08 Robert Millan <rmh@aybabtu.com>
43013
43014 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43015 (grub_last_time): Change type to grub_uint64_t.
43016 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43017 (grub_disk_close): Likewise.
43018
43019 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43020 (run_menu): Migrate code from to using grub_get_time_ms().
43021
43022 * util/misc.c (grub_get_time_ms): New function.
43023
43024 2008-08-08 Marco Gerards <marco@gnu.org>
43025
43026 * disk/ata.c (grub_ata_regget): Change return type to
43027 `grub_uint8_t'.
43028 (grub_ata_regget2): Likewise.
43029 (grub_ata_wait_status): New function.
43030 (grub_ata_wait_busy): Removed function, updated all users to use
43031 `grub_ata_wait_status'.
43032 (grub_ata_wait_drq): Likewise.
43033 (grub_ata_cmd): New function.
43034 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43035 error handling.
43036 (grub_ata_pio_write): Add error handling.
43037 (grub_atapi_identify): Likewise.
43038 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43039 handling.
43040 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43041 handling. Actually use the detected registers. Reorder the
43042 detection logic such that it is easier to read.
43043 (grub_ata_pciinit): Do not assign the same ID to each controller.
43044 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43045 handling.
43046 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43047
43048 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43049
43050 2008-08-08 Marco Gerards <marco@gnu.org>
43051
43052 * NEWS: Update.
43053
43054 2008-08-07 Bean <bean123ch@gmail.com>
43055
43056 * include/grub/x86_64/pci.h: New file.
43057
43058 2008-08-07 Christian Franke <franke@computer.org>
43059
43060 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43061 (TIMER2_GATE): Likewise.
43062 (grub_pit_wait): Add enable/disable of the timer2 gate
43063 bit of port 0x61. This fixes a possible infinite loop.
43064
43065 2008-08-07 Bean <bean123ch@gmail.com>
43066
43067 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43068 kern/i386/tsc.c and kern/i386/pit.c.
43069
43070 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43071 x86_64 platform.
43072
43073 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43074 <grub/i386/tsc.h>.
43075
43076 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43077
43078 2008-08-07 Bean <bean123ch@gmail.com>
43079
43080 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43081
43082 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43083
43084 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43085 multiple inclusion. Add #include <grub/types.h>.
43086
43087 2008-08-06 Christian Franke <franke@computer.org>
43088
43089 * conf/common.rmk: Build and install `10_windows'.
43090 * util/grub.d/10_windows.in: New script.
43091
43092 2008-08-06 Pavel Roskin <proski@gnu.org>
43093
43094 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43095
43096 2008-08-06 Robert Millan <rmh@aybabtu.com>
43097
43098 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43099 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43100
43101 2008-08-06 Bean <bean123ch@gmail.com>
43102
43103 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43104 (grub_pxefs_fs_int): Remove dummy definition.
43105 (grub_pxefs_open): Use data->block_size to store the current block
43106 size setting.
43107 (grub_pxefs_read): Use block size stored in data->block_size. As the
43108 value of grub_pxe_blksize can be changed after the file is opened.
43109
43110 2008-08-06 Bean <bean123ch@gmail.com>
43111
43112 * fs/i386/pc/pxe.c (curr_file): new variable.
43113 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43114 require the dummy internal file system anymore.
43115 (grub_pxefs_read): Removed.
43116 (grub_pxefs_close): Likewise.
43117 (grub_pxefs_fs_int): Likewise.
43118 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43119 connection when we switch file.
43120 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43121
43122 2008-08-06 Robert Millan <rmh@aybabtu.com>
43123
43124 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43125 `halt.mod'.
43126 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43127 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43128
43129 * kern/i386/halt.c: New file.
43130 * kern/i386/reboot.c: Likewise.
43131 * include/grub/i386/reboot.h: Likewise.
43132 * include/grub/i386/halt.h: Likewise.
43133
43134 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43135 Include `<grub/cpu/halt.h>'.
43136 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43137 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43138
43139 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43140 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43141 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43142 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43143 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43144 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43145 from here ...
43146 * include/grub/i386/at_keyboard.h: ... to here.
43147
43148 2008-08-05 Robert Millan <rmh@aybabtu.com>
43149
43150 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43151 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43152 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43153 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43154 `kern/generic/millisleep.c'.
43155
43156 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43157 instead of grub_get_rtc().
43158 (grub_tsc_init): Initialize `tsc_boot_time'.
43159
43160 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43161 (grub_machine_init): Use grub_tsc_init() rather than
43162 installing an RTC-based handler via grub_install_get_time_ms().
43163
43164 * kern/i386/pit.c: New file.
43165 * include/grub/i386/pit.h: Likewise.
43166
43167 2008-08-05 Bean <bean123ch@gmail.com>
43168
43169 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43170
43171 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43172 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43173 (pxe_mod_SOURCES): New macro.
43174 (pxe_mod_CFLAGS): Likewise.
43175 (pxe_mod_LDFLAGS): Likewise.
43176 (pxecmd_mod_SOURCES): Likewise.
43177 (pxecmd_mod_CFLAGS): Likewise.
43178 (pxecmd_mod_LDFLAGS): Likewise.
43179
43180 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43181 (grub_pxe_call): Likewise.
43182
43183 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43184
43185 * commands/i386/pc/pxecmd.c: New file.
43186
43187 * fs/i386/pc/pxe.c: Likewise.
43188
43189 * include/grub/i386/pc/pxe.h: Likewise.
43190
43191 2008-08-05 Bean <bean123ch@gmail.com>
43192
43193 * util/console.c (grub_console_cur_color): New variable.
43194 (grub_console_standard_color): Likewise.
43195 (grub_console_normal_color): Likewise.
43196 (grub_console_highlight_color): Likewise.
43197 (color_map): Likewise.
43198 (use_color): Likewise.
43199 (NUM_COLORS): New macro.
43200 (grub_ncurses_setcolorstate): Handle color properly.
43201 (grub_ncurses_setcolor): Don't change color here, just remember the
43202 settings, color will be set in grub_ncurses_setcolorstate.
43203 (grub_ncurses_getcolor): New function.
43204 (grub_ncurses_init): Initialize color pairs.
43205 (grub_ncurses_term): New member grub_ncurses_getcolor.
43206
43207 2008-08-05 Colin D Bennett <colin@gibibit.com>
43208
43209 High resolution timer support. Implemented for x86 CPUs using TSC.
43210 Extracted generic grub_millisleep() so it's linked in only as needed.
43211 This requires a Pentium compatible CPU; if the RDTSC instruction is
43212 not supported, then it falls back on the generic grub_get_time_ms()
43213 implementation that uses the machine's RTC.
43214
43215 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43216 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43217 `kern/generic/millisleep.c'.
43218
43219 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43220 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43221
43222 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43223 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43224
43225 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43226
43227 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43228 `kern/generic/millisleep.c'.
43229
43230 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43231
43232 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43233
43234 * kern/generic/rtc_get_time_ms.c: New file.
43235
43236 * kern/generic/millisleep.c: New file.
43237
43238 * kern/misc.c: Don't include
43239 <kern/time.h> anymore.
43240 (grub_millisleep_generic): Removed.
43241
43242 * commands/sleep.c (grub_interruptible_millisleep): Uses
43243 grub_get_time_ms() instead of grub_get_rtc().
43244
43245 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43246 function.
43247 (grub_cpu_is_cpuid_supported): New inline function.
43248 (grub_cpu_is_tsc_supported): New inline function.
43249 (grub_tsc_init): New function prototype.
43250 (grub_tsc_get_time_ms): New function prototype.
43251
43252 * kern/i386/tsc.c (grub_get_time_ms): New file.
43253
43254 * include/grub/time.h: Include <grub/types.h.
43255 (grub_millisleep_generic): Removed.
43256 (grub_get_time_ms): New prototype.
43257 (grub_install_get_time_ms): New prototype.
43258 (grub_rtc_get_time_ms): New prototype.
43259
43260 * kern/time.c (grub_get_time_ms): New function.
43261 (grub_install_get_time_ms): New function.
43262
43263 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43264 <grub/time.h> anymore.
43265 (grub_millisleep): Removed.
43266 (grub_machine_init): Call grub_tsc_init.
43267
43268 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43269 get_time_ms() implementation.
43270
43271 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43272 (ieee1275_get_time_ms): New function.
43273 (grub_machine_init): Install get_time_ms() implementation.
43274
43275 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43276 (grub_machine_init): Call grub_tsc_init().
43277 (grub_millisleep): Removed.
43278
43279 * kern/ieee1275/init.c (grub_millisleep): Removed.
43280 (grub_machine_init): Install ieee1275_get_time_ms()
43281 implementation.
43282 (ieee1275_get_time_ms): New function.
43283 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43284 real work.
43285
43286 2008-08-05 Marco Gerards <marco@gnu.org>
43287
43288 * disk/ata.c: Include <grub/pci.h>.
43289 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43290 (grub_ata_initialize): Rewritten.
43291 (grub_ata_device_initialize): New function.
43292
43293 2008-08-04 Pavel Roskin <proski@gnu.org>
43294
43295 * kern/main.c: Include grub/mm.h.
43296
43297 2008-08-04 Robert Millan <rmh@aybabtu.com>
43298
43299 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43300 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43301 corruption problem).
43302
43303 2008-08-04 Robert Millan <rmh@aybabtu.com>
43304
43305 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43306 warnings introduced in my last commit.
43307
43308 2008-08-03 Robert Millan <rmh@aybabtu.com>
43309
43310 Make PCI available on all i386 architectures.
43311
43312 * include/grub/i386/pc/pci.h: Move from here ...
43313 * include/grub/i386/pci.h: ... to here.
43314
43315 * include/grub/i386/pc/pci.h: Remove.
43316 * include/grub/i386/efi/pci.h: Remove.
43317 * include/grub/x86_64/efi/pci.h: Remove.
43318
43319 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43320 `<grub/cpu/pci.h>'.
43321
43322 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43323 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43324 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43325
43326 * conf/i386-ieee1275.rmk: Likewise.
43327
43328 2008-08-03 Robert Millan <rmh@aybabtu.com>
43329
43330 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43331 (grub_console_setcursor): Make it possible to set cursor off.
43332
43333 2008-08-03 Robert Millan <rmh@aybabtu.com>
43334
43335 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43336 of modules instead of assuming which platform provides what.
43337 * util/update-grub.in: Likewise.
43338
43339 2008-08-03 Robert Millan <rmh@aybabtu.com>
43340
43341 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43342 instead of `grub_install_dos_part' to determine whether a drive needs
43343 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43344 because it can be overridden when loading GRUB via Multiboot).
43345
43346 2008-08-02 Robert Millan <rmh@aybabtu.com>
43347
43348 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43349
43350 2008-08-02 Robert Millan <rmh@aybabtu.com>
43351
43352 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43353 of informational grub_dprintf() calls.
43354
43355 2008-08-02 Robert Millan <rmh@aybabtu.com>
43356
43357 * disk/memdisk.c (memdisk_size): Don't initialize.
43358 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43359
43360 * include/grub/i386/pc/kernel.h
43361 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43362 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43363 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43364 (grub_arch_memdisk_size): Remove.
43365
43366 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43367 field (was only used to transfer a constant). Add `type' field to
43368 support multiple module types.
43369 (grub_module_iterate): New function.
43370
43371 * kern/device.c (grub_device_open): Do not hide error messages
43372 when grub_disk_open() fails. Use grub_print_error() instead.
43373
43374 * kern/i386/pc/init.c (grub_arch_modules_addr)
43375 (grub_arch_memdisk_size): Remove functions.
43376 (grub_arch_modules_addr): Return the module address in high memory
43377 (now that it isn't copied anymore).
43378
43379 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43380 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43381 decompression routine (grub_total_module_size already includes that
43382 now). Don't copy modules back to low memory.
43383
43384 * kern/main.c: Include `<grub/mm.h>'.
43385 (grub_load_modules): Split out (and use) ...
43386 (grub_module_iterate): ... this function, which iterates through
43387 module objects and runs a hook.
43388 Comment out grub_mm_init_region() call, as it would cause non-ELF
43389 modules to be overwritten.
43390
43391 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43392 the memdisk image in its own region, make it part of the module list.
43393 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43394 (main): Parse --memdisk|-m option, and pass user-provided path as
43395 parameter to generate_image().
43396 (add_segments): Pass `memdisk_path' down to load_modules().
43397 (load_modules): Embed memdisk image in module section when requested.
43398 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43399 `header.type' instead of `header.offset'.
43400
43401 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43402 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43403 (memdisk_mod_LDFLAGS): New variables.
43404 * conf/i386-coreboot.rmk: Likewise.
43405 * conf/i386-ieee1275.rmk: Likewise.
43406
43407 2008-08-02 Robert Millan <rmh@aybabtu.com>
43408
43409 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43410 (backward_relocator): New variables. Used to allocate and relocate
43411 the payload, respectively.
43412 (grub_multiboot_load_elf32): Load into heap instead of requested
43413 address, install the appropriate relocator code in each bound of
43414 the payload, and set the entry point such that
43415 grub_multiboot_real_boot() will jump to one of them.
43416
43417 * kern/i386/loader.S (grub_multiboot_payload_size)
43418 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43419 (grub_multiboot_payload_entry_offset): New variables.
43420 (grub_multiboot_real_boot): Set cpu context to what the relocator
43421 expects, and jump to the relocator instead of the payload.
43422
43423 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43424 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43425 (grub_multiboot_payload_entry_offset): Export.
43426
43427 2008-08-01 Bean <bean123ch@gmail.com>
43428
43429 * normal/menu_entry.c (editor_getline): Don't return the original
43430 string as result, as it will be released by lexer once it has done
43431 using it.
43432
43433 2008-08-01 Robert Millan <rmh@aybabtu.com>
43434
43435 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43436 within menuentries, not before them.
43437 util/grub.d/10_hurd.in: Likewise.
43438
43439 2008-08-01 Bean <bean123ch@gmail.com>
43440
43441 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43442 (bufio_mod_SOURCES): New macro.
43443 (bufio_mod_CFLAGS): Likewise.
43444 (bufio_mod_LDFLAGS): Likewise.
43445
43446 * include/grub/bufio.h: New file.
43447
43448 * io/bufio.c: Likewise.
43449
43450 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43451 (grub_video_reader_png): Use grub_buffile_open to open file.
43452
43453 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43454 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43455
43456 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43457 (grub_video_reader_tga): Use grub_buffile_open to open file.
43458
43459 * font/manager.c: Include <grub/bufio.h>.
43460 (add_font): Use grub_buffile_open to open file.
43461
43462 2008-07-31 Robert Millan <rmh@aybabtu.com>
43463
43464 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43465 ELF segments, use a macro for arbitrarily accessing any of them instead
43466 of preparing a pointer that allows access to one at a time.
43467 (grub_multiboot_load_elf64): Likewise.
43468
43469 2008-07-31 Bean <bean123ch@gmail.com>
43470
43471 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43472 GRUB_KERNEL_MACHINE_DATA_END.
43473
43474 2008-07-30 Robert Millan <rmh@aybabtu.com>
43475
43476 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43477 Increase from 0x50 to 0x60.
43478 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43479 use UUIDs to identify the root drive for them. If that's not
43480 possible, abort.
43481 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43482 check, for cross-disk installs.
43483
43484 2008-07-30 Robert Millan <rmh@aybabtu.com>
43485
43486 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43487 is non-empty, use it to set the `prefix' environment variable instead
43488 of the usual approach.
43489 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43490 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43491 environment variable instead of dummy make_install_device().
43492
43493 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43494 (start): Insert a data section, with `grub_prefix' variable.
43495 * kern/i386/linuxbios/startup.S: Likewise.
43496
43497 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43498 New variable reference.
43499 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43500 New macro. Defines offset of `grub_prefix' within startup.S (relative
43501 to `start').
43502 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43503 section within startup.S (relative to `start').
43504 * include/grub/i386/coreboot/kernel.h: Likewise.
43505
43506 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43507 Overwrite grub_prefix with its contents, at the beginning of the
43508 first segment.
43509 (main): Understand -p|--prefix.
43510
43511 2008-07-30 Robert Millan <rmh@aybabtu.com>
43512
43513 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43514
43515 2008-07-30 Robert Millan <rmh@aybabtu.com>
43516
43517 * term/i386/pc/vga_text.c (grub_console_cls): Use
43518 grub_console_gotoxy() to go back to beginning of the screen.
43519 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43520
43521 2008-07-29 Christian Franke <franke@computer.org>
43522
43523 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43524 Add conversion of emulated mount points on Cygwin.
43525
43526 2008-07-29 Christian Franke <franke@computer.org>
43527
43528 * util/update-grub.in: Add a check for admin
43529 group on Cygwin.
43530 Remove old `grub.cfg.new' before creation.
43531 Add `-f' to `mv' to handle the different filesystem
43532 semantics of Windows.
43533
43534 2008-07-29 Bean <bean123ch@gmail.com>
43535
43536 * normal/main.c (get_line): Fix buffer overflow bug.
43537
43538 2008-07-28 Robert Millan <rmh@aybabtu.com>
43539
43540 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43541 (struct grub_apple_header): New struct. Describes the layout of
43542 the partmap header.
43543 (apple_partition_map_iterate): Check the header magic as well as the
43544 partition magic (which was already being checked).
43545
43546 2008-07-28 Pavel Roskin <proski@gnu.org>
43547
43548 * genmk.rb: Add a warning to the beginning of the output that
43549 it's a generated file and should not be edited.
43550
43551 2008-07-28 Robert Millan <rmh@aybabtu.com>
43552
43553 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43554 with the same number are found, just use issue a warning with
43555 grub_dprintf(), as this error has been reported to be non-fatal.
43556
43557 2008-07-27 Robert Millan <rmh@aybabtu.com>
43558
43559 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43560 information.
43561
43562 2008-07-27 Bean <bean123ch@gmail.com>
43563
43564 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43565 (grub_fat_find_dir): Ignore case when comparing filename.
43566
43567 2008-07-27 Bean <bean123ch@gmail.com>
43568
43569 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43570 smallino, as it's more descriptive, and i8count can be confused with
43571 the other field count.
43572 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43573 inode type.
43574
43575 2008-07-27 Bean <bean123ch@gmail.com>
43576
43577 * commands/crc.c: New file.
43578
43579 * lib/crc.c: Likewise.
43580
43581 * include/grub/lib/crc.h: Likewise.
43582
43583 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43584
43585 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43586 (hexdump): Move this function to ...
43587
43588 * lib/hexdump.c: ... here.
43589
43590 * include/grub/hexdump.h: Renamed to ...
43591
43592 * include/grub/lib/hexdump.h: ... this.
43593
43594 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43595
43596 * util/grub-editenv.c: Likewise.
43597
43598 * include/envblk.h: Renamed to ...
43599
43600 * include/lib/envblk.h: ... this.
43601
43602 * util/envblk.c: Renamed to ...
43603
43604 * lib/envblk.c: ... this.
43605
43606 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43607 lib/hexdump.c.
43608 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43609 (pkglib_MODULES): Add crc.mod.
43610 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43611 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43612 (crc_mod_SOURCES): New macro.
43613 (crc_mod_CFLAGS): Likewise.
43614 (crc_mod_LDFLAGS): Likewise.
43615
43616 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43617
43618 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43619
43620 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43621
43622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43623
43624 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43625
43626 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43627
43628 * commands/help.c: Include <grub/term.h>.
43629 (TERM_WIDTH): Removed. Updated all users.
43630
43631 2008-07-27 Pavel Roskin <proski@gnu.org>
43632
43633 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43634 spurious warnings about a comment within a comment.
43635
43636 2008-07-25 Robert Millan <rmh@aybabtu.com>
43637
43638 * util/getroot.c (find_root_device): Skip devices that match
43639 /dev/dm-[0-9]. This lets the real device be found for any type of
43640 abstraction (LVM, EVMS, RAID..).
43641 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43642 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43643 device is found first, find_root_device() will now skip it.
43644
43645 2008-07-24 Pavel Roskin <proski@gnu.org>
43646
43647 * include/grub/types.h: Use __builtin_bswap32() and
43648 __builtin_bswap64() with gcc 4.3 and newer.
43649
43650 2008-07-24 Christian Franke <franke@computer.org>
43651
43652 * util/i386/pc/grub-install.in: If `--debug' is specified,
43653 pass `--verbose' to grub-setup.
43654 Abort script if make_system_path_relative_to_its_root() fails.
43655
43656 2008-07-24 Bean <bean123ch@gmail.com>
43657
43658 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43659 variable `target_platform' should be `platform'.
43660
43661 2008-07-24 Bean <bean123ch@gmail.com>
43662
43663 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43664 (grub_png_init_fixed_block): New function.
43665 (grub_png_decode_image_data): Handle fixed huffman code compression.
43666
43667 2008-07-24 Bean <bean123ch@gmail.com>
43668
43669 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43670 (grub_pe2elf_SOURCES): New macro.
43671 (CLEANFILES): Add grub-pe2elf.
43672
43673 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43674 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43675 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43676 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43677 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43678 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43679 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43680 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43681 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43682 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43683 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43684 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43685 (GRUB_PE32_DT_FUNCTION): Likewise.
43686 (GRUB_PE32_REL_I386_DIR32): Likewise.
43687 (GRUB_PE32_REL_I386_REL32): Likewise.
43688 (grub_pe32_symbol): New structure.
43689 (grub_pe32_reloc): Likewise.
43690
43691 * util/grub-pe2elf.c: New file.
43692
43693 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43694 start symbol in non pc platform.
43695
43696 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43697
43698 The following patches are from Christian Franke.
43699
43700 * include/grub/dl.h: Remove .previous, gas supports this only
43701 for ELF format.
43702
43703 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43704 Remove .type, gas supports this only for ELF format.
43705
43706 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43707 nullbytes in symbol table. This fixes an infinite loop if table is
43708 zero filled.
43709
43710 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43711 TARGET_IMG_LDFLAGS and EXEEXT.
43712
43713 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43714 TARGET_IMG_LDFLAGS_AC.
43715 (grub_CHECK_STACK_ARG_PROBE): New function.
43716
43717 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43718
43719 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43720
43721 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43722 to set TARGET_IMG_LD* accordingly.
43723 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43724 Add call to grub_CHECK_STACK_ARG_PROBE.
43725 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43726
43727 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43728
43729 * genmk.rb: Add EXEEXT to CLEANFILES.
43730
43731 2008-07-23 Robert Millan <rmh@aybabtu.com>
43732
43733 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43734 define the codes for arrows and lines used for the menu).
43735 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43736 as well.
43737
43738 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43739 fonts, because the latter are too slow.
43740
43741 2008-07-21 Bean <bean123ch@gmail.com>
43742
43743 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43744 a20. Run keyboard test last, as it will cause macbook to halt.
43745
43746 2008-07-18 Pavel Roskin <proski@gnu.org>
43747
43748 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43749 load foreign architecture modules correctly anyway. Keep
43750 support for loading host architecture modules, whether we
43751 compile them or not.
43752
43753 2008-07-17 Pavel Roskin <proski@gnu.org>
43754
43755 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43756 change target_cpu. The compiler default can mismatch target_cpu
43757 in any case.
43758
43759 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43760 * kern/efi/efi.c: Likewise.
43761
43762 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43763 target compiler is functional.
43764 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43765 are set up.
43766
43767 * configure.ac: Default to efi platform for x86_64-apple. Allow
43768 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43769 adjustments from the rest, only do them if target is not
43770 explicitly given. Merge other adjustments with the final sanity
43771 check. Remove an extraneous check for supported CPU. Be
43772 specific which CPU and which platform is not supported.
43773
43774 * configure.ac: Default to pc platform for x86_64.
43775
43776 2008-07-17 Robert Millan <rmh@aybabtu.com>
43777
43778 Partial LinuxBIOS -> Coreboot rename.
43779
43780 * conf/i386-linuxbios.rmk: Renamed to ...
43781 * conf/i386-coreboot.rmk: ... this.
43782 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43783 * configure.ac: Accept "coreboot" as input platform (but maintain
43784 compatibility with "linuxbios").
43785 * include/grub/i386/linuxbios: Renamed to ...
43786 * include/grub/i386/coreboot: ... this.
43787
43788 2008-07-17 Bean <bean123ch@gmail.com>
43789
43790 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43791 (appleldr_mod_SOURCE): New variable.
43792 (appleldr_mod_CFLAGS): Likewise.
43793 (appleldr_mod_LDFLAGS): Likewise.
43794 (pci_mod_SOURCES): Likewise.
43795 (pci_mod_CFLAGS): Likewise.
43796 (pci_mod_LDFLAGS): Likewise.
43797 (lspci_mod_SOURCES): Likewise.
43798 (lspci_mod_CFLAGS): Likewise.
43799 (lspci_mod_LDFLAGS): Likewise.
43800
43801 * conf/x86_64-efi.rmk: New file.
43802
43803 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43804 macro.
43805 (grub_efidisk_write): Likewise.
43806
43807 * include/efi/api.h (efi_call_0): New macro.
43808 (efi_call_1): Likewise.
43809 (efi_call_2): Likewise.
43810 (efi_call_3): Likewise.
43811 (efi_call_4): Likewise.
43812 (efi_call_5): Likewise.
43813 (efi_call_6): Likewise.
43814
43815 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43816 grub_rescue_cmd_chainloader.
43817
43818 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43819 (grub_pe32_optional_header): Change some fields based on i386 or
43820 x86_64 platform.
43821 (GRUB_PE32_PE32_MAGIC): Likewise.
43822
43823 * include/grub/efi/uga_draw.h: New file.
43824
43825 * include/grub/elf.h (STN_ABS): New constant.
43826 (R_X86_64_NONE): Relocation constant for x86_64.
43827 (R_X86_64_64): Likewise.
43828 (R_X86_64_PC32): Likewise.
43829 (R_X86_64_GOT32): Likewise.
43830 (R_X86_64_PLT32): Likewise.
43831 (R_X86_64_COPY): Likewise.
43832 (R_X86_64_GLOB_DAT): Likewise.
43833 (R_X86_64_JUMP_SLOT): Likewise.
43834 (R_X86_64_RELATIVE): Likewise.
43835 (R_X86_64_GOTPCREL): Likewise.
43836 (R_X86_64_32): Likewise.
43837 (R_X86_64_32S): Likewise.
43838 (R_X86_64_16): Likewise.
43839 (R_X86_64_PC16): Likewise.
43840 (R_X86_64_8): Likewise.
43841 (R_X86_64_PC8): Likewise.
43842
43843 * include/grub/i386/efi/pci.h: New file.
43844
43845 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43846 Change it value based on platform.
43847 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43848 (GRUB_E820_RAM): Likewise.
43849 (GRUB_E820_RESERVED): Likewise.
43850 (GRUB_E820_ACPI): Likewise.
43851 (GRUB_E820_NVS): Likewise.
43852 (GRUB_E820_EXEC_CODE): Likewise.
43853 (GRUB_E820_MAX_ENTRY): Likewise.
43854 (grub_e820_mmap): New structure.
43855 (linux_kernel_header): Change the efi field according to different
43856 kernel version, also field from linux_kernel_header.
43857
43858 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43859
43860 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43861 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43862 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43863 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43864 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43865 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43866 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43867 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43868 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43869 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43870
43871 * include/grub/x86_64/efi/kernel.h: New file.
43872
43873 * include/grub/x86_64/efi/loader.h: Likewise.
43874
43875 * include/grub/x86_64/efi/machine.h: Likewise.
43876
43877 * include/grub/x86_64/efi/pci.h: Likewise.
43878
43879 * include/grub/x86_64/efi/time.h: Likewise.
43880
43881 * include/grub/x86_64/linux.h: Likewise.
43882
43883 * include/grub/x86_64/setjmp.h: Likewise.
43884
43885 * include/grub/x86_64/time.h: Likewise.
43886
43887 * include/grub/x86_64/types.h: Likewise.
43888
43889 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43890 GRUB_TARGET_SIZEOF_VOID_P.
43891
43892 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43893 (grub_efi_locate_handle): Likewise.
43894 (grub_efi_open_protocol): Likewise.
43895 (grub_efi_set_text_mode): Likewise.
43896 (grub_efi_stall): Likewise.
43897 (grub_exit): Likewise.
43898 (grub_reboot): Likewise.
43899 (grub_halt): Likewise.
43900 (grub_efi_exit_boot_services): Likewise.
43901 (grub_get_rtc): Likewise.
43902
43903 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43904 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43905 (grub_efi_allocate_pages): Wrap efi calls.
43906 (grub_efi_free_pages): Wrap efi calls.
43907 (grub_efi_get_memory_map): Wrap efi calls.
43908
43909 * kern/x86_64/dl.c: New file.
43910
43911 * kern/x86_64/efi/callwrap.S: Likewise.
43912
43913 * kern/x86_64/efi/startup.S: Likewise.
43914
43915 * loader/efi/appleloader.c: Likewise.
43916
43917 * loader/efi/chainloader.c (cmdline): New variable.
43918 (grub_chainloader_unload): Wrap efi calls.
43919 (grub_chainloader_boot): Likewise.
43920 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43921 command line.
43922
43923 * loader/efi/chainloader_normal.c (chainloader_command):
43924 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43925 command line.
43926
43927 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43928 method.
43929 (grub_e820_add_region): New function.
43930 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43931 booting.
43932 (grub_find_video_card): New function.
43933 (grub_linux_setup_video): New function.
43934 (grub_rescue_cmd_linux): Probe for video information.
43935
43936 * normal/x86_64/setjmp.S: New file.
43937
43938 * term/efi/console.c (map_char): New function.
43939 (grub_console_putchar): Map unicode char.
43940 (grub_console_checkkey): Wrap efi calls.
43941 (grub_console_getkey): Likewise.
43942 (grub_console_getwh): Likewise.
43943 (grub_console_gotoxy): Likewise.
43944 (grub_console_cls): Likewise.
43945 (grub_console_setcolorstate): Likewise.
43946 (grub_console_setcursor): Likewise.
43947
43948 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43949
43950 2008-07-16 Pavel Roskin <proski@gnu.org>
43951
43952 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43953 format strings.
43954
43955 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43956 pointer, not an integer. This fixes a warning and prevents
43957 precision loss on 64-bit systems.
43958 (relocate_addresses): Remove unneeded cast.
43959
43960 2008-07-15 Pavel Roskin <proski@gnu.org>
43961
43962 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43963
43964 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43965
43966 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43967 Fix comparison between signed and unsigned.
43968
43969 * include/grub/i386/ieee1275/console.h: Declare
43970 grub_console_init() and grub_console_fini().
43971
43972 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43973 It's empty and unused.
43974
43975 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43976 beginning to avoid warnings with some compilers.
43977
43978 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43979 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43980
43981 2008-07-14 Pavel Roskin <proski@gnu.org>
43982
43983 * kern/env.c (grub_register_variable_hook): Don't copy empty
43984 string, it leaks memory. Pass "" to grub_env_set(), it should
43985 handle constant strings.
43986
43987 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43988 * commands/cmp.c (grub_cmd_cmp): Likewise.
43989 * kern/dl.c (grub_dl_flush_cache): Likewise.
43990 (grub_dl_load_core): Likewise.
43991 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43992 (grub_elf64_load_phdrs): Likewise.
43993
43994 2008-07-13 Pavel Roskin <proski@gnu.org>
43995
43996 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43997 between signed and unsigned.
43998 (LzmaEnc_Finish): Fix warning about an unused parameter.
43999
44000 2008-07-13 Bean <bean123ch@gmail.com>
44001
44002 * Makefile.in (enable_lzo): New rule.
44003
44004 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44005
44006 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44007
44008 * boot/i386/pc/lnxboot.S: #include <config.h>.
44009
44010 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44011 its value according to the compression algorithm used, lzo or lzma.
44012
44013 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44014 compression algorithm according to configure macro.
44015
44016 * kern/i386/pc/startup.S (codestart): Likewise.
44017
44018 * kern/i386/pc/lzma_decode.S: New file.
44019
44020 * include/grub/lib/LzFind.h: Likewise.
44021
44022 * include/grub/lib/LzHash.h: Likewise.
44023
44024 * include/grub/lib/LzmaDec.h: Likewise.
44025
44026 * include/grub/lib/LzmaEnc.h: Likewise.
44027
44028 * include/grub/lib/LzmaTypes.h: Likewise.
44029
44030 * lib/LzFind.c: Likewise.
44031
44032 * lib/LzmaDec.c: Likewise.
44033
44034 * lib/LzmaEnc.c: Likewise.
44035
44036 2008-07-13 Bean <bean123ch@gmail.com>
44037
44038 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44039 (grub_ext4_extent_header): New structure.
44040 (grub_ext4_extent): Likewise.
44041 (grub_ext4_extent_idx): Likewise.
44042 (grub_ext4_find_leaf): New function.
44043 (grub_ext2_read_block): Handle extents.
44044
44045 2008-07-12 Robert Millan <rmh@aybabtu.com>
44046
44047 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44048
44049 2008-07-11 Robert Millan <rmh@aybabtu.com>
44050
44051 * util/grub.d/40_custom.in: New file. Example on how to add custom
44052 entries to /etc/grub.d.
44053 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44054 40_custom (implicitly, by merging all the grub.d rules).
44055
44056 2008-07-11 Pavel Roskin <proski@gnu.org>
44057
44058 * commands/read.c (grub_getline): Fix invalid memory access.
44059 Don't add newline to the variable value.
44060
44061 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44062 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44063 (serial_hw_get_port): Check validity of the port number.
44064 (grub_cmd_serial): Check return value of serial_hw_get_port().
44065
44066 2008-07-07 Pavel Roskin <proski@gnu.org>
44067
44068 * boot/i386/pc/diskboot.S (notification_string): Replace
44069 "Loading kernel" with just "loading". This is shorter, less
44070 confusing and saves a few bytes for possible future changes.
44071
44072 2008-07-05 Pavel Roskin <proski@gnu.org>
44073
44074 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44075 size for ATAPI devices, they are undefined. Output sector
44076 number in decimal form.
44077
44078 * disk/ata.c: Use named constants for status bits.
44079
44080 2008-07-04 Pavel Roskin <proski@gnu.org>
44081
44082 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44083 grub_addr_t before casting it to the void pointer to fix a
44084 warning. Non-addressable regions are discarded earlier.
44085 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44086 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44087 (check_signature): Don't shadow table_header.
44088 (grub_linuxbios_table_iterate): Cast numeric constants to
44089 grub_linuxbios_table_header_t.
44090 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44091 grub_stop().
44092
44093 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44094 prevent warnings.
44095
44096 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44097 pointer, which can cause warnings. Support 64-bit addresses.
44098
44099 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44100 of sizeof(long). This fixes PowerPC image generation on x86_64.
44101
44102 2008-07-04 Robert Millan <rmh@aybabtu.com>
44103
44104 This fixes a performance issue when pc & gpt partmap iterators
44105 didn't abort iteration even after our hook found what it was
44106 looking for (often causing expensive probes of non-existent drives).
44107
44108 Some callers relied on previous buggy behaviour, since they would
44109 raise an error when their own hooks caused early abortion of its
44110 iteration.
44111
44112 * kern/device.c (grub_device_open): Improve error message.
44113 * disk/lvm.c (grub_lvm_open): Likewise.
44114 * disk/raid.c (grub_raid_open): Likewise.
44115
44116 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44117 when hook requests it, independently of grub_errno.
44118 (pc_partition_map_probe): Do not fail when find_func() caused
44119 early abortion of pc_partition_map_iterate().
44120
44121 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44122 when hook requests it, independently of grub_errno.
44123 (gpt_partition_map_probe): Do not fail when find_func() caused
44124 early abortion of gpt_partition_map_iterate().
44125
44126 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44127 when hook requests it, independently of grub_errno. Do not fail when
44128 part_map_iterate_hook() caused early abortion of p->iterate().
44129
44130 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44131 when grub_partition_iterate() returned with non-zero.
44132
44133 2008-07-03 Pavel Roskin <proski@gnu.org>
44134
44135 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44136 like we do in grub_ata_pio_read().
44137 (grub_ata_readwrite): Always write individual sectors. Fix the
44138 sector count for the remainder.
44139 (grub_ata_write): Enable writing to ATA devices. Correctly
44140 report error for ATAPI devices.
44141
44142 2008-07-02 Pavel Roskin <proski@gnu.org>
44143
44144 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44145 warning.
44146
44147 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44148 for every read sector, we already increment it for the whole
44149 batch. This fixes reading more than 256 sectors at once.
44150
44151 * util/grub-editenv.c (cmd_info): Cast argument to long
44152 explicitly. ptrdiff_t reduces to int on i386.
44153
44154 * util/grub-editenv.c (main): Be specific which parameter is
44155 missing.
44156
44157 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44158 (memdisk): Make memdisk_orig_addr a pointer.
44159
44160 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44161 for file offsets, use grub_off_t instead. Fix printf format
44162 warnings.
44163
44164 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44165 there. Real unexpected warnings should not drown in the noise
44166 about known problems.
44167
44168 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44169 grub_disk_addr_t for memory addresses.
44170
44171 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44172 explicitly to fix a warning.
44173
44174 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44175
44176 * Makefile.in (MODULE_LDFLAGS): New variable.
44177 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44178 the linker accepts --build-id=none.
44179 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44180 MODULE_LDFLAGS.
44181 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44182
44183 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44184 those in Linux XFS code. Provide a way to access 64-bit parent
44185 inode.
44186 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44187 the end of struct grub_xfs_dir_header.
44188
44189 2008-07-02 Bean <bean123ch@gmail.com>
44190
44191 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44192 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44193 and GRUB_IEEE1275_FLAG_NO_ANSI.
44194
44195 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44196 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44197 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44198
44199 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44200 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44201
44202 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44203 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44204
44205 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44206 esc sequence on non ANSI terminal.
44207 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44208
44209 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44210 beginning of file.
44211
44212 2008-07-02 Bean <bean123ch@gmail.com>
44213
44214 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44215 (grub_editenv_SOURCES): New variable.
44216 (pkglib_MODULES): Add loadenv.mod.
44217 (loadenv_mod_SOURCES): New variable.
44218 (loadenv_mod_CFLAGS): Likewise.
44219 (loadenv_mod_LDFLAGS): Likewise.
44220
44221 * include/grub/envblk.h: New file.
44222
44223 * util/envblk.c: New file.
44224
44225 * util/grub-editenv.c: New file.
44226
44227 * commands/loadenv.c: New file.
44228
44229 2008-07-01 Pavel Roskin <proski@gnu.org>
44230
44231 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44232 not unsigned char. This fixes warnings and is consistent with
44233 other tags.
44234
44235 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44236
44237 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44238
44239 * term/tparm.c (analyze): Always set *popcount.
44240
44241 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44242 cast to fix a warning.
44243
44244 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44245 cast to suppress a warning.
44246
44247 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44248 grub_fshelp_read_file() expects.
44249
44250 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44251 write uuid as a 32-bit value in CPU byte order, so declare and
44252 use it as such.
44253
44254 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44255 long if the format specifier expects it.
44256 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44257 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44258 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44259 long to fix a warning.
44260 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44261 grub_dprintf() arguments to fix warnings.
44262
44263 2008-06-30 Pavel Roskin <proski@gnu.org>
44264
44265 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44266 install_bsd_part immediately before core.img is embedded or
44267 modified on disk. This fixes core.img verification if core.img
44268 cannot be embedded.
44269
44270 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44271 core_path to calculate the blocklist.
44272 Patch from Javier Martín <lordhabbit@gmail.com>
44273
44274 2008-06-29 Robert Millan <rmh@aybabtu.com>
44275
44276 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44277 block to disk block.
44278 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44279 Patch from Niels Böhm <bitbucket@arcor.de>
44280
44281 2008-06-29 Robert Millan <rmh@aybabtu.com>
44282
44283 * util/update-grub_lib.in (font_path): Search for fonts in
44284 /boot/grub first, which is more likely to be readable (we aren't
44285 deciding where fonts live, just looking for them).
44286
44287 2008-06-26 Pavel Roskin <proski@gnu.org>
44288
44289 * util/biosdisk.c (read_device_map): Don't leave dead map
44290 entries for devices failing stat() check.
44291
44292 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44293 core_path_dev for the core.img path on the target device.
44294
44295 2008-06-26 Robert Millan <rmh@aybabtu.com>
44296
44297 * disk/fs_uuid.c: New file.
44298 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44299 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44300 (fs_uuid_mod_LDFLAGS): New variables.
44301 * include/grub/disk.h (grub_disk_dev_id): Add
44302 `GRUB_DISK_DEVICE_UUID_ID'.
44303 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44304 implement iterate().
44305
44306 2008-06-26 Robert Millan <rmh@aybabtu.com>
44307
44308 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44309 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44310 Linux image includes no initrd.
44311
44312 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44313
44314 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44315 call to resolve the core image location that effectively appended the
44316 name twice.
44317
44318 2008-06-21 Robert Millan <rmh@aybabtu.com>
44319
44320 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44321 call from here ...
44322
44323 * util/grub.d/10_hurd.in: ... to here ...
44324 * util/grub.d/10_linux.in: ... and here.
44325
44326 2008-06-19 Robert Millan <rmh@aybabtu.com>
44327
44328 * kern/main.c (grub_main): Export `prefix' variable immediately
44329 after it has been set by grub_machine_set_prefix().
44330
44331 2008-06-19 Robert Millan <rmh@aybabtu.com>
44332
44333 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44334 search result when not saving to variable, not the other way around.
44335 When saving to variable, abort iteration as soon as a match is found.
44336
44337 2008-06-19 Robert Millan <rmh@aybabtu.com>
44338
44339 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44340 check for partition that provides /boot/grub. Its logic is flawed,
44341 as it prevents prepare_grub_to_access_device() from being called
44342 multiple times.
44343
44344 2008-06-19 Robert Millan <rmh@aybabtu.com>
44345
44346 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44347 "insmod" command directly when abstraction modules are needed,
44348 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44349 since it had already been processed).
44350
44351 2008-06-19 Pavel Roskin <proski@gnu.org>
44352
44353 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44354 changed. This is needed in case GRUB_LIBDIR changes.
44355 * conf/i386-ieee1275.rmk: Likewise.
44356 * conf/i386-linuxbios.rmk: Likewise.
44357 * conf/i386-pc.rmk: Likewise.
44358 * conf/powerpc-ieee1275.rmk: Likewise.
44359
44360 2008-06-18 Pavel Roskin <proski@gnu.org>
44361
44362 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44363 kernel_elf_symlist.c to symlist.c for consistency with other
44364 architectures. Update all users.
44365 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44366
44367 2008-06-18 Robert Millan <rmh@aybabtu.com>
44368
44369 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44370 it in prefix.
44371
44372 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44373 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44374 a RAID device, run setup() for all members independently on whether
44375 LVM abstraction is being used.
44376 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44377 If grub-mkimage has set `*install_dos_part == -2', don't override this
44378 value.
44379 Perform *install_dos_part adjustments independently on whether
44380 we're embedding or not.
44381 Clarify error message when image is too big for embedding.
44382 Remove duplicate *install_dos_part stanza.
44383
44384 2008-06-17 Robert Millan <rmh@aybabtu.com>
44385
44386 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44387 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44388 variables.
44389 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44390 values in grub_ofconsole_normal_color and
44391 grub_ofconsole_highlight_color (they're not directly related to
44392 background and foreground).
44393 (grub_ofconsole_setcolorstate): Extract background and foreground
44394 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44395
44396 2008-06-17 Robert Millan <rmh@aybabtu.com>
44397
44398 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44399 /boot/grub for the check in last commit, not /boot (they could be
44400 different partitions).
44401
44402 2008-06-16 Robert Millan <rmh@aybabtu.com>
44403
44404 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44405 asked to setup access for the same partition that provides /boot,
44406 don't bother using UUIDs since our root already has the value we
44407 want.
44408
44409 2008-06-16 Robert Millan <rmh@aybabtu.com>
44410
44411 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44412 I2O devices.
44413 Patch from Sven Mueller <sven@debian.org>.
44414
44415 2008-06-16 Robert Millan <rmh@aybabtu.com>
44416
44417 * util/update-grub.in: Check for $EUID instead of $UID.
44418 Reported by Vincent Zweije.
44419
44420 2008-06-16 Bean <bean123ch@gmail.com>
44421
44422 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44423 (grub_ext2_read_block): Likewise.
44424 (grub_ext2_read_inode): Likewise.
44425 (grub_ext2_mount): Likewise.
44426 (grub_ext2_close): Likewise.
44427 (grub_ext3_get_journal): Removed.
44428
44429 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44430 (grub_reiserfs_read_symlink): Likewise.
44431 (grub_reiserfs_mount): Likewise.
44432 (grub_reiserfs_open): Likewise.
44433 (grub_reiserfs_read): Likewise.
44434 (grub_reiserfs_close): Likewise.
44435 (grub_reiserfs_get_journal): Removed.
44436
44437 * fs/fshelp.c (grub_fshelp_read): Removed.
44438 (grub_fshelp_map_block): Likewise.
44439
44440 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44441 (grub_fshelp_journal): Likewise.
44442 (grub_fshelp_read): Likewise.
44443 (grub_fshelp_map_block): Likewise.
44444
44445 2008-06-16 Pavel Roskin <proski@gnu.org>
44446
44447 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44448 floating point anymore.
44449 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44450
44451 2008-06-15 Pavel Roskin <proski@gnu.org>
44452
44453 * commands/ls.c (grub_ls_list_files): Use integer calculations
44454 for human readable format, avoid floating point use.
44455 * kern/misc.c (grub_ftoa): Remove.
44456 (grub_vsprintf): Remove floating point support.
44457
44458 2008-06-15 Robert Millan <rmh@aybabtu.com>
44459
44460 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44461 devices.
44462 Reported by Max Vozeler.
44463
44464 2008-06-15 Robert Millan <rmh@aybabtu.com>
44465
44466 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44467 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44468 skipped later.
44469 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44470 the beginning of the prefix.
44471
44472 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44473 It is assumed that if we have a memdisk, grub-mkimage has set
44474 grub_prefix to include the "(memdisk)" drive in it.
44475
44476 2008-06-15 Robert Millan <rmh@aybabtu.com>
44477
44478 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44479 Initialize keyboard controller after registering the terminal, so that
44480 grub_printf() can be called from grub_keyboard_controller_init().
44481
44482 2008-06-15 Robert Millan <rmh@aybabtu.com>
44483
44484 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44485 extent-btree which is written as big endian on disk.
44486 Reported by Alain Greppin <al@chilibi.org>.
44487
44488 2008-06-14 Robert Millan <rmh@aybabtu.com>
44489
44490 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44491 * util/i386/pc/grub-install.in (modules): Likewise.
44492
44493 2008-06-13 Pavel Roskin <proski@gnu.org>
44494
44495 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44496
44497 2008-06-13 Bean <bean123ch@gmail.com>
44498
44499 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44500
44501 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44502
44503 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44504 to indicate sparse block.
44505
44506 2008-06-12 Pavel Roskin <proski@gnu.org>
44507
44508 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44509 number, grub_fshelp_read() does it for us.
44510
44511 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44512 linear disk read with journal translation.
44513 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44514 * include/grub/fshelp.h: Declare grub_fshelp_read().
44515
44516 2008-06-09 Pavel Roskin <proski@gnu.org>
44517
44518 * fs/minix.c (grub_minix_mount): Handle error reading
44519 superblock.
44520
44521 2008-06-08 Robert Millan <rmh@aybabtu.com>
44522
44523 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44524 don't append the RAID prefix afterwards.
44525 Reported by Clint Adams.
44526
44527 2008-06-08 Robert Millan <rmh@aybabtu.com>
44528
44529 Based on description from Pavel:
44530 * kern/disk.c (grub_disk_check_range): Rename to ...
44531 (grub_disk_adjust_range): ... this. Add a comment explaining the
44532 tasks performed by this function.
44533
44534 2008-06-08 Robert Millan <rmh@aybabtu.com>
44535
44536 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44537 `num_serial' (for consistency with other variables).
44538 (struct grub_ntfs_data): Add `uuid' member.
44539 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44540 (grub_ntfs_uuid): New function.
44541 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44542
44543 2008-06-07 Pavel Roskin <proski@gnu.org>
44544
44545 * util/biosdisk.c (open_device): Revert last change to the
44546 function, it broke installation. The sector needs to be
44547 different dependent on which device is opened.
44548
44549 2008-06-06 Robert Millan <rmh@aybabtu.com>
44550
44551 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44552 rest of GRUB, and breakage doesn't happen if its value were modified.
44553
44554 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44555 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44556 a constant (same value).
44557 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44558 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44559
44560 2008-06-06 Robert Millan <rmh@aybabtu.com>
44561
44562 * util/biosdisk.c (open_device): Do not modify sector offset when
44563 accessing a partition. kern/disk.c already handles this for us.
44564
44565 2008-06-06 Robert Millan <rmh@aybabtu.com>
44566
44567 * util/grub-emu.c (grub_machine_init): Move code in this function from
44568 here ...
44569 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44570 segfault in case grub_printf() is called).
44571
44572 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44573 grub_probe. Update all users not to explicitly add it again.
44574 (grub_device): New variable; contains corresponding device for grubdir.
44575 (fs_module, partmap_module, devabstraction_module): Pass
44576 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44577 every time.
44578
44579 2008-06-05 Robert Millan <rmh@aybabtu.com>
44580
44581 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44582 is found, print it (same layout as with labels).
44583
44584 2008-06-04 Robert Millan <rmh@aybabtu.com>
44585
44586 * util/biosdisk.c (get_drive): Rename to ...
44587 (find_grub_drive): ... this. Update all users.
44588
44589 (get_os_disk): Rename to ...
44590 (convert_system_partition_to_system_disk): ... this. Update all users.
44591
44592 (find_drive): Rename to ...
44593 (find_system_device): ... this. Update all users.
44594
44595 2008-06-04 Robert Millan <rmh@aybabtu.com>
44596
44597 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44598 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44599 (make_device_map): Likewise.
44600
44601 2008-06-01 Robert Millan <rmh@aybabtu.com>
44602
44603 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44604 before dereferencing it.
44605
44606 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44607 union with fat12/fat16-specific ones. Add some new fields, including
44608 `num_serial' for both versions.
44609 (struct grub_fat_data): Add `uuid' member.
44610 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44611 names. Initialize `data->uuid' using `num_serial'.
44612 (grub_fat_uuid): New function.
44613 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44614
44615 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44616 (grub_reiserfs_uuid): New function.
44617 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44618 member.
44619
44620 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44621 (grub_xfs_uuid): New function.
44622 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44623
44624 2008-06-01 Robert Millan <rmh@aybabtu.com>
44625
44626 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44627 code that is backward compatible with pre-uuid search command.
44628
44629 2008-05-31 Robert Millan <rmh@aybabtu.com>
44630
44631 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44632 floppies after everything else, to ensure floppy drive isn't accessed
44633 unnecessarily (patch from Bean).
44634
44635 2008-05-31 Robert Millan <rmh@aybabtu.com>
44636
44637 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44638 not print device names when we were asked to set a variable.
44639
44640 2008-05-31 Robert Millan <rmh@aybabtu.com>
44641
44642 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44643 using "cursor-on" and "cursor-off" commands (understood at least by
44644 the Open Firmware flavour on OLPC).
44645
44646 2008-05-31 Michael Gorven <michael@gorven.za.net>
44647
44648 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44649 on and off sequences.
44650
44651 2008-05-31 Robert Millan <rmh@aybabtu.com>
44652
44653 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44654 * util/update-grub.in: Likewise.
44655
44656 2008-05-30 Pavel Roskin <proski@gnu.org>
44657
44658 * util/biosdisk.c (linux_find_partition): Simplify logic and
44659 make the code more universal. Keep special processing for
44660 devfs, but use a simple rule for all other devices. If the
44661 device ends with a number, append 'p' and the partition number.
44662 Otherwise, append only the partition number.
44663
44664 2008-05-30 Robert Millan <rmh@aybabtu.com>
44665
44666 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44667 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44668 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44669 the `root' parameter to Linux.
44670
44671 2008-05-30 Robert Millan <rmh@aybabtu.com>
44672
44673 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44674 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44675 --fs_uuid with --fs-uuid.
44676 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44677 all filesystems support them).
44678
44679 2008-05-30 Robert Millan <rmh@aybabtu.com>
44680
44681 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44682 grub_printf() flags, since we're printing in units of 2 bytes.
44683
44684 2008-05-30 Robert Millan <rmh@aybabtu.com>
44685
44686 * util/grub.d/00_header.in: Remove obsolete comment referencing
44687 convert_system_path_to_grub_path().
44688 * util/update-grub.in: Likewise.
44689 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44690 (convert_system_path_to_grub_path): Add a warning message explaining
44691 that this function is deprecated. Rely on is_path_readable_by_grub()
44692 for the readability checks.
44693 (font_path): Use is_path_readable_by_grub() for the readability
44694 check rather than convert_system_path_to_grub_path().
44695
44696 2008-05-30 Robert Millan <rmh@aybabtu.com>
44697
44698 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44699 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44700 converting it first.
44701 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44702 grub.cfg for access to font file, and afterwards call it again to set
44703 the root device.
44704
44705 2008-05-30 Robert Millan <rmh@aybabtu.com>
44706
44707 * commands/search.c (options): Add --fs_uuid option.
44708 (search_fs_uuid): New function.
44709 (grub_cmd_search): Fix --set argument passing.
44710 Use search_fs_uuid() when requested via --fs_uuid.
44711 (grub_search_init): Update help message.
44712 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44713 and redeclare it as an array of 16-bit words.
44714 (grub_ext2_uuid): New function.
44715 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44716 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44717 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44718 (GRUB_DEVICE_BOOT_UUID): New variables.
44719 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44720 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44721 whenever possible.
44722 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44723 just assume `root' variable has the right value.
44724 * util/grub.d/10_linux.in: Likewise.
44725 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44726 via PRINT_FS_UUID.
44727 (main): Recognise `-t fs_uuid' argument.
44728
44729 2008-05-30 Robert Millan <rmh@aybabtu.com>
44730
44731 * util/biosdisk.c (map): Redefine structure to hold information
44732 about GRUB drive name.
44733 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44734 drive names.
44735 (call_hook): Remove.
44736 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44737 member. Assume drive has partitions.
44738 (grub_util_biosdisk_open): Access device names via `.device' struct
44739 member.
44740 (open_device): Likewise.
44741 (find_drive): Likewise.
44742 (read_device_map): Adjust map[] usage to match the new struct
44743 definition. Don't check for duplicates (still possible, but not cheap
44744 anymore).
44745 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44746 (make_device_name): Remove assumption of BIOS-like drive names.
44747
44748 2008-05-30 Pavel Roskin <proski@gnu.org>
44749
44750 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44751 compiling execute.c doesn't need grub_script.tab.h anymore.
44752 (normal/command.c_DEPENDENCIES): Likewise.
44753 (normal/function.c_DEPENDENCIES): Likewise.
44754 * conf/i386-ieee1275.rmk: Likewise.
44755 * conf/i386-linuxbios.rmk: Likewise.
44756 * conf/i386-pc.rmk: Likewise.
44757 * conf/powerpc-ieee1275.rmk: Likewise.
44758 * conf/sparc64-ieee1275.rmk: Likewise.
44759
44760 2008-05-29 Pavel Roskin <proski@gnu.org>
44761
44762 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44763 when scanning metadata for volume group name.
44764
44765 * include/grub/script.h: Don't include grub_script.tab.h. It's
44766 a generated file, which may only be included from the files with
44767 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44768 use union YYSTYPE, as the later allows forward declaration.
44769 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44770
44771 2008-05-29 Robert Millan <rmh@aybabtu.com>
44772
44773 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44774 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44775 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44776 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44777 scan codes.
44778
44779 2008-05-29 Robert Millan <rmh@aybabtu.com>
44780
44781 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44782 control key combinations.
44783
44784 2008-05-29 Robert Millan <rmh@aybabtu.com>
44785
44786 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44787 * util/ieee1275/grub-install.in: ... to here.
44788 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44789 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44790 (grub_install_SOURCES): Likewise.
44791
44792 2008-05-29 Robert Millan <rmh@aybabtu.com>
44793
44794 * fs/affs.c: Update copyright year.
44795 * fs/ext2.c: Likewise.
44796 * fs/fshelp.c: Likewise.
44797 * fs/hfsplus.c: Likewise.
44798 * fs/ntfs.c: Likewise.
44799 * fs/xfs.c: Likewise.
44800 * include/grub/fshelp.h: Likewise.
44801 * util/grub-mkdevicemap.c: Likewise.
44802
44803 2008-05-28 Robert Millan <rmh@aybabtu.com>
44804
44805 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44806 might need to be fatfs to support some firmware implementations
44807 (e.g. OFW or EFI).
44808
44809 2008-05-28 Robert Millan <rmh@aybabtu.com>
44810
44811 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44812 devices.
44813 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44814 (make_device_map): Likewise.
44815
44816 2008-05-20 Bean <bean123ch@gmail.com>
44817
44818 * fs/fshelp.c (grub_fshelp_map_block): New function.
44819 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44820 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44821
44822 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44823 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44824 (grub_fshelp_journal): New structure.
44825 (grub_fshelp_map_block): New function prototype.
44826 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44827 (grub_fshelp_map_block): Likewise.
44828
44829 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44830 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44831 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44832 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44833 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44834 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44835 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44836 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44837 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44838 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44839 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44840 (grub_ext2_sblock): New members for journal support.
44841 (grub_ext3_journal_header): New structure.
44842 (grub_ext3_journal_revoke_header): Likewise.
44843 (grub_ext3_journal_block_tag): Likewise.
44844 (grub_ext3_journal_sblock): Likewise.
44845 (grub_fshelp_node): New members logfile and journal.
44846 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44847 grub_fshelp_map_block to get real block number.
44848 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44849 number.
44850 (grub_ext2_read_inode): Likewise.
44851 (grub_ext3_get_journal): New function.
44852 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44853 (grub_ext2_close): Release memory used by journal.
44854
44855 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44856 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44857 (grub_reiserfs_transaction_header): Renamed to
44858 grub_reiserfs_description_block, replace field data with real_blocks.
44859 (grub_reiserfs_commit_block): New structure.
44860 (grub_reiserfs_data): New member journal.
44861 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44862 number.
44863 (grub_reiserfs_read_symlink): Likewise.
44864 (grub_reiserfs_iterate_dir): Likewise.
44865 (grub_reiserfs_open): Likewise.
44866 (grub_reiserfs_read): Likewise.
44867 (grub_reiserfs_get_journal): New function.
44868 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44869 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44870 using grub_reiserfs_get_journal.
44871 (grub_reiserfs_close): Release memory used by journal.
44872
44873 * fs/affs.c (grub_affs_read_block): Change block type to
44874 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44875
44876 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44877
44878 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44879
44880 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44881
44882 * fs/udf.c (grub_udf_read_block): Change block type to
44883 grub_disk_addr_t. Use type cast to avoid warning.
44884
44885 * fs/xfs.c (grub_xfs_read_block): Likewise.
44886
44887 2008-05-16 Christian Franke <franke@computer.org>
44888
44889 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44890 to ensure that break with ESC will always work.
44891 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44892 Remove ESC from keyboard queue.
44893
44894 2008-05-16 Christian Franke <franke@computer.org>
44895
44896 * util/biosdisk.c: [__CYGWIN__] Add includes.
44897 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44898 (get_os_disk): Move variable declarations to OS specific
44899 parts to avoid warning.
44900 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44901 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44902 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44903 Cygwin.
44904 * util/getroot.c: [__CYGWIN__] Add includes.
44905 (strip_extra_slashes): Fix "/" case.
44906 [__CYGWIN__] (get_win32_path): New function.
44907 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44908 [__CYGWIN__] (find_root_device): Disable.
44909 [__CYGWIN__] (get_bootsec_serial): New function.
44910 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44911 [__linux__] (grub_guess_root_device): Add early returns to simplify
44912 structure.
44913 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44914 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44915 check for Linux only.
44916
44917 2008-05-15 Bean <bean123ch@gmail.com>
44918
44919 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44920 keyboard hang problem in apple's intel mac.
44921
44922 2008-05-09 Robert Millan <rmh@aybabtu.com>
44923
44924 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44925 devices.
44926 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44927 (make_device_map): Likewise.
44928 Reported by Aurelien Jarno <aurel32@debian.org>
44929
44930 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44931
44932 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44933 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44934 (make_device_map): Output entries for xvd type disks.
44935
44936 2008-05-07 Robert Millan <rmh@aybabtu.com>
44937
44938 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44939 devices.
44940 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44941 (make_device_map): Likewise.
44942 Reported by Roland Dreier <rdreier@cisco.com>
44943
44944 2008-05-07 Robert Millan <rmh@aybabtu.com>
44945
44946 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44947 grub_strstr() call. Correct a few mistakes in failure path handling.
44948
44949 2008-05-06 Robert Millan <rmh@aybabtu.com>
44950
44951 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44952 Do not print a trailing slash (therefore, the root directory is an
44953 empty string).
44954 (convert_system_path_to_grub_path): Do not remove trailing slash
44955 from make_system_path_relative_to_its_root() output.
44956
44957 * util/i386/pc/grub-install.in: Add trailing slash to output from
44958 make_system_path_relative_to_its_root().
44959
44960 2008-05-06 Robert Millan <rmh@aybabtu.com>
44961
44962 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44963 ensures that output lines aren't intermangled with those sent to
44964 stderr (via grub_util_info()).
44965 * util/grub-probe.c (grub_refresh): Likewise.
44966 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44967
44968 2008-05-05 Christian Franke <franke@computer.org>
44969
44970 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44971 Add Cygwin device names.
44972 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44973 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44974 (check_device): Return error instead of success on empty name.
44975 (make_device_map): Move label inside linux specific code to
44976 prevent compiler warning.
44977
44978 2008-04-30 Robert Millan <rmh@aybabtu.com>
44979
44980 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44981 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44982 first boot option.
44983 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44984
44985 2008-04-29 Robert Millan <rmh@aybabtu.com>
44986
44987 * docs/grub.cfg: New file (example GRUB configuration).
44988
44989 2008-04-26 Robert Millan <rmh@aybabtu.com>
44990
44991 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44992 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44993 and `disk/ieee1275/nand.c'.
44994
44995 2008-04-25 Bean <bean123ch@gmail.com>
44996
44997 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44998 i386-linuxbios.
44999
45000 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45001 change the buffer size to 4096 for cdrom device.
45002
45003 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45004 and nand.mod.
45005 (_linux_mod_SOURCES): New variable.
45006 (_linux_mod_CFLAGS): Likewise.
45007 (_linux_mod_LDFLAGS): Likewise.
45008 (linux_mod_SOURCES): Likewise.
45009 (linux_mod_CFLAGS): Likewise.
45010 (linux_mod_LDFLAGS): Likewise.
45011 (nand_mod_SOURCES): Likewise.
45012 (nand_mod_CFLAGS): Likewise.
45013 (nand_mod_LDFLAGS): Likewise.
45014
45015 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45016 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45017 type property. (nand device in olpc don't have this property)
45018
45019 * include/grub/disk.h (grub_disk_dev_id): New macro
45020 GRUB_DISK_DEVICE_NAND_ID.
45021
45022 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45023 function prototype.
45024 (grub_rescue_cmd_initrd): Likewise.
45025
45026 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45027 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45028 ofw_cif_handler and ofw_idt, adjust padding number.
45029
45030 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45031 GRUB_MACHINE_IEEE1275 is defined.
45032
45033 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45034 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45035
45036 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45037 on nested function heap_init.
45038 (grub_upper_mem): New variable for i386-ieee1275.
45039 (grub_get_extended_memory): New function for i386-ieee1275.
45040 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45041
45042 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45043 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45044 property.
45045
45046 * loader/i386/ieee1275/linux.c: New file.
45047
45048 * loader/i386/ieee1275/linux_normal.c: New file.
45049
45050 * disk/ieee1275/nand.c: New file.
45051
45052 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45053
45054 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45055 value.
45056 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45057
45058 2008-04-18 Robert Millan <rmh@aybabtu.com>
45059
45060 Restructures early code path on ieee1275 to unify grub_main() as
45061 the first C function that is executed in every platform.
45062
45063 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45064 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45065 cmain().
45066 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45067 * kern/ieee1275/cmain.c (cmain): Rename to ...
45068 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45069 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45070 at the beginning.
45071
45072 2008-04-18 Robert Millan <rmh@aybabtu.com>
45073
45074 * util/update-grub.in: Fix syntax error when setting
45075 `GRUB_PRELOAD_MODULES'.
45076 Reported by Stephane Chazelas <stephane@artesyncp.com>
45077
45078 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45079
45080 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45081 section into account, newer toolchains generate unique build ids
45082 * configure.ac: remove the test for --build-id=none acceptance,
45083 we want build ids to be preserved
45084 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45085 far from other sections don't cause the raw binary images grow
45086 size
45087
45088 2008-04-15 Robert Millan <rmh@aybabtu.com>
45089
45090 * disk/lvm.c: Update copyright year.
45091 * kern/misc.c: Likewise.
45092
45093 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45094
45095 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45096 there is no memory left for physical volume name.
45097
45098 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45099
45100 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45101 volume name mapping to support bigger than 9 character names properly.
45102
45103 2008-04-13 Robert Millan <rmh@aybabtu.com>
45104
45105 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45106 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45107
45108 2008-04-13 Christian Franke <franke@computer.org>
45109
45110 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45111 to create a floppy emulation boot CD when non emulation mode
45112 does not work.
45113 Enable Joliet CD filesystem extension.
45114
45115 2008-04-13 Robert Millan <rmh@aybabtu.com>
45116
45117 * kern/misc.c (grub_strncat): Fix off-by-one error.
45118 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45119
45120 * kern/env.c (grub_env_context_close): Clear current context, not
45121 previous one.
45122 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45123
45124 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45125
45126 2008-04-13 Robert Millan <rmh@aybabtu.com>
45127
45128 Improve robustness when handling LVM.
45129
45130 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45131 (and leave `*p' unmodified).
45132 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45133 through it.
45134 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45135 iterating through it.
45136 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45137 through it.
45138 (grub_lvm_scan_device): Check the return value (and fail gracefully
45139 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45140 Don't assume `vg->pvs != NULL' when iterating through it.
45141
45142 2008-04-13 Robert Millan <rmh@aybabtu.com>
45143
45144 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45145 * genmk.rb (partmap): New variable.
45146 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45147 (#{partmap}): New target rule.
45148 * genpartmaplist.sh: New file.
45149 * Makefile.in (pkglib_DATA): Add partmap.lst.
45150 (partmap.lst): New target rule.
45151 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45152 modules (including all partition maps), instead of preloading them.
45153
45154 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45155
45156 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45157 `linux-boot-prober' (if installed) to detect other operating
45158 systems which are installed on the computer and add them to
45159 the boot menu.
45160 * conf/common.rmk: Build and install 30_os-prober.
45161
45162 2008-04-12 Robert Millan <rmh@aybabtu.com>
45163
45164 * kern/powerpc/ieee1275/init.c: Move from here ...
45165 * kern/ieee1275/init.c: ... to here. Update all users.
45166
45167 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45168 * kern/ieee1275/cmain.c: ... to here. Update all users.
45169
45170 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45171 * kern/ieee1275/openfw.c: ... to here. Update all users.
45172
45173 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45174 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45175
45176 2008-04-10 Pavel Roskin <proski@gnu.org>
45177
45178 * configure.ac: Always use "_cv_" in cache variables for
45179 compatibility with Autoconf 2.62.
45180
45181 2008-04-07 Robert Millan <rmh@aybabtu.com>
45182
45183 Revert grub/machine/init.h addition by Pavel (since it breaks on
45184 i386-ieee1275 and others):
45185 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45186 * util/powerpc/ieee1275/misc.c: Likewise.
45187
45188 2008-04-07 Robert Millan <rmh@aybabtu.com>
45189
45190 * util/grub-probe.c (probe): Improve error message.
45191
45192 2008-04-07 Robert Millan <rmh@aybabtu.com>
45193
45194 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45195 (this prevents the presence of a bogus entry from ruining the whole
45196 thing).
45197
45198 2008-04-06 Pavel Roskin <proski@gnu.org>
45199
45200 * util/biosdisk.c: Include grub/util/biosdisk.h.
45201 * util/grub-fstest.c (execute_command): Make static.
45202 * util/grub-mkdevicemap.c (check_device): Likewise.
45203 * util/i386/pc/misc.c: Include grub/machine/init.h.
45204 * util/powerpc/ieee1275/misc.c: Likewise.
45205 * util/lvm.c: Include grub/util/lvm.h.
45206 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45207 grub/cache.h.
45208 * util/raid.c: Include grub/util/raid.h.
45209 (grub_util_getdiskname): Make static.
45210
45211 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45212 grub_hostfs_fini(), as they are called from grub_init_all() and
45213 grub_fini_all() respectively. This fixes an infinite loop in
45214 grub-fstest due to double registration of hostfs.
45215 Reported by Christian Franke <Christian.Franke@t-online.de>
45216
45217 2008-04-05 Pavel Roskin <proski@gnu.org>
45218
45219 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45220 all 8 functions. Otherwise, probe function 0 only.
45221
45222 2008-04-04 Pavel Roskin <proski@gnu.org>
45223
45224 * commands/lspci.c (grub_lspci_iter): Print the bus number
45225 correctly.
45226
45227 * commands/lspci.c (grub_pci_classes): Fix typos.
45228 (grub_lspci_iter): Don't print func twice. Print vendor ID
45229 before device ID, as it's normally done.
45230
45231 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45232 Fix signedness warnings.
45233 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45234 Likewise.
45235 * util/ieee1275/get_disk_name.c: Include config.h so that
45236 _GNU_SOURCE is defined and getline() is declared. Mark an
45237 unused argument as such. Fix a signedness warning.
45238
45239 2008-04-02 Pavel Roskin <proski@gnu.org>
45240
45241 * genkernsyms.sh.in: Use more robust assignments for CC and
45242 srcdir. Quote srcdir.
45243 * gensymlist.sh.in: Likewise. Assert at the compile time that
45244 the symbol table is not empty.
45245
45246 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45247 * fs/cpio.c (grub_cpio_read): Likewise.
45248
45249 2008-04-01 Pavel Roskin <proski@gnu.org>
45250
45251 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45252 * disk/host.c (grub_host_open): Likewise.
45253 * disk/loopback.c (grub_loopback_open): Likewise.
45254 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45255 disk->id as in disk/host.c, not a multi-character constant.
45256
45257 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45258 later is obsolete, potentially dangerous and sets a bad example.
45259 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45260 * util/misc.c (grub_util_get_image_size): Likewise.
45261
45262 * disk/loopback.c (options): Improve help for "--partitions".
45263
45264 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45265 options to align them with the short options, e.g. "echo -e".
45266
45267 2008-03-31 Bean <bean123ch@gmail.com>
45268
45269 * video/reader/png.c (grub_png_data): New member is_16bit and
45270 image_data.
45271 (grub_png_decode_image_header): Detect 16 bit png image.
45272 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45273 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45274 (grub_video_reader_png): Release memory occupied by image_data.
45275
45276 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45277 4096 bytes.
45278 (grub_nfs_mount): Skip the test for sector per cluster.
45279
45280 * include/grub/ntfs.h (MAX_SPC): Removed.
45281
45282 2008-03-31 Bean <bean123ch@gmail.com>
45283
45284 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45285 (grub_probe_SOURCES): Add fs/afs.c.
45286 (grub_fstest_SOURCES): Likewise.
45287 (afs_mod_SOURCES): New variable.
45288 (afs_mod_CFLAGS): Likewise.
45289 (afs_mod_LDFLAGS): Likewise.
45290
45291 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45292 (grub_emu_SOURCES): Likewise.
45293
45294 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45295
45296 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45297
45298 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45299
45300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45301
45302 * fs/afs.c: New file.
45303
45304 2008-03-30 Pavel Roskin <proski@gnu.org>
45305
45306 * disk/host.c: Include grub/misc.h to fix a warning.
45307 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45308 warnings about implicit declarations.
45309
45310 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45311 variable.
45312 * include/grub/i386/loader.h: Change declaration of
45313 grub_linux_boot() to match what grub_loader_set() expects.
45314 * util/getroot.c (grub_guess_root_device): Return const char* to
45315 fix a warning.
45316 * util/grub-probe.c (probe): Fix a warning about uninitialized
45317 abstraction_name variable.
45318 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45319 second argument as unused to fix a warning.
45320
45321 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45322 missing grub_error() call.
45323
45324 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45325 2.60 and newer uses it to define datadir.
45326
45327 * commands/sleep.c: Fix warning about implicit declaration.
45328 * disk/memdisk.c: Likewise.
45329 * loader/aout.c: Likewise.
45330 * loader/i386/bsd_normal.c: Likewise.
45331 * util/grub-probe.c: Likewise.
45332
45333 * commands/i386/cpuid.c (has_longmode): Make static.
45334 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45335 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45336
45337 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45338 GDT. This is more robust, as %ds can change.
45339 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45340 calling real_to_prot().
45341 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45342
45343 2008-03-28 Pavel Roskin <proski@gnu.org>
45344
45345 * kern/i386/pc/startup.S: Assert that uncompressed functions
45346 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45347 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45348 code, as they push parts of the code (error handlers) beyond
45349 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45350 code as correctness and size.
45351
45352 2008-03-28 Pavel Roskin <proski@gnu.org>
45353
45354 * kern/i386/pc/startup.S
45355 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45356 data block address to the real mode, keep offset minimal. This
45357 works around a bug in AWARD BIOS on old Athlon systems, which
45358 makes CD detection hang.
45359
45360 2008-03-26 Pavel Roskin <proski@gnu.org>
45361
45362 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45363 const.
45364 * include/grub/normal.h: Add grub_parse_color_name_pair()
45365 declaration.
45366
45367 2008-03-24 Bean <bean123ch@gmail.com>
45368
45369 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45370 (cd_count): Removed.
45371 (cd_drive): New variable.
45372 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45373 (grub_biosdisk_call_hook): Likewise.
45374 (grub_biosdisk_iterate): Change cdrom detection method.
45375 (grub_biosdisk_open): Replace cd_start with cd_drive.
45376 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45377 detect cdrom device.
45378
45379 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45380 Removed.
45381 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45382 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45383 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45384 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45385 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45386 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45387 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45388 (grub_biosdisk_cdrp): New structure.
45389 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45390
45391 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45392
45393 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45394 device.
45395
45396 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45397 New function.
45398
45399 2008-03-20 Robert Millan <rmh@aybabtu.com>
45400
45401 Remove 2 TiB limit in ata.mod.
45402 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45403 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45404 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45405 grub_uint64_t instead of grub_uint32_t.
45406
45407 2008-03-05 Bean <bean123ch@gmail.com>
45408
45409 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45410 (grub_multiboot): Set boot device.
45411
45412 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45413
45414 2008-03-02 Bean <bean123ch@gmail.com>
45415
45416 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45417 symlink_buffer.
45418
45419 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45420
45421 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45422 texinfo.tex.
45423
45424 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45425 modified.
45426
45427 * docs/fdl.texi: New file.
45428
45429 * docs/mdate-sh: New file. Copied from gnulib.
45430 * docs/texinfo.tex: Likewise.
45431
45432 * config.guess: Updated from gnulib.
45433 * install-sh: Likewise.
45434
45435 2008-02-28 Robert Millan <rmh@aybabtu.com>
45436
45437 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45438 (aout_mod_SOURCES): New variable.
45439 (aout_mod_CFLAGS): Likewise.
45440 (aout_mod_LDFLAGS): Likewise.
45441
45442 * conf/i386-ieee1275.rmk: Likewise.
45443
45444 2008-02-28 Robert Millan <rmh@aybabtu.com>
45445
45446 * util/update-grub.in: Reorganise terminal validity check. Accept
45447 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45448 Based on suggestion by Franklin PIAT.
45449
45450 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45451
45452 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45453 function.
45454 * util/getroot.c (grub_util_check_block_device): New function that
45455 returns the given argument if it is a block device and returns NULL else.
45456 * util/grub-probe.c (argument_is_device): New variable.
45457 (probe): Promote device_name from a variable to an argument. Receive
45458 device_name from grub_util_check_block_device() if path is NULL and from
45459 grub_guess_root_device() else. Do not free() device_name anymore.
45460 (options): Introduce new parameter '-d, --device'.
45461 (main): Add description of the new parameter to the help screen.
45462 Rename path variable to argument. Set argument_is_device if the '-d'
45463 option is given. Pass argument to probe() depending on
45464 argument_is_device.
45465
45466 2008-02-24 Bean <bean123ch@gmail.com>
45467
45468 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45469 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45470 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45471 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45472 (GRUB_ISO9660_VOLDESC_END): Likewise.
45473 (grub_iso9660_primary_voldesc): New member escape.
45474 (grub_iso9660_data): New member joliet.
45475 (grub_iso9660_convert_string): New function.
45476 (grub_iso9660_mount): Detect joliet extension.
45477 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45478 (grub_iso9660_iso9660_label): Likewise.
45479
45480 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45481 (grub_setup_SOURCES): Add fs/udf.c.
45482 (grub_fstest_SOURCES): Likewise.
45483 (udf_mod_SOURCES): New variable.
45484 (udf_mod_CFLAGS): Likewise.
45485 (udf_mod_LDFLAGS): Likewise.
45486
45487 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45488 (grub_emu_SOURCES): Likewise.
45489
45490 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45491
45492 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45493
45494 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45495
45496 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45497
45498 * fs/udf.c: New file.
45499
45500 2008-02-24 Robert Millan <rmh@aybabtu.com>
45501
45502 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45503 (normal/lexer.c_DEPENDENCIES): New variables.
45504 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45505 (normal/lexer.c_DEPENDENCIES): Likewise.
45506 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45507 (normal/lexer.c_DEPENDENCIES): Likewise.
45508 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45509 (normal/lexer.c_DEPENDENCIES): Likewise.
45510 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45511 (normal/lexer.c_DEPENDENCIES): Likewise.
45512 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45513 (normal/lexer.c_DEPENDENCIES): Likewise.
45514
45515 2008-02-23 Robert Millan <rmh@aybabtu.com>
45516
45517 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45518 since they were intended to be in hex. This didn't break previously
45519 because of a bug in gpt_partition_map_iterate() (see below).
45520
45521 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45522 when checking the validity of GPT header.
45523 Remove `partno', since it always provides the same information as `i'.
45524
45525 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45526
45527 * include/grub/efi/time.h: Fix a wrong comment.
45528
45529 2008-02-19 Pavel Roskin <proski@gnu.org>
45530
45531 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45532 message.
45533
45534 2008-02-19 Bean <bean123ch@gmail.com>
45535
45536 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45537 (aout_mod_SOURCES): New variable.
45538 (aout_mod_CFLAGS): Likewise.
45539 (aout_mod_LDFLAGS): Likewise.
45540 (_bsd_mod_SOURCES): New variable.
45541 (_bsd_mod_CFLAGS): Likewise.
45542 (_bsd_mod_LDFLAGS): Likewise.
45543 (bsd_mod_SOURCES): New variable.
45544 (bsd_mod_CFLAGS): Likewise.
45545 (bsd_mod_LDFLAGS): Likewise.
45546
45547 * include/grub/aout.h: New file.
45548
45549 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45550
45551 * include/grub/i386/bsd.h: New file.
45552
45553 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45554 to make it public.
45555
45556 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45557 function is called, so that it's possible to change it inside the hook.
45558 (grub_elf64_load): Likewise.
45559 (grub_elf_file): Don't close the file if elf header is not found.
45560 (grub_elf_close): Close the file if grub_elf_file fails (The new
45561 grub_elf_file won't close it).
45562 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45563 (grub_elf64_size): Likewise.
45564
45565 * kern/i386/loader.S (grub_unix_real_boot): New function.
45566
45567 * loader/aout.c: New file.
45568
45569 * loader/i386/bsd.c: New file.
45570
45571 * loader/i386/bsd_normal.c: New file.
45572
45573 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45574
45575 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45576 can test other formats.
45577
45578 2008-02-19 Robert Millan <rmh@aybabtu.com>
45579
45580 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45581 (grub_gpt_partition_type_empty): Redefine with macro from
45582 `<grub/gpt_partition.h>'.
45583 (gpt_partition_map_iterate): Adjust partition type comparison.
45584
45585 Export `entry' as partmap-specific `part.data' struct.
45586 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45587
45588 * include/grub/gpt_partition.h (grub_gpt_header)
45589 (grub_gpt_partentry): ... to here (new file).
45590
45591 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45592
45593 (grub_gpt_partition_type_bios_boot): New const variable, defined
45594 with macro from `<grub/gpt_partition.h>'.
45595
45596 (setup): Replace `first_start' with `embed_region', which keeps
45597 track of the embed region (and is partmap-agnostic).
45598
45599 Replace find_first_partition_start() with find_usable_region(),
45600 which finds a usable region for embedding using partmap-specific
45601 knowledge (supports PC/MSDOS and GPT).
45602
45603 Fix all assumptions that the embed region start at sector 1, using
45604 `embed_region.start' from now on. Similarly, use `embed_region.end'
45605 rather than `first_start' to calculate available size.
45606
45607 In grub_util_info() message, replace "into after the MBR" with an
45608 indication of the specific sector our embed region starts at.
45609
45610 2008-02-19 Robert Millan <rmh@aybabtu.com>
45611
45612 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45613 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45614 `commands/reboot.c'.
45615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45616 (halt_mod_SOURCES): Likewise.
45617 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45618 (halt_mod_SOURCES): Likewise.
45619
45620 2008-02-17 Christian Franke <franke@computer.org>
45621
45622 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45623
45624 2008-02-17 Robert Millan <rmh@aybabtu.com>
45625
45626 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45627 set `first_start' to 0 for non-PC/MSDOS partition maps.
45628
45629 2008-02-16 Robert Millan <rmh@aybabtu.com>
45630
45631 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45632 do not assume partition map is PC/MSDOS before performing checks that
45633 are specific to that layout.
45634
45635 2008-02-13 Robert Millan <rmh@aybabtu.com>
45636
45637 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45638 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45639 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45640
45641 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45642
45643 * configure.ac: Only a cosmetic change on the handling of
45644 -fno-stack-protector.
45645
45646 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45647
45648 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45649 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45650 reboot.c.
45651 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45652 (halt_mod_SOURCES): New variable.
45653 (halt_mod_CFLAGS): Likewise.
45654 (halt_mod_LDFLAGS): Likewise.
45655 (reboot_mod_SOURCES): Likewise.
45656 (reboot_mod_CFLAGS): Likewise.
45657 (reboot_mod_LDFLAGS): Likewise.
45658
45659 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45660 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45661 reboot.c.
45662 (halt_mod_SOURCES): Likewise.
45663 (reboot_mod_SOURCES): Likewise.
45664
45665 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45666 commands/i386/pc/reboot.c by commands/reboot.c.
45667 (reboot_mod_SOURCES): Likewise.
45668
45669 * commands/i386/pc/reboot.c: merge this file ...
45670
45671 * commands/ieee1275/reboot.c: ... and this file ...
45672
45673 * commands/reboot.c: ... to this file.
45674 Add some precompiler directive to include the correct header for
45675 each machine.
45676
45677 * commands/ieee1275/halt.c: move this file ...
45678
45679 * commands/halt.c: ... to here.
45680 Add some precompiler directive to include the correct header for
45681 each machine.
45682
45683 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45684 (grub_halt): Likewise.
45685
45686 * kern/efi/efi.c (grub_reboot): New function.
45687 (grub_halt): Likewise.
45688
45689 2008-02-12 Robert Millan <rmh@aybabtu.com>
45690
45691 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45692 /dev (like it is done for /dev/mapper). This doesn't provide support
45693 for EVMS, but at least it is now easy to identify the problem when it
45694 arises.
45695
45696 2008-02-11 Robert Millan <rmh@aybabtu.com>
45697
45698 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45699 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45700 comparing it with -1, not 0.
45701
45702 2008-02-10 Robert Millan <rmh@aybabtu.com>
45703
45704 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45705 `disk/lvm.c'.
45706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45707 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45708
45709 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45710 `disk/lvm.c' to the end of the list.
45711 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45712 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45713
45714 2008-02-10 Robert Millan <rmh@aybabtu.com>
45715
45716 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45717 grub_print_error() instead. This will let user know why we're entering
45718 rescue mode.
45719 Based on suggestions from Sam Morris.
45720
45721 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45722
45723 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45724 on remaining N args, instead of "--" arg N times.
45725
45726 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45727
45728 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45729 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45730 pattern for unknown glyphs.
45731
45732 2008-02-09 Robert Millan <rmh@aybabtu.com>
45733
45734 * configure.ac: Probe for `help2man'.
45735 * Makefile.in (builddir): New variable.
45736 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45737 or otherwise add a few flags/options to it.
45738 (install-local): For every executable utility or script that is
45739 installed, invoke $(HELP2MAN) to install a manpage based on --help
45740 output.
45741
45742 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45743 that it doesn't prevent --help from working in build tree.
45744
45745 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45746 with `bug-grub@gnu.org'.
45747 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45748 * util/update-grub.in (usage): New function.
45749 Implement proper argument check, with support for --help and --version
45750 (as well as existing -y).
45751
45752 2008-02-09 Christian Franke <franke@computer.org>
45753
45754 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45755 avoid overwriting previous output.
45756 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45757
45758 2008-02-09 Robert Millan <rmh@aybabtu.com>
45759
45760 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45761 drawing the menu.
45762
45763 2008-02-09 Robert Millan <rmh@aybabtu.com>
45764
45765 * commands/sleep.c: New file.
45766 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45767 (sleep_mod_SOURCES): New variable.
45768 (sleep_mod_CFLAGS): Likewise.
45769 (sleep_mod_LDFLAGS): Likewise.
45770
45771 2008-02-09 Robert Millan <rmh@aybabtu.com>
45772
45773 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45774 situations in which we can deduce the RAID size and the superblock
45775 doesn't match it.
45776
45777 2008-02-09 Robert Millan <rmh@aybabtu.com>
45778
45779 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45780 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45781 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45782
45783 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45784 and return a grub_diskmemberlist_t composed of physical array members.
45785 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45786
45787 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45788 prototype.
45789 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45790 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45791 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45792
45793 * util/grub-probe.c (probe): Move partmap probing code from here ...
45794 (probe_partmap): ... to here.
45795 (probe): Use probe_partmap() once for the disk we're probing, and
45796 additionally, when such disk contains a memberlist() struct member,
45797 once for each disk that is contained in the structure returned by
45798 memberlist().
45799
45800 2008-02-09 Robert Millan <rmh@aybabtu.com>
45801
45802 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45803 environment variable to 'all' in order to obtain debug output from
45804 non-util/ code.
45805 * util/i386/pc/grub-setup.c (main): Likewise.
45806
45807 2008-02-08 Robert Millan <rmh@aybabtu.com>
45808
45809 * disk/raid.c (grub_raid_scan_device): Check for
45810 `array->device[sb.this_disk.number]' rather than for
45811 `array->device[sb.this_disk.number]->name', since the latter is not
45812 guaranteed to be accessible.
45813
45814 2008-02-08 Robert Millan <rmh@aybabtu.com>
45815
45816 * disk/raid.c: Update copyright.
45817 * fs/cpio.c: Likewise.
45818 * include/grub/raid.h: Likewise.
45819 * loader/i386/pc/multiboot.c: Likewise.
45820 * util/hostfs.c: Likewise.
45821
45822 2008-02-08 Robert Millan <rmh@aybabtu.com>
45823
45824 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45825 to a grub_disk_t array.
45826 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45827 `device[x]'.
45828 (grub_raid_scan_device): Replace `device[x].name' accesses with
45829 `device[x]->name'. Simplify initialization of `array->device[x]'.
45830
45831 2008-02-08 Robert Millan <rmh@aybabtu.com>
45832
45833 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45834 grub_dprintf() calls.
45835 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45836 error message.
45837
45838 2008-02-07 Christian Franke <franke@computer.org>
45839
45840 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45841 instead of fseek and ftell to support large files.
45842 (grub_hostfs_read): Likewise.
45843
45844 2008-02-07 Robert Millan <rmh@aybabtu.com>
45845
45846 Patch from Jeroen Dekkers.
45847 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45848 failure, since successfully reading all array members might not be
45849 required.
45850
45851 2008-02-06 Robert Millan <rmh@aybabtu.com>
45852
45853 * util/grub-probe.c (probe): Simplify partmap probing (with the
45854 assumption that the first word up to the underscore equals to
45855 the module name).
45856
45857 2008-02-06 Christian Franke <franke@computer.org>
45858
45859 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45860 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45861 last block of a cpio or tar stream.
45862 Check for "TRAILER!!!" instead of any empty data
45863 block to detect last block of a cpio stream.
45864 (grub_cpio_dir): Fix constness of variable np.
45865 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45866 cpio or tar trailer is detected. This fixes a crash
45867 on open of a non existing file.
45868
45869 2008-02-05 Bean <bean123ch@gmail.com>
45870
45871 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45872 address of entry.
45873 (grub_multiboot_load_elf64): Likewise.
45874 (grub_multiboot): Initialize mbi structure.
45875
45876 * util/grub-fstest.c: Don't include unused header file script.h.
45877
45878 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45879 of file.
45880 (grub_fstest_SOURCES): Likewise.
45881
45882 2008-02-05 Robert Millan <rmh@aybabtu.com>
45883
45884 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45885 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45886 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45887 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45888
45889 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45890 (translation_table): Replace hardcoded values with macros
45891 provided by `<grub/term.h>'.
45892
45893 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45894 (keyboard_map): Correct/add a few values, with macros provided
45895 by `<grub/term.h>'.
45896 (keyboard_map_shift): Zero values that don't differ from their
45897 `keyboard_map' equivalents.
45898 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45899 Discard the second scan code that is always sent by Caps lock.
45900 Only use `keyboard_map_shift' when it provides a non-zero value,
45901 otherwise fallback to `keyboard_map'.
45902
45903 2008-02-04 Bean <bean123ch@gmail.com>
45904
45905 * Makefile.in (enable_grub_fstest): New variable.
45906
45907 * conf/common.rmk (grub_fstest_init.lst): New rule.
45908 (grub_fstest_init.h): Likewise.
45909 (grub_fstest_init.c): Likewise.
45910 (util/grub-fstest.c_DEPENDENCIES): New variable.
45911 (grub_fstest_SOURCES): Likewise.
45912
45913 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45914
45915 * util/grub-fstest.c: New file.
45916
45917 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45918
45919 Make grub-setup handle a separate root device.
45920
45921 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45922 so that the root device can be compared with the destination
45923 device.
45924 When embedding the core image, if the root and destination devices
45925 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45926 0xFF.
45927 When not embedding, set ROOT_DRIVE to 0xFF.
45928
45929 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45930
45931 Add support for having a grub directory in a different drive. This
45932 is still only the data handling part.
45933
45934 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45935 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45936 (grub_root_drive): New variable.
45937
45938 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45939 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45940 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45941 as it was.
45942
45943 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45944
45945 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45946 macro.
45947 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45948
45949 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45950 is bogus, because PXE booting does not specify any drive
45951 correctly.
45952
45953 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45954 am not sure if this is really correct.
45955
45956 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45957 is always identical to the boot drive when booting from a CD.
45958
45959 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45960 longer.
45961 (root_drive): New variable.
45962 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45963 (setup_sectors): Push %dx right after popping it, because %dh will
45964 be modified later.
45965 (copy_buffer): Restore %dx.
45966
45967 2008-02-03 Robert Millan <rmh@aybabtu.com>
45968
45969 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45970 use `cdboot.img' for cdrom images.
45971
45972 2008-02-03 Robert Millan <rmh@aybabtu.com>
45973
45974 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45975 only setup gfxterm when `font' command has succeeded.
45976
45977 2008-02-03 Robert Millan <rmh@aybabtu.com>
45978
45979 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45980 (grub_rescue_cmd_multiboot_loader)
45981 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45982
45983 2008-02-03 Pavel Roskin <proski@gnu.org>
45984
45985 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45986 %edx and %esi from stack only after grub_gate_a20() is called.
45987 grub_gate_a20() clobbers %edx.
45988
45989 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45990
45991 * configure.ac (AC_INIT): Bumped to 1.96.
45992
45993 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45994 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45995 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45996 video/readers/png.c.
45997
45998 2008-02-03 Bean <bean123ch@gmail.com>
45999
46000 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46001 (cdboot_img_SOURCES): New variable.
46002 (cdboot_img_ASFLAGS): New variable.
46003 (cdboot_img_LDFLAGS): New variable.
46004
46005 * boot/i386/pc/cdboot.S: New file.
46006
46007 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46008 (cd_count): Likewise.
46009 (grub_biosdisk_get_drive): Add support for cd device.
46010 (grub_biosdisk_call_hook): Likewise.
46011 (grub_biosdisk_iterate): Likewise.
46012 (grub_biosdisk_open): Likewise.
46013 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46014 (grub_biosdisk_rw): Support reading from cd device.
46015 (GRUB_MOD_INIT): Iterate cd devices.
46016
46017 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46018 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46019 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46020
46021 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46022
46023 2008-02-02 Robert Millan <rmh@aybabtu.com>
46024
46025 * commands/read.c: New file.
46026 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46027 (read_mod_SOURCES): New variable.
46028 (read_mod_CFLAGS): Likewise.
46029 (read_mod_LDFLAGS): Likewise.
46030
46031 2008-02-02 Robert Millan <rmh@aybabtu.com>
46032
46033 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46034 determining whether menu has to be displayed.
46035
46036 2008-02-02 Marco Gerards <marco@gnu.org>
46037
46038 * bus/pci.c: New file.
46039
46040 * include/grub/pci.h: Likewise.
46041
46042 * include/grub/i386/pc/pci.h: Likewise.
46043
46044 * commands/lspci.c: Likewise.
46045
46046 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46047 `lspci.mod'.
46048 (pci_mod_SOURCES): New variable.
46049 (pci_mod_CFLAGS): Likewise.
46050 (pci_mod_LDFLAGS): Likewise.
46051 (lspci_mod_SOURCES): Likewise.
46052 (lspci_mod_CFLAGS): Likewise.
46053 (lspci_mod_LDFLAGS): Likewise.
46054
46055 2008-02-02 Bean <bean123ch@gmail.com>
46056
46057 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46058 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46059
46060 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46061 (grub_xfs_btree_node): New structure.
46062 (grub_xfs_btree_root): New structure.
46063 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46064 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46065 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46066 (GRUB_XFS_EXTENT_SIZE): Likewise.
46067 (grub_xfs_read_block): Support btree format type.
46068 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46069 Use directory block as basic unit.
46070
46071 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46072
46073 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46074 __attribute__ ((__regparm__ (1))).
46075
46076 2008-02-01 Robert Millan <rmh@aybabtu.com>
46077
46078 Correct a mistake in previous commit.
46079
46080 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46081 top.
46082 (normal/command.c_DEPENDENCIES): New variable.
46083
46084 2008-02-01 Robert Millan <rmh@aybabtu.com>
46085
46086 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46087 top.
46088 (normal/command.c_DEPENDENCIES): New variable.
46089 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46090 * conf/i386-ieee1275.rmk: Likewise.
46091 * conf/i386-linuxbios.rmk: Likewise.
46092 * conf/i386-pc.rmk: Likewise.
46093 * conf/sparc64-ieee1275.rmk: Likewise.
46094 * conf/powerpc-ieee1275.rmk: Likewise.
46095 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46096
46097 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46098
46099 2008-02-01 Robert Millan <rmh@aybabtu.com>
46100
46101 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46102 call at beginning of function.
46103
46104 2008-01-31 Pavel Roskin <proski@gnu.org>
46105
46106 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46107 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46108 (grub_mkrescue_SOURCES): Likewise.
46109 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46110
46111 2008-01-30 Robert Millan <rmh@aybabtu.com>
46112
46113 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46114 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46115 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46116 (grub_probe_SOURCES): ... to here.
46117
46118 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46119 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46120 * conf/i386-ieee1275.rmk: Likewise.
46121 * conf/i386-linuxbios.rmk: Likewise.
46122 * conf/powerpc-ieee1275.rmk: Likewise.
46123
46124 2008-01-30 Tristan Gingold <gingold@free.fr>
46125
46126 * kern/rescue.c: Silently accept empty lines.
46127
46128 2008-01-29 Bean <bean123ch@gmail.com>
46129
46130 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46131 (real_code_2): Code cleanup and change comment style.
46132 (move_memory): Avoid using 32-bit address mode.
46133
46134 2008-01-29 Bean <bean123ch@gmail.com>
46135
46136 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46137 (png_mod_SOURCES): New variable.
46138 (png_mod_CFLAGS): Likewise.
46139 (png_mod_LDFLAGS): Likewise.
46140
46141 * video/readers/png.c: New file.
46142
46143 2008-01-28 Robert Millan <rmh@aybabtu.com>
46144
46145 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46146 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46147 `ifndef GRUB_MOD_GAP' hack.
46148 * util/elf/grub-mkimage.c (add_segments): Likewise.
46149
46150 2008-01-27 Robert Millan <rmh@aybabtu.com>
46151
46152 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46153 `GRUB_MOD_GAP' for platforms in which it's not defined.
46154 * util/elf/grub-mkimage.c (add_segments): Likewise.
46155
46156 2008-01-27 Robert Millan <rmh@aybabtu.com>
46157
46158 Get grub-emu to build again (including parallel builds).
46159
46160 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46161 Split into ...
46162 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46163 (normal/execute.c_DEPENDENCIES): ... this, ...
46164 (grub-emu_DEPENDENCIES): ... and this.
46165
46166 * conf/i386-efi.rmk: Likewise.
46167 * conf/i386-linuxbios.rmk: Likewise.
46168 * conf/i386-ieee1275.rmk: Likewise.
46169 * conf/powerpc-ieee1275.rmk: Likewise.
46170 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46171
46172 2008-01-27 Robert Millan <rmh@aybabtu.com>
46173
46174 * NEWS: Add a few items.
46175
46176 2008-01-27 Robert Millan <rmh@aybabtu.com>
46177
46178 Fix parallel builds with grub-emu. Based on earlier commit for
46179 grub-probe and grub-setup.
46180
46181 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46182 (util/grub-emu.c_DEPENDENCIES): ... this.
46183 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46184 (util/grub-emu.c_DEPENDENCIES): ... this.
46185 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46186 (util/grub-emu.c_DEPENDENCIES): ... this.
46187 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46188 (util/grub-emu.c_DEPENDENCIES): ... this.
46189 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46190 (util/grub-emu.c_DEPENDENCIES): ... this.
46191
46192 2008-01-27 Pavel Roskin <proski@gnu.org>
46193
46194 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46195 to create a gap between _end and the modules added to the image
46196 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46197 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46198 * util/elf/grub-mkimage.c (add_segments): Likewise.
46199
46200 2008-01-26 Pavel Roskin <proski@gnu.org>
46201
46202 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46203 just return an error.
46204
46205 2008-01-26 Bean <bean123ch@gmail.com>
46206
46207 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46208 (grub_reiserfs_get_item): Save offset of the next item.
46209 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46210
46211 2008-01-25 Robert Millan <rmh@aybabtu.com>
46212
46213 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46214 make all filesystem sources appear together (possibly fixing omissions
46215 while at it).
46216 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46217 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46218 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46220
46221 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46222 add `kern/file.c'.
46223 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46224 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46225 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46226 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46227
46228 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46229 (probe): Add a sanity check to make sure of our ability to read
46230 requested files when probing for filesystem type.
46231
46232 * genmk.rb: Update copyright year (2007).
46233
46234 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46235 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46236 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46237 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46238 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46239 : Remove function prototypes.
46240
46241 2008-01-25 Robert Millan <rmh@aybabtu.com>
46242
46243 Revert my previous commits (based on wrong assumption of how grub_errno
46244 works).
46245
46246 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46247 * kern/file.c (grub_file_open): Likewise.
46248
46249 2008-01-24 Pavel Roskin <proski@gnu.org>
46250
46251 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46252 that hang if GRUB tries to setup colors.
46253 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46254 colors for firmwares that don't support it.
46255 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46256 Recognize Open Hack'Ware, set flags to work around its
46257 limitations.
46258
46259 2008-01-24 Robert Millan <rmh@aybabtu.com>
46260
46261 * kern/file.c (grub_file_open): Do not account previous failures of
46262 unrelated functions when grub_errno is checked for.
46263 Reported by Oleg Strikov.
46264
46265 2008-01-24 Bean <bean123ch@gmail.com>
46266
46267 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46268 (grub_ufs_sblock): New member volume name.
46269 (grub_ufs_find_file): Fix string copy bug.
46270 (grub_ufs_label): Implement this function properly.
46271
46272 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46273 (grub_hfs_iterate_records): Use the correct file number for extents
46274 and catalog file. Fix problem in next index calculation.
46275 (grub_hfs_find_node): Replace recursive function call with loop.
46276 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46277
46278 2008-01-23 Robert Millan <rmh@aybabtu.com>
46279
46280 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46281 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46282 (grub_multiboot2_real_boot): New function prototype.
46283
46284 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46285 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46286
46287 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46288 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46289
46290 2008-01-23 Robert Millan <rmh@aybabtu.com>
46291
46292 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46293 #ifdef'ed out grub_printf().
46294
46295 2008-01-23 Robert Millan <rmh@aybabtu.com>
46296
46297 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46298 grub_dprintf calls, since they make "debug=all" mode unusable.
46299 (grub_console_checkkey): Likewise.
46300
46301 2008-01-23 Robert Millan <rmh@aybabtu.com>
46302
46303 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46304 `term/i386/pc/at_keyboard.c'.
46305 (pkglib_MODULES): Add `serial.mod'.
46306 (serial_mod_SOURCES): New variable.
46307 (serial_mod_CFLAGS): Likewise.
46308 (serial_mod_LDFLAGS): Likewise.
46309
46310 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46311 `<grub/powerpc/ieee1275/console.h>'.
46312 (grub_keyboard_controller_init): New function prototype.
46313 (grub_console_checkkey): Likewise.
46314 (grub_console_getkey): Likewise.
46315
46316 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46317 keyboard on i386.
46318
46319 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46320 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46321
46322 2008-01-23 Robert Millan <rmh@aybabtu.com>
46323
46324 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46325 present, "(memdisk)/boot/grub" becomes the default prefix.
46326
46327 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46328 a memdisk tarball with all the modules. Add --overlay=DIR option that
46329 allows users to overlay additional files into the image.
46330
46331 2008-01-23 Robert Millan <rmh@aybabtu.com>
46332
46333 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46334 and `machine/memory.h'.
46335 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46336 (_multiboot_mod_SOURCES): New variable.
46337 (_multiboot_mod_CFLAGS): Likewise.
46338 (_multiboot_mod_LDFLAGS): Likewise.
46339 (multiboot_mod_SOURCES): Likewise.
46340 (multiboot_mod_CFLAGS): Likewise.
46341 (multiboot_mod_LDFLAGS): Likewise.
46342
46343 * include/grub/i386/ieee1275/loader.h: New file.
46344
46345 * include/grub/i386/ieee1275/machine.h: Likewise.
46346
46347 * include/grub/i386/ieee1275/memory.h: Likewise.
46348
46349 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46350 variable declaration.
46351 (grub_os_area_size): Likewise.
46352
46353 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46354 (grub_lower_mem, grub_upper_mem): New variables.
46355 (grub_stop_floppy): New function (just to make
46356 grub_multiboot2_real_boot() happy).
46357
46358 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46359 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46360 (grub_stop): New function.
46361 Include `"../realmode.S"' and `"../loader.S"'.
46362
46363 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46364 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46365
46366 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46367 rely on grub_multiboot2_real_boot() for final boot.
46368
46369 2008-01-22 Robert Millan <rmh@aybabtu.com>
46370
46371 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46372 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46373 device that doesn't look like an SD card.
46374 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46375 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46376 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46377 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46378 found.
46379
46380 2008-01-22 Robert Millan <rmh@aybabtu.com>
46381
46382 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46383 avoid claiming over our own code.
46384
46385 2008-01-22 Bean <bean123ch@gmail.com>
46386
46387 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46388 (jpeg_mod_SOURCES): New variable.
46389 (jpeg_mod_CFLAGS): Likewise.
46390 (jpeg_mod_LDFLAGS): Likewise.
46391
46392 * video/readers/jpeg.c : New file.
46393
46394 2008-01-22 Bean <bean123ch@gmail.com>
46395
46396 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46397 there are no more items.
46398
46399 2008-01-21 Robert Millan <rmh@aybabtu.com>
46400
46401 * kern/mm.c (grub_mm_init_region): Improve debug message.
46402
46403 2008-01-21 Robert Millan <rmh@aybabtu.com>
46404
46405 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46406 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46407 address.
46408 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46409 a C macro.
46410 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46411 Indicates start of upper memory.
46412 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46413 (generate_image): Abort when image size is big enough to corrupt
46414 upper memory.
46415
46416 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46417 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46418 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46419 instead of hardcoding 0xA0000.
46420 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46421 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46422 instead of hardcoding 0xA0000.
46423
46424 2008-01-21 Robert Millan <rmh@aybabtu.com>
46425
46426 * disk/memdisk.c (memdisk_size): New variable.
46427 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46428 `memdisk_size'.
46429 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46430 image to dynamic memory.
46431 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46432 `memdisk_size'. Free memdisk block.
46433
46434 2008-01-21 Robert Millan <rmh@aybabtu.com>
46435
46436 Fix detection of very small filesystems (like tar).
46437
46438 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46439 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46440 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46441 a problem with this disk).
46442
46443 2008-01-21 Robert Millan <rmh@aybabtu.com>
46444
46445 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46446 on grub_biosdisk_rw_standard() error.
46447
46448 2008-01-21 Robert Millan <rmh@aybabtu.com>
46449
46450 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46451 recent changes.
46452 * kern/elf.c: Likewise.
46453 * kern/ieee1275/ieee1275.c: Likewise.
46454 * kern/powerpc/ieee1275/openfw.c: Likewise.
46455 * term/ieee1275/ofconsole.c: Likewise.
46456
46457 2008-01-21 Robert Millan <rmh@aybabtu.com>
46458
46459 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46460
46461 * include/grub/kernel.h (grub_arch_memdisk_addr)
46462 (grub_arch_memdisk_size): Moved from here ...
46463
46464 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46465 (grub_arch_memdisk_size): ... to here.
46466
46467 2008-01-21 Robert Millan <rmh@aybabtu.com>
46468
46469 Mostly based on bugfix from Bean.
46470
46471 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46472 attribute with hook() parameter.
46473 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46474 declaration.
46475 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46476 attribute with hook() parameter.
46477 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46478 declaration.
46479
46480 2008-01-21 Robert Millan <rmh@aybabtu.com>
46481
46482 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46483 (pkglib_MODULES): Add `memdisk.mod'.
46484 (memdisk_mod_SOURCES): New variable.
46485 (memdisk_mod_CFLAGS): Likewise.
46486 (memdisk_mod_LDFLAGS): Likewise.
46487
46488 * disk/memdisk.c: New file.
46489
46490 * include/grub/disk.h (grub_disk_dev_id): Add
46491 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46492
46493 * include/grub/i386/pc/kernel.h
46494 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46495 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46496 (grub_kernel_image_size): New variable declaration.
46497 (grub_total_module_size): Likewise.
46498 (grub_memdisk_image_size): Likewise.
46499
46500 * include/grub/i386/pc/memory.h
46501 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46502
46503 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46504 (grub_arch_memdisk_addr): New variable declaration.
46505 (grub_arch_memdisk_size): Likewise.
46506
46507 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46508 (grub_arch_memdisk_size): Likewise.
46509
46510 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46511 (codestart): Replace hardcoded `0x100000' with
46512 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46513
46514 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46515 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46516 not NULL, append the contents of the file it refers to, at the end of
46517 the compressed kernel image. Initialize `grub_memdisk_image_size'
46518 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46519 (options): Add "memdisk"|'m' option.
46520 (main): Parse --memdisk|-m option, and pass user-provided path as
46521 parameter to generate_image().
46522
46523 2008-01-20 Robert Millan <rmh@aybabtu.com>
46524
46525 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46526 grub_dprintf() calls from here ...
46527 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46528
46529 2008-01-20 Robert Millan <rmh@aybabtu.com>
46530
46531 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46532
46533 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46534 declaration.
46535 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46536 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46537 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46538 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46539 property).
46540 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46541 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46542
46543 2008-01-19 Robert Millan <rmh@aybabtu.com>
46544
46545 Get rid of confusing function (superseded by
46546 `grub_ieee1275_get_integer_property')
46547 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46548 prototype.
46549 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46550 function.
46551 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46552 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46553 in native endianness from grub_ieee1275_get_integer_property().
46554
46555 2008-01-19 Robert Millan <rmh@aybabtu.com>
46556
46557 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46558 command after "shut-down", since implementations differ on which
46559 the command for halt is.
46560
46561 2008-01-19 Robert Millan <rmh@aybabtu.com>
46562
46563 * include/grub/i386/linuxbios/console.h: Add header protection.
46564 (grub_keyboard_controller_init): New function prototype.
46565 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46566 (KEYBOARD_COMMAND_READ): Likewise.
46567 (KEYBOARD_COMMAND_WRITE): Likewise.
46568 (KEYBOARD_SCANCODE_SET1): Likewise.
46569 (grub_keyboard_controller_write): New function.
46570 (grub_keyboard_controller_read): Likewise.
46571 (grub_keyboard_controller_init): Likewise.
46572
46573 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46574 (grub_console_init): On coreboot/LinuxBIOS, call
46575 grub_keyboard_controller_init().
46576
46577 2008-01-19 Robert Millan <rmh@aybabtu.com>
46578
46579 PowerPC changes provided by Pavel Roskin.
46580
46581 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46582 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46583 don't rely on cmain() doing it.
46584 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46585 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46586
46587 2008-01-16 Robert Millan <rmh@aybabtu.com>
46588
46589 * include/grub/i386/linuxbios/memory.h
46590 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46591 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46592 receive `table_header' as argument. Instead, probe for it in the
46593 known memory ranges where it can be present.
46594 (grub_available_iterate): Do not pass a fixed `table_header' address
46595 to grub_linuxbios_table_iterate().
46596
46597 2008-01-15 Robert Millan <rmh@aybabtu.com>
46598
46599 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46600 * conf/i386-ieee1275.rmk: New file.
46601 * include/grub/i386/ieee1275/console.h: Likewise.
46602 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46603 * include/grub/i386/ieee1275/kernel.h: Likewise.
46604 * include/grub/i386/ieee1275/time.h: Likewise.
46605 * kern/i386/ieee1275/init.c: Likewise.
46606 * kern/i386/ieee1275/startup.S: Likewise.
46607
46608 2008-01-15 Robert Millan <rmh@aybabtu.com>
46609
46610 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46611 when pointers are 32-bit (but still do set it to one when they are
46612 64-bit).
46613
46614 2008-01-15 Robert Millan <rmh@aybabtu.com>
46615
46616 * include/grub/ieee1275/ieee1275.h
46617 (grub_ieee1275_get_integer_property): New function prototype.
46618
46619 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46620 (grub_ieee1275_get_integer_property): New function. Wraps around
46621 grub_ieee1275_get_property() to handle endianness.
46622
46623 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46624 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46625 where appropriate.
46626 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46627 (grub_map): Likewise.
46628 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46629
46630 2008-01-15 Bean <bean123ch@gmail.com>
46631
46632 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46633 (grub_script_execute_cmdline): Reset grub_errno.
46634
46635 * normal/main.c (read_config_file): Reset grub_errno.
46636
46637 * normal/parse.y (script_init): New.
46638 (script): Move function and menuentry here.
46639 (delimiter): New.
46640 (command): Add delimiter at the end of command.
46641 (commands): Adjust to match the new command.
46642 (commandblock): Remove grub_script_lexer_record_start.
46643 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46644 (if): Use the new commands.
46645
46646 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46647
46648 2008-01-15 Robert Millan <rmh@aybabtu.com>
46649
46650 * normal/menu.c (run_menu): Move timeout message from here ...
46651 (print_timeout): ... to here.
46652 (run_menu): Use print_timeout() once during initial draw to print
46653 the whole message, and again in every clock tick to update only
46654 the number of seconds.
46655
46656 2008-01-15 Robert Millan <rmh@aybabtu.com>
46657
46658 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46659 actual size of `available' from grub_ieee1275_get_property(), and
46660 restrict parsing to that bound.
46661
46662 2008-01-15 Christian Franke <franke@computer.org>
46663
46664 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46665 (argp_program_version): Remove variable.
46666 (argp_program_bug_address): Likewise.
46667 (options): Convert from struct argp_option to struct option.
46668 (struct arguments): Remove.
46669 (parse_opt): Remove.
46670 (usage): New function.
46671 (main): Replace struct args members by simple variables.
46672 Replace argp_parse() by getopt_long().
46673 Add switch to evaluate options.
46674 Add missing "(...)" around root_dev in prefix string.
46675
46676 2008-01-14 Robert Millan <rmh@aybabtu.com>
46677
46678 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46679 for grub_ieee1275_exit(), in order to improve portability.
46680
46681 2008-01-14 Robert Millan <rmh@aybabtu.com>
46682
46683 * util/grub.d/10_linux.in (prefix): Define.
46684 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46685
46686 2008-01-13 Pavel Roskin <proski@gnu.org>
46687
46688 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46689 grub_errno if no errors have been detected.
46690
46691 2008-01-12 Robert Millan <rmh@aybabtu.com>
46692
46693 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46694 (grub_util_get_dev_abstraction): New function prototype.
46695
46696 * util/getroot.c: Include `<grub/util/getroot.h>'
46697 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46698 (grub_util_get_dev_abstraction): ... here (new function).
46699
46700 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46701 `PRINT_ABSTRACTION'.
46702 (probe): Probe for abstraction type when requested.
46703 (main): Understand `--target=abstraction'.
46704
46705 * util/i386/efi/grub-install.in: Add abstraction module to core
46706 image when it is found to be necessary.
46707 * util/i386/pc/grub-install.in: Likewise.
46708 * util/powerpc/ieee1275/grub-install.in: Likewise.
46709
46710 * util/update-grub_lib.in (font_path): Return system path without
46711 converting to GRUB path.
46712 * util/update-grub.in: Convert system path returned by font_path()
46713 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46714 abstraction module is needed for loading fonts (if any). Export
46715 that as `GRUB_PRELOAD_MODULES'.
46716 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46717 insmod commands).
46718
46719 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46720
46721 Remove some unused code from reiserfs.
46722
46723 * fs/reiserfs.c (struct grub_reiserfs_key)
46724 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46725 (struct grub_reiserfs_node_body): Removed.
46726 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46727 Likewise.
46728 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46729 Likewise.
46730 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46731 Likewise.
46732 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46733 Likewise.
46734 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46735 Likewise.
46736 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46737 Likewise.
46738 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46739 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46740 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46741
46742 2008-01-10 Robert Millan <rmh@aybabtu.com>
46743
46744 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46745 Determines if a file is garbage left by packaging systems, etc.
46746 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46747 for processing /etc/grub.d scripts.
46748 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46749 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46750 as a condition for processing Linux images.
46751
46752 2008-01-10 Pavel Roskin <proski@gnu.org>
46753
46754 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46755 to compile reiserfs.c on PowerPC.
46756
46757 2008-01-10 Robert Millan <rmh@aybabtu.com>
46758
46759 * kern/device.c (grub_device_iterate): Do not abort device iteration
46760 when one of the devices cannot be opened.
46761 * kern/disk.c (grub_disk_open): Do not account previous failures of
46762 unrelated functions when grub_errno is checked for.
46763
46764 2008-01-08 Robert Millan <rmh@aybabtu.com>
46765
46766 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46767 `! grub_linux_is_bzimage', change order of address comparison to make
46768 it more intuitive, and improve "too big zImage" error message.
46769
46770 2008-01-08 Robert Millan <rmh@aybabtu.com>
46771
46772 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46773 `$(update-grub_DATA)'.
46774 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46775 targets.
46776
46777 2008-01-07 Robert Millan <rmh@aybabtu.com>
46778
46779 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46780 which instruction is modified by grub-setup during installation
46781 (since it wasn't obvious by only looking at this file).
46782
46783 2008-01-07 Robert Millan <rmh@aybabtu.com>
46784
46785 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46786 listing actual TODO items.
46787
46788 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46789
46790 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46791 correctly.
46792 (grub_reiserfs_get_key_offset): Likewise.
46793 (grub_reiserfs_set_key_offset): Likewise.
46794 (grub_reiserfs_set_key_type): Likewise.
46795 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46796
46797 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46798 better to remove the bitfield version completely.
46799
46800 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46801
46802 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46803 allocated from the heap, due to the fshelp implementation.
46804 (grub_reiserfs_dir): Free NODE, due to the same reason.
46805
46806 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46807
46808 Mostly from Vincent Pelletier:
46809
46810 * fs/reiserfs.c: New file.
46811
46812 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46813 (reiserfs_mod_SOURCES): New variable.
46814 (reiserfs_mod_CFLAGS): Likewise.
46815 (reiserfs_mod_LDFLAGS): Likewise.
46816
46817 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46818 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46819 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46820 normal/color.c.
46821
46822 2008-01-06 Robert Millan <rmh@aybabtu.com>
46823
46824 * normal/color.c: Remove `<grub/env.h>'.
46825
46826 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46827
46828 * include/grub/normal.h: Include <grub/env.h>.
46829
46830 2008-01-05 Robert Millan <rmh@aybabtu.com>
46831
46832 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46833 usage example with `(hd0,1)'.
46834 Reported by Samuel Thibault.
46835
46836 2008-01-05 Robert Millan <rmh@aybabtu.com>
46837
46838 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46839 (grub_linux_boot_zimage): Rename to ...
46840 (grub_linux_boot): ... this.
46841 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46842 (grub_linux_boot_zimage): Conditionalize zImage copy.
46843
46844 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46845 (grub_linux_boot_bzimage): Remove prototype.
46846 (grub_linux_boot_zimage): Rename to ...
46847 (grub_linux_boot): ... this.
46848
46849 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46850 (grub_linux_boot): Remove function.
46851
46852 2008-01-05 Robert Millan <rmh@aybabtu.com>
46853
46854 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46855 (grub_env_write_color_highlight): Likewise.
46856 (grub_wait_after_message): Likewise.
46857
46858 * normal/color.c: New file.
46859
46860 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46861 (normal_mod_DEPENDENCIES): Likewise.
46862
46863 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46864 (normal_mod_DEPENDENCIES): Likewise.
46865
46866 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46867 (normal_mod_DEPENDENCIES): Likewise.
46868
46869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46870 (normal_mod_DEPENDENCIES): Likewise.
46871
46872 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46873 for waiting after a message is printed.
46874 * normal/main.c (read_config_file): Likewise.
46875 (grub_normal_init): Register grub_env_write_color_normal() and
46876 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46877 `color_highlight' variables as global.
46878
46879 * normal/menu.c (grub_wait_after_message): New function.
46880 (grub_color_menu_normal): New variable. Replaces ...
46881 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46882 (grub_color_menu_highlight): New variable. Replaces ...
46883 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46884 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46885 `GRUB_TERM_COLOR_STANDARD'.
46886 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46887 `normal_code' and `highlight_code' to `old_color_normal' and
46888 `old_color_highlight', respectively.
46889 (grub_menu_init_page): Update colors when drawing the menu, based on
46890 `menu_color_normal' and `menu_color_highlight' variables.
46891 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46892 a message is printed.
46893
46894 2008-01-05 Robert Millan <rmh@aybabtu.com>
46895
46896 * kern/env.c (grub_env_context_open): Propagate hooks for global
46897 variables to new context.
46898
46899 * kern/main.c (grub_set_root_dev): Export `root' variable.
46900
46901 2008-01-05 Robert Millan <rmh@aybabtu.com>
46902
46903 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46904 discs unconditionally, since udev and others have options to provide
46905 them.
46906
46907 2008-01-05 Robert Millan <rmh@aybabtu.com>
46908
46909 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46910
46911 2008-01-04 Christian Franke <franke@computer.org>
46912
46913 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46914 of eisa_mmap.
46915
46916 2008-01-03 Pavel Roskin <proski@gnu.org>
46917
46918 * kern/i386/linuxbios/init.c: Put "void" to all function
46919 declarations with no arguments.
46920 * kern/powerpc/ieee1275/init.c: Likewise.
46921 * term/i386/pc/at_keyboard.c: Likewise.
46922 * term/i386/pc/vga_text.c: Likewise.
46923 * util/grub-mkdevicemap.c: Likewise.
46924
46925 2008-01-02 Robert Millan <rmh@aybabtu.com>
46926
46927 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46928 message when loaded image is out of bounds.
46929 (grub_multiboot_load_elf64): Likewise.
46930
46931 2008-01-02 Pavel Roskin <proski@gnu.org>
46932
46933 * util/grub.d/10_linux.in: Try version without ".old" when
46934 looking for initrd. It's better to use initrd from the newer
46935 kernel of the same version than no initrd at all.
46936
46937 2008-01-01 Robert Millan <rmh@aybabtu.com>
46938
46939 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46940
46941 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46942
46943 * include/grub/video.h: Added grub_video_unmap_color and
46944 grub_video_get_active_render_target.
46945 (grub_video_adapter): Added unmap_color and get_active_render_target.
46946
46947 * video/video.c: Added grub_video_unmap_color and
46948 grub_video_get_active_render_target.
46949 (grub_video_get_info): Changed method to accept NULL pointer as an
46950 argument to allow detection of active video adapter.
46951
46952 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46953 grub_video_vbe_unmap_color_int.
46954 Added grub_video_vbe_unmap_color and
46955 grub_video_vbe_get_active_render_target.
46956 (grub_video_vbe_adapter): Added unmap_color and
46957 get_active_render_target.
46958
46959 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46960 with grub_video_vbe_unmap_color_int.
46961
46962 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46963 (DEFAULT_NORMAL_COLOR): Likewise.
46964 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46965 (DEFAULT_FG_COLOR): Removed.
46966 (DEFAULT_BG_COLOR): Likewise.
46967 (DEFAULT_CURSOR_COLOR): Changed value.
46968 (grub_virtual_screen): Added standard_color_setting,
46969 normal_color_setting, highlight_color_setting and term_color.
46970 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46971 (bitmap_width): Added.
46972 (bitmap_height): Likewise.
46973 (bitmap): Likewise.
46974 (set_term_color): Likewise.
46975 (grub_virtual_screen_setup): Changed to use new terminal coloring
46976 settings.
46977 (grub_gfxterm_init): Added init for bitmap.
46978 (grub_gfxterm_fini): Added destroy for bitmap.
46979 (redraw_screen_rect): Updated to use background bitmap and new
46980 terminal coloring.
46981 (scroll_up): Added optimization for case when there is no bitmap.
46982 (grub_gfxterm_cls): Fixed to use correct background color.
46983 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46984 coloring.
46985 (grub_virtual_screen_setcolor): Likewise.
46986 (grub_virtual_screen_getcolor): Added.
46987 (grub_gfxterm_background_image_cmd): Likewise.
46988 (grub_video_term): Added setcolor and getcolor.
46989 (MOD_INIT): Added registration of background_image command.
46990 (MOD_TERM): Added unregistration for background_image command.
46991
46992 2007-12-30 Pavel Roskin <proski@gnu.org>
46993
46994 * loader/multiboot_loader.c: Fix multiboot command
46995 unregistration. Fix all typos in the word "multiboot".
46996
46997 2007-12-29 Pavel Roskin <proski@gnu.org>
46998
46999 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47000 support for initrd names used in Fedora.
47001
47002 2007-12-26 Bean <bean123ch@gmail.com>
47003
47004 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47005 (cpio_mod_SOURCES): New variable.
47006 (cpio_mod_CFLAGS): Likewise.
47007 (cpio_mod_LDFLAGS): Likewise.
47008
47009 * fs/cpio.c: New file.
47010
47011 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47012
47013 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47014
47015 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47016
47017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47018
47019 2007-12-25 Robert Millan <rmh@aybabtu.com>
47020
47021 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47022 (grub_getcolor): New function.
47023
47024 * kern/term.c (grub_getcolor): New function.
47025 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47026 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47027 (print_entry): Set normal and highlight colors to
47028 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47029 respectively, before printing and restore them to old
47030 values afterwards.
47031 (grub_menu_init_page): Likewise. Fill an additional colored space
47032 that would otherwise be left blank.
47033
47034 * term/efi/console.c (grub_console_getcolor): New function.
47035 (struct grub_console_term.getcolor): New variable.
47036 * term/i386/pc/console.c (grub_console_getcolor): New function.
47037 (struct grub_console_term.getcolor): New variable.
47038 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47039 (struct grub_console_term.getcolor): New variable.
47040
47041 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47042 (struct grub_console_term.setcolor): Remove variable.
47043 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47044 (struct grub_console_term.setcolor): Remove variable.
47045 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47046 (struct grub_console_term.setcolor): Remove variable.
47047 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47048 (struct grub_console_term.setcolor): Remove variable.
47049
47050 2007-12-25 Robert Millan <rmh@aybabtu.com>
47051
47052 * configure.ac: Search for possible unifont.hex locations, and
47053 define UNIFONT_HEX if found.
47054
47055 * Makefile.in (UNIFONT_HEX): Define variable.
47056 (DATA): Rename to ...
47057 (PKGLIB): ... this. Update all users.
47058 (PKGDATA): New variable.
47059 (pkgdata_IMAGES): Rename to ...
47060 (pkglib_IMAGES): ... this. Update all users.
47061 (pkgdata_MODULES): Rename to ...
47062 (pkglib_MODULES): ... this. Update all users.
47063 (pkgdata_PROGRAMS): Rename to ...
47064 (pkglib_PROGRAMS): ... this. Update all users.
47065 (pkgdata_DATA): Rename to ...
47066 (pkglib_DATA): ... this. Update all users.
47067 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47068 (unicode.pff, ascii.pff): New rules.
47069 (all-local): Add `$(PKGDATA)' dependency.
47070 (install-local): Process `$(PKGDATA)'.
47071
47072 * util/update-grub_lib.in (font_path): Search for *.pff files in
47073 a few more locations, including `${pkgdata}'.
47074
47075 2007-12-23 Robert Millan <rmh@aybabtu.com>
47076
47077 Patch from Bean <bean123ch@gmail.com>:
47078 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47079 `size'.
47080
47081 2007-12-21 Bean <bean123ch@gmail.com>
47082
47083 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47084 (ntfscomp_mod_SOURCES): New variable.
47085 (ntfscomp_mod_CFLAGS): Likewise.
47086 (ntfscomp_mod_LDFLAGS): Likewise.
47087
47088 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47089 (grub_probe_SOURCES): Likewise.
47090 (grub_emu_SOURCES): Likewise.
47091
47092 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47093 (grub_emu_SOURCES): Likewise.
47094
47095 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47096 (grub_emu_SOURCES): Likewise.
47097
47098 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47099 (grub_emu_SOURCES): Likewise.
47100
47101 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47102 (read_run_list): Renamed to grub_ntfs_read_run_list.
47103 (decomp_nextvcn): Moved to ntfscomp.c.
47104 (decomp_getch): Likewise.
47105 (decomp_get16): Likewise.
47106 (decomp_block): Likewise.
47107 (read_block): Likewise.
47108 (read_data): Partially moved to ntfscomp.c.
47109 (fixup): Change unsigned to grub_uint16_t.
47110 (read_mft): Change unsigned long to grub_uint32_t.
47111 (read_attr): Likewise.
47112 (read_data): Likewise.
47113 (read_run_data): Likewise.
47114 (read_run_list): Likewise.
47115 (read_mft): Likewise.
47116
47117 * fs/ntfscomp.c: New file.
47118
47119 * include/grub/ntfs.h: New file.
47120
47121 2007-12-16 Robert Millan <rmh@aybabtu.com>
47122
47123 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47124 IDE disk check, since Linux is known to support 20 IDE disks.
47125 Reported by Colin Watson.
47126
47127 2007-12-15 Bean <bean123ch@gmail.com>
47128
47129 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47130 (lnxboot_img_SOURCES): New variable.
47131 (lnxboot_img_ASFLAGS): Likewise.
47132 (lnxboot_img_LDFLAGS): Likewise.
47133
47134 * boot/i386/pc/lnxboot.S: New file.
47135
47136 2007-11-24 Pavel Roskin <proski@gnu.org>
47137
47138 * configure.ac: Test if '--build-id=none' is supported by the
47139 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47140 objcopy to generate incorrect binary files (binutils
47141 2.17.50.0.18-1 as shipped by Fedora 8).
47142 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47143 linking, so that build ID doesn't break the test.
47144
47145 2007-11-24 Pavel Roskin <proski@gnu.org>
47146
47147 * include/grub/i386/time.h: use "void" in the argument list
47148 of grub_cpu_idle().
47149 * include/grub/powerpc/time.h: Likewise.
47150 * include/grub/sparc64/time.h: Likewise.
47151
47152 2007-11-18 Christian Franke <franke@computer.org>
47153
47154 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47155 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47156 This fixes the problem that function keys did not work in grub-emu.
47157
47158 2007-11-18 Christian Franke <franke@computer.org>
47159
47160 * disk/host.c (grub_host_open): Remove attribute unused from
47161 name parameter. Add check for "host". This fixes the problem
47162 that grub-emu does not find partitions.
47163
47164 2007-11-18 Christian Franke <franke@computer.org>
47165
47166 * util/hostfs.c (is_dir): New function.
47167 (grub_hostfs_dir): Handle missing dirent.d_type case.
47168 (grub_hostfs_read): Add missing fseek().
47169 (grub_hostfs_label): Clear label pointer. This fixes a crash
47170 of grub-emu on "ls (host)".
47171
47172 2007-11-18 Christian Franke <franke@computer.org>
47173
47174 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47175 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47176 to 64 bit boundary by default.
47177
47178 2007-11-18 Bean <bean123ch@gmail.com>
47179
47180 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47181 (hexdump_mod_SOURCES): New variable.
47182 (hexdump_mod_CFLAGS): Likewise.
47183 (hexdump_mod_LDFLAGS): Likewise.
47184
47185 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47186
47187 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47188
47189 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47190
47191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47192
47193 * include/grub/hexdump.h: New file.
47194
47195 * commands/hexdump.c: New file.
47196
47197 2007-11-10 Robert Millan <rmh@aybabtu.com>
47198
47199 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47200 in grub_outb() calls.
47201 (beep_on): Likewise.
47202
47203 2007-11-10 Christian Franke <franke@computer.org>
47204
47205 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47206 (grub_menu_run): Likewise.
47207
47208 2007-11-10 Robert Millan <rmh@aybabtu.com>
47209
47210 * include/grub/i386/efi/machine.h: New file.
47211 * include/grub/i386/linuxbios/machine.h: Likewise.
47212 * include/grub/i386/pc/machine.h: Likewise.
47213 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47214 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47215
47216 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47217 (serial_hw_io_addr): New variable.
47218 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47219 instead of `(unsigned short *) 0x400'.
47220
47221 2007-11-10 Bean <bean123ch@gmail.com>
47222
47223 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47224
47225 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47226
47227 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47228 (vga_mod_SOURCES): Added.
47229 (vga_mod_CFLAGS): Likewise.
47230 (vga_mod_LDFLAGS): Likewise.
47231
47232 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47233 grub_outb() calls.
47234 (set_map_mask): Likewise.
47235 (set_read_map): Likewise.
47236 (set_read_address): Likewise.
47237 (vga_font): Removed variable.
47238 (get_vga_glyph): Removed function.
47239 (invalidate_char): Likewise.
47240 (write_char): Changed to use grub_font_get_glyph() for font
47241 information.
47242 (grub_vga_putchar): Likewise.
47243 (grub_vga_getcharwidth): Likewise.
47244
47245 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47246
47247 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47248 flags.
47249 (pxeboot_img_LDFLAGS): Likewise.
47250 (diskboot_img_LDFLAGS): Likewise.
47251 (kernel_img_LDFLAGS): Likewise.
47252
47253 2007-11-06 Robert Millan <rmh@aybabtu.com>
47254
47255 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47256 in grub_outb() calls.
47257 (serial_hw_init): Likewise.
47258
47259 2007-11-05 Robert Millan <rmh@aybabtu.com>
47260
47261 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47262 spaces. Skip non-regular files.
47263
47264 2007-11-05 Robert Millan <rmh@aybabtu.com>
47265
47266 * kern/disk.c (grub_disk_firmware_fini)
47267 (grub_disk_firmware_is_tainted): New variables.
47268
47269 * include/grub/disk.h (grub_disk_firmware_fini)
47270 (grub_disk_firmware_is_tainted): Likewise.
47271
47272 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47273 (grub_disk_biosdisk_fini): ... to here.
47274 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47275 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47276 is set. Register grub_disk_biosdisk_fini() in
47277 `grub_disk_firmware_fini'.
47278
47279 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47280 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47281 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47282 to finish existing firmware disk interface.
47283
47284 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47285 (ata_mod_SOURCES): New variable.
47286 (ata_mod_CFLAGS): Likewise.
47287 (ata_mod_LDFLAGS): Likewise.
47288
47289 2007-11-05 Robert Millan <rmh@aybabtu.com>
47290
47291 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47292 (grub_ata_wait): Reimplement using grub_millisleep().
47293
47294 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47295 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47296
47297 2007-11-03 Marco Gerards <marco@gnu.org>
47298
47299 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47300 (CRTC_ADDR_PORT): New macro.
47301 (CRTC_DATA_PORT): Likewise.
47302 (CRTC_CURSOR): Likewise.
47303 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47304 (CRTC_CURSOR_ADDR_LOW): Likewise.
47305 (update_cursor): New function.
47306 (grub_console_real_putchar): Call `update_cursor'.
47307 (grub_console_gotoxy): Likewise.
47308 (grub_console_cls): Set the default color when clearing the
47309 screen.
47310 (grub_console_setcursor): Implemented.
47311
47312 2007-11-03 Marco Gerards <marco@gnu.org>
47313
47314 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47315 become activate.
47316 (grub_ata_pio_write): Likewise.
47317
47318 (grub_atapi_identify): Wait after issuing an ATA command.
47319 (grub_atapi_packet): Likewise.
47320 (grub_ata_identify): Likewise.
47321 (grub_ata_readwrite): Likewise.
47322
47323 2007-11-03 Marco Gerards <marco@gnu.org>
47324
47325 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47326 (grub_ata_pio_write): Likewise.
47327 (grub_ata_readwrite): Use `grub_error', instead of
47328 returning `grub_errno'.
47329
47330 2007-11-03 Marco Gerards <marco@gnu.org>
47331
47332 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47333 grub_ata_pio_write once for every single sector, instead of for
47334 multiple sectors.
47335
47336 2007-10-31 Robert Millan <rmh@aybabtu.com>
47337
47338 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47339
47340 * conf/i386-linuxbios.rmk: New file.
47341
47342 * kern/i386/pc/hardware.c: Likewise.
47343 * term/i386/pc/at_keyboard.c: Likewise.
47344 * term/i386/pc/vga_text.c: Likewise.
47345
47346 * include/grub/i386/linuxbios/boot.h: Likewise.
47347 * include/grub/i386/linuxbios/console.h: Likewise.
47348 * include/grub/i386/linuxbios/init.h: Likewise.
47349 * include/grub/i386/linuxbios/kernel.h: Likewise.
47350 * include/grub/i386/linuxbios/loader.h: Likewise.
47351 * include/grub/i386/linuxbios/memory.h: Likewise.
47352 * include/grub/i386/linuxbios/serial.h: Likewise.
47353 * include/grub/i386/linuxbios/time.h: Likewise.
47354
47355 * kern/i386/linuxbios/init.c: Likewise.
47356 * kern/i386/linuxbios/startup.S: Likewise.
47357 * kern/i386/linuxbios/table.c: Likewise.
47358
47359 2007-10-31 Marco Gerards <marco@gnu.org>
47360
47361 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47362 (ata_mod_SOURCES): New variable.
47363 (ata_mod_CFLAGS): Likewise.
47364 (ata_mod_LDFLAGS): Likewise.
47365
47366 * disk/ata.c: New file.
47367
47368 * include/grub/disk.h (grub_disk_dev_id): Add
47369 `GRUB_DISK_DEV_ATA_ID'.
47370
47371 2007-10-31 Robert Millan <rmh@aybabtu.com>
47372
47373 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47374 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47375
47376 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47377 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47378
47379 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47380 `<grub/types.h>'.
47381
47382 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47383
47384 2007-10-27 Robert Millan <rmh@aybabtu.com>
47385
47386 * include/grub/types.h (ULONG_MAX): Define macro.
47387
47388 2007-10-22 Robert Millan <rmh@aybabtu.com>
47389
47390 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47391 `"../realmode.S"'.
47392 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47393
47394 2007-10-22 Robert Millan <rmh@aybabtu.com>
47395
47396 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47397 (pkgdata_MODULES): Add `biosdisk.mod'.
47398 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47399 variables.
47400
47401 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47402 (grub_biosdisk_init): Replace with ...
47403 (GRUB_MOD_INIT(biosdisk)): ... this.
47404 (grub_biosdisk_fini): Replace with ...
47405 (GRUB_MOD_FINI(biosdisk)): ... this.
47406
47407 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47408 (grub_machine_init): Remove call to grub_biosdisk_init().
47409 (grub_machine_fini): Remove call to grub_machine_fini().
47410
47411 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47412
47413 2007-10-22 Robert Millan <rmh@aybabtu.com>
47414
47415 * include/grub/time.h: New file.
47416 * include/grub/i386/time.h: Likewise.
47417 * include/grub/powerpc/time.h: Likewise.
47418 * include/grub/sparc64/time.h: Likewise.
47419
47420 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47421 instances to ...
47422 (KERNEL_MACHINE_TIME_HEADER): ... this.
47423 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47424 instances to ...
47425 (KERNEL_MACHINE_TIME_HEADER): ... this.
47426 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47427 instances to ...
47428 (KERNEL_MACHINE_TIME_HEADER): ... this.
47429
47430 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47431 (grub_millisleep): New function.
47432 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47433 (grub_millisleep): New function.
47434 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47435 Remove `grub/machine/time.h' include.
47436 (grub_millisleep): New function.
47437 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47438 Remove `grub/machine/time.h' include.
47439 (grub_millisleep): New function.
47440
47441 * include/grub/misc.h (grub_div_roundup): New function.
47442
47443 * kern/misc.c: Include `<grub/time.h>'.
47444 (grub_millisleep_generic): New function.
47445
47446 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47447 Add `time.h'.
47448 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47449 Add `time.h'.
47450 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47451 `machine/time.h'. Add `time.h'.
47452 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47453
47454 2007-10-21 Robert Millan <rmh@aybabtu.com>
47455
47456 * include/grub/misc.h (grub_max): New function.
47457
47458 2007-10-21 Robert Millan <rmh@aybabtu.com>
47459
47460 * util/misc.c (grub_util_info): Call fflush() before returning.
47461
47462 2007-10-20 Robert Millan <rmh@aybabtu.com>
47463
47464 * genmk.rb (Image): Copy `extra_flags' from here ...
47465 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47466
47467 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47468 to `argc' and `args' arguments.
47469
47470 2007-10-17 Robert Millan <rmh@aybabtu.com>
47471
47472 * kern/i386/loader.S: New file.
47473
47474 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47475 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47476 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47477 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47478 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47479 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47480 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47481 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47482 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47483 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47484 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47485 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47486 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47487 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47488
47489 * kern/i386/realmode.S: New file.
47490
47491 * kern/i386/pc/startup.S (protstack): Moved from here ...
47492 * kern/i386/realmode.S (protstack)... to here.
47493 * kern/i386/pc/startup.S (gdt): Moved from here ...
47494 * kern/i386/realmode.S (gdt)... to here.
47495 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47496 * kern/i386/realmode.S (prot_to_real)... to here.
47497
47498 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47499 `kern/i386/realmode.S'.
47500
47501 2007-10-17 Robert Millan <rmh@aybabtu.com>
47502
47503 * include/grub/i386/loader.h: New file.
47504
47505 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47506 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47507 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47508 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47509 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47510 * include/grub/i386/loader.h (grub_linux_prot_size)
47511 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47512 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47513 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47514 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47515
47516 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47517
47518 2007-10-15 Robert Millan <rmh@aybabtu.com>
47519
47520 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47521 filesystem when dev->disk is unset.
47522 Do probe for filesystem even when dev->disk->has_partitions is set.
47523 In case a filesystem is found, always report it.
47524 In case it isn't, if dev->disk->has_partitions is set, report that
47525 a partition table was found instead of reporting that no filesystem
47526 could be identified.
47527
47528 2007-10-12 Robert Millan <rmh@aybabtu.com>
47529
47530 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47531 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47532
47533 * include/grub/types.h (grub_host_to_target16): New macro.
47534 (grub_host_to_target32): Likewise.
47535 (grub_host_to_target64): Likewise.
47536 (grub_target_to_host16): Likewise.
47537 (grub_target_to_host32): Likewise.
47538 (grub_target_to_host64): Likewise.
47539
47540 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47541 Renamed from to ...
47542 (GRUB_MOD_ALIGN): ...this. Update all users.
47543
47544 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47545 grub_host_to_target32.
47546 Replace grub_be_to_cpu32 with grub_target_to_host32.
47547 (load_modules): Likewise.
47548 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47549 Replace grub_be_to_cpu32 with grub_target_to_host32.
47550 Replace grub_cpu_to_be16 with grub_host_to_target16.
47551 Replace grub_cpu_to_be32 grub_host_to_target32.
47552
47553 2007-10-12 Robert Millan <rmh@aybabtu.com>
47554
47555 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47556 * util/elf/grub-mkimage.c: ... here.
47557
47558 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47559 `util/powerpc/ieee1275/grub-mkimage.c'.
47560
47561 2007-10-07 Robert Millan <rmh@aybabtu.com>
47562
47563 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47564 and make it easier to figure out.
47565 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47566 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47567 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47568 leave us with less than HEAP_MIN_SIZE total heap.
47569 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47570
47571 2007-10-03 Robert Millan <rmh@aybabtu.com>
47572
47573 * include/grub/i386/io.h: New file.
47574 * commands/i386/pc/play.c (inb): Removed.
47575 (outb): Removed.
47576 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47577 with grub_outb().
47578 * term/i386/pc/serial.c (inb): Removed.
47579 (outb): Removed.
47580 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47581 with grub_outb().
47582 * term/i386/pc/vga.c (inb): Removed.
47583 (outb): Removed.
47584 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47585 with grub_outb().
47586
47587 2007-10-02 Robert Millan <rmh@aybabtu.com>
47588
47589 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47590 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47591 Reported by Marcin Kurek.
47592
47593 2007-09-07 Robert Millan <rmh@aybabtu.com>
47594
47595 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47596 SmartFirmware version updates (as released by Sven Luther), and avoid
47597 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47598 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47599 known broken.
47600
47601 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47602
47603 From Hitoshi Ozeki:
47604 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47605 when merging two regions.
47606
47607 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47608
47609 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47610 * normal/completion.c (grub_normal_do_completion): Likewise.
47611 Reported by Hitoshi Ozeki.
47612
47613 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47614
47615 Do not use devices at boot in chainloading.
47616
47617 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47618 (boot_part_addr): Likewise.
47619 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47620 with BOOT_DRIVE and BOOT_PART_ADDR.
47621 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47622 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47623
47624 2007-08-29 Robert Millan <rmh@aybabtu.com>
47625
47626 Patch from Simon Peter <dn.tlp@gmx.net>:
47627 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47628 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47629 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47630 util/i386/pc/grub-setup.c_DEPENDENCIES.
47631 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47632 util/grub-probe.c_DEPENDENCIES.
47633 * conf/powerpc-ieee1275.rmk: Likewise.
47634
47635 2007-08-28 Robert Millan <rmh@aybabtu.com>
47636
47637 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47638 to tell grub-mkdevicemap how to name devices.
47639 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47640 feature).
47641
47642 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47643 util/i386/get_disk_name.c.
47644 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47645 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47646 util/ieee1275/get_disk_name.c.
47647
47648 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47649
47650 * DISTLIST: Add util/i386/get_disk_name.c and
47651 util/ieee1275/get_disk_name.c.
47652
47653 * util/grub-mkdevicemap.c: Replace device naming logic with
47654 grub_util_get_disk_name() calls.
47655
47656 2007-08-20 Robert Millan <rmh@aybabtu.com>
47657
47658 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47659 (so that it works for both plural and singular quantities).
47660
47661 2007-08-05 Robert Millan <rmh@aybabtu.com>
47662
47663 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47664 so that [xz] isn't taken into account when determining order.
47665
47666 2007-08-02 Marco Gerards <marco@gnu.org>
47667
47668 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47669 `include/multiboot2.h', `include/grub/elfload.h',
47670 `include/multiboot.h', `include/grub/multiboot.h',
47671 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47672 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47673 `kern/elf.c', `loader/multiboot_loader.c',
47674 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47675 `loader/i386/pc/multiboot2.c',
47676 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47677 `util/i386/pc/grub-mkrescue.in'. Remove
47678 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47679 `include/grub/i386/pc/util/biosdisk.h' and
47680 `include/grub/powerpc/ieee1275/multiboot.h'.
47681
47682 2007-08-02 Bean <bean123ch@gmail.com>
47683
47684 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47685 (ntfs_mod_SOURCES): New variable.
47686 (ntfs_mod_CFLAGS): Likewise.
47687 (ntfs_mod_LDFLAGS): Likewise.
47688
47689 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47690 (grub_probe_SOURCES): Likewise.
47691 (grub_emu_SOURCES): Likewise.
47692
47693 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47694 (grub_emu_SOURCES): Likewise.
47695
47696 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47697 (grub_emu_SOURCES): Likewise.
47698
47699 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47700
47701 * fs/ntfs.c: New file.
47702
47703 2007-08-02 Bean <bean123ch@gmail.com>
47704
47705 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47706
47707 * file.h (grub_file): Likewise.
47708
47709 * fshelp.h (grub_fshelp_read_file): Likewise.
47710
47711 * util/i386/pc/grub-setup.c (setup): Likewise.
47712 (save_first_sector): Likewise.
47713 (save_blocklists): Likewise.
47714
47715 * fs/affs.c (grub_affs_read_file): Likewise.
47716
47717 * fs/ext2.c (grub_ext2_read_file): Likewise.
47718
47719 * fs/fat.c (grub_fat_read_data): Likewise.
47720
47721 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47722
47723 * fs/hfs.c (grub_hfs_read_file): Likewise.
47724
47725 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47726
47727 * fs/jfs.c (grub_jfs_read_file): Likewise.
47728
47729 * fs/minix.c (grub_minix_read_file): Likewise.
47730
47731 * fs/sfs.c (grub_sfs_read_file): Likewise.
47732
47733 * fs/ufs.c (grub_ufs_read_file): Likewise.
47734
47735 * fs/xfs.c (grub_xfs_read_file): Likewise.
47736
47737 * command/blocklist.c (read_blocklist): Likewise.
47738 (print_blocklist): Likewise.
47739
47740 2007-08-02 Marco Gerards <marco@gnu.org>
47741
47742 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47743 `util/hostfs.c'.
47744
47745 * disk/host.c: New file.
47746
47747 * util/hostfs.c: Likewise.
47748
47749 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47750 return `GRUB_ERR_BAD_FS'.
47751 * fs/sfs.c (grub_sfs_mount): Likewise.
47752 * fs/xfs.c (grub_xfs_mount): Likewise.
47753
47754 * include/grub/disk.h (enum grub_disk_dev_id): Add
47755 `GRUB_DISK_DEVICE_HOST_ID'.
47756
47757 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47758
47759 2007-07-24 Jerone Young <jerone@gmail.com>
47760
47761 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47762 modules for compilation.
47763 * conf/powerpc-ieee1275.rmk: Likewise.
47764
47765 * include/multiboot.h: Move multiboot definitions to one file. Rename
47766 many definitions to not get grub specific.
47767 * include/multiboot2.h: Create header with multiboot 2 definitions.
47768 * include/grub/multiboot.h: Header for grub specific function
47769 prototypes and definitions.
47770 * include/grub/multiboot2.h: Likewise.
47771 * include/grub/multiboot_loader.h: Likewise.
47772 * include/grub/i386/pc/multiboot.h: Removed.
47773 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47774
47775 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47776 and 2 to allow for one multiboot and module commands.
47777 * loader/multiboot2.c: Add multiboot2 functionality.
47778 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47779 and definition names.
47780 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47781 2 functions.
47782 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47783 ieee1275 specific multiboot2 code.
47784
47785 * kern/i386/pc/startup.S: Change headers and definition names for
47786 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47787
47788 2007-07-22 Robert Millan <rmh@aybabtu.com>
47789
47790 * geninitheader.sh: Process file specified in first parameter rather
47791 than hardcoding grub_modules_init.lst.
47792 * geninit.sh: Likewise. Also, construct header name dynamically rather
47793 than hardcoding grub_modules_init.h.
47794
47795 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47796 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47797 grub_probe_init.[ch] and grub_setup_init.[ch].
47798
47799 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47800 grub_modules_init.h with grub_emu_init.h.
47801 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47802 grub_probe_init.[ch] files.
47803 * conf/i386-efi.rmk: Likewise.
47804 * conf/i386-pc.rmk: Likewise.
47805 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47806 grub_setup_init.[ch] files.
47807
47808 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47809 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47810 to initialize modules rather than a list of hardcoded functions.
47811 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47812 grub_init_all() to initialize modules rather than a list of hardcoded
47813 functions.
47814
47815 2007-07-22 Robert Millan <rmh@aybabtu.com>
47816
47817 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47818 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47819
47820 2007-07-22 Robert Millan <rmh@aybabtu.com>
47821
47822 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47823 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47824 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47825 flag when running on SmartFirmware.
47826 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47827 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47828 was set.
47829
47830 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47831 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47832 rather than decreasing it.
47833
47834 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47835 there's not enough space to do it, fail in the same way as when it
47836 can't be done because there are no partitions.
47837
47838 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47839 when nvsetenv failed.
47840
47841 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47842
47843 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47844 because this rule is automatically generated.
47845 (grub-mkrescue): Removed for the same reason as above.
47846
47847 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47848
47849 Migrate to GNU General Public License Version 3.
47850
47851 * COPYING: Replaced with the plain text version of GPLv3.
47852
47853 * config.guess: Updated from gnulib.
47854 * config.sub: Likewise.
47855
47856 * geninit.sh: Output a GPLv3 copyright notice.
47857 * geninitheader.sh: Likewise.
47858 * genmodsrc.sh: Likewise.
47859 * gensymlist.sh.in: Likewise.
47860
47861 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47862 * boot/i386/pc/diskboot.S: Likewise.
47863 * boot/i386/pc/pxeboot.S: Likewise.
47864 * commands/blocklist.c: Likewise.
47865 * commands/boot.c: Likewise.
47866 * commands/cat.c: Likewise.
47867 * commands/cmp.c: Likewise.
47868 * commands/configfile.c: Likewise.
47869 * commands/echo.c: Likewise.
47870 * commands/help.c: Likewise.
47871 * commands/ls.c: Likewise.
47872 * commands/search.c: Likewise.
47873 * commands/terminal.c: Likewise.
47874 * commands/test.c: Likewise.
47875 * commands/videotest.c: Likewise.
47876 * commands/i386/cpuid.c: Likewise.
47877 * commands/i386/pc/halt.c: Likewise.
47878 * commands/i386/pc/play.c: Likewise.
47879 * commands/i386/pc/reboot.c: Likewise.
47880 * commands/i386/pc/vbeinfo.c: Likewise.
47881 * commands/i386/pc/vbetest.c: Likewise.
47882 * commands/ieee1275/halt.c: Likewise.
47883 * commands/ieee1275/reboot.c: Likewise.
47884 * commands/ieee1275/suspend.c: Likewise.
47885 * disk/loopback.c: Likewise.
47886 * disk/lvm.c: Likewise.
47887 * disk/raid.c: Likewise.
47888 * disk/efi/efidisk.c: Likewise.
47889 * disk/i386/pc/biosdisk.c: Likewise.
47890 * disk/ieee1275/ofdisk.c: Likewise.
47891 * font/manager.c: Likewise.
47892 * fs/affs.c: Likewise.
47893 * fs/ext2.c: Likewise.
47894 * fs/fat.c: Likewise.
47895 * fs/fshelp.c: Likewise.
47896 * fs/hfs.c: Likewise.
47897 * fs/hfsplus.c: Likewise.
47898 * fs/iso9660.c: Likewise.
47899 * fs/jfs.c: Likewise.
47900 * fs/minix.c: Likewise.
47901 * fs/sfs.c: Likewise.
47902 * fs/ufs.c: Likewise.
47903 * fs/xfs.c: Likewise.
47904 * hello/hello.c: Likewise.
47905 * include/grub/acorn_filecore.h: Likewise.
47906 * include/grub/arg.h: Likewise.
47907 * include/grub/bitmap.h: Likewise.
47908 * include/grub/boot.h: Likewise.
47909 * include/grub/cache.h: Likewise.
47910 * include/grub/device.h: Likewise.
47911 * include/grub/disk.h: Likewise.
47912 * include/grub/dl.h: Likewise.
47913 * include/grub/elfload.h: Likewise.
47914 * include/grub/env.h: Likewise.
47915 * include/grub/err.h: Likewise.
47916 * include/grub/file.h: Likewise.
47917 * include/grub/font.h: Likewise.
47918 * include/grub/fs.h: Likewise.
47919 * include/grub/fshelp.h: Likewise.
47920 * include/grub/gzio.h: Likewise.
47921 * include/grub/hfs.h: Likewise.
47922 * include/grub/kernel.h: Likewise.
47923 * include/grub/loader.h: Likewise.
47924 * include/grub/lvm.h: Likewise.
47925 * include/grub/misc.h: Likewise.
47926 * include/grub/mm.h: Likewise.
47927 * include/grub/net.h: Likewise.
47928 * include/grub/normal.h: Likewise.
47929 * include/grub/parser.h: Likewise.
47930 * include/grub/partition.h: Likewise.
47931 * include/grub/pc_partition.h: Likewise.
47932 * include/grub/raid.h: Likewise.
47933 * include/grub/rescue.h: Likewise.
47934 * include/grub/script.h: Likewise.
47935 * include/grub/setjmp.h: Likewise.
47936 * include/grub/symbol.h: Likewise.
47937 * include/grub/term.h: Likewise.
47938 * include/grub/terminfo.h: Likewise.
47939 * include/grub/tparm.h: Likewise.
47940 * include/grub/types.h: Likewise.
47941 * include/grub/video.h: Likewise.
47942 * include/grub/efi/api.h: Likewise.
47943 * include/grub/efi/chainloader.h: Likewise.
47944 * include/grub/efi/console.h: Likewise.
47945 * include/grub/efi/console_control.h: Likewise.
47946 * include/grub/efi/disk.h: Likewise.
47947 * include/grub/efi/efi.h: Likewise.
47948 * include/grub/efi/pe32.h: Likewise.
47949 * include/grub/efi/time.h: Likewise.
47950 * include/grub/i386/linux.h: Likewise.
47951 * include/grub/i386/setjmp.h: Likewise.
47952 * include/grub/i386/types.h: Likewise.
47953 * include/grub/i386/efi/kernel.h: Likewise.
47954 * include/grub/i386/efi/loader.h: Likewise.
47955 * include/grub/i386/efi/time.h: Likewise.
47956 * include/grub/i386/pc/biosdisk.h: Likewise.
47957 * include/grub/i386/pc/boot.h: Likewise.
47958 * include/grub/i386/pc/chainloader.h: Likewise.
47959 * include/grub/i386/pc/console.h: Likewise.
47960 * include/grub/i386/pc/init.h: Likewise.
47961 * include/grub/i386/pc/kernel.h: Likewise.
47962 * include/grub/i386/pc/loader.h: Likewise.
47963 * include/grub/i386/pc/memory.h: Likewise.
47964 * include/grub/i386/pc/multiboot.h: Likewise.
47965 * include/grub/i386/pc/serial.h: Likewise.
47966 * include/grub/i386/pc/time.h: Likewise.
47967 * include/grub/i386/pc/vbe.h: Likewise.
47968 * include/grub/i386/pc/vbeblit.h: Likewise.
47969 * include/grub/i386/pc/vbefill.h: Likewise.
47970 * include/grub/i386/pc/vbeutil.h: Likewise.
47971 * include/grub/i386/pc/vga.h: Likewise.
47972 * include/grub/ieee1275/ieee1275.h: Likewise.
47973 * include/grub/ieee1275/ofdisk.h: Likewise.
47974 * include/grub/powerpc/libgcc.h: Likewise.
47975 * include/grub/powerpc/setjmp.h: Likewise.
47976 * include/grub/powerpc/types.h: Likewise.
47977 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47978 * include/grub/powerpc/ieee1275/console.h: Likewise.
47979 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47980 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47981 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47982 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47983 * include/grub/powerpc/ieee1275/time.h: Likewise.
47984 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47985 * include/grub/sparc64/libgcc.h: Likewise.
47986 * include/grub/sparc64/setjmp.h: Likewise.
47987 * include/grub/sparc64/types.h: Likewise.
47988 * include/grub/sparc64/ieee1275/console.h: Likewise.
47989 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47990 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47991 * include/grub/sparc64/ieee1275/time.h: Likewise.
47992 * include/grub/util/biosdisk.h: Likewise.
47993 * include/grub/util/getroot.h: Likewise.
47994 * include/grub/util/lvm.h: Likewise.
47995 * include/grub/util/misc.h: Likewise.
47996 * include/grub/util/raid.h: Likewise.
47997 * include/grub/util/resolve.h: Likewise.
47998 * io/gzio.c: Likewise.
47999 * kern/device.c: Likewise.
48000 * kern/disk.c: Likewise.
48001 * kern/dl.c: Likewise.
48002 * kern/elf.c: Likewise.
48003 * kern/env.c: Likewise.
48004 * kern/err.c: Likewise.
48005 * kern/file.c: Likewise.
48006 * kern/fs.c: Likewise.
48007 * kern/loader.c: Likewise.
48008 * kern/main.c: Likewise.
48009 * kern/misc.c: Likewise.
48010 * kern/mm.c: Likewise.
48011 * kern/parser.c: Likewise.
48012 * kern/partition.c: Likewise.
48013 * kern/rescue.c: Likewise.
48014 * kern/term.c: Likewise.
48015 * kern/efi/efi.c: Likewise.
48016 * kern/efi/init.c: Likewise.
48017 * kern/efi/mm.c: Likewise.
48018 * kern/i386/dl.c: Likewise.
48019 * kern/i386/efi/init.c: Likewise.
48020 * kern/i386/efi/startup.S: Likewise.
48021 * kern/i386/pc/init.c: Likewise.
48022 * kern/i386/pc/lzo1x.S: Likewise.
48023 * kern/i386/pc/startup.S: Likewise.
48024 * kern/ieee1275/ieee1275.c: Likewise.
48025 * kern/powerpc/cache.S: Likewise.
48026 * kern/powerpc/dl.c: Likewise.
48027 * kern/powerpc/ieee1275/cmain.c: Likewise.
48028 * kern/powerpc/ieee1275/crt0.S: Likewise.
48029 * kern/powerpc/ieee1275/init.c: Likewise.
48030 * kern/powerpc/ieee1275/openfw.c: Likewise.
48031 * kern/sparc64/cache.S: Likewise.
48032 * kern/sparc64/dl.c: Likewise.
48033 * kern/sparc64/ieee1275/init.c: Likewise.
48034 * kern/sparc64/ieee1275/openfw.c: Likewise.
48035 * loader/efi/chainloader.c: Likewise.
48036 * loader/efi/chainloader_normal.c: Likewise.
48037 * loader/i386/efi/linux.c: Likewise.
48038 * loader/i386/efi/linux_normal.c: Likewise.
48039 * loader/i386/pc/chainloader.c: Likewise.
48040 * loader/i386/pc/chainloader_normal.c: Likewise.
48041 * loader/i386/pc/linux.c: Likewise.
48042 * loader/i386/pc/linux_normal.c: Likewise.
48043 * loader/i386/pc/multiboot.c: Likewise.
48044 * loader/i386/pc/multiboot_normal.c: Likewise.
48045 * loader/powerpc/ieee1275/linux.c: Likewise.
48046 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48047 * normal/arg.c: Likewise.
48048 * normal/cmdline.c: Likewise.
48049 * normal/command.c: Likewise.
48050 * normal/completion.c: Likewise.
48051 * normal/execute.c: Likewise.
48052 * normal/function.c: Likewise.
48053 * normal/lexer.c: Likewise.
48054 * normal/main.c: Likewise.
48055 * normal/menu.c: Likewise.
48056 * normal/menu_entry.c: Likewise.
48057 * normal/misc.c: Likewise.
48058 * normal/parser.y: Likewise.
48059 * normal/script.c: Likewise.
48060 * normal/i386/setjmp.S: Likewise.
48061 * normal/powerpc/setjmp.S: Likewise.
48062 * normal/sparc64/setjmp.S: Likewise.
48063 * partmap/acorn.c: Likewise.
48064 * partmap/amiga.c: Likewise.
48065 * partmap/apple.c: Likewise.
48066 * partmap/gpt.c: Likewise.
48067 * partmap/pc.c: Likewise.
48068 * partmap/sun.c: Likewise.
48069 * term/gfxterm.c: Likewise.
48070 * term/terminfo.c: Likewise.
48071 * term/efi/console.c: Likewise.
48072 * term/i386/pc/console.c: Likewise.
48073 * term/i386/pc/serial.c: Likewise.
48074 * term/i386/pc/vesafb.c: Likewise.
48075 * term/i386/pc/vga.c: Likewise.
48076 * term/ieee1275/ofconsole.c: Likewise.
48077 * util/biosdisk.c: Likewise.
48078 * util/console.c: Likewise.
48079 * util/genmoddep.c: Likewise.
48080 * util/getroot.c: Likewise.
48081 * util/grub-emu.c: Likewise.
48082 * util/grub-mkdevicemap.c: Likewise.
48083 * util/grub-probe.c: Likewise.
48084 * util/lvm.c: Likewise.
48085 * util/misc.c: Likewise.
48086 * util/raid.c: Likewise.
48087 * util/resolve.c: Likewise.
48088 * util/update-grub.in: Likewise.
48089 * util/update-grub_lib.in: Likewise.
48090 * util/grub.d/00_header.in: Likewise.
48091 * util/grub.d/10_hurd.in: Likewise.
48092 * util/grub.d/10_linux.in: Likewise.
48093 * util/i386/efi/grub-install.in: Likewise.
48094 * util/i386/efi/grub-mkimage.c: Likewise.
48095 * util/i386/pc/grub-install.in: Likewise.
48096 * util/i386/pc/grub-mkimage.c: Likewise.
48097 * util/i386/pc/grub-mkrescue.in: Likewise.
48098 * util/i386/pc/grub-setup.c: Likewise.
48099 * util/i386/pc/misc.c: Likewise.
48100 * util/powerpc/ieee1275/grub-install.in: Likewise.
48101 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48102 * util/powerpc/ieee1275/misc.c: Likewise.
48103 * video/bitmap.c: Likewise.
48104 * video/video.c: Likewise.
48105 * video/i386/pc/vbe.c: Likewise.
48106 * video/i386/pc/vbeblit.c: Likewise.
48107 * video/i386/pc/vbefill.c: Likewise.
48108 * video/i386/pc/vbeutil.c: Likewise.
48109 * video/readers/tga.c: Likewise.
48110
48111 2007-07-02 Robert Millan <rmh@aybabtu.com>
48112
48113 * conf/i386-efi.rmk: Replace obsolete reference to
48114 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48115 with util/getroot.c.
48116 * conf/powerpc-ieee1275.rmk: Likewise.
48117 * conf/sparc64-ieee1275.rmk: Likewise.
48118
48119 * util/grub-emu.c (main): Fix unchecked pointer handling.
48120
48121 2007-07-02 Robert Millan <rmh@aybabtu.com>
48122
48123 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48124 invocation to fail, in order to support partition-less media.
48125
48126 * util/i386/pc/grub-install.in: Likewise.
48127
48128 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48129 which fs or partmap modules are needed (akin to its sister scripts).
48130
48131 Also use grub-probe to get rid of unportable /proc/mounts check.
48132
48133 Print the same informational message that the other scripts do, before
48134 exiting.
48135
48136 2007-06-23 Robert Millan <rmh@aybabtu.com>
48137
48138 * util/update-grub_lib.in (font_path): New function. Determine whether
48139 a font file can be found and, if so, echo the GRUB path to it.
48140
48141 * util/update-grub.in: Handle multiple terminals depending on user
48142 input, platform availability and font file presence. Propagate
48143 variables of our findings to /etc/grub.d/ children.
48144
48145 * util/grub.d/00_header.in: Handle multiple terminals, based on
48146 environment setup by update-grub.
48147
48148 2007-06-23 Robert Millan <rmh@aybabtu.com>
48149
48150 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48151
48152 2007-06-21 Robert Millan <rmh@aybabtu.com>
48153
48154 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48155 indicate end of data section in kernel image.
48156 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48157 GRUB_KERNEL_MACHINE_DATA_END.
48158
48159 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48160 space for it.
48161 * kern/i386/efi/startup.S: Likewise.
48162
48163 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48164 during image generation. Implement --prefix option to override this
48165 patch.
48166 * util/i386/efi/grub-mkimage.c: Likewise.
48167
48168 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48169 code to make path relative to its root into a separate function.
48170
48171 * util/i386/pc/grub-install.in: Use newly provided
48172 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48173 pass the result to grub-install --prefix.
48174
48175 2007-06-13 Robert Millan <rmh@aybabtu.com>
48176
48177 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48178 DEFAULT_DEVICE_MAP.
48179 * util/grub-emu.c: Use above definitions from misc.h instead of
48180 defining them.
48181 * util/grub-mkdevicemap.c: Likewise.
48182 * util/i386/pc/grub-setup.c: Likewise.
48183 * util/grub-probe.c: Likewise.
48184 (probe): Abort with grub_util_error() when either
48185 grub_guess_root_device or grub_util_get_grub_dev fails.
48186
48187 2007-06-12 Robert Millan <rmh@aybabtu.com>
48188
48189 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48190 "pager" assignment.
48191 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48192 "pcdata".
48193 * util/grub-probe.c (probe): Likewise for "drive_name".
48194
48195 2007-06-11 Robert Millan <rmh@aybabtu.com>
48196
48197 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48198 not just the cdrom one.
48199
48200 2007-06-11 Robert Millan <rmh@aybabtu.com>
48201
48202 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48203 Add --pkglibdir=DIR option to override pkglibdir.
48204 Mention --image-type=TYPE in help output.
48205 Fix --grub-mkimage (it was a no-op).
48206 Abort gracefully when no parameter is given.
48207
48208 2007-06-11 Robert Millan <rmh@aybabtu.com>
48209
48210 * util/i386/pc/grub-mkrescue.in: New file.
48211 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48212 * Makefile.in: Handle bin_SCRIPTS.
48213
48214 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48215
48216 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48217 list of video modes.
48218
48219 2007-06-06 Robert Millan <rmh@aybabtu.com>
48220
48221 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48222 file doesn't exist, or if it is in a filesystem grub can't read.
48223
48224 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48225 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48226 header comment to fit in 80 columns when the variables are resolved.
48227
48228 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48229 could be identified by update-grub. Remove redundant check for
48230 unifont.pff existence (since convert_system_path_to_grub_path now
48231 handles that).
48232
48233 2007-06-04 Robert Millan <rmh@aybabtu.com>
48234
48235 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48236
48237 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48238
48239 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48240
48241 2007-06-04 Robert Millan <rmh@aybabtu.com>
48242
48243 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48244
48245 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48246 grub_apple_partition_map_fini.
48247
48248 * util/biosdisk.c
48249 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48250 to access >2 TiB disks).
48251
48252 Print disk->total_sectors with %llu instead of %lu, since this
48253 variable is always 64-bit (prevents wrong disk size from being displayed
48254 on either >2 TiB disk or big-endian CPU).
48255
48256 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48257 into a generic case that supports all (sane) partition maps.
48258
48259 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48260 breaks big-endian.
48261
48262 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48263 and grub_apple_partition_map_fini() after that.
48264
48265 2007-06-01 Robert Millan <rmh@aybabtu.com>
48266
48267 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48268
48269 * util/grub.d/00_header.in: Only enable gfxterm when
48270 convert_system_path_to_grub_path() succeeds.
48271
48272 2007-05-20 Robert Millan <rmh@aybabtu.com>
48273
48274 * util/update-grub_lib.in: New file.
48275 * DISTLIST: Add update-grub_lib.in.
48276 * conf/common.rmk: Generate update-grub_lib and install it in
48277 $(lib_DATA).
48278 * Makefile.in: Add install routine for $(lib_DATA).
48279
48280 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48281 function provided by update-grub_lib to support arbitrary paths of
48282 unifont.pff.
48283 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48284 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48285
48286 2007-05-19 Robert Millan <rmh@aybabtu.com>
48287
48288 * commands/i386/cpuid.c: New module.
48289 * DISTLIST: Add it.
48290 * conf/i386-efi.rmk: Enable cpuid.mod.
48291 * conf/i386-pc.rmk: Likewise.
48292
48293 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48294
48295 * kern/disk.c (grub_disk_read): Check return value of
48296 grub_realloc().
48297
48298 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48299
48300 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48301 arrays.
48302 * disk/raid.c (grub_raid_open): Likewise.
48303
48304 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48305
48306 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48307 stack instead of on the heap.
48308
48309 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48310 before doing a read on it.
48311
48312 * configure.ac: Only use -fno-stack-protector for the target
48313 environment.
48314
48315 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48316
48317 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48318 __attribute_ ((unused)) to mode_type argument.
48319
48320 * util/getroot.c (grub_guess_root_device): Fix #endif.
48321
48322 * kern/misc.c (memcmp): Fix prototype.
48323
48324 * include/grub/partition.h [GRUB_UTIL]
48325 (grub_gpt_partition_map_init): Add prototype.
48326 (grub_gpt_partition_map_fini): Likewise.
48327
48328 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48329 at the right place.
48330
48331 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48332 (grub_fat_read_data): Likewise.
48333 (grub_fat_find_dir): Likewise.
48334
48335 * font/manager.c (find_glyph): Make table a const.
48336 (grub_font_get_glyph): Remove bitmap from if statement.
48337
48338 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48339
48340 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48341 code, first search for device in /dev/mapper, then in /dev.
48342 (grub_util_get_grub_dev): New function.
48343 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48344 prototype.
48345 * util/grub-probe.c (probe): Remove check for RAID, call
48346 grub_util_get_grub_dev() instead of
48347 grub_util_biosdisk_get_grub_dev().
48348 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48349 grub_util_biosdisk_get_grub_dev().
48350 * util/i386/pc/grub-setup.c (main): Likewise.
48351
48352 2007-05-16 Robert Millan <rmh@aybabtu.com>
48353
48354 * DISTLIST: Update for the latest changes.
48355 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48356 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48357 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48358 grub/util/biosdisk.h.
48359 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48360 grub/util/biosdisk.h.
48361
48362 2007-05-16 Robert Millan <rmh@aybabtu.com>
48363
48364 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48365
48366 2007-05-16 Robert Millan <rmh@aybabtu.com>
48367
48368 * util/i386/efi/grub-install.in: New.
48369 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48370 newly added grub-install.
48371 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48372 include.
48373 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48374 grub/util/biosdisk.h.
48375 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48376 grub/util/biosdisk.h.
48377
48378 2007-05-16 Robert Millan <rmh@aybabtu.com>
48379
48380 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48381 * include/grub/util/biosdisk.h: ... here.
48382 * util/i386/pc/biosdisk.c: Moved to ...
48383 * util/biosdisk.c: ... here.
48384 * util/i386/pc/getroot.c: Moved to ...
48385 * util/getroot.c: ... here.
48386 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48387 * util/grub-mkdevicemap.c: ... here.
48388 * util/i386/pc/grub-probe.c: Moved to ...
48389 * util/grub-probe.c: ... here.
48390
48391 2007-05-15 Robert Millan <rmh@aybabtu.com>
48392
48393 * util/update-grub.in: Remove duplicated line in grub.cfg header
48394 message.
48395
48396 2007-05-13 Robert Millan <rmh@aybabtu.com>
48397
48398 * util/update-grub.in: Fix a few assumptions about the devices holding
48399 /, /boot and /boot/grub being the same.
48400 * util/grub.d/00_header.in: Likewise.
48401 * util/grub.d/10_hurd.in: Likewise.
48402 * util/grub.d/10_linux.in: Likewise.
48403
48404 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48405 patterns. Use that to define the `.old' suffix as older than `'.
48406
48407 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48408
48409 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48410 the grub.cfg header message.
48411
48412 2007-05-11 Robert Millan <rmh@aybabtu.com>
48413
48414 * util/update-grub.in: Create device.map if it doesn't already exist,
48415 before attempting to run grub-probe.
48416 Check for grub-probe and grub-mkdevicemap with the same code
48417 grub-install is using.
48418 Remove test mode.
48419
48420 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48421
48422 * Makefile.in: Add the datarootdir autoconf variable.
48423
48424 2007-05-09 Robert Millan <rmh@aybabtu.com>
48425
48426 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48427 fail gracefully if dev->disk->partition == NULL.
48428
48429 2007-05-07 Robert Millan <rmh@aybabtu.com>
48430
48431 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48432 determine partition map module.
48433 * util/i386/pc/grub-install.in: Use this feature to decide which
48434 partition module to load, instead of hardcoding pc and gpt.
48435
48436 2007-05-07 Robert Millan <rmh@aybabtu.com>
48437
48438 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48439 source directory differs from build directory.
48440
48441 2007-05-05 Robert Millan <rmh@aybabtu.com>
48442
48443 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48444 initialisation.
48445
48446 2007-05-05 Robert Millan <rmh@aybabtu.com>
48447
48448 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48449
48450 2007-05-05 Robert Millan <rmh@aybabtu.com>
48451
48452 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48453 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48454
48455 2007-05-05 Robert Millan <rmh@aybabtu.com>
48456
48457 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48458 (grub_probe_SOURCES): Likewise.
48459 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48460 GPT and initialize dos_part and bsd_part accordingly.
48461 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48462 install_bsd_part.
48463 (main): Activate gpt module for use during partition identification,
48464 and deactivate it afterwards.
48465 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48466 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48467 partition identification, and deactivate it afterwards.
48468
48469 2007-05-05 Robert Millan <rmh@aybabtu.com>
48470
48471 * term/i386/pc/console.c (grub_console_fini): Call
48472 grub_term_set_current() before grub_term_unregister().
48473
48474 2007-05-04 Robert Millan <rmh@aybabtu.com>
48475
48476 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48477 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48478 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48479 and update-grub_DATA.
48480 * conf/common.rmk: Build and install update-grub components.
48481 * conf/common.mk: Regenerate.
48482 * util/update-grub.in: New. Core of update-grub.
48483 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48484 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48485 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48486 * util/grub.d/README: New. Document grub.d directory layout.
48487
48488 2007-05-01 Robert Millan <rmh@aybabtu.com>
48489
48490 * util/grub-emu.c: Move initialization functions
48491 grub_util_biosdisk_init() and grub_init_all() before
48492 grub_util_biosdisk_get_grub_dev(), which relies on them.
48493
48494 2007-04-19 Robert Millan <rmh@aybabtu.com>
48495
48496 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48497 it is used later.
48498
48499 2007-04-18 Jerone Young <jerone@gmail.com>
48500
48501 * kernel/elf.c: Add missing parenthesis for conditional statement
48502 stanza.
48503
48504 2007-04-10 Jerone Young <jerone@gmail.com>
48505
48506 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48507 continue on and look for device node with real device name.
48508
48509 2007-04-10 Jerone Young <jerone@gmail.com>
48510
48511 * configure.ac: Add argument for autoconf to use transformation
48512 ability.
48513 * Makefile.in: Add autoconf package transformation code.
48514 * util/i386/pc/grub-install.in: Likewise.
48515 * util/powerpc/ieee1275/grub-install.in: Likewise.
48516
48517 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48518
48519 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48520 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48521 (EXT2_REVISION): Likewise.
48522 (EXT2_INODE_SIZE): Likewise.
48523 (struct grub_ext2_block_group): Added a missing member
48524 "used_dirs".
48525 (grub_ext2_read_inode): Divide by the inode size in a superblock
48526 instead of 128 to obtain INODES_PER_BLOCK.
48527 Use the macro EXT2_INODE_SIZE instead of directly using
48528 SBLOCK->INODE_SIZE.
48529
48530 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48531
48532 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48533 superblock instead of the structure size to compute an
48534 offset. This fixes the problem that GRUB could not read a
48535 filesystem when inode size is different from 128-byte.
48536
48537 2007-03-05 Marco Gerards <marco@gnu.org>
48538
48539 * normal/main.c (read_config_file): When "menu" is not set, create
48540 an initial context.
48541
48542 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48543
48544 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48545 (HEAP_LIMIT): New macro.
48546 (grub_claim_heap): Claim memory up to `heaplimit'.
48547
48548 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48549
48550 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48551 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48552 (_start): Likewise.
48553 (grub_arch_modules_addr): Return address after `_end'.
48554 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48555 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48556 (add_segments): Calculate `_end' from phdr size and location.
48557 (ALIGN_UP): Moved to ...
48558 * include/grub/misc.h: here.
48559 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48560 New macro.
48561 (GRUB_IEEE1275_MODULE_BASE): Removed.
48562
48563 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48564
48565 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48566 loop boundary.
48567
48568 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48569
48570 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48571 All users updated.
48572 (grub_elf64_load_hook_t): Likewise.
48573 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48574 debug output.
48575
48576 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48577
48578 * kern/mm.c: Update copyright.
48579 (grub_mm_debug): Correct syntax error.
48580 (grub_mm_dump_free): New function.
48581 (grub_debug_free): Call `grub_free'.
48582 * include/grub/mm.h: Update copyright.
48583 (grub_mm_dump_free): Add declaration.
48584
48585 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48586
48587 * include/grub/ieee1275/ieee1275.h: Update copyright.
48588 * kern/powerpc/ieee1275/init.c: Likewise.
48589 * kern/powerpc/ieee1275/openfw.c: Likewise.
48590
48591 * loader/powerpc/ieee1275/linux.c: Likewise.
48592 * include/grub/elfload.h: Likewise.
48593 * kern/elf.c: Likewise.
48594 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48595 callers.
48596 (grub_elf64_load): Likewise.
48597 (grub_elf32_load_segment): Move to a nested function.
48598 (grub_elf64_load_segment): Likewise.
48599
48600 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48601
48602 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48603 prototype.
48604 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48605 (grub_heap_len): Likewise.
48606 (HEAP_SIZE): New macro.
48607 (grub_claim_heap): New function.
48608 (grub_machine_init): Don't claim heap directly. Call
48609 `grub_claim_heap'.
48610 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48611 (grub_available_iterate): New function.
48612
48613 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48614
48615 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48616 * configure.ac: Use it for testing the HOST and TARGET compilers.
48617
48618 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48619
48620 * Makefile.in (enable_grub_emu): New variable.
48621 * configure.ac (--enable-grub-emu): New option.
48622 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48623 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48624 * conf/i386-pc.rmk: Likewise.
48625 * conf/powerpc-ieee1275.rmk: Likewise.
48626 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48627
48628 2006-12-12 Marco Gerards <marco@gnu.org>
48629
48630 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48631
48632 * kern/env.c (grub_env_unset): Don't free the member `value' when
48633 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48634 pointer.
48635
48636 * normal/main.c (current_menu): Removed.
48637 (free_menu): Unset the `menu' environment variable.
48638 (grub_normal_menu_addentry): Make use of the environment variable
48639 `menu', instead of using the global `current_menu'. Allocate
48640 memory for the sourcecode of this entry.
48641 (read_config_file): New argument `nested', changed all callers.
48642 Only in the case of a new context, initialize a new menu. Set the
48643 `menu' environment variable.
48644 (grub_normal_execute): Don't set and unset the environment
48645 variable `menu' here anymore. Only free the menu when leaving the
48646 context.
48647
48648 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48649 leak.
48650
48651 2006-12-11 Marco Gerards <marco@gnu.org>
48652
48653 * normal/menu_entry.c (run): Fix off by one bug so the last line
48654 is executed. Move the loader check to outside the loop.
48655
48656 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48657
48658 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48659
48660 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48661
48662 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48663 the number of sectors. Reported by Andrey Shuvikov
48664 <mr_hyro@yahoo.com>.
48665
48666 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48667
48668 * kern/disk.c (grub_disk_read): When there is a read error, always
48669 try to read only the necessary data.
48670
48671 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48672 disk/raid.c.
48673 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48674 prototype.
48675 [GRUB_UTIL] (grub_raid_fini): Likewise.
48676 [GRUB_UTIL] (grub_lvm_init): Likewise.
48677 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48678 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48679 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48680 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48681 and grub_raid_fini().
48682
48683 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48684
48685 * include/grub/types.h (__unused): Rename to UNUSED.
48686 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48687 (grub_elf64_size): Likewise.
48688
48689 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48690
48691 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48692 grub_error_push and grub_error_pop in the error-handling path.
48693 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48694 length.
48695
48696 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48697
48698 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48699 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48700 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48701 (kernel_elf_SOURCES): Likewise.
48702 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48703 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48704 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48705 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48706 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48707 (elf_mod_SOURCES): New variable.
48708 (elf_mod_CFLAGS): Likewise.
48709 (elf_mod_LDFLAGS): Likewise.
48710 * include/grub/types.h (__unused): New macro.
48711 * include/grub/elfload.h: New file.
48712 * kern/elf.c: Likewise.
48713 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48714 (ELF32_LOADMASK): New macro.
48715 (ELF64_LOADMASK): Likewise.
48716 (vmlinux): Removed.
48717 (grub_linux_load32): New function.
48718 (grub_linux_load64): Likewise.
48719 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48720 Use grub_elf_t instead of grub_file_t.
48721
48722 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48723
48724 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48725 `catch_result' to struct set_color_args.
48726
48727 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48728
48729 * normal/menu.c: Include grub/script.h.
48730 * normal/menu_entry.c: Likewise.
48731 * include/grub/normal.h: Do not include grub/script.h.
48732
48733 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48734
48735 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48736
48737 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48738
48739 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48740 disk.
48741 (grub_disk_close): Print debug messages when closing a disk.
48742 (grub_disk_read): Print debug messages when disk read fails.
48743 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48744 filesystem type.
48745 * kern/partition.c: Include misc.h.
48746 (grub_partition_iterate): Print debug messages when detecting
48747 partition type.
48748
48749 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48750
48751 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48752 is negative.
48753 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48754
48755 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48756
48757 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48758 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48759
48760 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48761
48762 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48763 instead of sizeof(lv). Patch by Michael Guntsche.
48764
48765 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48766
48767 * disk/lvm.c: Rename VGS to VG_LIST.
48768 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48769 (grub_lvm_open): Likewise.
48770 Thanks to Michael Guntsche for finding this bug.
48771
48772 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48773
48774 * configure.ac (AC_INIT): Bumped to 1.95.
48775
48776 2006-10-14 Robert Millan <rmh@aybabtu.com>
48777
48778 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48779 with "/dev/.static/dev/md".
48780
48781 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48782
48783 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48784 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48785 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48786 DRIVE_NAME are always freed.
48787
48788 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48789 DOS_PART, as a DOS partition is counted from one instead of zero
48790 now. Reported by Robert Millan.
48791
48792 2006-10-14 Robert Millan <rmh@aybabtu.com>
48793
48794 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48795 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48796 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48797 string returned by grub_guess_root_device.
48798 * util/i386/pc/grub-setup.c: Likewise.
48799 * util/i386/pc/grub-probefs.c: Likewise.
48800
48801 * util/i386/pc/grub-probefs.c: Rename to ...
48802 * util/i386/pc/grub-probe.c: ... this.
48803 * DISTLIST: Remove grub-probefs, add grub-probe.
48804 * conf/i386-efi.rmk: Likewise.
48805 * conf/i386-pc.rmk: Likewise.
48806 * util/i386/pc/grub-install.in: Likewise.
48807
48808 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48809 choose which information we want to print.
48810
48811 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48812
48813 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48814 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48815 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48816 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48817 video/readers/tga.c and video/i386/pc/vbeutil.c.
48818
48819 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48820
48821 Added support for RAID and LVM.
48822
48823 * disk/lvm.c: New file.
48824 * disk/raid.c: Likewise.
48825 * include/grub/lvm.h: Likewise.
48826 * include/grub/raid.h: Likewise.
48827 * include/grub/util/lvm.h: Likewise.
48828 * include/grub/util/raid.h: Likewise.
48829 * util/lvm.c: Likewise.
48830 * util/raid.c: Likewise.
48831
48832 * include/grub/disk.h (grub_disk_dev_id): Add
48833 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48834 (grub_disk_get_size): New prototype.
48835 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48836 returns a partition.
48837 (grub_disk_get_size): New function.
48838
48839 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48840 verbatim if grub_install_dos_part is -2.
48841
48842 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48843 and LVM devices.
48844
48845 * util/i386/pc/grub-setup.c (setup): New argument
48846 MUST_EMBED. Force embedding of GRUB when the argument is
48847 true. Close FILE before returning.
48848 (main): Add support for RAID and LVM.
48849
48850 * conf/common.rmk: Add RAID and LVM modules.
48851 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48852 util/lvm.c.
48853 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48854
48855 * kern/misc.c (grub_strstr): New function.
48856 * include/grub/misc.h (grub_strstr): New prototype.
48857
48858 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48859
48860 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48861
48862 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48863
48864 * kern/misc.c (grub_strtoull): Guess the base only if not
48865 specified.
48866
48867 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48868
48869 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48870 PowerMac support.
48871
48872 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48873
48874 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48875
48876 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48877 Remove `flags' argument. All callers changed.
48878 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48879 (IEEE1275_IHANDLE_INVALID): New variable.
48880 (IEEE1275_CELL_INVALID): New variable.
48881 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48882 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48883 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48884 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48885 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48886 codes from Open Firmware. All callers updated.
48887 (grub_ieee1275_next_property): Directly return Open Firmware return
48888 code.
48889 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48890 Standardize error checking from `grub_ieee1275_get_property'.
48891 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48892 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48893
48894 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48895
48896 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48897 `instance_to_package_args' to `instance_to_path_args'.
48898
48899 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48900 `grub_ieee1275_chosen'.
48901
48902 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48903 `grub_ieee1275_interpret'.
48904
48905 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48906
48907 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48908
48909 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48910
48911 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48912 (__cmpdi): Likewise.
48913
48914 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48915 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48916 `grub_ssize_t'.
48917
48918 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48919
48920 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48921 to type `grub_ssize_t'.
48922 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48923
48924 2006-09-22 Marco Gerards <marco@gnu.org>
48925
48926 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48927 newlines.
48928
48929 2006-09-22 Marco Gerards <marco@gnu.org>
48930
48931 * commands/echo.c: New file.
48932
48933 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48934
48935 * conf/common.rmk (echo_mod_SOURCES): New variable.
48936 (echo_mod_CFLAGS): Likewise.
48937 (echo_mod_LDFLAGS): Likewise.
48938
48939 2006-09-22 Marco Gerards <marco@gnu.org>
48940
48941 * normal/main.c (get_line): Malloc memory instead of using
48942 preallocated memory. Removed the arguments `cmdline' and
48943 `max_len'. Updated all callers.
48944
48945 2006-09-22 Marco Gerards <marco@gnu.org>
48946
48947 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48948 (normal_mod_DEPENDENCIES): Likewise.
48949
48950 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48951 (normal_mod_DEPENDENCIES): Likewise.
48952
48953 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48954
48955 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48956
48957 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48958 programs.
48959 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48960 (normal_mod_DEPENDENCIES): Likewise.
48961 * conf/i386-pc.mk: Regenerate.
48962 * conf/i386-efi.mk: Likewise
48963 * conf/common.mk: Likewise.
48964 * conf/powerpc-ieee1275.mk: Likewise.
48965 * conf/sparc64-ieee1275.mk: Likewise.
48966
48967 2006-09-22 Robert Millan <rmh@aybabtu.com>
48968
48969 Sync with i386 version.
48970 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48971 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48972
48973 2006-09-21 Robert Millan <rmh@aybabtu.com>
48974
48975 Import from GRUB Legacy (lib/device.c):
48976 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48977 (init_device_map) [__linux__]: Add support for I2O devices.
48978
48979 2006-09-14 Marco Gerards <marco@gnu.org>
48980
48981 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48982 `-melf_i386'.
48983
48984 2006-09-14 Robert Millan <rmh@aybabtu.com>
48985
48986 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48987 /boot/grub/*.lst.
48988
48989 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48990
48991 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48992 before adding it to device.map.
48993
48994 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48995
48996 * genmk.rb: Let GCC generate dependencies the first time it
48997 compiles a file; using the -MD option.
48998 * conf/common.mk: Regenerate.
48999 * conf/i386-pc.mk: Likewise.
49000 * conf/i386-efi.mk: Likewise.
49001 * conf/powerpc-ieee1275.mk: Likewise.
49002 * conf/sparc64-ieee1275.mk: Likewise.
49003
49004 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49005
49006 Move the prototypes of grub_setjmp and grub_longjmp to
49007 cpu/setjmp.h, so that each architecture may specify different
49008 attributes.
49009
49010 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49011 (grub_longjmp): Likewise.
49012 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49013 (grub_longjmp): Likewise.
49014 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49015 (grub_longjmp): Likewise.
49016
49017 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49018 [!GRUB_UTIL] (grub_longjmp): Removed.
49019
49020 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49021
49022 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49023 "color!" method does not return any value.
49024
49025 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49026
49027 * include/grub/bitmap.h: New file.
49028
49029 * include/grub/i386/pc/vbeutil.h: Likewise.
49030
49031 * video/bitmap.c: Likewise.
49032
49033 * video/readers/tga.c: Likewise.
49034
49035 * video/i386/pc/vbeutil.c: Likewise.
49036
49037 * commands/videotest.c: Code cleanup and updated to reflect to new
49038 video API.
49039
49040 * term/gfxterm.c: Likewise.
49041
49042 * video/video.c: Likewise.
49043
49044 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49045 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49046 (bitmap_mod_SOURCES): New entry.
49047 (bitmap_mod_CFLAGS): Likewise.
49048 (bitmap_mod_LDFLAGS): Likewise.
49049 (tga_mod_SOURCES): Likewise.
49050 (tga_mod_CFLAGS): Likewise.
49051 (tga_mod_LDFLAGS): Likewise.
49052
49053 * include/grub/video.h (grub_video_blit_operators): New enum type.
49054 (grub_video_render_target): Changed as forward declaration and moved
49055 actual definition to be video driver specific.
49056 (grub_video_adapter.blit_bitmap): Added blitting operator.
49057 (grub_video_adapter.blit_render_target): Likewise.
49058 (grub_video_blit_bitmap): Likewise.
49059 (grub_video_blit_render_target): Likewise.
49060
49061 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49062 driver specific render target definition.
49063 (grub_video_vbe_map_rgba): Added driver internal helper.
49064 (grub_video_vbe_unmap_color): Updated to use
49065 grub_video_i386_vbeblit_info.
49066 (grub_video_vbe_get_video_ptr): Likewise.
49067
49068 * include/grub/i386/pc/vbeblit.h
49069 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49070 grub_video_i386_vbeblit_info.
49071 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49072 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49073 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49074 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49075 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49076 (grub_video_i386_vbeblit_index_index): Likewise.
49077 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49078 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49079 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49080 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49081 operator.
49082 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49083 operator.
49084
49085 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49086 include/grub/i386/pc/vbeblit.h.
49087
49088 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49089 Updated to use grub_video_i386_vbeblit_info.
49090 (grub_video_i386_vbefill_R8G8B8): Likewise.
49091 (grub_video_i386_vbefill_index): Likewise.
49092 (grub_video_i386_vbefill): Added generic filler.
49093
49094 * video/i386/pc/vbefill.c: Updated to reflect changes on
49095 include/grub/i386/pc/vbefill.h.
49096
49097 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49098 grub_video_i386_vbeblit_info.
49099 (grub_video_vbe_unmap_color): Likewise.
49100 (grub_video_vbe_blit_glyph): Likewise.
49101 (grub_video_vbe_scroll): Likewise.
49102 (grub_video_vbe_draw_pixel): Removed function.
49103 (grub_video_vbe_get_pixel): Likewise.
49104 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49105 updated code to use it.
49106 (common_blitter): Added common blitter for render target and bitmap.
49107 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49108 (grub_video_vbe_blit_render_target): Likewise.
49109
49110 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49111
49112 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49113 is in text mode if there is no console control protocol instance
49114 available.
49115
49116 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49117
49118 * include/grub/video.h: Code cleanup.
49119
49120 * include/grub/i386/pc/vbe.h: Likewise.
49121
49122 * video/i386/pc/vbe.c: Likewise.
49123
49124 * video/i386/pc/vbeblit.c: Likewise.
49125
49126 * video/i386/pc/vbefill.c: Likewise.
49127
49128 * video/video.c: Likewise. Also added more comments.
49129
49130 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49131
49132 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49133 (struct grub_biosdisk_dap): Likewise.
49134
49135 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49136 linkage settings for all functions.
49137
49138 2006-07-12 Marco Gerards <marco@gnu.org>
49139
49140 * configure.ac (--enable-mm-debug): Fix typo.
49141
49142 * genkernsyms.sh.in: Use proper quoting for `CC'.
49143
49144 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49145
49146 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49147 (normal_mod_ASFLAGS): Remove "-m32".
49148
49149 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49150
49151 * util/misc.c: Include config.h.
49152 [!HAVE_MEMALIGN]: Do not include malloc.h.
49153 (grub_memalign): Use posix_memalign, if present. Then, use
49154 memalign, if present. Otherwise, emit an error.
49155
49156 * util/grub-emu.c: Do not include malloc.h.
49157
49158 * include/grub/util/misc.h: Include unistd.h. This is required for
49159 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49160 D. Eades III <hde@foobar-qux.org>.
49161
49162 * configure.ac (AC_GNU_SOURCE): Added.
49163 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49164 type.
49165
49166 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49167
49168 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49169 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49170
49171 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49172
49173 * include/grub/types.h (grub_host_addr_t): Rename to
49174 grub_target_addr_t.
49175 (grub_host_off_t): Rename to grub_target_off_t.
49176 (grub_host_size_t): Rename to grub_target_size_t.
49177 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49178 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49179
49180 * include/grub/kernel.h (struct grub_module_header): Change type
49181 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49182 (grub_module_info): Likewise.
49183
49184 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49185
49186 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49187 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49188 Velazquez <jesus.velazquez@gmail.com>.
49189
49190 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49191
49192 Count partitions from 1 instead of 0 in the string representation
49193 of partitions. Still use 0-based internally.
49194
49195 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49196 (sun_partition_map_iterate): Use grub_partition_t instead of
49197 struct grub_partition *. Cast DESC->START_CYLINDER to
49198 grub_uint64_t after converting the endian.
49199 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49200 (sun_partition_map_get_name): Add 1 to P->INDEX.
49201
49202 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49203 PCDATA->DOS_PART.
49204 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49205
49206 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49207 zero instead of one.
49208 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49209 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49210
49211 * partmap/apple.c (apple_partition_map_iterate): Change the type
49212 of POS to unsigned.
49213 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49214 (apple_partition_map_get_name): Add 1 into P->INDEX.
49215
49216 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49217 of POS to unsigned.
49218 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49219 calculate the offset of a partition.
49220 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49221 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49222
49223 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49224 SECTOR to grub_disk_addr_t.
49225 (acorn_partition_map_iterate): Likewise.
49226 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49227 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49228 top.
49229 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49230
49231 * kern/i386/pc/init.c (make_install_device): Add 1 into
49232 GRUB_INSTALL_DOS_PART.
49233
49234 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49235 conditional.
49236
49237 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49238
49239 Clean up the code to support 64-bit addressing in disks and
49240 files. This change is not enough for filesystems yet.
49241
49242 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49243 type of "start" to grub_uint64_t.
49244 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49245 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49246 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49247 convert addresses.
49248
49249 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49250 to grub_disk_addr_t.
49251
49252 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49253 string.
49254
49255 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49256
49257 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49258 to char *.
49259
49260 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49261
49262 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49263
49264 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49265
49266 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49267 to grub_off_t, to detect an error from grub_file_seek.
49268 (grub_multiboot_load_elf32): Likewise.
49269
49270 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49271 maximum unsigned long value when an overflow is detected.
49272 (grub_strtoull): New function.
49273 (grub_divmod64): Likewise.
49274 (grub_lltoa): use grub_divmod64.
49275
49276 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49277 grub_disk_addr_t.
49278 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49279 the pointer to next character. Use grub_strtoull instead of
49280 grub_strtoul.
49281 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49282 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49283 respectively.
49284
49285 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49286 return value is signed.
49287 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49288 test if OFFSET is less than zero, as OFFSET is unsigned now.
49289
49290 * kern/disk.c (struct grub_disk_cache): Change the type of
49291 "sector" to grub_disk_addr_t.
49292 (grub_disk_cache_get_index): Change the type of SECTOR to
49293 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49294 unsigned after shifting.
49295 (grub_disk_cache_invalidate): Change the type of SECTOR to
49296 grub_disk_addr_t.
49297 (grub_disk_cache_unlock): Likewise.
49298 (grub_disk_cache_store): Likewise.
49299 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49300 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49301 grub_disk_addr_t and grub_uint64_t, respectively.
49302 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49303 body, as the value of OFFSET is tweaked by
49304 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49305 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49306 respectively.
49307 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49308 body, as the value of OFFSET is tweaked by
49309 grub_disk_check_range. Change the types of LEN and N to
49310 grub_size_t.
49311
49312 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49313 and "saved_offset" to grub_off_t.
49314 (test_header): Cast BUF to char *.
49315 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49316 to char *.
49317 (grub_gzio_read): Change the types of OFFSET and SIZE to
49318 grub_off_t and grub_size_t, respectively.
49319
49320 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49321 Removed.
49322 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49323 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49324 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49325 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49326 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49327
49328 * include/grub/types.h (grub_off_t): Unconditionally set to
49329 grub_uint64_t.
49330 (grub_disk_addr_t): Changed to grub_uint64_t.
49331
49332 * include/grub/partition.h (struct grub_partition): Change the
49333 types of "start", "len" and "offset" to grub_disk_addr_t,
49334 grub_uint64_t and grub_disk_addr_t, respectively.
49335 (grub_partition_get_start): Return grub_disk_addr_t.
49336 (grub_partition_get_len): Return grub_uint64_t.
49337
49338 * include/grub/misc.h (grub_strtoull): New prototype.
49339 (grub_divmod64): Likewise.
49340
49341 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49342 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49343 grub_off_t, respectively.
49344 All callers and references changed.
49345
49346 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49347 grub_size_t in "read".
49348 All callers and references changed.
49349
49350 * include/grub/file.h (struct grub_file): Change the types of
49351 "offset" and "size" to grub_off_t and grub_off_t,
49352 respectively. Change the type of SECTOR to grub_disk_addr_t in
49353 "read_hook".
49354 (grub_file_read): Change the type of LEN to grub_size_t.
49355 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49356 grub_off_t.
49357 (grub_file_size): Return grub_off_t.
49358 (grub_file_tell): Likewise.
49359 All callers and references changed.
49360
49361 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49362 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49363 "write".
49364 (struct grub_disk): Change the type of "total_sectors" to
49365 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49366 "read_hook".
49367 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49368 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49369 (grub_disk_write): Likewise.
49370 All callers and references changed.
49371
49372 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49373 char * for grub_strncmp to silence gcc.
49374 (grub_iso9660_mount): Likewise.
49375 (grub_iso9660_mount): Likewise.
49376 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49377 return statement.
49378 (grub_iso9660_iterate_dir): Likewise.
49379 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49380
49381 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49382 LEN to grub_disk_addr_t and grub_size_t, respectively.
49383
49384 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49385
49386 * fs/jfs.c (grub_jfs_read_file): Likewise.
49387
49388 * fs/minix.c (grub_jfs_read_file): Likewise.
49389
49390 * fs/sfs.c (grub_jfs_read_file): Likewise.
49391
49392 * fs/ufs.c (grub_jfs_read_file): Likewise.
49393
49394 * fs/xfs.c (grub_jfs_read_file): Likewise.
49395
49396 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49397 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49398 respectively.
49399
49400 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49401 BLKNR to -1 instead of returning GRUB_ERRNO.
49402 (grub_ext2_read_file): Change the types of SECTOR and
49403 LEN to grub_disk_addr_t and grub_size_t, respectively.
49404
49405 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49406 LEN to grub_disk_addr_t and grub_size_t, respectively.
49407
49408 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49409 grub_file_read.
49410
49411 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49412 string. Do not cast SECTOR explicitly.
49413
49414 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49415 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49416 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49417 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49418 over 2TB and LBA mode is not supported, raise an error.
49419 (get_safe_sectors): New function.
49420 (grub_biosdisk_read): Use get_safe_sectors.
49421 (grub_biosdisk_write): Likewise.
49422
49423 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49424 (grub_efidisk_write): Likewise.
49425
49426 * disk/loopback.c (delete_loopback): Cosmetic changes.
49427 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49428 correctly.
49429 (grub_loopback_open): Likewise.
49430 (grub_loopback_read): Likewise. Also, change the type of POS to
49431 grub_off_t, and fix the usage of grub_memset.
49432
49433 * commands/i386/pc/play.c: Include grub/machine/time.h.
49434
49435 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49436 print FILE->SIZE.
49437
49438 * commands/configfile.c: Include grub/env.h.
49439
49440 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49441 GRUB_ERRNO directly instead. Change the type of POS to
49442 grub_off_t. Follow the coding standard.
49443
49444 * commands/blocklist.c: Include grub/partition.h.
49445 (grub_cmd_blocklist): Return an error if the underlying device is
49446 not a disk. Take the starting sector of a partition into account,
49447 if a partition is used.
49448
49449 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49450 a length field.
49451 (lba_mode): Support 64-bit addresses.
49452 (chs_mode): Likewise.
49453 (copy_buffer): Adapted to the new offsets of a length field and a
49454 segment field.
49455 (blocklist_default_start): Allocate 64-bit space.
49456
49457 * boot/i386/pc/boot.S (force_lba): Removed.
49458 (boot_drive): Moved to under KERNEL_SECTOR.
49459 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49460 space.
49461 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49462 is useless.
49463 (lba_mode): Refactored to support a 64-bit address. More size
49464 optimization.
49465 (setup_sectors): Likewise.
49466
49467 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49468
49469 * DISTLIST: Added include/grub/i386/linux.h. Removed
49470 include/grub/i386/pc/linux.h
49471
49472 * configure.ac (AC_INIT): Bumped to 1.94.
49473
49474 * config.guess: Updated from gnulib.
49475 * config.sub: Likewise.
49476 * install-sh: Likewise.
49477 * mkinstalldirs: Likewise.
49478
49479 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49480
49481 * conf/common.rmk (grub_modules_init.lst): Depended on
49482 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49483 MODSRCFILES.
49484
49485 * genmk.rb (PModule::rule): Reverted the previous change.
49486
49487 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49488
49489 * conf/common.rmk (grub_modules_init.lst): Depends on
49490 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49491 that the target does not exist before producing.
49492 (grub_modules_init.h): Remove the target before generating.
49493 (grub_emu_init.c): Likewise.
49494
49495 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49496
49497 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49498
49499 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49500 for the target-specific tests. Make sure that we also have the
49501 up-to-date target variables for those tests.
49502
49503 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49504
49505 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49506 (PModule::rule): Likewise.
49507
49508 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49509
49510 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49511 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49512 target-specific flags should be prefixed.
49513 (PModule::rule): Likewise.
49514
49515 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49516
49517 * configure.ac (CMP): Check if cmp is available explicitly.
49518
49519 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49520
49521 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49522 (target_cpu): New variable.
49523 (pkglibdir): Use target_cpu instead of host_cpu.
49524
49525 * util/i386/pc/grub-install.in (host_cpu): Removed.
49526 (target_cpu): New variable.
49527 (pkglibdir): Use target_cpu instead of host_cpu.
49528
49529 * util/genmoddep.c: Removed.
49530
49531 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49532 instead of GRUB_HOST_SIZEOF_VOID_P.
49533 * kern/dl.c: Likewise.
49534
49535 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49536 ...
49537 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49538 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49539 (GRUB_TARGET_SIZEOF_LONG): ... this.
49540 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49541 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49542 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49543 to ...
49544 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49545 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49546 (GRUB_TARGET_SIZEOF_LONG): ... this.
49547 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49548 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49549 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49550 to ...
49551 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49552 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49553 (GRUB_TARGET_SIZEOF_LONG): ... this.
49554 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49555 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49556
49557 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49558 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49559 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49560 instead of GRUB_HOST_SIZEOF_LONG.
49561 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49562 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49563 GRUB_CPU_WORDS_BIGENDIAN.
49564 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49565 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49566 grub_host_ssize_t.
49567
49568 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49569 (genmoddep_SOURCES): Likewise.
49570 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49571 (genmoddep_SOURCES): Likewise.
49572 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49573 (genmoddep_SOURCES): Likewise.
49574 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49575 Likewise.
49576 (genmoddep_SOURCES): Likewise.
49577
49578 * genmoddep.awk: New file.
49579
49580 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49581 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49582 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49583 (PModule::rule): Likewise.
49584 (Program::rule): Likewise.
49585 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49586 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49587 respectively.
49588
49589 * configure.ac: Rewritten intensively to use host and target
49590 instead of build and host, respectively.
49591
49592 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49593 (host_cpu): Removed.
49594 (target_cpu): New variable.
49595 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49596 (BUILD_CC): Removed.
49597 (BUILD_CFLAGS): Likewise.
49598 (BUILD_CPPFLAGS): Likewise.
49599 (TARGET_CC): New variable.
49600 (TARGET_CFLAGS): Likewise.
49601 (TARGET_CPPFLAGS): Likewise.
49602 (TARGET_LDFLAGS): Likewise.
49603 (AWK): Likewise.
49604 (include): Use target_cpu instead of host_cpu.
49605 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49606
49607 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49608
49609 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49610
49611 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49612 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49613 field 'false' to 'exec_on_false'.
49614 (grub_script_create_cmdif): Renamed argument names to reflect above
49615 changes.
49616
49617 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49618
49619 * normal/script.c (grub_script_create_cmdif): Likewise.
49620
49621 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49622
49623 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49624 top.
49625 (grub_hfsplus_btree_recptr): Likewise.
49626 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49627 FILEBLOCK both to pass a block number and store next block
49628 number.
49629 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49630 overflow file correctly. Specify errors appropriately, because
49631 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49632 grub_hfsplus_btree_recptr to get the pointer to a found key.
49633 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49634 is found.
49635
49636 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49637 linux.mod.
49638 (_linux_mod_SOURCES): New variable.
49639 (_linux_mod_CFLAGS): Likewise.
49640 (_linux_mod_LDFLAGS): Likewise.
49641 (linux_mod_SOURCES): Likewise.
49642 (linux_mod_CFLAGS): Likewise.
49643 (linux_mod_LDFLAGS): Likewise.
49644
49645 * DISTLIST: Added loader/i386/efi/linux.c,
49646 loader/i386/efi/linux_normal.c and
49647 include/grub/i386/efi/loader.h.
49648
49649 * loader/i386/efi/linux.c: New file.
49650 * loader/i386/efi/linux_normal.c: Likewise.
49651 * include/grub/i386/efi/loader.h: Likewise.
49652
49653 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49654
49655 * commands/blocklist.c: New file.
49656
49657 * DISTLIST: Added commands/blocklist.c.
49658
49659 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49660 color for the background, and a darker color for the foreground.
49661 (grub_console_checkkey): Return READ_KEY.
49662 (grub_console_cls): Set the background to
49663 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49664
49665 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49666
49667 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49668 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49669
49670 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49671 prototype.
49672
49673 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49674 BG. The spec is wrong again.
49675
49676 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49677 prototype.
49678 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49679
49680 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49681 commands/blocklist.c.
49682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49683
49684 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49685 (blocklist_mod_SOURCES): New variable.
49686 (blocklist_mod_CFLAGS): Likewise.
49687 (blocklist_mod_LDFLAGS): Likewise.
49688
49689 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49690
49691 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49692 duplication.
49693 (lba_mode): Use %eax more intensively to reduce the code size.
49694
49695 2006-05-20 Marco Gerards <marco@gnu.org>
49696
49697 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49698
49699 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49700 for `menuentry'.
49701 (script): Accept leading newlines.
49702 (newlines): New rule to describe 0 or more newlines.
49703 (commands): Accept `command' with trailing newline. Fixed the
49704 order in which arguments were passed to `grub_script_add_cmd'.
49705 Accept commands separated by newlines.
49706 (function): Changed to accept newlines.
49707 (menuentry) Rewritten.
49708
49709 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49710 front of the list, instead of to the end.
49711
49712 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49713
49714 * util/i386/pc/grub-install.in (bindir): New variable.
49715 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49716 Shaver <lbgwjl@gmail.com>.
49717
49718 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49719
49720 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49721 grub/machine/linux.h
49722 * loader/i386/pc/linux.c: Likewise.
49723
49724 * include/grub/i386/pc/linux.h: Moved to ...
49725 * include/grub/i386/linux.h: ... here.
49726
49727 * include/grub/i386/linux.h (struct linux_kernel_params): New
49728 struct.
49729
49730 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49731
49732 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49733 checking.
49734 (grub_video_vbe_blit_glyph): Likewise.
49735 (grub_video_vbe_blit_bitmap): Likewise.
49736 (grub_video_vbe_blit_render_target): Likewise.
49737
49738 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49739
49740 * configure.ac (--with-platform): Properly quote the square
49741 brackets.
49742
49743 2006-05-08 Marco Gerards <marco@gnu.org>
49744
49745 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49746 this...
49747 (kernel_elf_HEADERS): ...to this. Updated all users.
49748 (grubof_symlist.c): Renamed from this...
49749 (kernel_elf_symlist.c): ...to this. Updated all users.
49750 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49751 (grubof_SOURCES): Renamed from this...
49752 (kernel_elf_SOURCES): ...to this.
49753 (grubof_HEADERS): Renamed from this...
49754 (kernel_elf_HEADERS): ...to this.
49755 (grubof_CFLAGS): Renamed from this...
49756 (kernel_elf_CFLAGS): ...to this.
49757 (grubof_ASFLAGS): Renamed from this...
49758 (kernel_elf_ASFLAGS): ...to this.
49759 (grubof_LDFLAGS): Renamed from this...
49760 (kernel_elf_LDFLAGS): ...to this.
49761
49762 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49763 this...
49764 (kernel_elf_HEADERS): ...to this. Updated all users.
49765 (grubof_symlist.c): Renamed from this...
49766 (kernel_elf_symlist.c): ...to this. Updated all users.
49767 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49768 (grubof_SOURCES): Renamed from this...
49769 (kernel_elf_SOURCES): ...to this.
49770 (grubof_HEADERS): Renamed from this...
49771 (kernel_elf_HEADERS): ...to this.
49772 (grubof_CFLAGS): Renamed from this...
49773 (kernel_elf_CFLAGS): ...to this.
49774 (grubof_ASFLAGS): Renamed from this...
49775 (kernel_elf_ASFLAGS): ...to this.
49776 (grubof_LDFLAGS): Renamed from this...
49777 (kernel_elf_LDFLAGS): ...to this.
49778
49779 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49780 `kernel.elf' instead of `grubof'.
49781
49782 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49783
49784 Add --with-platform to configure. Use pkglibdir instead of
49785 pkgdatadir. This is reported by Roger Leigh.
49786
49787 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49788 (host_vendor): Likewise.
49789 (host_os): Likewise.
49790 (pkgdatadir): Likewise.
49791 (platform): New variable.
49792 (pkglibdir): Likewise.
49793 Use PKGLIBDIR instead of PKGDATADIR.
49794
49795 * util/i386/pc/grub-install.in (datadir): Removed.
49796 (host_vendor): Likewise.
49797 (host_os): Likewise.
49798 (pkgdatadir): Likewise.
49799 (platform): New variable.
49800 (pkglibdir): Likewise.
49801 Use PKGLIBDIR instead of PKGDATADIR.
49802
49803 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49804 instead of GRUB_DATADIR.
49805 (main): Likewise.
49806 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49807 (main): Likewise.
49808 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49809 (main): Likewise.
49810
49811 * configure.ac (--with-platform): New option.
49812 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49813
49814 * Makefile.in: Include a makefile based on PLATFORM instead of
49815 HOST_VENDOR.
49816 (pkgdatadir): Not appended by the machine type.
49817 (pkglibdir): Appended by the machine type.
49818 (host_vendor): Removed.
49819 (platform): New variable.
49820 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49821 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49822 (uninstall): Likewise.
49823
49824 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49825
49826 Use the environment context in the menu. Remove the commands
49827 "default" and "timeout", and use variables instead.
49828
49829 * normal/menu.c: Include grub/env.h.
49830 (print_entry): Cast TITLE to silence gcc.
49831 (get_timeout): New function.
49832 (set_timeout): Likewise.
49833 (get_entry_number): Likewise.
49834 (run_menu): Use a default entry, a fallback entry and a timeout
49835 in the environment variables "default", "fallback" and
49836 "timeout". Also, tweak the default entry if it is not within the
49837 current menu entries.
49838 (grub_menu_run): Use a fallback entry in the environment variable
49839 "fallback".
49840
49841 * normal/main.c (read_config_file): Do not initialize
49842 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49843 NEWMENU->TIMEOUT.
49844 (grub_normal_execute): Use a data slot to store the menu.
49845
49846 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49847 fallback_entry and timeout.
49848 (struct grub_menu_list): Removed.
49849 (grub_menu_list_t): Likewise.
49850 (struct grub_context): Likewise.
49851 (grub_context_t): Likewise.
49852 (grub_context_get): Likewise.
49853 (grub_context_get_current_menu): Likewise.
49854 (grub_context_push_menu): Likewise.
49855 (grub_context_pop_menu): Likewise.
49856 (grub_default_init): Likewise.
49857 (grub_default_fini): Likewise.
49858 (grub_timeout_init): Likewise.
49859 (grub_timeout_fini): Likewise.
49860
49861 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49862 and timeout.mod.
49863 (normal_mod_SOURCES): Removed normal/context.c.
49864
49865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49866 commands/default.c, commands/timeout.c and normal/context.c.
49867 (normal_mod_SOURCES): Removed normal/context.c.
49868
49869 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49870 commands/timeout.c and normal/context.c.
49871 (normal_mod_SOURCES): Removed normal/context.c.
49872
49873 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49874 commands/default.c, commands/timeout.c and normal/context.c.
49875 (normal_mod_SOURCES): Removed normal/context.c.
49876
49877 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49878 timeout.mod.
49879 (default_mod_SOURCES): Removed.
49880 (default_mod_CFLAGS): Likewise.
49881 (default_mod_LDFLAGS): Likewise.
49882 (timeout_mod_SOURCES): Removed.
49883 (timeout_mod_CFLAGS): Likewise.
49884 (timeout_mod_LDFLAGS): Likewise.
49885
49886 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49887 normal/context.c.
49888
49889 * commands/default.c: Removed.
49890 * commands/timeout.c: Likewise.
49891 * normal/context.c: Likewise.
49892
49893 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49894
49895 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49896
49897 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49898
49899 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49900 "next" to "prev" for readability.
49901 (struct grub_env_sorted_var): New struct.
49902 (grub_env_context): Renamed to ...
49903 (initial_context): ... this.
49904 (grub_env_var_context): Renamed to ...
49905 (current_context): ... this.
49906 (grub_env_find): Look only at CURRENT_CONTEXT.
49907 (grub_env_context_open): Rewritten to copy exported variables from
49908 previous context.
49909 (grub_env_context_close): Rewritten according to the new
49910 scheme. Also, add an assertion to prevent the initial context from
49911 removed.
49912 (grub_env_insert): Removed the code for the sorted list.
49913 (grub_env_remove): Likewise.
49914 (grub_env_export): Simply mark the variable with
49915 GRUB_ENV_VAR_GLOBAL.
49916 (grub_env_set): A cosmetic change for naming consistency.
49917 (grub_env_get): Likewise.
49918 (grub_env_unset): Likewise.
49919 (grub_env_iterate): Rewritten to sort variables within this
49920 function.
49921 (grub_register_variable_hook): Fixed for naming consistency. Call
49922 grub_env_find again, only if NAME is not found at the first time.
49923 (mangle_data_slot_name): New function.
49924 (grub_env_set_data_slot): Likewise.
49925 (grub_env_get_data_slot): Likewise.
49926 (grub_env_unset_data_slot): Likewise.
49927
49928 * include/grub/env.h (grub_env_var_type): New enum.
49929 (GRUB_ENV_VAR_LOCAL): New constant.
49930 (GRUB_ENV_VAR_GLOBAL): Likewise.
49931 (GRUB_ENV_VAR_DATA): Likewise.
49932 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49933 "type".
49934 (grub_env_set): Replace VAR with NAME for consistency.
49935 (grub_register_variable_hook): Likewise.
49936 (grub_env_export): Specify the name of the argument.
49937 (grub_env_set_data_slot): New prototype.
49938 (grub_env_get_data_slot): Likewise.
49939 (grub_env_unset_data_slot): Likewise.
49940
49941 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49942
49943 Extend the loader so that GRUB can accept a loader which comes
49944 back to GRUB when a loaded image exits. Also, this change adds
49945 support for a chainloader on EFI.
49946
49947 * term/efi/console.c: Include grub/misc.h.
49948 (grub_console_checkkey): Display a scan code on the top for
49949 debugging. This will be removed once the EFI port gets stable.
49950 Correct the scan code mapping.
49951
49952 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49953 allocate memory from larger regions, in order to reduce the number
49954 of allocated regions. Otherwise, the MacOSX loader panics.
49955 (filter_memory_map): Avoid less than 1MB for compatibility with
49956 other loaders.
49957 (add_memory_regions): Allocate from the tail of a region, if
49958 possible, to avoid allocating a region near to 1MB, for the MacOSX
49959 loader.
49960
49961 * kern/efi/init.c (grub_efi_set_prefix): Specify
49962 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49963
49964 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49965 argument IMAGE_HANDLE and specify it to get a loaded image.
49966 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49967 grub_efi_get_loaded_image.
49968 (grub_efi_get_filename): Divide the length by the size of
49969 grub_efi_char16_t.
49970 (grub_efi_get_device_path): New function.
49971 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49972 the length by the size of grub_efi_char16_t for a file path device
49973 path node.
49974
49975 * kern/loader.c (grub_loader_noreturn): New variable.
49976 (grub_loader_set): Accept a new argument NORETURN. Set
49977 GRUB_LOADER_NORETURN to NORETURN.
49978 All callers changed.
49979 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49980 grub_machine_fini.
49981
49982 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49983 prototype.
49984 (grub_efi_get_loaded_image): Take an argument to specify an image
49985 handle.
49986
49987 * include/grub/loader.h (grub_loader_set): Added one more argument
49988 NORETURN.
49989
49990 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49991 instead of grub_efi_open_protocol.
49992 (grub_efidisk_get_device_name): Likewise.
49993 (grub_efidisk_close): Print a newline.
49994 (grub_efidisk_get_device_handle): Fixed to use
49995 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49996 GRUB_EFI_DEVICE_PATH_TYPE.
49997
49998 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49999 * kern/efi/efi.c (device_path_guid): ... here.
50000
50001 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50002 chain.mod.
50003 (kernel_mod_HEADERS): Added efi/disk.h.
50004 (_chain_mod_SOURCES): New variable.
50005 (_chain_mod_CFLAGS): Likewise.
50006 (_chain_mod_LDFLAGS): Likewise.
50007 (chain_mod_SOURCES): Likewise.
50008 (chain_mod_CFLAGS): Likewise.
50009 (chain_mod_LDFLAGS): Likewise.
50010
50011 * DISTLIST: Added include/grub/efi/chainloader.h,
50012 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50013
50014 * include/grub/efi/chainloader.h: New file.
50015 * loader/efi/chainloader.c: Likewise.
50016 * loader/efi/chainloader_normal.c: Likewise.
50017
50018 2006-04-30 Marco Gerards <marco@gnu.org>
50019
50020 * commands/configfile.c (grub_cmd_source): New function.
50021 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50022 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50023
50024 2006-04-30 Marco Gerards <marco@gnu.org>
50025
50026 * normal/execute.c (grub_script_execute_cmd): Change the return
50027 type to `grub_err_t'. Correctly return the error.
50028 (grub_script_execute_cmdline): In case a command line is not a
50029 command or a function, try to interpret it as an assignment.
50030
50031 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50032
50033 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50034 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50035 skip a node whose name is obviously invalid as UTF-16,
50036 i.e. contains a NUL character. Stop the iteration when the last
50037 directory entry is found. Instead of using the return value of
50038 grub_hfsplus_btree_iterate_node, store the value in RET and use
50039 it, because the iterator can be stopped by the last directory
50040 entry.
50041
50042 2006-04-30 Marco Gerards <marco@gnu.org>
50043
50044 * include/grub/env.h (grub_env_export): New prototype. Reported
50045 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50046
50047 2006-04-30 Marco Gerards <marco@gnu.org>
50048
50049 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50050 size of the extents in a catalog file record.
50051
50052 2006-04-29 Marco Gerards <marco@gnu.org>
50053
50054 * commands/configfile.c (grub_cmd_configfile): Execute the
50055 configfile within its own context.
50056
50057 * include/grub/env.h (grub_env_context_open): New prototype.
50058 (grub_env_context_close): Likewise.
50059
50060 * kern/env.c (grub_env): Removed.
50061 (grub_env_sorted): Likewise.
50062 (grub_env_context): New variable.
50063 (grub_env_var_context): Likewise.
50064 (grub_env_find): Search both the active context and the global
50065 context.
50066 (grub_env_context_open): New function.
50067 (grub_env_context_close): Likewise.
50068 (grub_env_insert): Likewise.
50069 (grub_env_remove): Likewise.
50070 (grub_env_export): Likewise.
50071 (grub_env_set): Changed to use helper functions to avoid code
50072 duplication.
50073 (grub_env_iterate): Rewritten so both the current context and the
50074 global context are being used.
50075
50076 * normal/command.c (export_command): New function.
50077 (grub_command_init): Register the `export' function.
50078
50079 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50080
50081 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50082 explicitly to suppress gcc's warnings.
50083 * fs/fat.c (grub_fat_find_dir): Likewise.
50084 (grub_fat_label): Likewise.
50085 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50086 (grub_xfs_mount): Likewise.
50087 (grub_xfs_label): Likewise.
50088 * fs/affs.c (grub_affs_mount): Likewise.
50089 (grub_affs_label): Likewise.
50090 (grub_affs_iterate_dir): Likewise.
50091 * fs/sfs.c (grub_sfs_mount): Likewise.
50092 (grub_sfs_iterate_dir): Likewise.
50093 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50094 * fs/hfs.c (grub_hfs_mount): Likewise.
50095 (grub_hfs_cmp_catkeys): Likewise.
50096 (grub_hfs_find_dir): Likewise.
50097 (grub_hfs_dir): Likewise.
50098 (grub_hfs_label): Likewise.
50099 * fs/jfs.c (grub_jfs_mount): Likewise.
50100 (grub_jfs_opendir): Likewise.
50101 (grub_jfs_getent): Likewise.
50102 (grub_jfs_lookup_symlink): Likewise.
50103 (grub_jfs_label): Likewise.
50104 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50105 (grub_hfsplus_iterate_dir): Likewise.
50106 (grub_hfsplus_btree_iterate_node): Made static.
50107
50108 * util/grub-emu.c (prefix): New variable.
50109 (grub_machine_set_prefix): New function.
50110 (main): Do not set the environment variable "prefix" here. Only
50111 set PREFIX, which is used later by grub_machine_set_prefix.
50112
50113 * include/grub/video.h: Do not include grub/symbol.h.
50114 (grub_video_register): Not exported. This symbol is not defined in
50115 the kernel.
50116 (grub_video_unregister): Likewise.
50117 (grub_video_iterate): Likewise.
50118 (grub_video_setup): Likewise.
50119 (grub_video_restore): Likewise.
50120 (grub_video_get_info): Likewise.
50121 (grub_video_get_blit_format): Likewise.
50122 (grub_video_set_palette): Likewise.
50123 (grub_video_get_palette): Likewise.
50124 (grub_video_set_viewport): Likewise.
50125 (grub_video_get_viewport): Likewise.
50126 (grub_video_map_color): Likewise.
50127 (grub_video_map_rgb): Likewise.
50128 (grub_video_map_rgba): Likewise.
50129 (grub_video_fill_rect): Likewise.
50130 (grub_video_blit_glyph): Likewise.
50131 (grub_video_blit_bitmap): Likewise.
50132 (grub_video_blit_render_target): Likewise.
50133 (grub_video_scroll): Likewise.
50134 (grub_video_swap_buffers): Likewise.
50135 (grub_video_create_render_target): Likewise.
50136 (grub_video_delete_render_target): Likewise.
50137 (grub_video_set_active_render_target): Likewise.
50138
50139 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50140 Undefined.
50141 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50142
50143 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50144 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50145 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50146 instead of $(srcdir)/genkernsyms.sh.
50147
50148 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50149 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50150 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50151 instead of $(srcdir)/genkernsyms.sh.
50152
50153 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50154 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50155 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50156 instead of $(srcdir)/genkernsyms.sh.
50157
50158 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50159 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50160 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50161 instead of $(srcdir)/genkernsyms.sh.
50162
50163 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50164 genkernsyms.sh.
50165
50166 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50167 genkernsyms.sh.
50168 (gensymlist.sh): New target.
50169 (genkernsyms.sh): Likewise.
50170
50171 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50172 genkernsyms.sh.in and gensymlist.sh.in.
50173
50174 * genkernsyms.sh: Removed.
50175 * gensymlist.sh: Likewise.
50176
50177 * genkernsyms.sh.in: New file.
50178 * gensymlist.sh.in: Likewise.
50179
50180 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50181
50182 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50183 clobber "prefix", since we may have already set it manually.
50184
50185 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50186
50187 * kern/misc.c (abort): New alias for grub_abort.
50188
50189 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50190
50191 A new machine-specific function "grub_machine_set_prefix" is
50192 defined. This is called after loading modules, so that a prefix
50193 initialization can use modules. Also, this change adds an
50194 intensive debugging feature for the memory manager via the
50195 configure option "--enable-mm-debug".
50196
50197 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50198 PART.LEN.
50199
50200 * kern/sparc64/ieee1275/init.c (abort): Removed.
50201 (grub_stop): Likewise.
50202 (grub_exit): New function.
50203 (grub_set_prefix): Renamed to ...
50204 (grub_machine_set_prefix): ... this.
50205 (grub_machine_init): Do not call grub_set_prefix.
50206
50207 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50208 (grub_machine_set_prefix): ... this.
50209 (grub_machine_init): Do not call grub_set_prefix.
50210
50211 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50212 (grub_machine_init): Do not set the prefix here.
50213
50214 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50215
50216 * kern/efi/init.c: Include grub/mm.h.
50217 (grub_efi_set_prefix): New function.
50218
50219 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50220 (grub_efi_get_filename): New function.
50221 (grub_print_device_path): Renamed to ...
50222 (grub_efi_print_device_path): ... this.
50223
50224 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50225 [MM_DEBUG] (grub_realloc): Likewise.
50226 [MM_DEBUG] (grub_free): Likewise.
50227 [MM_DEBUG] (grub_memalign): Likewise.
50228 [MM_DEBUG] (grub_mm_debug): New variable.
50229 [MM_DEBUG] (grub_debug_malloc): New function.
50230 [MM_DEBUG] (grub_debug_free): New function.
50231 [MM_DEBUG] (grub_debug_realloc): New function.
50232 [MM_DEBUG] (grub_debug_memalign): New function.
50233
50234 * kern/misc.c (grub_abort): Print a newline to distinguish
50235 the message.
50236
50237 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50238 grub_set_root_dev after loading modules. This is necessary when
50239 setting a prefix depends on modules.
50240
50241 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50242 (grub_efi_print_device_path): ... this.
50243 (grub_efi_get_filename): New prototype.
50244 (grub_efi_set_prefix): Likewise.
50245
50246 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50247 and grub/disk.h.
50248 (grub_efidisk_get_device_handle): New prototype.
50249 (grub_efidisk_get_device_name): Likewise.
50250
50251 * include/grub/mm.h: Include config.h.
50252 (MM_DEBUG): Removed.
50253 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50254 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50255 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50256 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50257 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50258 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50259 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50260 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50261 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50262
50263 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50264
50265 * disk/efi/efidisk.c: Include grub/partition.h.
50266 (iterate_child_devices): New function.
50267 (add_device): First, compare only last device path nodes, so that
50268 devices are sorted by the types.
50269 (grub_efidisk_get_device_handle): New function.
50270 (grub_efidisk_get_device_name): Likewise.
50271
50272 * configure.ac (--enable-mm-debug): New option to enable the
50273 memory manager debugging feature. This makes the binary much
50274 bigger, so is disabled by default.
50275
50276 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50277
50278 Use grub_abort instead of grub_stop, and grub_exit must be
50279 define in each architecture now. Also, this change adds support
50280 for EFI disks.
50281
50282 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50283 (grub_getkey): New function.
50284 (grub_term_get_current): Likewise.
50285
50286 * util/i386/pc/grub-setup.c: Include grub/term.h.
50287 (grub_getkey): New function.
50288 (grub_term_get_current): Likewise.
50289
50290 * util/misc.c (grub_stop): Renamed to ...
50291 (grub_exit): ... this.
50292
50293 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50294 (grub_exit): ... this.
50295 (grub_machine_init): Use grub_abort instead of abort.
50296 (grub_stop): Removed.
50297
50298 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50299 abort.
50300
50301 * kern/i386/pc/startup.S (grub_exit): New function.
50302 (cold_reboot): New label.
50303
50304 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50305 (grub_efi_init): Call grub_efidisk_init.
50306 (grub_efi_fini): Call grub_efidisk_fini.
50307
50308 * kern/efi/efi.c: Include grub/mm.h.
50309 (grub_efi_console_control_guid): Renamed to ...
50310 (console_control_guid): ... this.
50311 (grub_efi_loaded_image_guid): Renamed to ...
50312 (loaded_image_guid): ... this.
50313 (grub_efi_locate_handle): New function.
50314 (grub_efi_open_protocol): Likewise.
50315 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50316 GRUB_EFI_CONSOLE_CONTROL_GUID.
50317 (grub_efi_exit): Removed.
50318 (grub_stop): Likewise.
50319 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50320 (grub_exit): New function.
50321 (grub_print_device_path): Likewise.
50322
50323 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50324 (grub_enter_rescue_mode): Register "exit".
50325
50326 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50327 (grub_abort): New function.
50328
50329 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50330
50331 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50332
50333 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50334
50335 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50336 (grub_print_device_path): New prototype.
50337 (grub_efi_locate_handle): Likewise.
50338 (grub_efi_open_protocol): Likewise.
50339
50340 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50341 * disk/efi/efidisk.c: Likewise.
50342
50343 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50344
50345 * include/grub/efi/console_control.h
50346 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50347
50348 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50349 last 8 bytes as an array.
50350 (GRUB_EFI_DISK_IO_GUID): New macro.
50351 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50352 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50353 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50354 grub_uint8_t.
50355 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50356 (struct grub_efi_device_path): Rename the member "sub_type" to
50357 "subtype".
50358 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50359 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50360 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50361 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50362 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50363 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50364 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50365 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50366 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50367 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50368 (struct grub_efi_pci_device_path): New structure.
50369 (grub_efi_pci_device_path_t): New type.
50370 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50371 (struct grub_efi_pccard_device_path): New structure.
50372 (grub_efi_pccard_device_path_t): New type.
50373 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50374 (struct grub_efi_memory_mapped_device_path): New structure.
50375 (grub_efi_memory_mapped_device_path_t): New type.
50376 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50377 (struct grub_efi_vendor_device_path): New structure.
50378 (grub_efi_vendor_device_path_t): New type.
50379 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50380 (struct grub_efi_controller_device_path): New structure.
50381 (grub_efi_controller_device_path_t): New type.
50382 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50383 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50384 (struct grub_efi_acpi_device_path): New structure.
50385 (grub_efi_acpi_device_path_t): New type.
50386 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50387 (struct grub_efi_expanded_acpi_device_path): New structure.
50388 (grub_efi_expanded_acpi_device_path_t): New type.
50389 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50390 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50391 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50392 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50393 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50394 (struct grub_efi_atapi_device_path): New structure.
50395 (grub_efi_atapi_device_path_t): New type.
50396 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50397 (struct grub_efi_fibre_channel_device_path): New structure.
50398 (grub_efi_fibre_channel_device_path_t): New type.
50399 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50400 (struct grub_efi_1394_device_path): New structure.
50401 (grub_efi_1394_device_path_t): New type.
50402 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50403 (struct grub_efi_usb_device_path): New structure.
50404 (grub_efi_usb_device_path_t): New type.
50405 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50406 (struct grub_efi_usb_class_device_path): New structure.
50407 (grub_efi_usb_class_device_path_t): New type.
50408 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50409 (struct grub_efi_i2o_device_path): New structure.
50410 (grub_efi_i2o_device_path_t): New type.
50411 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50412 (struct grub_efi_mac_address_device_path): New structure.
50413 (grub_efi_mac_address_device_path_t): New type.
50414 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50415 (struct grub_efi_ipv4_device_path): New structure.
50416 (grub_efi_ipv4_device_path_t): New type.
50417 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50418 (struct grub_efi_ipv6_device_path): New structure.
50419 (grub_efi_ipv6_device_path_t): New type.
50420 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50421 (struct grub_efi_infiniband_device_path): New structure.
50422 (grub_efi_infiniband_device_path_t): New type.
50423 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50424 (struct grub_efi_uart_device_path): New structure.
50425 (grub_efi_uart_device_path_t): New type.
50426 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50427 (struct grub_efi_vendor_messaging_device_path): New structure.
50428 (grub_efi_vendor_messaging_device_path_t): New type.
50429 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50430 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50431 (struct grub_efi_hard_drive_device_path): New structure.
50432 (grub_efi_hard_drive_device_path_t): New type.
50433 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50434 (struct grub_efi_cdrom_device_path): New structure.
50435 (grub_efi_cdrom_device_path_t): New type.
50436 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50437 (struct grub_efi_vendor_media_device_path): New structure.
50438 (grub_efi_vendor_media_device_path_t): New type.
50439 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50440 (struct grub_efi_file_path_device_path): New structure.
50441 (grub_efi_file_path_device_path_t): New type.
50442 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50443 (struct grub_efi_protocol_device_path): New structure.
50444 (grub_efi_protocol_device_path_t): New type.
50445 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50446 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50447 (struct grub_efi_bios_device_path): New structure.
50448 (grub_efi_bios_device_path_t): New type.
50449 (struct grub_efi_disk_io): New structure.
50450 (grub_efi_disk_io_t): New type.
50451 (struct grub_efi_block_io_media): New structure.
50452 (grub_efi_block_io_media_t): New type.
50453 (struct grub_efi_block_io): New structure.
50454 (grub_efi_block_io_t): New type.
50455
50456 * include/grub/misc.h (grub_stop): Removed.
50457 (grub_exit): New prototype.
50458 (grub_abort): Likewise.
50459
50460 * include/grub/disk.h (enum grub_disk_dev_id): Added
50461 GRUB_DISK_DEVICE_EFIDISK_ID.
50462
50463 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50464 disk/efi/efidisk.c.
50465 (kernel_syms.lst): Remove the target if an error occurs.
50466
50467 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50468
50469 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50470 as it was simply too buggy.
50471
50472 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50473
50474 * kern/misc.c (grub_lltoa): New function.
50475 (grub_vsprintf): Added support for the long long suffix,
50476 i.e. "ll".
50477
50478 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50479
50480 * Makefile.in (LDFLAGS): Add variable.
50481 (LD): Remove variable.
50482 * configure.ac: Add -m32 to LDFLAGS.
50483 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50484 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50485 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50486 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50487 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50488 variables.
50489 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50490 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50491 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50492
50493 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50494
50495 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50496 length for unknown glyph.
50497
50498 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50499
50500 Add support for pre-loaded modules into the EFI port.
50501
50502 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50503 completely. Accept one more argument DIR. The caller has changed.
50504
50505 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50506
50507 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50508 (grub_efi_loaded_image_guid): New variable.
50509 (grub_efi_get_loaded_image): New function.
50510 (grub_arch_modules_addr): Likewise.
50511
50512 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50513 prototype.
50514
50515 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50516 (struct grub_efi_loaded_image): New structure.
50517 (grub_efi_loaded_image_t): New type.
50518
50519 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50520
50521 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50522 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50523 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50524
50525 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50526
50527 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50528
50529 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50530
50531 * DISTLIST: Added include/grub/efi/console.h,
50532 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50533 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50534
50535 * include/grub/efi/console.h: New file.
50536 * include/grub/efi/time.h: Likewise.
50537 * include/grub/i386/efi/kernel.h: Likewise.
50538 * kern/efi/init.c: Likewise.
50539 * kern/efi/mm.c: Likewise.
50540 * term/efi/console.c: Likewise.
50541
50542 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50543 (grub_stop): Removed.
50544 (grub_get_rtc): Likewise.
50545 (grub_machine_init): Simply call grub_efi_init.
50546 (grub_machine_fini): Call grub_efi_fini.
50547
50548 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50549 (grub_efi_output_string): Removed.
50550 (grub_efi_stall): New function.
50551 (grub_stop): Likewise.
50552 (grub_get_rtc): Likewise.
50553
50554 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50555 (grub_efi_stall): New prototype.
50556 (grub_efi_allocate_pages): Likewise.
50557 (grub_efi_free_pages): Likewise.
50558 (grub_efi_get_memory_map): Likewise.
50559 (grub_efi_mm_init): Likewise.
50560 (grub_efi_mm_fini): Likewise.
50561 (grub_efi_init): Likewise.
50562 (grub_efi_fini): Likewise.
50563
50564 * include/grub/i386/efi/time.h: Do not include
50565 grub/symbol.h. Include grub/efi/time.h.
50566 (GRUB_TICKS_PER_SECOND): Removed.
50567 (grub_get_rtc): Likewise.
50568
50569 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50570 Added padding. The EFI spec is buggy.
50571 (GRUB_EFI_BLACK): New macro.
50572 (GRUB_EFI_BLUE): Likewise.
50573 (GRUB_EFI_GREEN): Likewise.
50574 (GRUB_EFI_CYAN): Likewise.
50575 (GRUB_EFI_RED): Likewise.
50576 (GRUB_EFI_MAGENTA): Likewise.
50577 (GRUB_EFI_BROWN): Likewise.
50578 (GRUB_EFI_LIGHTGRAY): Likewise.
50579 (GRUB_EFI_BRIGHT): Likewise.
50580 (GRUB_EFI_DARKGRAY): Likewise.
50581 (GRUB_EFI_LIGHTBLUE): Likewise.
50582 (GRUB_EFI_LIGHTGREEN): Likewise.
50583 (GRUB_EFI_LIGHTCYAN): Likewise.
50584 (GRUB_EFI_LIGHTRED): Likewise.
50585 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50586 (GRUB_EFI_YELLOW): Likewise.
50587 (GRUB_EFI_WHITE): Likewise.
50588 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50589 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50590 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50591 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50592 (GRUB_EFI_BACKGROUND_RED): Likewise.
50593 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50594 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50595 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50596 (GRUB_EFI_TEXT_ATTR): Likewise.
50597
50598 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50599 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50600 (kernel_mod_HEADERS): Added efi/time.h.
50601
50602 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50603
50604 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50605 include/grub/efi/api.h, include/grub/efi/console_control.h,
50606 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50607 include/grub/i386/efi/time.h, kern/efi/efi.c,
50608 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50609 and util/i386/efi/grub-mkimage.c.
50610
50611 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50612
50613 * genmk.rb (PModule#rule): Do not export symbols if
50614 #{prefix}_EXPORTS is set to "no".
50615
50616 * conf/i386-efi.mk: New file.
50617 * conf/i386-efi.rmk: Likewise.
50618 * include/grub/efi/api.h: Likewise.
50619 * include/grub/efi/console_control.h: Likewise.
50620 * include/grub/efi/efi.h: Likewise.
50621 * include/grub/efi/pe32.h: Likewise.
50622 * include/grub/i386/efi/time.h: Likewise.
50623 * kern/efi/efi.c: Likewise.
50624 * kern/i386/efi/init.c: Likewise.
50625 * kern/i386/efi/startup.S: Likewise.
50626 * util/i386/efi/grub-mkimage.c: Likewise.
50627
50628 2006-04-17 Marco Gerards <marco@gnu.org>
50629
50630 * include/grub/script.h: Include <grub/parser.h> and
50631 "grub_script.tab.h".
50632 (struct grub_lexer_param): New struct.
50633 (struct grub_parser_param): Likewise.
50634 (grub_script_create_arglist): Pass the state in an argument.
50635 (grub_script_add_arglist): Likewise.
50636 (grub_script_create_cmdline): Likewise.
50637 (grub_script_create_cmdblock): Likewise.
50638 (grub_script_create_cmdif): Likewise.
50639 (grub_script_create_cmdmenu): Likewise.
50640 (grub_script_add_cmd): Likewise.
50641 (grub_script_arg_add): Likewise.
50642 (grub_script_lexer_ref): Likewise.
50643 (grub_script_lexer_deref): Likewise.
50644 (grub_script_lexer_record_start): Likewise.
50645 (grub_script_lexer_record_stop): Likewise.
50646 (grub_script_mem_record): Likewise.
50647 (grub_script_mem_record_stop): Likewise.
50648 (grub_script_malloc): Likewise.
50649 (grub_script_yylex): Likewise.
50650 (grub_script_yyparse): Likewise.
50651 (grub_script_yyerror): Likewise.
50652 (grub_script_yylex): Likewise.
50653 (grub_script_lexer_init): Return the state.
50654
50655 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50656 (grub_script_lexer_done): Likewise.
50657 (grub_script_lexer_getline): Likewise.
50658 (grub_script_lexer_refs): Likewise.
50659 (script): Likewise.
50660 (newscript): Likewise.
50661 (record): Likewise.
50662 (recording): Likewise.
50663 (recordpos): Likewise.
50664 (recordlen): Likewise.
50665 (grub_script_lexer_init): Return the state instead of setting
50666 global variables.
50667 (grub_script_lexer_ref): Use the newly added argument for state
50668 instead of globals.
50669 (grub_script_lexer_deref): Likewise.
50670 (grub_script_lexer_record_start): Likewise.
50671 (grub_script_lexer_record_stop): Likewise.
50672 (recordchar): Likewise.
50673 (nextchar): Likewise.
50674 (grub_script_yylex2): Likewise.
50675 (grub_script_yylex): Likewise.
50676 (grub_script_yyerror): Likewise.
50677
50678 * normal/parser.y (func_mem): Removed variable.
50679 (menu_entry): Likewise.
50680 (err): Likewise.
50681 (%lex-param): New parser option.
50682 (%parse-param): Likewise.
50683 (script): Always return the AST.
50684 (argument): Pass the state around.
50685 (arguments): Likewise.
50686 (grubcmd): Likewise.
50687 (commands): Likewise.
50688 (function): Likewise.
50689 (menuentry): Likewise.
50690 (if_statement): Likewise.
50691 (if): Likewise.
50692
50693 * normal/script.c (grub_script_memused): Removed variable.
50694 (grub_script_parsed): Likewise.
50695 (grub_script_malloc): Added a state argument. Use that instead of
50696 global variables.
50697 (grub_script_mem_record): Likewise.
50698 (grub_script_mem_record_stop): Likewise.
50699 (grub_script_arg_add): Likewise.
50700 (grub_script_add_arglist): Likewise.
50701 (grub_script_create_cmdline): Likewise.
50702 (grub_script_create_cmdif): Likewise.
50703 (grub_script_create_cmdmenu): Likewise.
50704 (grub_script_add_cmd): Likewise.
50705 (grub_script_parse): Setup the state before calling the parser.
50706
50707 2006-04-16 Marco Gerards <marco@gnu.org>
50708
50709 * normal/command.c (grub_command_init): Remove the title command.
50710
50711 * normal/lexer.c (grub_script_yylex): Renamed from this...
50712 (grub_script_yylex2): ... to this.
50713 (grub_script_yylex): New function. Temporary
50714 introduced to filter some tokens.
50715 (grub_script_yyerror): Print a newline.
50716
50717 * normal/main.c (read_config_file): Output information about the
50718 lines that contain errors. Wait for a key after all lines have
50719 been processed. Don't return an empty menu.
50720
50721 * normal/parser.y (func_mem): Don't initialize.
50722 (menu_entry): Likewise.
50723 (err): New variable.
50724 (script): Don't return anything when an error was encountered.
50725 (ws, returns): Removed rules.
50726 (argument): Disabled concatenated variable support.
50727 (arguments): Remove explicit separators.
50728 (grubcmd): Likewise.
50729 (function): Likewise.
50730 (menuentry): Likewise.
50731 (if): Likewise.
50732 (commands): Likewise. Add error handling.
50733
50734 * normal/script.c (grub_script_create_cmdline): If
50735 `grub_script_parsed' is 0, assume the parser encountered an error.
50736
50737 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50738
50739 * configure.ac: Add support for EFI. Fix the typo
50740 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50741
50742 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50743
50744 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50745 foreign multibyte characters should be shown correctly.
50746
50747 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50748
50749 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50750 calculation.
50751 (read_config_file): Made it to close file before returning.
50752
50753 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50754
50755 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50756 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50757 video/i386/pc/vbefill.c.
50758
50759 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50760 video/i386/pc/vbefill.c.
50761
50762 * include/grub/video.h (grub_video_blit_format): New enum.
50763 (grub_video_mode_info): Added new member blit_format.
50764 (grub_video_get_blit_format): New function prototype.
50765
50766 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50767 function prototype.
50768 (grub_video_vbe_map_rgb): Likewise.
50769 (grub_video_vbe_unmap_color): Likewise.
50770
50771 * include/grub/i386/pc/vbeblit.h: New file.
50772
50773 * include/grub/i386/pc/vbefill.h: New file.
50774
50775 * video/video.c (grub_video_get_blit_format): New function.
50776 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50777 (grub_video_vbe_map_rgb): Likewise.
50778 (grub_video_vbe_unmap_color): Likewise.
50779
50780 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50781 optimized fills.
50782 (grub_video_vbe_blit_render_target): Changed to use more optimized
50783 blits.
50784 (grub_video_vbe_setup): Added detection for optimized settings.
50785 (grub_video_vbe_create_render_target): Likewise.
50786
50787 * video/i386/pc/vbeblit.c: New file.
50788
50789 * video/i386/pc/vbefill.c: New file.
50790
50791 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50792
50793 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50794 here...
50795
50796 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50797 parsing to support both hex and dec ranges. If filename was missing
50798 show usage information.
50799
50800 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50801
50802 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50803 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50804
50805 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50806 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50807 (video_mod_SOURCES): Added.
50808 (video_mod_CFLAGS): Likewise.
50809 (video_mod_LDFLAGS): Likewise.
50810 (gfxterm_mod_SOURCES): Likewise.
50811 (gfxterm_mod_CFLAGS): Likewise.
50812 (gfxterm_mod_LDFLAGS): Likewise.
50813 (videotest_mod_SOURCES): Likewise.
50814 (videotest_mod_CFLAGS): Likewise.
50815 (videotest_mod_LDFLAGS): Likewise.
50816 (vesafb_mod_SOURCES): Removed.
50817 (vesafb_mod_CFLAGS): Likewise.
50818 (vesafb_mod_LDFLAGS): Likewise.
50819 (vga_mod_SOURCES): Likewise.
50820 (vga_mod_CFLAGS): Likewise.
50821 (vga_mod_LDFLAGS): Likewise.
50822
50823 * commands/videotest.c: New file.
50824
50825 * font/manager.c (fill_with_default_glyph): Modified to use
50826 grub_font_glyph.
50827 (grub_font_get_glyph): Likewise.
50828 (fontmanager): Renamed from this...
50829 (font_manager): ... to this.
50830
50831 * include/grub/font.h (grub_font_glyph): Added new structure.
50832 (grub_font_get_glyph): Modified to use grub_font_glyph.
50833
50834 * include/grub/misc.h (grub_abs): Added as inline function.
50835
50836 * include/grub/video.h: New file.
50837
50838 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50839 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50840 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50841 (grub_vbe_get_controller_info): Renamed from this...
50842 (grub_vbe_bios_get_controller_info): ... to this.
50843 (grub_vbe_get_mode_info): Renamed from this...
50844 (grub_vbe_bios_get_mode_info): ... to this.
50845 (grub_vbe_set_mode): Renamed from this...
50846 (grub_vbe_bios_set_mode): ... to this.
50847 (grub_vbe_get_mode): Renamed from this...
50848 (grub_vbe_bios_get_mode): ... to this.
50849 (grub_vbe_set_memory_window): Renamed from this...
50850 (grub_vbe_bios_set_memory_window): ... to this.
50851 (grub_vbe_get_memory_window): Renamed from this...
50852 (grub_vbe_bios_get_memory_window): ... to this.
50853 (grub_vbe_set_scanline_length): Renamed from this...
50854 (grub_vbe_set_scanline_length): ... to this.
50855 (grub_vbe_get_scanline_length): Renamed from this...
50856 (grub_vbe_bios_get_scanline_length): ... to this.
50857 (grub_vbe_set_display_start): Renamed from this...
50858 (grub_vbe_bios_set_display_start): ... to this.
50859 (grub_vbe_get_display_start): Renamed from this...
50860 (grub_vbe_bios_get_display_start): ... to this.
50861 (grub_vbe_set_palette_data): Renamed from this...
50862 (grub_vbe_bios_set_palette_data): ... to this.
50863 (grub_vbe_set_pixel_rgb): Removed.
50864 (grub_vbe_set_pixel_index): Likewise.
50865
50866 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50867 from this...
50868 (grub_vbe_bios_get_controller_info): ... to this.
50869 (grub_vbe_get_mode_info): Renamed from this...
50870 (grub_vbe_bios_get_mode_info): ... to this.
50871 (grub_vbe_set_mode): Renamed from this...
50872 (grub_vbe_bios_set_mode): ... to this.
50873 (grub_vbe_get_mode): Renamed from this...
50874 (grub_vbe_bios_get_mode): ... to this.
50875 (grub_vbe_set_memory_window): Renamed from this...
50876 (grub_vbe_bios_set_memory_window): ... to this.
50877 (grub_vbe_get_memory_window): Renamed from this...
50878 (grub_vbe_bios_get_memory_window): ... to this.
50879 (grub_vbe_set_scanline_length): Renamed from this...
50880 (grub_vbe_set_scanline_length): ... to this.
50881 (grub_vbe_get_scanline_length): Renamed from this...
50882 (grub_vbe_bios_get_scanline_length): ... to this.
50883 (grub_vbe_set_display_start): Renamed from this...
50884 (grub_vbe_bios_set_display_start): ... to this.
50885 (grub_vbe_get_display_start): Renamed from this...
50886 (grub_vbe_bios_get_display_start): ... to this.
50887 (grub_vbe_set_palette_data): Renamed from this...
50888 (grub_vbe_bios_set_palette_data): ... to this.
50889 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50890 getting corrupted after calling it. Added more pushes and pops.
50891 (grub_vbe_bios_set_mode): Likewise.
50892 (grub_vbe_bios_get_mode): Likewise.
50893 (grub_vbe_bios_get_memory_window): Likewise.
50894 (grub_vbe_bios_set_scanline_length): Likewise.
50895 (grub_vbe_bios_get_scanline_length): Likewise.
50896 (grub_vbe_bios_get_display_start): Likewise.
50897 (grub_vbe_bios_set_palette_data): Likewise.
50898
50899 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50900 (cl_insert): Likewise.
50901 (cl_delete): Likewise.
50902
50903 * term/gfxterm.c: New file.
50904
50905 * term/i386/pc/vesafb.c: Removed file.
50906
50907 * video/video.c: New file.
50908
50909 * video/i386/pc/vbe.c (real2pm): Added new function.
50910 (grub_video_vbe_draw_pixel): Likewise.
50911 (grub_video_vbe_get_video_ptr): Likewise.
50912 (grub_video_vbe_get_pixel): Likewise
50913 (grub_video_vbe_init): Likewise.
50914 (grub_video_vbe_fini): Likewise.
50915 (grub_video_vbe_setup): Likewise.
50916 (grub_video_vbe_get_info): Likewise.
50917 (grub_video_vbe_set_palette): Likewise.
50918 (grub_video_vbe_get_palette): Likewise.
50919 (grub_video_vbe_set_viewport): Likewise.
50920 (grub_video_vbe_get_viewport): Likewise.
50921 (grub_video_vbe_map_color): Likewise.
50922 (grub_video_vbe_map_rgb): Likewise.
50923 (grub_video_vbe_map_rgba): Likewise.
50924 (grub_video_vbe_unmap_color): Likewise.
50925 (grub_video_vbe_fill_rect): Likewise.
50926 (grub_video_vbe_blit_glyph): Likewise.
50927 (grub_video_vbe_blit_bitmap): Likewise.
50928 (grub_video_vbe_blit_render_target): Likewise.
50929 (grub_video_vbe_scroll): Likewise.
50930 (grub_video_vbe_swap_buffers): Likewise.
50931 (grub_video_vbe_create_render_target): Likewise.
50932 (grub_video_vbe_delete_render_target): Likewise.
50933 (grub_video_vbe_set_active_render_target): Likewise.
50934 (grub_vbe_set_pixel_rgb): Remove function.
50935 (grub_vbe_set_pixel_index): Likewise.
50936 (index_color_mode): Remove static variable.
50937 (active_mode): Likewise.
50938 (framebuffer): Likewise.
50939 (bytes_per_scan_line): Likewise.
50940 (grub_video_vbe_adapter): Added new static variable.
50941 (framebuffer): Likewise.
50942 (render_target): Likewise.
50943 (initial_mode): Likewise.
50944 (mode_in_use): Likewise.
50945 (mode_list): Likewise.
50946
50947 2006-03-10 Marco Gerards <marco@gnu.org>
50948
50949 * configure.ac (AC_INIT): Bumped to 1.93.
50950
50951 * DISTLIST: Added `include/grub/hfs.h'.
50952
50953 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50954
50955 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50956 18H, which might help the BIOS falling back to next boot media.
50957
50958 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50959
50960 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50961 Poe Chen <poe.poechen@gmail.com>.
50962
50963 2006-01-17 Marco Gerards <marco@gnu.org>
50964
50965 * include/grub/normal.h: Include <grub/script.h>.
50966 (grub_command_list): Removed struct.
50967 (grub_command_list_t): Removed type.
50968 (grub_menu_entry): Remove members `num' and `command_list'. Add
50969 members `commands' and `sourcecode'.
50970 * include/grub/script.h: Add inclusion guards.
50971 (grub_script_cmd_menuentry): New struct.
50972 (grub_script_execute_menuentry): New prototype.
50973 (grub_script_lexer_record_start): Likewise.
50974 (grub_script_lexer_record_stop): Likewise.
50975 * normal/execute.c (grub_script_execute_menuentry): New function.
50976 * normal/lexer.c (record, recording, recordpos, recordlen): New
50977 variables.
50978 (grub_script_lexer_record_start): New function.
50979 (grub_script_lexer_record_stop): Likewise.
50980 (recordchar): Likewise.
50981 (nextchar): Likewise.
50982 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50983 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50984 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50985 (current_menu): New variable.
50986 (free_menu): Mainly rewritten.
50987 (grub_normal_menu_addentry): New function.
50988 (read_config_file): Rewritten.
50989 * normal/menu.c (run_menu_entry): Mainly rewritten.
50990 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50991 the menu entry.
50992 (run): Mainly rewritten.
50993 * normal/parser.y (menu_entry): New variable.
50994 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50995 (menuentry): New rule.
50996 (command): Add `menuentry'.
50997 (if_statement): Allow additional returns before `fi'.
50998 * normal/script.c (grub_script_create_cmdmenu): New function.
50999
51000 2006-01-03 Marco Gerards <marco@gnu.org>
51001
51002 * INSTALL: GNU Bison is required.
51003 * configure.ac: Rewritten the test to detect Bison.
51004 * Makefile.in (YACC): New variable. Reported by Xun Sun
51005 <xun.sun.cn@gmail.com>.
51006
51007 2006-01-03 Marco Gerards <marco@gnu.org>
51008
51009 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51010 the HFS+ filesystem to filesystem blocks.
51011 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51012 GCC warning is silenced.
51013
51014 2006-01-03 Marco Gerards <marco@gnu.org>
51015
51016 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51017 read from disk from big endian to host byte order.
51018
51019 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51020
51021 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51022 documentation.
51023 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51024 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51025 embedded HFS+ filesystem.
51026 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51027 (grub_hfs_sblock): Move from here...
51028 * include/grub/hfs.h: To here... New file.
51029 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51030 documentation.
51031 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51032 New macros.
51033 (grub_hfsplus_volheader): Change type of member `magic' to
51034 `grub_uint16_t'.
51035 (grub_hfsplus_data): Add new member `embedded_offset'.
51036 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51037 returned block.
51038 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51039 Calculate the offset.
51040
51041 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51042
51043 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51044 Removed.
51045 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51046
51047 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51048
51049 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51050 ENV->NAME is NULL after allocating ENV->VALUE.
51051
51052 2005-12-25 Marco Gerards <marco@gnu.org>
51053
51054 * kern/env.c (grub_env_set): Rewritten the error handling code.
51055
51056 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51057
51058 * geninit.sh: Made more robust, and more portable.
51059
51060 2005-12-25 Marco Gerards <marco@gnu.org>
51061
51062 Add support for Apple HFS+ filesystems.
51063
51064 * fs/hfsplus.c: New file.
51065
51066 * DISTLIST: Added `fs/hfsplus.c'.
51067
51068 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51069 (hfsplus_mod_SOURCES): New variable.
51070 (hfsplus_mod_CFLAGS): Likewise.
51071 (hfsplus_mod_LDFLAGS): Likewise.
51072 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51073 (grub_setup_SOURCES): Likewise.
51074 (grub_mkdevicemap_SOURCES): Likewise.
51075 (grub_emu_SOURCES): Likewise.
51076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51077
51078 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51079
51080 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51081
51082 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51083
51084 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51085 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51086 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51087 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51088 normal/lexer.c, normal/parser.y, normal/script.c, and
51089 partmap/gpt.c.
51090 Removed kern/sparc64/cache.c.
51091
51092 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51093 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51094 grub_emu_init.c.
51095
51096 * configure.ac (AC_INIT): Bumped to 1.92.
51097
51098 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51099
51100 * kern/err.c (grub_error_push): Added new function to support error
51101 stacks.
51102 (grub_error_pop): Likewise.
51103 (grub_error_stack_items): New local variable to support error stacks.
51104 (grub_error_stack_pos): Likewise.
51105 (grub_error_stack_assert): Likewise.
51106 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51107 stack depth.
51108 (grub_print_error): Added support to print errors from error stack.
51109
51110 * include/grub/err.h (grub_error_push): Added function prototype.
51111 (grub_error_pop): Likewise.
51112
51113 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51114
51115 * configure.ac: Accept `powerpc64' as host_cpu.
51116 (amd64): Rename to `biarch32'.
51117
51118 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51119 non-cacheline-aligned addresses.
51120
51121 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51122 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51123 if `size' is non-zero.
51124
51125 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51126
51127 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51128 and `cd' to make sure the filename is not prefixed with a
51129 directory name.
51130 (pkgdata_MODULES): Add `gpt.mod'.
51131 (gpt_mod_SOURCES): New variable.
51132 (gpt_mod_CFLAGS): Likewise.
51133 (gpt_mod_LDFLAGS): Likewise.
51134
51135 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51136
51137 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51138 New macro.
51139
51140 * partmap/gpt.c: New file.
51141
51142 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51143 GPT partition map is detected.
51144
51145 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51146
51147 * commands/i386/pc/play.c: New file.
51148 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51149 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51150 macros.
51151
51152 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51153
51154 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51155 ((unused))' to silence gcc warning.
51156
51157 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51158
51159 * configure.ac: Correct `AC_PROG_YACC' test.
51160
51161 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51162
51163 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51164 check before installing files.
51165
51166 2005-11-22 Mike Small <smallm@panix.com>
51167
51168 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51169 number regex so multidigit numbers are recognized correctly.
51170
51171 2005-11-22 Mike Small <smallm@panix.com>
51172
51173 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51174 debugging message before attempting to claim memory.
51175 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51176 multiple addresses in case of failure.
51177
51178 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51179
51180 * term/tparm.c (get_space): Remove empty `if' statement.
51181
51182 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51183
51184 * kern/parser.c (check_varstate): Rename `state' to 's'.
51185
51186 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51187
51188 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51189 variable definitions to the beginning of each function. Sort stack
51190 variables by size.
51191 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51192 `buf' argument to `char *'.
51193
51194 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51195
51196 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51197 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51198 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51199 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51200 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51201 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51202 configfile.mod, search.mod, gzio.mod and test.mod.
51203 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51204 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51205 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51206 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51207 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51208 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51209 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51210 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51211 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51212 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51213 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51214 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51215 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51216 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51217 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51218 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51219 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51220 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51221 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51222 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51223 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51224 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51225 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51226
51227 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51228 `grep --include'.
51229 (pkgdata_MODULES): Add test.mod.
51230
51231 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51232
51233 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51234 appending to variables with "+=".
51235 (PModule): Use full pathname to generate *.lst filenames.
51236
51237 * Makefile.in: Fixed list rules moved from genmk.rb.
51238 (.DELETE_ON_ERROR): New special target.
51239 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51240
51241 * conf/i386-pc.rmk: Include conf/common.mk.
51242 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51243 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51244 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51245 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51246 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51247 configfile.mod, search.mod, gzio.mod and test.mod.
51248 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51249 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51250 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51251 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51252 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51253 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51254 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51255 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51256 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51257 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51258 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51259 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51260 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51261 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51262 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51263 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51264 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51265 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51266 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51267 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51268 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51269 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51270 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51271 here...
51272 * conf/common.rmk: ... to here. New file.
51273
51274 * conf/common.mk: New file.
51275
51276 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51277
51278 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51279 (grub_script.tab.c): ... here.
51280
51281 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51282 (grub_script.tab.c): ... here.
51283
51284 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51285 (grub_script.tab.c): ... here.
51286
51287 * normal/command.c (grub_command_find): Fixed a memory leak of
51288 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51289
51290 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51291
51292 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51293 "@" which marks the start of a comment on ARM.
51294 (VARIABLE): Likewise.
51295
51296 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51297
51298 Add support for Linux/ADFS partition tables.
51299
51300 * partmap/acorn.c: New file.
51301
51302 * include/grub/acorn_filecore.h: Likewise.
51303
51304 * DISTLIST: Added `partmap/acorn.c' and
51305 `include/grub/acorn_filecore.h'.
51306
51307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51308 `partmap/acorn.c'.
51309 (pkgdata_MODULES): Add `acorn.mod'.
51310 (acorn_mod_SOURCES): New variable.
51311 (acorn_mod_CFLAGS): Likewise.
51312
51313 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51314 `partmap/acorn.c'.
51315 (pkgdata_MODULES): Add `acorn.mod'.
51316 (acorn_mod_SOURCES): New variable.
51317 (acorn_mod_CFLAGS): Likewise.
51318
51319 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51320 (pkgdata_MODULES): Add `acorn.mod'.
51321 (acorn_mod_SOURCES): New variable.
51322 (acorn_mod_CFLAGS): Likewise.
51323 (acorn_mod_LDFLAGS): Likewise.
51324
51325 * include/types.h (grub_disk_addr_t): New typedef.
51326
51327 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51328
51329 * geninit.sh: New file.
51330
51331 * geninitheader.sh: Likewise.
51332
51333 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51334 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51335 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51336 * commands/configfile.c (grub_configfile_init)
51337 (grub_configfile_fini): Likewise.
51338 * commands/default.c (grub_default_init, grub_default_fini):
51339 Likewise.
51340 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51341 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51342 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51343 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51344 Likewise.
51345 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51346 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51347 Likewise.
51348 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51349 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51350 Likewise.
51351 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51352 Likewise.
51353 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51354 Likewise.
51355 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51356 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51357 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51358 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51359 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51360 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51361 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51362 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51363 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51364 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51365 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51366 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51367 * partmap/amiga.c (grub_amiga_partition_map_init)
51368 (grub_amiga_partition_map_fini): Likewise.
51369 * partmap/apple.c (grub_apple_partition_map_init)
51370 (grub_apple_partition_map_fini): Likewise.
51371 * partmap/pc.c (grub_pc_partition_map_init)
51372 (grub_pc_partition_map_fini): Likewise.
51373 * partmap/sun.c (grub_sun_partition_map_init,
51374 grub_sun_partition_map_fini): Likewise.
51375 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51376 Likewise.
51377
51378 * util/grub-emu.c: Include <grub_modules_init.h>.
51379 (main): Don't initialize and de-initialize any modules directly,
51380 use `grub_init_all' and `grub_fini_all' instead.
51381
51382 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51383 `grub_vesafb_mod_init'.
51384 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51385 all users.
51386 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51387 `grub_vga_mod_init'. Updated all users.
51388 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51389
51390 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51391 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51392 rules.
51393
51394 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51395 Generate a function to initialize the module in utilities.
51396 Updated all callers.
51397 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51398 initialize the module in utilities. Updated all callers.
51399
51400 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51401
51402 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51403 escape sequence and a literal ^L to clear the screen.
51404
51405 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51406 when returning from Open Firmware.
51407
51408 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51409
51410 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51411 (grub_ofconsole_height): Likewise.
51412 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51413 manually insert a '\n'.
51414 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51415 `grub_ofconsole_height'. Return early if these are already set.
51416
51417 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51418
51419 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51420 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51421 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51422 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51423 and `normal/script.c'.
51424 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51425 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51426 (test_mod_SOURCES): New variable.
51427 (test_mod_CFLAGS): Likewise.
51428 (test_mod_LDFLAGS): Likewise.
51429 (pkgdata_MODULES): Add `test.mod'.
51430 (grub_script.tab.c): New rule.
51431 (grub_script.tab.h): Likewise.
51432
51433 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51434
51435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51436 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51437 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51438 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51439 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51440 (test_mod_SOURCES): New variable.
51441 (test_mod_CFLAGS): Likewise.
51442 (pkgdata_MODULES): Add `test.mod'.
51443 (grub_script.tab.c): New rule.
51444 (grub_script.tab.h): Likewise.
51445
51446 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51447
51448 Add initial scripting support.
51449
51450 * commands/test.c: New file.
51451 * include/grub/script.h: Likewise.
51452 * normal/execute.c: Likewise.
51453 * normal/function.c: Likewise.
51454 * normal/lexer.c: Likewise.
51455 * normal/parser.y: Likewise.
51456 * normal/script.c: Likewise.
51457
51458 * configure.ac: Add `AC_PROG_YACC' test.
51459
51460 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51461 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51462 `normal/function.c' and `normal/script.c'.
51463 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51464 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51465 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51466 variables.
51467 (pkgdata_MODULES): Add `test.mod'.
51468 (grub_script.tab.c): New rule.
51469 (grub_script.tab.h): Likewise.
51470
51471 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51472
51473 * include/grub/normal.h (grub_test_init): New prototype.
51474 (grub_test_fini): Likewise.
51475
51476 * normal/command.c: Include <grub/script.h>.
51477 (grub_command_execute): Rewritten.
51478
51479 * util/grub-emu.c (main): Call `grub_test_init' and
51480 `grub_test_fini'.
51481
51482 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51483
51484 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51485 to 0.
51486 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51487 there are no pending characters.
51488
51489 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51490
51491 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51492 `grub_strndup' to drop device arguments. Replace unnecessary
51493 `grub_strndup' with `grub_strdup'.
51494
51495 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51496
51497 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51498 `debug' environment variable has been set.
51499
51500 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51501
51502 * Makefile.in (install-local): Use $(DATA).
51503 (uninstall): Likewise.
51504 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51505 (sbin_UTILITIES): ... to here.
51506 (sbin_SCRIPTS): New variable.
51507 (grub_install_SOURCES): New variable.
51508 * util/powerpc/ieee1275/grub-install.in: New file.
51509 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51510 variable.
51511 (add_segments): Call `grub_util_get_path'.
51512
51513 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51514
51515 From Timothy Baldwin:
51516 * commands/ls.c (grub_ls_list_files): Close FILE with
51517 grub_file_close.
51518 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51519
51520 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51521
51522 * include/grub/parser.h: New file.
51523
51524 * kern/parser.c: Likewise.
51525
51526 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51527 (grub_setup_SOURCES): Likewise.
51528 (grub_probefs_SOURCES): Likewise.
51529 (grub_emu_SOURCES): Likewise.
51530 (kernel_img_HEADERS): Add `parser.h'.
51531
51532 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51533 (grub_emu_SOURCES): Add `kern/parser.c'.
51534 (grubof_SOURCES): Likewise.
51535
51536 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51537 (grubof_SOURCES): Add `kern/parser.c'.
51538
51539 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51540
51541 * kern/misc.c (grub_split_cmdline): Removed function.
51542
51543 * kern/rescue.c: Include <grub/parser.h>.
51544 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51545 of `grub_split_cmdline'.
51546
51547 * normal/command.c: Include <grub/parser.h>.
51548 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51549 of `grub_split_cmdline'.
51550
51551 * normal/completion.c: Include <grub/parser.h>.
51552 (cmdline_state): New variable.
51553 (iterate_dir): End the filename with a quote depending on the
51554 command line state.
51555 (get_state): new function.
51556 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51557 split the arguments and determine the current argument. When the
51558 argument string is not quoted, escape all spaces.
51559
51560 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51561
51562 * normal/sparc64/setjmp.S: New file.
51563
51564 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51565
51566 * include/grub/sparc64/libgcc.h: New file.
51567 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51568 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51569 normal/sparc64/setjmp.c.
51570
51571 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51572
51573 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51574 * kern/sparc64/cache.S: New file.
51575 * kern/sparc64/cache.c: Removed.
51576 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51577 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51578 -mtune=ultrasparc.
51579 (COMMON_LDFLAGS): Add -melf64_sparc.
51580 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51581 (grubof_SOURCES): Use cache.S instead of cache.c.
51582 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51583 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51584 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51585 commented though.
51586 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51587 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51588 (linux_mod_CFLAGS): Commented out.
51589 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51590 out because module isn't built.
51591 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51592 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51593 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51594 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51595 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51596 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51597 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51598 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51599 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51600 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51601 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51602 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51603 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51604 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51605
51606 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51607
51608 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51609 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51610 longer, because HFS should not be used on PC.
51611
51612 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51613
51614 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51615 consistently within the loop.
51616
51617 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51618
51619 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51620 directory can not be read.
51621
51622 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51623
51624 * configure.ac (AC_INIT): Increase the version number to 1.91.
51625
51626 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51627 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51628 term/i386/pc/serial.c.
51629
51630 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51631
51632 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51633 file size must be permitted.
51634
51635 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51636 between %ah and %al.
51637
51638 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51639
51640 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51641 grub_uint64_t.
51642 Call the hook with a NUL-terminated filename.
51643 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51644 grub_cpu_to_be32.
51645
51646 * kern/term.c (cursor_state): New variable.
51647 (grub_term_set_current): Reset the cursor state on a new
51648 terminal.
51649 (grub_setcursor): Rewritten to use CURSOR_STATE.
51650 (grub_getcursor): New function.
51651
51652 * include/grub/term.h (grub_getcursor): New prototype.
51653
51654 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51655 integers on ARM. Reported by Timothy Baldwin
51656 <T.E.Baldwin99@members.leeds.ac.uk>.
51657
51658 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51659
51660 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51661 allocated.
51662 (grub_sfs_dir): Likewise.
51663
51664 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51665
51666 Add support for the SFS filesystem.
51667
51668 * fs/sfs.c: New file.
51669
51670 * DISTLIST: Added `fs/sfs.c'.
51671
51672 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51673 (grub_probefs_SOURCES): Likewise.
51674 (grub_emu_SOURCES): Likewise.
51675 (pkgdata_MODULES): Add `sfs.mod'.
51676 (sfs_mod_SOURCES): New variable.
51677 (sfs_mod_CFLAGS): Likewise.
51678 (sfs_mod_LDFLAGS): Likewise.
51679
51680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51681 (pkgdata_MODULES): Add `sfs.mod'.
51682 (sfs_mod_SOURCES): New variable.
51683 (sfs_mod_CFLAGS): Likewise.
51684
51685 * util/grub-emu.c (main): Call `grub_sfs_init' and
51686 `grub_sfs_fini'.
51687
51688 * include/grub/fs.h (grub_sfs_init): New prototype.
51689 (grub_sfs_fini): Likewise.
51690
51691 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51692
51693 Add support for the AFFS filesystem.
51694
51695 * fs/affs.c: New file.
51696
51697 * DISTLIST: Added `fs/affs.c'.
51698
51699 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51700 (grub_probefs_SOURCES): Likewise.
51701 (grub_emu_SOURCES): Likewise.
51702 (pkgdata_MODULES): Add `affs.mod'.
51703 (affs_mod_SOURCES): New variable.
51704 (affs_mod_CFLAGS): Likewise.
51705 (affs_mod_LDFLAGS): Likewise.
51706
51707 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51708 (pkgdata_MODULES): Add `affs.mod'.
51709 (affs_mod_SOURCES): New variable.
51710 (affs_mod_CFLAGS): Likewise.
51711
51712 * util/grub-emu.c (main): Call `grub_affs_init' and
51713 `grub_affs_fini'.
51714
51715 * include/grub/fs.h (grub_affs_init): New prototype.
51716 (grub_affs_fini): Likewise.
51717
51718 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51719
51720 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51721
51722 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51723
51724 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51725 `-m32' to CFLAGS.
51726
51727 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51728 linking.
51729
51730 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51731 (COMMON_LDFLAGS): New variable.
51732 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51733 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51734 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51735 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51736 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51737 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51738 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51739 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51740 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51741 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51742 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51743 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51744 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51745 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51746 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51747 variables.
51748 (normal_mod_ASFLAGS): Add `-m32'.
51749
51750 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51751 (grub_host_size_t, grub_host_ssize_t): New types.
51752 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51753 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51754 `GRUB_HOST_SIZEOF_VOID_P'.
51755
51756 * include/grub/kernel.h (struct grub_module_header): Type of
51757 member offset changed to `grub_host_off_t'. Type of member size
51758 changed to `grub_host_size_t'.
51759 (struct grub_module_info): Type of member offset changed to
51760 `grub_host_off_t'. Type of member size changed to
51761 `grub_host_size_t'.
51762
51763 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51764
51765 Make GRUB's kernel compliant to Multiboot Specification.
51766
51767 * kern/i386/pc/startup.S (multiboot_header): New label.
51768 (multiboot_entry): Likewise.
51769 (multiboot_trampoline): Likewise.
51770
51771 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51772 Increased to 0x4A0.
51773
51774 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51775 put parentheses after a question mark.
51776 [!GRUB_UTIL] (my_mod): New variable.
51777
51778 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51779
51780 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51781
51782 Adds support for the XFS filesystem. Btrees are not supported
51783 yet.
51784
51785 * fs/xfs.c: New file.
51786
51787 * DISTLIST: Added `fs/xfs.c'.
51788
51789 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51790 (grub_probefs_SOURCES): Likewise.
51791 (grub_emu_SOURCES): Likewise.
51792 (pkgdata_MODULES): Add `xfs.mod'.
51793 (xfs_mod_SOURCES): New variable.
51794 (xfs_mod_CFLAGS): Likewise.
51795
51796 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51797 (pkgdata_MODULES): Add `xfs.mod'.
51798 (xfs_mod_SOURCES): New variable.
51799 (xfs_mod_CFLAGS): Likewise.
51800
51801 * util/grub-emu.c (main): Call `grub_xfs_init' and
51802 `grub_xfs_fini'.
51803
51804 * include/grub/fs.h (grub_xfs_init): New prototype.
51805 (grub_xfs_fini): Likewise.
51806
51807
51808 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51809
51810 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51811 color modes, allow greater than 16 colors to be configured as
51812 a default palette.
51813
51814 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51815
51816 * normal/completion.c (complete_arguments): Add the qualifier
51817 const into OPTIONS.
51818
51819 From Omniflux <omniflux+lists@omniflux.com>:
51820 * include/grub/terminfo.h: New file.
51821 * include/grub/tparm.h: Likewise.
51822 * include/grub/i386/pc/serial.h: Likewise.
51823 * term/terminfo.c: Likewise.
51824 * term/tparm.c: Likewise.
51825 * term/i386/pc/serial.c: Likewise.
51826 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51827 serial.mod.
51828 (terminfo_mod_SOURCES): New variable.
51829 (terminfo_mod_CFLAGS): Likewise.
51830 (serial_mod_SOURCES): Likewise.
51831 (serial_mod_CFLAGS): Likewise.
51832
51833 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51834
51835 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51836 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51837 and kern/powerpc/ieee1275/cmain.c, respectively.
51838
51839 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51840 * kern/powerpc/ieee1275/crt0.S: ... here.
51841
51842 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51843 * kern/powerpc/ieee1275/cmain.c: ... here.
51844
51845 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51846 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51847 instead of boot/powerpc/ieee1275/crt0.S and
51848 boot/powerpc/ieee1275/cmain.c, respectively.
51849
51850 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51851 sectors. It was not used anyway.
51852
51853 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51854
51855 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51856 `unused parameter' warning.
51857
51858 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51859
51860 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51861 function.
51862 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51863 getcharwidth.
51864
51865 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51866
51867 * include/grub/normal.h (enum grub_completion_type): Added
51868 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51869
51870 * normal/cmdline.c (print_completion): Handle
51871 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51872 * normal/menu_entry.c (store_completion): Likewise.
51873
51874 * normal/completion.c (complete_arguments): New function.
51875 (grub_normal_do_completion): Call `complete_arguments' when the
51876 current words start with a dash.
51877
51878 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51879
51880 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51881 `gzio.mod' instead of `io.mod').
51882
51883 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51884
51885 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51886 (DISTDIRS): Added io and video.
51887 Rewrite the search routine to make an output consistently.
51888
51889 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51890 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51891 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51892 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51893 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51894 util/powerpc/ieee1275/misc.c.
51895
51896 * include/grub/gzio.h: New file.
51897 * io/gzio.c: Likewise.
51898
51899 * kern/file.c (grub_file_close): Call grub_device_close only if
51900 FILE->DEVICE is not NULL.
51901
51902 * include/grub/mm.h [!NULL] (NULL): New macro.
51903
51904 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51905
51906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51907 (pkgdata_MODULES): Added gzio.mod.
51908 (gzio_mod_SOURCES): New variable.
51909 (gzio_mod_CFLAGS): Likewise.
51910
51911 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51912 (pkgdata_MODULES): Added gzio.mod.
51913 (gzio_mod_SOURCES): New variable.
51914 (gzio_mod_CFLAGS): Likewise.
51915
51916 * commands/cat.c: Include grub/gzio.h.
51917 (grub_cmd_cat): Use grub_gzfile_open instead of
51918 grub_file_open.
51919
51920 * commands/cmp.c: Include grub/gzio.h.
51921 (grub_cmd_cmp): Use grub_gzfile_open instead of
51922 grub_file_open.
51923
51924 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51925 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51926 grub_file_open.
51927 (grub_rescue_cmd_module): Likewise.
51928
51929 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51930
51931 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51932 kern/sparc64/ieee1275/init.c because it contains _start.
51933 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51934
51935 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51936
51937 * configure.ac: Add support for sparc64 host with ieee1275
51938 firmware.
51939 * configure: Generated from configure.ac.
51940 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51941 instead of int.
51942 (grub_ofdisk_read): Likewise.
51943 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51944 pointers as (void *) to remove a warning.
51945 (grub_ofdisk_close): Likewise.
51946 (grub_ofdisk_read): Likewise.
51947 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51948 returns, so make it return void to remove a warning.
51949 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51950 Corresponding prototype change.
51951 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51952 values, and cast the pointers as (void *) to remove a warning.
51953 (grub_mm_dump): Likewise.
51954 * conf/sparc64-ieee1275.mk: New file.
51955 * conf/sparc64-ieee1275.rmk: Likewise.
51956 * include/grub/sparc64/setjmp.h: Likewise.
51957 * include/grub/sparc64/types.h: Likewise.
51958 * include/grub/sparc64/ieee1275/console.h: Likewise.
51959 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51960 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51961 * include/grub/sparc64/ieee1275/time.h: Likewise.
51962 * kern/sparc64/cache.c: Likewise.
51963 * kern/sparc64/dl.c: Likewise.
51964 * kern/sparc64/ieee1275/init.c: Likewise.
51965 * kern/sparc64/ieee1275/openfw.c: Likewise.
51966
51967 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51968
51969 * util/console.c (grub_ncurses_putchar): If C is greater than
51970 0x7f, set C to a question mark.
51971 (grub_ncurses_getcharwidth): New function.
51972 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51973 getcharwidth.
51974
51975 * normal/menu.c (print_entry): Made aware of Unicode. First,
51976 convert TITLE to UCS-4, and predict the cursor position by
51977 grub_getcharwidth.
51978
51979 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51980 const to SRC.
51981 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51982
51983 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51984
51985 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51986 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51987 grub_strcat.
51988
51989 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51990 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51991 grub_strcpy and grub_strlen. Take it into account that a space
51992 character is inserted as a delimiter.
51993
51994 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51995
51996 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51997 invalid magic in the error.
51998
51999 * commands/search.c: New file.
52000
52001 * util/grub-emu.c (main): Call grub_search_init and
52002 grub_search_fini.
52003
52004 * kern/rescue.c (grub_rescue_print_disks): Removed.
52005 (grub_rescue_print_devices): New function.
52006 (grub_rescue_cmd_ls): Use grub_device_iterate with
52007 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52008 grub_rescue_print_disks.
52009
52010 * kern/partition.c (grub_partition_iterate): Return the result of
52011 PARTMAP->ITERATE instead of GRUB_ERRNO.
52012
52013 * kern/device.c: Include grub/partition.h.
52014 (grub_device_iterate): New function.
52015
52016 * include/grub/partition.h (grub_partition_iterate): Return int
52017 instead of grub_err_t.
52018
52019 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52020 prototype.
52021 [GRUB_UTIL] (grub_search_fini): Likewise.
52022
52023 * include/grub/device.h (grub_device_iterate): New prototype.
52024
52025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52026 commands/search.c.
52027 (pkgdata_MODULES): Added search.mod.
52028 (search_mod_SOURCES): New variable.
52029 (search_mod_CFLAGS): Likewise.
52030
52031 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52032 (pkgdata_MODULES): Added search.mod.
52033 (search_mod_SOURCES): New variable.
52034 (search_mod_CFLAGS): Likewise.
52035
52036 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52037 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52038 All callers changed.
52039
52040 * DISTLIST: Added commands/search.c.
52041
52042 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52043
52044 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52045 conversion.
52046 (grub_getcharwidth): New function.
52047
52048 * kern/misc.c (grub_utf8_to_ucs4): New function.
52049
52050 * include/grub/term.h (struct grub_term): Added a new member
52051 "getcharwidth".
52052 (grub_getcharwidth): New prototype.
52053
52054 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52055
52056 * term/i386/pc/console.c (map_char): New function. Segregated from
52057 grub_console_putchar.
52058 (grub_console_putchar): Use map_char.
52059 (grub_console_getcharwidth): New function.
52060 (grub_console_term): Specified grub_console_getcharwidth as
52061 getcharwidth.
52062
52063 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52064 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52065
52066 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52067 GRUB_ERRNO.
52068 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52069 on grub_strtoul completely.
52070 (write_char): Declare local variables in the beginning of the
52071 function.
52072 (grub_vesafb_getcharwidth): New function.
52073 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52074 getcharwidth.
52075
52076 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52077
52078 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52079 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52080 commands/i386/pc/vbetest.c.
52081
52082 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52083 call grub_vbe_get_controller_info again, because the returned
52084 information is volatile.
52085 (grub_vbe_set_video_mode): Mostly rewritten.
52086 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52087 grub_vbe_status_t correctly.
52088 (grub_vbe_get_video_mode_info): Likewise.
52089 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52090 several if statements.
52091
52092 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52093 * commands/i386/pc/vbeinfo.c: ... this.
52094
52095 * commands/i386/pc/vbe_test.c: Renamed to ...
52096 * commands/i386/pc/vbetest.c: ... this.
52097
52098 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52099 ...
52100 (grub_cmd_vbeinfo): ... this. Save video modes before
52101 iterating. Skip a video mode, if it is not available, not enough
52102 information is given or it is monochrome. Show the memory
52103 model. Leave the interpretation of MODEVAR to grub_strtoul
52104 completely.
52105 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52106 (GRUB_MOD_FINI): Likewise.
52107
52108 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52109 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52110 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52111 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52112 grub_strtoul completely.
52113 (real2pm): Removed.
52114 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52115 (GRUB_MOD_FINI): Likewise.
52116
52117 * normal/misc.c: Include grub/mm.h.
52118
52119 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52120 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52121 (vbe_list_modes_mod_SOURCES): Removed.
52122 (vbe_list_modes_mod_CFLAGS): Likewise.
52123 (vbe_test_mod_SOURCES): Likewise.
52124 (vbe_test_mod_CFLAGS): Likewise.
52125 (vbeinfo_mod_SOURCES): New variable.
52126 (vbeinfo_mod_CFLAGS): Likewise.
52127 (vbetest_mod_SOURCES): Likewise.
52128 (vbetest_mod_CFLAGS): Likewise.
52129
52130 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52131
52132 * normal/misc.c: New file.
52133
52134 * DISTLIST: Added normal/misc.c.
52135
52136 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52137 DISK to HOOK. Call HOOK with DISK.
52138 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52139 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52140 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52141
52142 * normal/menu_entry.c (struct screen): Added a new member
52143 "completion_shown".
52144 (completion_buffer): New global variable.
52145 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52146 (store_completion): New function.
52147 (complete): Likewise.
52148 (clear_completions): Likewise.
52149 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52150 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52151 a tab, call complete.
52152
52153 * normal/completion.c (disk_dev): Removed.
52154 (print_simple_completion): Likewise.
52155 (print_partition_completion): Likewise.
52156 (print_func): New global variable.
52157 (add_completion): Do not take the arguments WHAT or PRINT any
52158 longer. Added a new argument TYPE. Instead of printing directly,
52159 call PRINT_FUNC if not NULL.
52160 All callers changed.
52161 (complete_device): Use a local variable DEV instead of
52162 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52163 (grub_normal_do_completion): Take a new argument HOOK. Do not
52164 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52165 empty string, return NULL instead.
52166 All callers changed.
52167
52168 * normal/cmdline.c (print_completion): New function.
52169
52170 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52171 to HOOK.
52172 All callers changed.
52173
52174 * kern/disk.c (grub_print_partinfo): Removed.
52175
52176 * include/grub/partition.h (struct grub_partition_map): Add a new
52177 argument DISK into HOOK of ITERATE.
52178 (grub_partition_iterate): Add a new argument DISK to HOOK.
52179
52180 * include/grub/normal.h (enum grub_completion_type): New enum.
52181 (grub_completion_type_t): New type.
52182 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52183 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52184 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52185 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52186 (grub_normal_do_completion): Added a new argument HOOK.
52187 (grub_normal_print_device_info): New prototype.
52188
52189 * include/grub/disk.h (grub_print_partinfo): Removed.
52190
52191 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52192 (normal_mod_SOURCES): Likewise.
52193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52194 (normal_mod_SOURCES): Likewise.
52195
52196 * commands/ls.c (grub_ls_list_disks): Use
52197 grub_normal_print_device_info instead of grub_print_partinfo. Free
52198 PNAME.
52199 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52200 duplicating the code.
52201
52202 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52203
52204 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52205 follow GCS more precisely.
52206 * commands/i386/pc/vbe_test.c: Likewise.
52207 * include/grub/i386/pc/vbe.h: Likewise.
52208 * term/i386/pc/vesafb.c: Likewise.
52209 * video/i386/pc/vbe.c: Likewise.
52210
52211 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52212
52213 * DISTLIST: Added term/i386/pc/vesafb.c
52214 DISTLIST: Added video/i386/pc/vbe.c
52215 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52216 DISTLIST: Added commands/i386/pc/vbe_test.c.
52217 * commands/i386/pc/vbe_list_modes.c: New file.
52218 * commands/i386/pc/vbe_test.c: Likewise.
52219 * term/i386/pc/vesafb.c: Likewise.
52220 * video/i386/pc/vbe.c: Likewise.
52221 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52222 (grub_vbe_probe) Added prototype.
52223 (grub_vbe_set_video_mode) Likewise.
52224 (grub_vbe_get_video_mode) Likewise.
52225 (grub_vbe_get_video_mode_info) Likewise.
52226 (grub_vbe_set_pixel_rgb) Likewise.
52227 (grub_vbe_set_pixel_index) Likewise.
52228 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52229 (pkgdata_MODULES): Added vesafb.mod.
52230 (pkgdata_MODULES): Added vbe_list_modes.mod.
52231 (pkgdata_MODULES): Added vbe_test.mod.
52232 (vbe_mod_SOURCES): Added.
52233 (vbe_mod_CFLAGS): Likewise.
52234 (vesafb_mod_SOURCES): Likewise.
52235 (vesafb_mod_CFLAGS): Likewise.
52236 (vbe_list_modes_mod_SOURCES): Likewise.
52237 (vbe_list_modes_mod_CFLAGS): Likewise.
52238 (vbe_test_mod_SOURCES): Likewise.
52239 (vbe_test_mod_CFLAGS): Likewise.
52240
52241 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52242
52243 * normal/command.c (grub_command_execute): If INTERACTIVE is
52244 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52245 CMDLINE. Disable the pager if INTERACTIVE is true.
52246 All callers are changed.
52247
52248 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52249 before reading a config file.
52250 * normal/main.c (read_config_file): Even if a command is not
52251 found, register it if it is within an entry.
52252
52253 * util/grub-emu.c: Include sys/types.h and unistd.h.
52254 (options): Added --hold.
52255 (struct arguments): Added a new member "hold".
52256 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52257 missing.
52258 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52259 cleared by a debugger, if it is not zero.
52260
52261 * include/grub/normal.h (grub_command_execute): Add an argument
52262 INTERACTIVE.
52263
52264 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52265
52266 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52267
52268 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52269
52270 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52271 program with another one, because the old one didn't detect a bug
52272 in gcc-3.4. Always use regparm 2, because the new test is still
52273 not enough for gcc-4.0. Someone must investigate a simple test
52274 case which detects a bug in gcc-4.0.
52275
52276 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52277
52278 * DISTLIST: Added normal/completion.c.
52279
52280 * normal/completion.c: New file.
52281
52282 * term/i386/pc/console.c (grub_console_getwh): New function.
52283 (grub_console_term): Assign grub_console_getwh to getwh.
52284
52285 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52286 function is defined in normal/completion.c as
52287 grub_normal_do_completion.
52288 (grub_cmdline_get): Use grub_normal_do_completion instead of
52289 grub_tab_complete.
52290
52291 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52292 returns non-zero, otherwise return 0.
52293 (grub_partition_iterate): First, probe the partition map. Then,
52294 call ITERATE only for this partition map.
52295
52296 * kern/misc.c (grub_strncmp): Rewritten.
52297
52298 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52299 returns non-zero. Otherwise return 0.
52300
52301 * include/grub/partition.h (grub_partition_map_iterate): Return
52302 int instead of void.
52303
52304 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52305
52306 * include/grub/misc.h (grub_strncmp): Change the type of N to
52307 grub_size_t.
52308
52309 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52310 of void.
52311
52312 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52313 unsigned explicitly before comparing it with I.
52314
52315 * kern/main.c (grub_env_write_root): Add the attribute unused into
52316 VAR.
52317
52318 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52319 normal/completion.c.
52320 (normal_mod_SOURCES): Likewise.
52321 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52322 (normal_mod_SOURCES): Likewise.
52323
52324 * normal/command.c (grub_iterate_commands): If ITERATE returns
52325 non-zero, return one immediately.
52326
52327 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52328
52329 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52330 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52331 descriptions.
52332 (grub_vbe_get_controller_info): New function.
52333 (grub_vbe_get_mode_info): Likewise.
52334 (grub_vbe_set_mode): Likewise.
52335 (grub_vbe_get_mode): Likewise.
52336 (grub_vbe_set_memory_window): Likewise.
52337 (grub_vbe_get_memory_window): Likewise.
52338 (grub_vbe_set_scanline_length): Likewise.
52339 (grub_vbe_get_scanline_length): Likewise.
52340 (grub_vbe_set_display_start): Likewise.
52341 (grub_vbe_get_display_start): Likewise.
52342 (grub_vbe_set_palette_data): Likewise.
52343 * include/grub/i386/pc/vbe.h: New file.
52344
52345 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52346
52347 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52348 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52349 * DISTLIST: Likewise.
52350 * kern/ieee1275/of.c: Moved to ...
52351 * kern/ieee1275/ieee1275.c: ... here.
52352
52353 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52354
52355 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52356 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52357 Pass 0 as `end' parameter to grub_strtoul().
52358
52359 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52360
52361 * include/grub/powerpc/ieee1275/console.h: Do not include
52362 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52363 ifdef.
52364 (grub_console_cur_color): Remove i386-specific prototype.
52365 (grub_console_real_putchar): Likewise.
52366 (grub_console_checkkey): Likewise.
52367 (grub_console_getkey): Likewise.
52368 (grub_console_getxy): Likewise.
52369 (grub_console_gotoxy): Likewise.
52370 (grub_console_cls): Likewise.
52371 (grub_console_setcursor): Likewise.
52372 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52373 Include <grub/machine/console.h>.
52374 * term/ieee1275/ofconsole.c: Likewise.
52375
52376 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52377
52378 * Makefile.in (LIBLZO): New variable.
52379
52380 * configure.ac: Check for LZO version 2.
52381
52382 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52383 lzo/lzo1x.h instead of lzo1x.h.
52384
52385 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52386 of -llzo.
52387
52388 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52389 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52390
52391 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52392 copying the data from PARTITION to P.
52393
52394 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52395
52396 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52397 negative, unload the module.
52398
52399 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52400 map is "pc_partition_map" but not "pc".
52401 (usage): Fix the description. The options are --boot-image and
52402 --core-image but not --boot-file or --core-file.
52403 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52404 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52405 DEFAULT_DIRECTORY.
52406
52407 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52408 --core-file. Specify INSTALL_DEVICE as an argument.
52409
52410 * util/console.c: Include config.h.
52411 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52412 [HAVE_NCURSES_H]: Include ncurses.h.
52413 [HAVE_CURSES_H]: Include curses.h.
52414 [!A_NORMAL] (A_NORMAL): Defined as zero.
52415 [!A_STANDOUT] (A_STANDOUT): Likewise.
52416
52417 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52418 -lncurses.
52419 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52420
52421 * configure.ac: Check for curses libraries and headers.
52422
52423 * Makefile.in (LIBCURSES): New variable.
52424
52425 * genmk.rb (Script::rule): Set the executable bits.
52426
52427 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52428 name of the PC partition map is "pc_partition_map" but not "pc".
52429
52430 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52431
52432 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52433 (modules): Likewise.
52434 (usage): Added descriptions for --modules and --grub-probefs.
52435 Handle --modules and --grub-probefs. Save the arguments in MODULES
52436 and GRUB_PROBEFS, respectively.
52437 Auto-detect a filesystem module against GRUBDIR. If the result is
52438 empty and modules are not specified explicitly, abort the
52439 installation. Add the result to MODULES.
52440
52441 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52442 disk/powerpc/ieee1275/ofdisk.c,
52443 include/grub/powerpc/ieee1275/init.h and
52444 term/powerpc/ieee1275/ofconsole.c.
52445 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52446 term/ieee1275/ofconsole.c.
52447
52448 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52449
52450 * COPYING: Upgraded to the latest version. Only the address of the
52451 FSF office has changed.
52452
52453 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52454
52455 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52456 kern/ieee1275.c with kern/ieee1275/of.c.
52457
52458 * kern/ieee1275.c: Moved to ...
52459 * kern/ieee1275/of.c: ... here.
52460
52461 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52462
52463 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52464 readability.
52465
52466 * config.guess: Updated to the latest version from gnulib.
52467 * config.sub: Likewise.
52468 * install.sh: Likewise.
52469 * mkinstalldirs: Likewise.
52470
52471 * include/grub/console.h: Removed. This file is arch-specific. Do
52472 not put this in include/grub.
52473
52474 * include/grub/i386/pc/console.h: Resurrected.
52475
52476 * util/console.c: Include grub/machine/console.h instead of
52477 grub/console.h.
52478 * util/grub-emu.c: Likewise.
52479
52480 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52481
52482 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52483 hardcoded value.
52484
52485 From Vincent Pelletier <subdino2004@yahoo.fr>
52486 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52487 Redefined to use grub_getwh.
52488 (grub_term): New member named getwh.
52489 (grub_getwh): New prototype.
52490 * kern/term.c (grub_getwh): New function.
52491 * term/i386/pc/console.c (grub_console_getwh): New function.
52492 (grub_console_term): New member `getwh'.
52493 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52494 (grub_vga_term): New member `getwh'.
52495 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52496 grub_ssize_t.
52497 (grub_ofconsole_getw): New function.
52498 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52499 (grub_ofconsole_term): New field named getwh and new initial
52500 value.
52501
52502 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52503
52504 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52505 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52506 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52507 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52508 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52509 of <grub/machine/ieee1275.h>.
52510 * commands/ieee1275/reboot.c: Likewise.
52511 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52512 * kern/ieee1275.c: ... to here. All users updated. Change all
52513 parameter structs to use new type `grub_ieee1275_cell_t'.
52514 * term/powerpc/ieee1275/ofconsole.c: Move ...
52515 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52516 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52517 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52518 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52519 to return int.
52520 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52521 Remove unused prototypes. All users updated.
52522 * include/grub/powerpc/ieee1275/console.h: Removed.
52523 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52524 `grub_ieee1275_cell_t'.
52525 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52526 Cast comparisons with -1 to the correct type.
52527 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52528 type to match `grub_ieee1275_entry_fn'.
52529
52530 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52531
52532 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52533
52534 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52535 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52536 partmap/sun.c.
52537 (grub_probefs_SOURCES): New variable.
52538
52539 * util/i386/pc/grub-probefs.c: New file.
52540
52541 * util/i386/pc/grub-setup.c (main): Call
52542 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52543 grub_hfs_init and grub_jfs_init to initialize the system. Call
52544 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52545 grub_pc_partition_map_fini to finish the system.
52546
52547 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52548
52549 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52550 function.
52551 (grub_multiboot_load_elf32): Likewise.
52552 (grub_multiboot_is_elf64): Likewise.
52553 (grub_multiboot_load_elf64): Likewise.
52554 (grub_multiboot_load_elf): Likewise.
52555 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52556 an ELF32 or ELF64 file.
52557 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52558
52559 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52560 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52561 NULL before calling FS->LABEL.
52562 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52563 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52564 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52565 before calling FS->LABEL.
52566
52567 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52568
52569 * util/i386/pc/grub-install.in (datadir): New variable.
52570 (libdir): Removed.
52571 (pkgdatadir): New variable.
52572 (pkglibdir): Removed.
52573
52574 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52575
52576 * DISTLIST: Added util/i386/pc/grub-install.in.
52577
52578 * util/i386/pc/grub-install.in: New file.
52579
52580 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52581 (grub_install_SOURCES): Likewise.
52582
52583 * genmk.rb: Added support for scripts.
52584 (Script): New class.
52585 (scripts): New variable.
52586
52587 * Makefile.in (install-local): Install sbin_SCRIPTS by
52588 INSTALL_SCRIPT.
52589 (uninstall): Remove sbin_SCRIPTS.
52590
52591 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52592 device, try to get a GRUB device by
52593 grub_util_biosdisk_get_grub_dev.
52594 Free DEST_DEV.
52595
52596 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52597 description for --device-map.
52598
52599 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52600
52601 Change the semantics of variable hooks. They now return strings
52602 instead of error values.
52603
52604 * util/i386/pc/grub-setup.c: Include grub/env.h.
52605 (setup): Use grub_device_set_root instead of grub_env_set.
52606
52607 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52608 grub_env_get instead of grub_device_set_root and
52609 grub_device_get_root, respectively.
52610
52611 * kern/main.c (grub_env_write_root): New function.
52612 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52613 grub_env_set instead of grub_device_set_root.
52614
52615 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52616 many variables.
52617 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52618 rather than calling ENV->WRITE_HOOK afterwards.
52619 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52620 passing a pointer of a pointer.
52621 (grub_register_variable_hook): Change the types of "read_hook" and
52622 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52623 respectively.
52624 Allocate the default empty string on the heap, because this string
52625 may be freed later.
52626
52627 * kern/device.c: Include grub/env.h.
52628 (grub_device_set_root): Removed.
52629 (grub_device_get_root): Likewise.
52630 (grub_device_open): Use grub_env_get instead of
52631 grub_device_get_root.
52632
52633 * include/grub/env.h (grub_env_read_hook_t): New type.
52634 (grub_env_write_hook_t): Likewise.
52635 (grub_env_var): Change the types of "read_hook" and "write_hook"
52636 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52637 (grub_register_variable_hook): Likewise.
52638
52639 * include/grub/device.h (grub_device_set_root): Removed.
52640 (grub_device_set_root): Likewise.
52641
52642 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52643 make sure that DIRNAME terminates with '/', so that
52644 grub_fat_find_dir will fail if PATH is not a directory.
52645
52646 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52647 from DIRNAME.
52648 Use the qualifier auto for print_files and print_files_long.
52649 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52650 as a regular file.
52651 Put a newline only if there is no error.
52652 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52653 used.
52654
52655 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52656
52657 * kern/partition.c (grub_partition_probe): Initialize PART to
52658 NULL. Otherwise, when no partition map is registered, this returns
52659 a garbage.
52660
52661 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52662
52663 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52664 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52665 valid.
52666
52667 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52668
52669 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52670 information on each device, if it does not have partitions. Print
52671 "Device" instead of "Disk", because this function is not specific
52672 to disk devices.
52673
52674 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52675 static to ensure that it is put on the memory rather than a
52676 register.
52677
52678 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52679
52680 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52681 (grub_cat_init): Likewise.
52682 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52683 (options): Likewise.
52684 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52685 (grub_configfile_init): Likewise.
52686 * font/manager.c (GRUB_MOD_INIT): Likewise.
52687 * commands/help.c (GRUB_MOD_INIT): Likewise.
52688 (grub_help_init): Likewise.
52689 * normal/command.c (grub_command_init): Likewise.
52690 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52691 * disk/loopback.c (grub_loop_init): Likewise.
52692 (GRUB_MOD_INIT): Likewise.
52693 * commands/ls.c (grub_ls_init): Likewise.
52694 (GRUB_MOD_INIT): Likewise.
52695 (options): Likewise.
52696 * commands/boot.c (grub_boot_init): Likewise.
52697 (GRUB_MOD_INIT): Likewise.
52698 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52699 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52700 (GRUB_MOD_INIT): Likewise.
52701 * commands/cmp.c (grub_cmp_init): Likewise.
52702 (GRUB_MOD_INIT): Likewise.
52703
52704 * normal/arg.c: Use <> instead of "" to include header files.
52705 (SHORT_ARG_HELP): New macro.
52706 (SHORT_ARG_USAGE): Likewise.
52707 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52708 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52709 descriptions.
52710 (find_short): Check if C is 'h' or 'u' explicitly.
52711 (grub_arg_show_help): Use space characters instead of tabs. Treat
52712 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52713 are shown with --help and --usage only if they are not used for
52714 the command itself.
52715 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52716 'h' and 'u'.
52717
52718 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52719 const into "longarg". Change the type of "shortarg" to int.
52720
52721 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52722
52723 * boot/i386/pc/boot.S (boot_drive_check): New label.
52724
52725 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52726 macro.
52727
52728 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52729 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52730
52731 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52732
52733 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52734 When turning off Gate A20, skip the check and return immediately,
52735 because this is not fatal usually.
52736
52737 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52738
52739 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52740 be 0x7C00 instead of 0x8000.
52741
52742 * boot/i386/pc/pxeboot.S: Rewritten.
52743
52744 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52745 EXT_C.
52746 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52747 result.
52748
52749 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52750
52751 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52752 robustness. This routine now supports a BIOS call and System
52753 Control Port A to modify the gate A20.
52754
52755 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52756 Increased to 0x440.
52757
52758 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52759
52760 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52761 device path and resulting ihandle.
52762 (grub_ofdisk_close): dprintf the ihandle being closed.
52763 (grub_ofdisk_read): dprintf function parameters.
52764 * kern/mm.c (grub_mm_init_region): Likewise.
52765 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52766 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52767 size, and boot arguments.
52768 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52769 before loading into memory.
52770 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52771 before loading into memory.
52772
52773 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52774
52775 * kern/mm.c: Added much documentation.
52776 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52777 8, set to 5 instead of 8.
52778
52779 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52780
52781 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52782
52783 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52784 (grub_mkdevicemap_SOURCES): New variable.
52785
52786 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52787 lib/device.c of GRUB Legacy.
52788
52789 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52790
52791 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52792 instead of PATH is NULL.
52793
52794 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52795
52796 * commands/cmp.c (BUFFER_SIZE): New macro.
52797 (grub_cmd_cmp): Close the right file at the right time. Compare
52798 only data just read. Don't report files of different size as
52799 identical. Dynamically allocate buffers. Move variable
52800 declarations at the beginning of function.
52801
52802 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52803
52804 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52805 reverse.
52806
52807 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52808
52809 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52810 when backspace is pressed at beginning of line.
52811
52812 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52813
52814 * DISTLIST: Added genfslist.sh.
52815
52816 * normal/main.c (fs_module_list): New variable.
52817 (autoload_fs_module): New function.
52818 (read_fs_list): Likewise.
52819 (grub_normal_execute): Call read_fs_list.
52820
52821 * kern/fs.c (grub_fs_autoload_hook): New variable.
52822 (grub_fs_probe): Added support for auto-loading.
52823
52824 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52825 (grub_fs_module_list_t): New type.
52826
52827 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52828 (grub_fs_autoload_hook): New prototype.
52829
52830 * genfslist.sh: New file.
52831
52832 * genmk.rb: Added a rule to generate a filesystem list.
52833
52834 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52835
52836 * configure.ac: Fix the test for cross-compiling.
52837
52838 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52839 define GRUB_UTIL anymore.
52840
52841 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52842 so this function works on other systems than just big endian.
52843 (load_modules): Likewise.
52844 (add_segments): Likewise.
52845
52846 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52847
52848 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52849 contains `l' modifier, get a long from va_arg().
52850
52851 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52852
52853 * kern/mm.c (grub_free): If the next free block which is being
52854 merged is the first free block, set the first block to the block
52855 being freed.
52856 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52857
52858 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52859
52860 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52861 `grub_ieee1275_chosen'.
52862
52863 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52864
52865 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52866 (grub_ieee1275_chosen): New variable.
52867 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52868 `chosen'.
52869 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52870 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52871 Rename first argument to `phandle' for consistency.
52872 (grub_ieee1275_get_property_length): Likewise.
52873 (grub_ieee1275_next_property): Likewise. Change type of first argument
52874 to grub_ieee1275_phandle_t.
52875 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52876 Move export next to declaration.
52877 (grub_ieee1275_chosen): New variable.
52878 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52879 Correct cosmetic typo.
52880 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52881 `grub_ieee1275_chosen'.
52882 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52883 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52884 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52885 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52886 `grub_ieee1275_chosen'.
52887
52888 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52889
52890 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52891 /chosen/bootargs.
52892 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52893 /chosen/bootargs as "variable=value" pairs.
52894
52895 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52896
52897 * include/grub/misc.h (grub_dprintf): New macro.
52898 (grub_real_dprintf): New prototype.
52899 (grub_strword): Likewise.
52900 (grub_iswordseparator): Likewise.
52901 * kern/misc.c (grub_real_dprintf): New function.
52902 (grub_strword): Likewise.
52903 (grub_iswordseparator): Likewise.
52904
52905 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52906
52907 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52908 (roundup): Remove macro.
52909 (grub_ieee1275_flags): Make static.
52910 (grub_ieee1275_realmode): Remove.
52911 (grub_ieee1275_test_flag): New function.
52912 (grub_ieee1275_set_flag): Likewise.
52913 (find_options): Rename to `grub_ieee1275_find_options'; update
52914 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52915 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52916 (cmain): New prototype.
52917 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52918 `grub_ieee1275_flags' directly.
52919 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52920 machine/biosdisk.h.
52921 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52922 Don't include grub/machine/init.h.
52923 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52924 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52925 Remove prototype.
52926 (grub_ieee1275_realmode): Likewise.
52927 (grub_ieee1275_flag): New enum.
52928 (grub_ieee1275_test_flag): New prototype.
52929 (grub_ieee1275_set_flag): New prototype.
52930 * include/grub/powerpc/ieee1275/init.h: Remove file.
52931 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52932 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52933 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52934 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52935 comment.
52936 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52937 `grub_ieee1275_test_flag'.
52938 (grub_ieee1275_encode_devname): Likewise.
52939
52940 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52941
52942 * include/grub/powerpc/ieee1275/ieee1275.h
52943 (grub_ieee1275_encode_devname): New prototype.
52944 (grub_ieee1275_get_filename): Likewise.
52945 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52946 function.
52947 (grub_set_prefix): Likewise.
52948 (grub_machine_init): Call grub_set_prefix.
52949 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52950 (grub_parse_type): New enum.
52951 (grub_ieee1275_get_devargs): New function.
52952 (grub_ieee1275_get_devname): Likewise.
52953 (grub_ieee1275_parse_args): Likewise.
52954 (grub_ieee1275_get_filename): Likewise.
52955 (grub_ieee1275_encode_devname): Likewise.
52956
52957 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52958
52959 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52960 `grub_loader_unset'.
52961
52962 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52963
52964 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52965 instead of grub_ieee1275_interpret.
52966 (grub_halt_init): New function.
52967 (grub_halt_fini): Likewise.
52968 (GRUB_MOD_INIT): Correct message grammar.
52969 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52970 instead of grub_ieee1275_interpret.
52971 (grub_reboot_init): New function.
52972 (grub_reboot_fini): Likewise.
52973 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52974 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52975 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52976 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52977 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52978 function.
52979 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52980 Add prototype.
52981 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52982 prototype.
52983 (grub_halt): Likewise.
52984 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52985 (cmain): Remove __attribute__((unused)).
52986 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52987 (grub_heap_len): Likewise.
52988 (grub_machine_fini): New function.
52989 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52990 (grub_halt): Likewise.
52991 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52992 function.
52993 * util/powerpc/ieee1275/misc.c: New file.
52994
52995 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52996
52997 * DISTLIST: New file.
52998 * gendistlist.sh: Likewise.
52999
53000 * Makefile.in (COMMON_DISTFILES): Removed.
53001 (BOOT_DISTFILES): Likewise.
53002 (CONF_DISTFILES): Likewise.
53003 (DISK_DISTFILES): Likewise.
53004 (FS_DISTFILES): Likewise.
53005 (INCLUDE_DISTFILES): Likewise.
53006 (KERN_DISTFILES): Likewise.
53007 (LOADER_DISTFILES): Likewise.
53008 (TERM_DISTFILES): Likewise.
53009 (UTIL_DISTFILES): Likewise.
53010 (DISTFILES): Likewise.
53011 (uninstall): Uninstall files in $(pkgdata_DATA).
53012 (DISTLIST): New target.
53013 (distdir): Use the contents of the file DISTLIST to get a list of
53014 distributed files.
53015
53016 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53017
53018 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53019 descriptor. This is ported from GRUB Legacy.
53020
53021 * gencmdlist.sh: Added an extra semicolon to make it work with
53022 old sed versions. Reported by Robert Bihlmeyer
53023 <robbe@orcus.priv.at>.
53024
53025 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53026
53027 Automatic loading of commands is supported.
53028
53029 * normal/main.c (read_command_list): New function.
53030 (grub_normal_execute): Call read_command_list.
53031
53032 * normal/command.c (grub_register_command): Return zero or CMD.
53033 Allocate CMD->NAME from the heap.
53034 Initialize CMD->MODULE_NAME to zero.
53035 Find the same name as well. If the same command is found and it is
53036 a dummy command, overwrite members. If it is not a dummy command,
53037 return zero.
53038 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53039 (grub_command_find): If a dummy command is found, load a module
53040 and retry to find a command only once.
53041
53042 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53043 make sure that each command is loaded.
53044
53045 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53046 macro.
53047 (struct grub_command): Remove const from the member `name'.
53048 Add a new member `module_name'.
53049 (grub_register_command): Return grub_command_t.
53050
53051 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53052 sure that each command is loaded.
53053
53054 * genmk.rb (PModule::rule): Specify a module name without the
53055 suffix ".mod" to gencmdlist.sh.
53056
53057 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53058
53059 * gencmdlist.sh: New file.
53060
53061 * genmk.rb (PModule::rule): Generate a rule for a command list.
53062 Clean command.lst.
53063 Generate command.lst from $(COMMANDFILES).
53064
53065 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53066 (DATA): Added $(pkgdata_DATA).
53067 (install-local): Install files in $(pkgdata_DATA).
53068
53069 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53070
53071 * term/i386/pc/vga.c (debug_command): Removed.
53072 (GRUB_MOD_INIT): Do not register the command "debug".
53073
53074 From Hollis Blanchard:
53075 * commands/configfile.c: New file.
53076 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53077 commands/configfile.c.
53078 (pkgdata_MODULES): Added configfile.mod.
53079 (configfile_mod_SOURCES): New variable.
53080 (configfile_mod_CFLAGS): Likewise.
53081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53082 commands/configfile.c.
53083 (pkgdata_MODULES): Added configfile.mod.
53084 (configfile_mod_SOURCES): New variable.
53085 (configfile_mod_CFLAGS): Likewise.
53086 * util/grub-emu.c (main): Call grub_configfile_init and
53087 grub_configfile_fini.
53088 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53089 prototype.
53090 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53091
53092 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53093
53094 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53095 address.
53096
53097 * commands/help.c (grub_cmd_help): Do not print newlines after
53098 the last command in print_command_help.
53099
53100 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53101
53102 * commands/default.h: New file.
53103 * commands/timeout.h: Likewise.
53104 * normal/context.c: Likewise.
53105
53106 * util/misc.c: Do not include sys/times.h.
53107 Include sys/time.h and grub/machine/time.h.
53108 (grub_get_rtc): Rewritten with gettimeofday.
53109
53110 * util/grub-emu.c (main): Call grub_default_init and
53111 grub_timeout_init before grub_normal_init, and call
53112 grub_timeout_fini and grub_default_fini after grub_main.
53113
53114 * util/console.c (grub_ncurses_checkkey): Return the read
53115 character or -1.
53116
53117 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53118 timeouts.
53119
53120 * normal/main.c (read_config_file): Push MENU. If this fails,
53121 print an error and wait for a user input.
53122 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53123 If a menu is empty or an error occurs, pop MENU.
53124 (grub_normal_execute): Pop and free MENU after grub_menu_run
53125 returns.
53126
53127 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53128
53129 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53130 include time.h.
53131 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53132 without GRUB_UTIL.
53133 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53134 time.h.
53135 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53136 without GRUB_UTIL.
53137
53138 * include/grub/normal.h (struct grub_menu_list): New struct.
53139 (grub_menu_list_t): New type.
53140 (struct grub_context): New struct.
53141 (grub_context_t): New type.
53142 (grub_register_command): Got rid of EXPORT_FUNC.
53143 (grub_unregister_command): Likewise.
53144 (grub_context_get): New prototype.
53145 (grub_context_get_current_menu): Likewise.
53146 (grub_context_push_menu): Likewise.
53147 (grub_context_pop_menu): Likewise.
53148 [GRUB_UTIL] (grub_default_init): Likewise.
53149 [GRUB_UTIL] (grub_default_fini): Likewise.
53150 [GRUB_UTIL] (grub_timeout_init): Likewise.
53151 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53152
53153 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53154 commands/timeout.c and normal/context.c.
53155 (pkgdata_MODULES): Added default.mod and timeout.mod.
53156 (normal_mod_SOURCES): Added normal/context.c.
53157 (default_mod_SOURCES): New variable.
53158 (default_mod_CFLAGS): Likewise.
53159 (timeout_mod_SOURCES): Likewise.
53160 (timeout_mod_CFLAGS): Likewise.
53161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53162 conf/i386-pc.rmk.
53163 (pkgdata_MODULES): Added default.mod and timeout.mod.
53164 (normal_mod_SOURCES): Added normal/context.c.
53165 (default_mod_SOURCES): New variable.
53166 (default_mod_CFLAGS): Likewise.
53167 (timeout_mod_SOURCES): Likewise.
53168 (timeout_mod_CFLAGS): Likewise.
53169
53170 * Makefile.in (all-local): Added $(MKFILES).
53171
53172 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53173
53174 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53175 (grub_emu_SOURCES): Likewise.
53176 (pkgdata_MODULES): Add `sun.mod'.
53177 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53179 `partmap/sun.c'.
53180 (pkgdata_MODULES): Add `sun.mod'.
53181 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53182 * include/grub/partition.h (grub_sun_partition_map_init): New
53183 prototype.
53184 (grub_sun_partition_map_fini): Likewise.
53185 * partmap/sun.c: New file.
53186 * util/grub-emu.c (main): Initialize and de-initialize the sun
53187 partitionmap support.
53188
53189 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53190
53191 This implements an Emacs-like menu entry editor.
53192
53193 * normal/menu_entry.c: New file.
53194
53195 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53196 characters to ASCII.
53197 (saved_char): New variable.
53198 (grub_ncurses_checkkey): Rewritten completely.
53199 (grub_ncurses_getkey): Likewise.
53200 (grub_ncurses_init): Call raw instead of cbreak.
53201
53202 * normal/menu.c (print_entry): Do not put a space.
53203 (init_page): Renamed to ...
53204 (grub_menu_init_page): ... this. All callers changed.
53205 (edit_menu_entry): Removed.
53206 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53207
53208 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53209
53210 * kern/misc.c (grub_vprintf): Call grub_refresh.
53211
53212 * normal/menu.c (DISP_LEFT): Renamed to ...
53213 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53214 * normal/menu.c (DISP_UP): Renamed to ...
53215 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53216 * normal/menu.c (DISP_RIGHT): Renamed to ...
53217 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53218 * normal/menu.c (DISP_DOWN): Renamed to ...
53219 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53220 * normal/menu.c (DISP_HLINE): Renamed to ...
53221 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53222 * normal/menu.c (DISP_VLINE): Renamed to ...
53223 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53224 * normal/menu.c (DISP_UL): Renamed to ...
53225 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53226 * normal/menu.c (DISP_UR): Renamed to ...
53227 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53228 * normal/menu.c (DISP_LL): Renamed to ...
53229 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53230 * normal/menu.c (DISP_LR): Renamed to ...
53231 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53232 * normal/menu.c (TERM_WIDTH): Renamed to ...
53233 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53234 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53235 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53236 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53237 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53238 * normal/menu.c (TERM_MARGIN): Renamed to ...
53239 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53240 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53241 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53242 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53243 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53244 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53245 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53246 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53247 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53248 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53249 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53250 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53251 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53252 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53253 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53254 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53255 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53256 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53257 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53258 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53259 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53260 All callers changed.
53261
53262 * include/grub/normal.h: New prototype.
53263
53264 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53265 normal/menu_entry.c.
53266 (normal_mod_SOURCES): Likewise.
53267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53268 (normal_mod_SOURCES): Likewise.
53269
53270 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53271
53272 * include/grub/normal.h (grub_halt_init): New prototype.
53273 (grub_halt_fini): Likewise.
53274 (grub_reboot_init): Likewise.
53275 (grub_reboot_fini): Likewise.
53276
53277 * util/grub-emu.c: Include signal.h.
53278 (main_env): New global variable.
53279 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53280 catch C-c.
53281 (grub_machine_fini): New function.
53282 (main): Call grub_halt_init and grub_reboot_init before
53283 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53284 Call setjmp with MAIN_ENV to go back afterwards.
53285 Call grub_machine_fini right before return.
53286
53287 * include/grub/util/misc.h: Include setjmp.h.
53288 (main_env): New prototype.
53289
53290 * include/grub/kernel.h (grub_machine_fini): New prototype.
53291 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53292 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53293
53294 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53295 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53296 * term/i386/pc/console.c (grub_console_fini): Likewise.
53297
53298 * util/i386/pc/misc.c: New file.
53299
53300 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53301 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53302 commands/i386/pc/reboot.c.
53303
53304 2005-02-14 Guillem Jover <guillem@hadrons.org>
53305
53306 * include/grub/dl.h (grub_dl_check_header): New prototype.
53307 (grub_arch_dl_check_header): Change return type to grub_err_t,
53308 remove size parameter and export function. Update all callers.
53309 * kern/dl.c (grub_dl_check_header): New function.
53310 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53311 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53312 are inside the core.
53313 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53314 independent ELF header checks.
53315 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53316 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53317 `grub_dl_check_header' instead of explicit checks. Check for the
53318 ELF type.
53319 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53320 `grub_dl_check_header' instead of explicit checks. Remove arch
53321 specific ELF header checks.
53322
53323 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53324 argument SIZE.
53325
53326 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53327
53328 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53329 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53330
53331 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53332
53333 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53334 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53335 (part_map_iterate): Clear `grub_errno' and return 0 if
53336 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53337 * partmap/amiga.c (amiga_partition_map_iterate): Return
53338 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53339 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53340
53341 2005-02-01 Guillem Jover <guillem@hadrons.org>
53342
53343 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53344 help info.
53345
53346 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53347
53348 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53349 Removed prototype.
53350 (grub_rescue_cmd_linux): New prototype.
53351 (grub_rescue_cmd_initrd): Likewise.
53352 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53353 `bi_rec'.
53354 (grub_linux_release_mem): Release the memory for the initrd.
53355 (grub_load_linux): Renamed from this...
53356 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53357 Changed `entry' not to be static. Loop over memory regions to
53358 find another one when the default fails.
53359 (grub_rescue_cmd_initrd): New function.
53360 (grub_linux_init): Remove function.
53361 (grub_linux_fini): Likewise.
53362 (GRUB_MOD_INIT): Register `initrd'.
53363 (GRUB_MOD_FINI): Unregister `initrd'.
53364 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53365 Function removed.
53366 (grub_linux_normal_fini): Likewise.
53367 (GRUB_MOD_INIT): Register `initrd'.
53368 (GRUB_MOD_FINI): Unregister `initrd'.
53369
53370 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53371
53372 * commands/help.c: New file.
53373 * normal/arg.c (show_help): Renamed to...
53374 (grub_arg_show_help): ... this.
53375 * commands/i386/pc/halt.c: New file.
53376 * commands/i386/pc/reboot.c: Likewise.
53377 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53378 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53379 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53380 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53381 variables.
53382 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53383 `commands/help.c'.
53384 (pkgdata_MODULES): Add `help.mod'.
53385 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53386 * grub/i386/pc/init.h (grub_reboot): New prototype.
53387 (grub_halt): Likewise.
53388 * include/grub/normal.h (grub_arg_show_help): New prototype.
53389 (grub_help_init): Likewise.
53390 (grub_help_fini): Likewise.
53391 * util/grub-emu.c (main): Initialize and deinitialize the help
53392 command.
53393
53394 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53395
53396 * normal/command.c (grub_command_init): Fixed the description of
53397 the `set' and `unset' commands.
53398
53399 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53400
53401 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53402 function.
53403 * commands/ieee1275/halt.c: New file.
53404 * commands/ieee1275/reboot.c: Likewise.
53405 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53406 `__attribute__ ((unused))'. Some GCS related fixed.
53407 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53408 (grub_suspend_fini): Likewise.
53409 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53410 and `halt.mod'.
53411 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53412 (halt_mod_CFLAGS): New variables.
53413 * include/grub/powerpc/ieee1275/ieee1275.h
53414 (grub_ieee1275_interpret): New prototype.
53415
53416 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53417
53418 * include/grub/misc.h (memmove): New prototype.
53419 (memcpy): Likewise.
53420
53421 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53422
53423 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53424 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53425
53426 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53427
53428 * kern/misc.c (grub_strndup): Function rewritten.
53429
53430 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53431
53432 * normal/menu.c (TERM_WIDTH): Macro redefined.
53433 (TERM_TOP_BORDER_Y): Likewise.
53434 (draw_border): Replaced while-loop by a for-loop. Make the number
53435 of lines consistent with the number of lines displayed in
53436 print_entries. Added a margin below the rectangle.
53437 (print_entry): Make the entry fit in the rectangle.
53438 (print_entries): Display the scroll arrows next to the right
53439 border.
53440
53441 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53442
53443 * fs/minix.c (grub_minix_find_file): Reserve more space for
53444 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53445 `grub_strncpy' to copy `path' into it.
53446
53447 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53448
53449 Add the loopback device, a device via which files can be accessed
53450 as devices.
53451
53452 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53453 (pkgdata_MODULES): Add loopback.mod.
53454 (loopback_mod_SOURCES): New variable.
53455 (loopback_mod_CFLAGS): Likewise.
53456 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53457 `disk/loopback.c'.
53458 (pkgdata_MODULES): Add loopback.mod.
53459 (loopback_mod_SOURCES): New variable.
53460 (loopback_mod_CFLAGS): Likewise.
53461 * disk/loopback.c: new file.
53462 * include/grub/normal.h (grub_loop_init): New prototype.
53463 (grub_loop_fini): New prototype.
53464 * util/grub-emu.c (main): Initialize and de-initialize loopback
53465 support.
53466 * include/grub/disk.h (grub_disk_dev_id): Add
53467 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53468
53469 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53470
53471 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53472 function.
53473 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53474 (suspend_mod_SOURCES): New variable.
53475 (suspend_mod_CFLAGS): Likewise.
53476 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53477 New prototype.
53478 * commands/ieee1275/suspend.c: New file.
53479
53480 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53481
53482 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53483 ((unused))' to `__attribute__ ((used))'.
53484 (GRUB_MOD_FINI): Likewise.
53485 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53486 * genmk.rb (PModule): Assign space to common symbols when linking
53487 modules.
53488
53489 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53490
53491 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53492 `unsigned' arguments to `grub_size_t'.
53493 (grub_malloc): Likewise.
53494 (grub_realloc): Likewise.
53495 (grub_memalign): Likewise.
53496 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53497 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53498 * util/misc.c (grub_malloc): Likewise.
53499 (grub_realloc): Likewise.
53500 * kern/mm.c (get_header_from_pointer): Change the casts to
53501 `unsigned' into a cast to `grub_size_t'.
53502
53503 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53504 point to `currnode' when `currnode' is changed.
53505
53506 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53507 Schottelius <nico-linux@schottelius.org>.
53508
53509 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53510
53511 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53512 (note_path): Remove variable.
53513 (GRUB_IEEE1275_NOTE_NAME): New macro.
53514 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53515 (grub_ieee1275_note_hdr): New structure.
53516 (grub_ieee1275_note_desc): Likewise.
53517 (grub_ieee1275_note): Likewise.
53518 (load_note): Remove `dir' argument. All callers updated. Remove
53519 `note_img' and `path'. Do not load a file from `note_path'.
53520 Initialize a struct grub_ieee1275_note and write that to `out'.
53521 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53522
53523 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53524
53525 * util/misc.c (grub_util_read_image): Revert last change. It
53526 called `grub_util_read_at', which seeks from the beginning of the
53527 file.
53528
53529 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53530
53531 * TODO: Add note about endianness in grub-mkimage.
53532 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53533 section.
53534 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53535 (grub_mkimage_SOURCES): New target.
53536 * include/grub/kernel.h (grub_start_addr): Remove variable.
53537 (grub_end_addr): Likewise.
53538 (grub_total_module_size): Likewise.
53539 (grub_kernel_image_size): Likewise.
53540 (GRUB_MODULE_MAGIC): New constant.
53541 (grub_module_info): New structure.
53542 (grub_arch_modules_addr): New prototype.
53543 (grub_get_end_addr): Remove prototype.
53544 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53545 * include/grub/powerpc/ieee1275/kernel.h: New file.
53546 * include/grub/util/misc.h (grub_util_get_fp_size): New
53547 prototype.
53548 (grub_util_read_at): Likewise.
53549 (grub_util_write_image_at): Likewise.
53550 * kern/main.c (grub_get_end_addr): Remove function.
53551 (grub_load_modules): Call grub_arch_modules_addr instead of using
53552 grub_end_addr. Look for a grub_module_info struct in memory. Use
53553 the grub_module_info fields instead of calling grub_get_end_addr
53554 as loop conditions. Move grub_add_unused_region code here.
53555 (grub_add_unused_region): Remove function.
53556 * kern/i386/pc/init.c: Include grub/cache.h.
53557 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53558 one call to add_mem_region.
53559 (grub_arch_modules_addr): New function.
53560 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53561 (grub_total_module_size): Likewise.
53562 Include grub/machine/kernel.h.
53563 (grub_arch_modules_addr): New function.
53564 * util/grub-emu.c (grub_end_addr): Remove variable.
53565 (grub_total_module_size): Likewise.
53566 (grub_arch_modules_addr): New function.
53567 * util/misc.c: Include unistd.h.
53568 (grub_util_get_fp_size): New function.
53569 (grub_util_read_at): Likewise.
53570 (grub_util_write_image_at): Likewise.
53571 (grub_util_read_image): Call grub_util_read_at.
53572 (grub_util_write_image): Call grub_util_write_image_at.
53573 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53574 additional memory in kernel_img for a struct grub_module_info.
53575 Fill in that grub_module_info.
53576 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53577
53578 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53579
53580 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53581 New function.
53582 * include/grub/powerpc/ieee1275/ieee1275.h
53583 (grub_ieee1275_milliseconds): New prototype.
53584 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53585 Change to 1000.
53586 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53587 grub_ieee1275_milliseconds.
53588
53589 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53590
53591 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53592 variable.
53593 (find_options): New function.
53594 (cmain): Call find_options.
53595 * include/grub/powerpc/ieee1275/ieee1275.h
53596 (grub_ieee1275_realmode): New extern variable.
53597 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53598 grub_map if grub_ieee1275_realmode is false.
53599
53600 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53601
53602 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53603 lines are inserted and make it work like readline. Reported by
53604 Vincent Pelletier <subdino2004@yahoo.fr>.
53605
53606 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53607
53608 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53609
53610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53611 `kern/powerpc/cache.S'.
53612
53613 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53614
53615 * genmk.rb: Handle the `Program' class in the main loop. Written
53616 by Johan Rydberg <jrydberg@gnu.org>.
53617 (Program): New class.
53618 (programs): New variable.
53619 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53620 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53621 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53622 (help_arch): Function removed.
53623 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53624 `powerpc/libgcc.h' and `loader.h'.
53625 (pkgdata_PROGRAMS): New variable.
53626 (sbin_UTILITIES): Variable removed.
53627 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53628 (grubof_SOURCES): Variable re-defined so it only includes the
53629 core functionality.
53630 (grubof_CFLAGS): Remove `-DGRUBOF'.
53631 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53632 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53633 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53634 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53635 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53636 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53637 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53638 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53639 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53640 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53641 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53642 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53643 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53644 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53645 (pc_mod_CFLAGS): New variables.
53646 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53647 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53648 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53649 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53650 Moved from here...
53651 * include/grub/i386/pc/init.h (grub_os_area_addr)
53652 (rub_os_area_size): ... to here.
53653 * include/grub/powerpc/ieee1275/ieee1275.h
53654 (grub_ieee1275_entry_fn): Export symbol.
53655 * include/grub/powerpc/ieee1275/init.h: New file.
53656 * include/grub/powerpc/libgcc.h: Likewise.
53657 * include/grub/cache.h: Likewise.
53658 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53659 <hollis@penguinppc.org>.
53660 * kern/dl.c: Include <grub/cache.h>.
53661 (grub_dl_flush_cache): New function.
53662 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53663 for this module.
53664 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53665 (grub_console_init): Removed prototypes.
53666 (grub_machine_init): Don't initialize the modules anymore.
53667 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53668 static.
53669 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53670 Macro undef removed.
53671 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53672 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53673 relocation `R_PPC_REL32'. Return an error when the relocation is
53674 unknown.
53675 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53676 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53677 * util/misc.c (grub_arch_sync_caches): Likewise.
53678
53679 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53680
53681 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53682 `symlist.c', add `grubof_symlist.c'.
53683 (symlist.c): Variable removed.
53684 (grubof_HEADERS): Variable added.
53685 (grubof_symlist.c): New target.
53686 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53687 `kernel_img_HEADERS'.
53688 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53689 * kern/powerpc/dl.c: New file.
53690 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53691 Function removed.
53692 (grub_arch_dl_relocate_symbols): Likewise.
53693 (grub_register_exported_symbols): Likewise.
53694
53695 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53696
53697 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53698 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53699 to fail instead. Reported by Vincent Pelletier
53700 <subdino2004@yahoo.fr>.
53701
53702 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53703 it is not allocated. Reported by Vincent Pelletier
53704 <subdino2004@yahoo.fr>.
53705
53706 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53707 output so the output looks better.
53708
53709 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53710
53711 Modulize the partition map support and add support for the amiga
53712 partition map.
53713
53714 * commands/ls.c: Include <grub/partition.h> instead of
53715 <grub/machine/partition.h>.
53716 * kern/disk.c: Likewise.
53717 * kern/rescue.c: Likewise.
53718 * loader/i386/pc/chainloader.c: Likewise.
53719 * normal/cmdline.c: Likewise.
53720 * kern/powerpc/ieee1275/init.c: Likewise.
53721 (grub_machine_init): Call `grub_pc_partition_map_init',
53722 `grub_amiga_partition_map_init' and
53723 `grub_apple_partition_map_init'.
53724 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53725 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53726 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53727 `partition.h' and `pc_partition.h'.
53728 (grub_setup_SOURCES): Remove
53729 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53730 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53731 (grub_emu_SOURCES): Likewise.
53732 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53733 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53734 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53736 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53737 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53738 (grubof_SOURCES): Likewise.
53739 * disk/i386/pc/partition.c: File removed.
53740 * disk/powerpc/ieee1275/partition.c: Likewise.
53741 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53742 * include/grub/i386/pc/partition.h: Likewise.
53743 * kern/partition.c: New file.
53744 * partmap/amiga.c: Likewise.
53745 * partmap/apple.c: Likewise.
53746 * partmap/pc.c: Likewise.
53747 * include/grub/partition.h: Likewise..
53748 * include/grub/pc_partition.h: Likewise.
53749 * util/grub-emu.c: Include <grub/partition.h> instead of
53750 <grub/machine/partition.h>.
53751 (main): Call `grub_pc_partition_map_init',
53752 `grub_amiga_partition_map_init' and
53753 `grub_apple_partition_map_init' and deinitialize afterwards.
53754 * util/i386/pc/biosdisk.c: Include `#include
53755 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53756 `<grub/machine/partition.h>'.
53757 * util/i386/pc/grub-setup.c: Likewise.
53758 * util/i386/pc/biosdisk.c: Likewise.
53759 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53760 partition information in case of a PC partition.
53761 * util/i386/pc/grub-setup.c: Include `#include
53762 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53763 `<grub/machine/partition.h>'.
53764 (setup): Only access the PC specific partition information in case
53765 of a PC partition.
53766
53767 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53768
53769 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53770 (grub_longjmp): Likewise.
53771 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53772 20.
53773 * normal/powerpc/setjmp.S: New file.
53774 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53775 `normal/powerpc/setjmp.S'.
53776 (grubof_CFLAGS): Add `-DGRUBOF'.
53777 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53778 [GRUB_UTIL && !GRUBOF].
53779
53780 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53781
53782 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53783 property named `name'. Correctly handle the error returned by
53784 `grub_ieee1275_finddevice' if a device can not be opened.
53785
53786 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53787
53788 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53789 `actual' for negativity.
53790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53791 kern/fshelp.c.
53792
53793 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53794
53795 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53796 (PAGE_OFFSET): New macro.
53797 (CRTC_ADDR_PORT): Likewise.
53798 (CRTC_DATA_PORT): Likewise.
53799 (START_ADDR_HIGH_REGISTER): Likewise.
53800 (START_ADDR_LOW_REGISTER): Likewise.
53801 (GRAPHICS_ADDR_PORT): Likewise.
53802 (GRAPHICS_DATA_PORT): Likewise.
53803 (READ_MAP_REGISTER): Likewise.
53804 (INPUT_STATUS1_REGISTER): Likewise.
53805 (INPUT_STATUS1_VERTR_BIT): Likewise.
53806 (page): New variable.
53807 (wait_vretrace): New function.
53808 (set_read_map): Likewise.
53809 (set_start_address): Likewise.
53810 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53811 the right page.
53812 (check_vga_mem): Take the page into account.
53813 (write_char): Likewise.
53814 (write_cursor): Likewise.
53815 (scroll_up): Likewise. Copy the page to the page that is not
53816 shown and switch between both pages.
53817 (grub_vga_putchar): Fix off by one error.
53818 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53819 account.
53820
53821 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53822
53823 Add support for iso9660 (including rockridge).
53824
53825 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53826 (iso9660_mod_SOURCES): New variable.
53827 (iso9660_mod_CFLAGS): Likewise.
53828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53829 * include/grub/fs.h (grub_iso9660_init): New prototype.
53830 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53831 * fs/iso9660.c: New file.
53832
53833 * include/grub/misc.h (grub_strncat): New prototype.
53834 * kern/misc.c (grub_strncat): New function.
53835
53836 * fs/hfs.c (grub_hfs_mount): Translate the error
53837 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53838 * fs/jfs.c (grub_jfs_mount): Likewise.
53839 * fs/ufs.c (grub_ufs_mount): Likewise.
53840
53841 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53842
53843 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53844 which initialized BAT registers.
53845 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53846 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53847 Move from here...
53848 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53849 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53850 ... to here.
53851 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53852 (grub_mapclaim): Likewise.
53853 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53854 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53855 hand.
53856
53857 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53858
53859 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53860 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53861 -ffreestanding and -msoft-float.
53862
53863 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53864
53865 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53866 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53867 set in grub_ieee1275_flags.
53868
53869 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53870
53871 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53872 prototype.
53873 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53874 grub_console_init first.
53875 Change the memory range used for grub_ieee1275_claim and
53876 grub_mm_init_region.
53877 Print an error message if the claim fails.
53878 Include <grub/misc.h>.
53879
53880 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53881
53882 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53883 Call grub_children_iterate for device nodes of type `scsi',
53884 `ide', or `ata'.
53885 (grub_ofdisk_open): Remove manual device alias resolution.
53886 Fix memory leak when device cannot be opened.
53887 * include/grub/powerpc/ieee1275/ieee1275.h
53888 (grub_children_iterate): New prototype.
53889 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53890 New function.
53891 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53892 Return -1 if args.size was -1.
53893
53894 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53895
53896 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53897 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53898 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53899 Open Firmware's memory for it; claim memory from _start to _end.
53900 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53901 (_end): New extern.
53902 (_start): Zero BSS from __bss_start to _end.
53903 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53904 New extern.
53905 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53906
53907 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53908
53909 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53910 -1 if args.base was -1.
53911
53912 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53913
53914 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53915 escape sequence instead of a literal ^L. Also call
53916 grub_ofconsole_gotoxy.
53917
53918 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53919
53920 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53921 void * arguments to grub_addr_t. All callers updated. Also make
53922 the `result' argument optional.
53923 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53924 All callers updated.
53925
53926 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53927
53928 * commands/ls.c (grub_ls_list_files): Use the string following the
53929 initial ')', if present, as the filesystem path.
53930 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53931
53932 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53933
53934 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53935
53936 Make the source code of the menu interface more readable.
53937
53938 * normal/menu.c: Include grub/mm.h.
53939 (TERM_WIDTH): New macro.
53940 (TERM_HEIGHT): Likewise.
53941 (TERM_INFO_HEIGHT): Likewise.
53942 (TERM_MARGIN): Likewise.
53943 (TERM_SCROLL_WIDTH): Likewise.
53944 (TERM_TOP_BORDER_Y): Likewise.
53945 (TERM_LEFT_BORDER_X): Likewise.
53946 (TERM_BORDER_WIDTH): Likewise.
53947 (TERM_MESSAGE_HEIGHT): Likewise.
53948 (TERM_BORDER_HEIGHT): Likewise.
53949 (TERM_NUM_ENTRIES): Likewise.
53950 (TERM_FIRST_ENTRY_Y): Likewise.
53951 (TERM_ENTRY_WIDTH): Likewise.
53952 (TERM_CURSOR_X): Likewise.
53953 (draw_border): Use macros instead of magic numbers.
53954 (print_entry): Likewise.
53955 (print_entries): Likewise.
53956 (run_menu): Likewise. Also, handle the key 'e'.
53957 (run_menu_entry): Ignore empty command lines.
53958 (print_message): Added a new argument EDIT. If EDIT is true,
53959 print a different message.
53960 (init_page): Likewise.
53961 (edit_menu_entry): New function. Not implemented yet.
53962
53963 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53964
53965 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53966 can be loaded from normal mode.
53967
53968 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53969 `multiboot.mod'.
53970 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53971 (multiboot_mod_CFLAGS): New variables.
53972 * loader/i386/pc/linux_normal.c: New file.
53973 * loader/i386/pc/multiboot_normal.c: Likewise.
53974
53975 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53976 attribute `unused'.
53977
53978 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53979 `fdiro' to read the mode information from instead of `diro'.
53980
53981 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53982 looking up a symlink.
53983
53984 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53985 macro.
53986 * normal/command.c (grub_command_execute): Don't parse the
53987 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53988 flags of the command.
53989
53990 * normal/menu.c (grub_menu_run): Fix typo.
53991
53992 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53993
53994 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53995
53996 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53997 `y + 1' instead of `y - 1'.
53998
53999 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54000
54001 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54002
54003 From Hollis Blanchard <hollis@penguinppc.org>:
54004 * kern/misc.c (memmove): New alias for grub_memmove.
54005 (memcmp): New alias for grub_memcmp.
54006 (memset): New alias for grub_memset.
54007 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54008 Change "int handle" to "grub_ieee1275_phandle_t handle".
54009 * include/grub/powerpc/ieee1275/ieee1275.h
54010 (grub_ieee1275_get_property): Likewise.
54011
54012 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54013
54014 Added normal mode command `chainloader' as module chain.mod, which
54015 depends on normal.mod and _chain.mod.
54016
54017 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54018 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54019 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54020 Deleted prototype.
54021 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54022 but arguments parsing moved to ...
54023 (grub_chainloader_cmd): ... here. New function.
54024 * include/grub/i386/pc/chainloader.h: New file.
54025 * loader/i386/pc/chainloader_normal.c: Likewise.
54026
54027 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54028
54029 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54030 (grub_mkimage_LDFLAGS): Likewise.
54031 (grub_emu_SOURCES): Likewise.
54032 (kernel_img_HEADERS): Added fshelp.h.
54033 * fs/ext2.c: Include <grub/fshelp.h>.
54034 (FILETYPE_REG): New macro.
54035 (FILETYPE_INO_REG): Likewise.
54036 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54037 Changed all users.
54038 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54039 all users.
54040 (grub_fshelp_node): New struct.
54041 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54042 to a pointer.
54043 (grub_ext2_get_file_block): Removed function.
54044 (grub_ext2_read_block): New function.
54045 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54046 This function was written.
54047 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54048 (grub_ext2_find_file): Removed function.
54049 (grub_ext2_read_symlink): New function.
54050 (grub_ext2_iterate_dir): Likewise.
54051 (grub_ext2_open): Rewritten.
54052 (grub_ext2_dir): Rewritten.
54053 * include/grub/fshelp.h: New file.
54054 * fs/fshelp.c: Likewise.
54055
54056 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54057
54058 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54059 (print_message): Add a missing newline.
54060 (run_menu): Added timeout support.
54061 (run_menu_entry): New local function.
54062 (grub_menu_run): Added support for booting.
54063
54064 * kern/loader.c (grub_loader_is_loaded): New function.
54065
54066 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54067 (grub_get_rtc): Exported.
54068
54069 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54070 (grub_get_rtc): Exported.
54071
54072 * include/grub/normal.h (struct grub_command_list): Remove
54073 constant from the member `command'.
54074
54075 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54076
54077 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54078
54079 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54080
54081 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54082
54083 Add support for the JFS filesystem.
54084
54085 * fs/jfs.c: New file.
54086 * include/grub/fs.h (grub_jfs_init): New prototype.
54087 (grub_jfs_fini): New prototype.
54088 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54089 (grub_emu_SOURCES): Likewise.
54090 (pkgdata_MODULES): Add jfs.mod.
54091 (jfs_mod_SOURCES): New variable.
54092 (jfs_mod_CFLAGS): Likewise.
54093 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54094 (grubof_SOURCES): Likewise.
54095 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54096
54097 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54098 endian to the host endian.
54099 (grub_fat_utf16_to_utf8): Move function from there...
54100 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54101 the endianness of the source string anymore.
54102 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54103
54104 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54105
54106 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54107 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54108 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54109 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54110
54111 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54112 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54113 for `node_found' and `it_dir'.
54114 (grub_hfs_dir): Add prototype for `dir_hook'.
54115
54116 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54117 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54118 and `indir32' to silence a gcc warning.
54119
54120 * include/grub/fs.h (grub_hfs_init): New prototype.
54121 (grub_hfs_fini): Likewise.
54122
54123
54124 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54125
54126 Each disk device has its own id now. This is useful to make use
54127 of multiple disk devices.
54128
54129 * include/grub/disk.h (grub_disk_dev_id): New enum.
54130 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54131 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54132
54133 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54134 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54135
54136 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54137 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54138
54139 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54140 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54141
54142 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54143 "id" which is used by the cache manager.
54144
54145 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54146 of just "GRUB".
54147
54148 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54149
54150 * fs/hfs.c: New file.
54151 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54152 (grub_emu_SOURCES): Likewise.
54153 (pkgdata_MODULES): Add hfs.mod.
54154 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54155 (grubof_SOURCES): Likewise.
54156 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54157
54158 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54159 * kern/misc.c (grub_strncasecmp): Add function.
54160
54161 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54162
54163 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54164 with parentheses.
54165
54166 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54167 (grub_ext2_dir): In case the directory entry type is unknown, read
54168 it from the inode.
54169
54170 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54171
54172 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54173 grub_load_linux instead of grub_rescue_cmd_linux as second
54174 argument of grub_rescue_register_command.
54175
54176 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54177
54178 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54179
54180 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54181 function.
54182 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54183 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54184 `loader/powerpc/ieee1275/linux.c',
54185 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54186 * include/grub/powerpc/ieee1275/ieee1275.h
54187 (grub_ieee1275_release): New prototype.
54188 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54189 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54190 normal, boot, linux and linux_normal.
54191 * loader/powerpc/ieee1275/linux.c: New file.
54192 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54193
54194 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54195
54196 * normal/arg.c (grub_arg_parse): Correct error handling after
54197 reallocating the argumentlist (check if `argl' is not null instead
54198 of checking if `args' is not null).
54199 * kern/mm.c (grub_realloc): Return the same pointer when using the
54200 same region, instead of returning the header address.
54201
54202 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54203
54204 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54205 one block instead of two when looking for the initial partition.
54206 (grub_partition_probe): Initialize the local variable `p' with 0.
54207 Use base 10 for the grub_strtoul call.
54208 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54209 need for one local variable.
54210 (grub_strtoul): Don't add the new value to `num', instead of that
54211 just assign it.
54212
54213 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54214
54215 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54216 (pxeboot_img_SOURCES): New variable.
54217 (pxeboot_img_ASFLAGS): Likewise.
54218 (pxeboot_img_LDFLAGS): Likewise.
54219 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54220 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54221 <lode_leroy@hotmail.com>.
54222
54223 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54224
54225 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54226 there was no input.
54227
54228 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54229
54230 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54231 the history buffer logic.
54232
54233 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54234
54235 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54236 (FILETYPE_INO_SYMLINK): New macros.
54237 (grub_ext2_find_file): Check if the node is a directory using the
54238 inode stat information instead of using the filetype in the
54239 dirent. Exclude the first character of an absolute symlink.
54240 (grub_ext2_dir): Mask out the filetype part of the mode member of
54241 the inode.
54242
54243 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54244
54245 Add support for UFS version 1 and 2. Add support for the minix
54246 filesystem version 1 and 2, both the variants with 14 and 30 long
54247 filenames.
54248
54249 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54250 fs/minix.c.
54251 (grub_emu_SOURCES): Likewise.
54252 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54253 (ufs_mod_SOURCES): New variable.
54254 (ufs_mod_CFLAGS): Likewise.
54255 (minix_mod_SOURCES): Likewise.
54256 (minix_mod_CFLAGS): Likewise.
54257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54258 fs/minix.c.
54259 (grubof_SOURCES): Likewise.
54260 * fs/ufs.c: New file.
54261 * fs/minix.c: New file.
54262 * include/grub/fs.h (grub_ufs_init): New prototype.
54263 (grub_ufs_fini): Likewise.
54264 (grub_minix_init): Likewise.
54265 (grub_minix_fini): Likewise.
54266 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54267 minix fs.
54268
54269 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54270
54271 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54272 commands/ls.c, commands/terminal.c, commands/boot.c,
54273 commands/cmp.c and commands/cat.c.
54274 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54275
54276 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54277 "env.h"
54278
54279 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54280
54281 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54282 and grub_, respectively. Because the conversion is trivial and
54283 mechanical, I omit the details here. Please refer to the CVS
54284 if you need more information.
54285
54286 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54287
54288 * include/pupa: Renamed to ...
54289 * include/grub: ... this.
54290 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54291 * util/i386/pc/grub-mkimage.c: ... this.
54292 * util/i386/pc/pupa-setup.c: Renamed to ...
54293 * util/i386/pc/grub-setup.c: ... this.
54294 * util/pupa-emu.c: Renamed to ...
54295 * util/grub-emu.c: ... this.
54296
54297 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54298
54299 Add support for the newworld apple macintosh (PPC). This has been
54300 tested on the powerbook 2000 only. It only adds support for
54301 generic ieee1275 functions, console and disk support. This should
54302 be easy to port to other architectures with support for Open
54303 Firmware.
54304
54305 * configure.ac: Accept the powerpc as host_cpu. In the case of
54306 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54307 specific tests are only executed while building for the i386.
54308 Inverse test for crosscompile.
54309 * genmk.rb (Utility): Allow assembler files.
54310 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54311 * conf/powerpc-ieee1275.rmk: New file.
54312 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54313 * disk/powerpc/ieee1275/partition.c: Likewise.
54314 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54315 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54316 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54317 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54318 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54319 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54320 * include/pupa/powerpc/ieee1275/loader.h
54321 * include/pupa/powerpc/setjmp.h: Likewise.
54322 * include/pupa/powerpc/types.h: Likewise.
54323 * kern/powerpc/ieee1275/init.c: Likewise.
54324 * kern/powerpc/ieee1275/openfw.c: Likewise.
54325 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54326
54327 These files were written by Johan Rydberg
54328 (jrydberg@night.trouble.net) and I only modified them slightly.
54329
54330 * boot/powerpc/ieee1275/cmain.c: New file.
54331 * boot/powerpc/ieee1275/crt0.S: Likewise.
54332 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54333 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54334
54335 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54336
54337 * Makefile.in: Update copyright.
54338 * genmodsrc.sh: Likewise.
54339 * gensymlist.sh: Likewise.
54340 * term/i386/pc/vga.c: Indent correctly.
54341
54342 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54343 bugreporting address.
54344 * util/i386/pc/pupa-setup.c (usage): Likewise,
54345 (main): Call pupa_ext2_init and pupa_ext2_fini.
54346
54347 * fs/fat.c (log2): Renamed to ...
54348 (fat_log2): ... this.
54349 All callers changed.
54350 * kern/misc.c (memcpy): Alias to pupa_memmove.
54351 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54352 lvalue cast.
54353 * util/console.c (pupa_ncurses_fini): Return 0.
54354
54355 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54356 Move fail label here.
54357 [__GNU__]: Don't warn when using stat.
54358 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54359 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54360 long int. Use strtol instead of strtoul.
54361
54362 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54363
54364 * commands/boot.c: New file.
54365 * commands/cat.c: Likewise.
54366 * commands/cmp.c: Likewise.
54367 * commands/ls.c: Likewise.
54368 * commands/terminal.c: Likewise.
54369 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54370 (pupa_register_command): Changed interface to match the new
54371 argument parser.
54372 (pupa_command_execute): Changed (almost rewritten) so it uses
54373 pupa_split_command. Added support for setting variables using the
54374 syntax `foo=bar'.
54375 (rescue_command): Changed to work with the new argument parser.
54376 (terminal_command): Moved from here to commands/terminal.c.
54377 (set_command): New function.
54378 (unset_command): New function.
54379 (insmod_command): New function.
54380 (rmmod_command): New function.
54381 (lsmod_command): New function.
54382 (pupa_command_init): Don't initialize the command terminal
54383 anymore. Initialize the commands set, unset, insmod, rmmod and
54384 lsmod.
54385 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54386 (kernel_img_HEADERS): Add arg.h and env.h.
54387 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54388 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54389 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54390 normal/arg.c.
54391 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54392 terminal.mod.
54393 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54394 (boot_mod_SOURCES): New variable.
54395 (terminal_mod_SOURCES): Likewise.
54396 (ls_mod_SOURCES): Likewise.
54397 (cmp_mod_SOURCES): Likewise.
54398 (cat_mod_SOURCES): Likewise.
54399
54400 * normal/arg.c: New file.
54401 * kern/env.c: Likewise.
54402 * include/pupa/arg.h: Likewise.
54403 * include/pupa/env.h: Likewise.
54404 * font/manager.c (font_command): Changed to match argument parsing
54405 interface changes.
54406 (PUPA_MOD_INIT): Likewise.
54407 * hello/hello.c (pupa_cmd_hello): Likewise.
54408 (PUPA_MOD_INIT): Likewise.
54409 * include/pupa/disk.h: Include <pupa/device.h>.
54410 (pupa_print_partinfo): New prototype.
54411 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54412 (pupa_dl_get_prefix): Likewise.
54413 * include/pupa/misc.h: Include <pupa/err.h>.
54414 (pupa_isgraph): New prototype.
54415 (pupa_isdigit): Likewise.
54416 (pupa_split_cmdline): Likewise.
54417 * include/pupa/normal.h: Include <pupa/arg.h>.
54418 (pupa_command): Changed the prototype of the member `func' to
54419 match the argument parsing interface. Added member `options'.
54420 (pupa_register_command): Updated to match function.
54421 (pupa_arg_parse): New prototype.
54422 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54423 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54424 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54425 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54426 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54427 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54428 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54429 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54430 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54431 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54432 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54433 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54434 * kern/disk.c: Include <pupa/file.h>.
54435 (pupa_print_partinfo): New function.
54436 * kern/dl.c: Include <pupa/env.h>.
54437 (pupa_dl_dir): Variable removed.
54438 (pupa_dl_load): Use the environment variable `prefix' instead of
54439 the variable pupa_dl_dir.
54440 (pupa_dl_set_prefix): Function removed.
54441 (pupa_dl_get_prefix): Likewise.
54442 * kern/i386/pc/init.c: Include <pupa/env.h>.
54443 (pupa_machine_init): Use the environment variable `prefix' instead of
54444 using pupa_dl_set_prefix to set the prefix.
54445 * kern/main.c: Include <pupa/env.h>.
54446 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54447 using pupa_dl_get_prefix to get the prefix.
54448 * kern/misc.c: Include <pupa/env.h>.
54449 (pupa_isdigit): New function.
54450 (pupa_isgraph): Likewise.
54451 (pupa_ftoa): Likewise.
54452 (pupa_vsprintf): Added support for printing values of the type
54453 `double'. Make it possible to format variable output when using
54454 formatting like `%1.2%f'.
54455 (pupa_split_cmdline): New function.
54456 * kern/rescue.c: Include <pupa/env.h>.
54457 (next_word): Removed function.
54458 (pupa_rescue_cmd_prefix): Likewise.
54459 (pupa_rescue_cmd_set): New function.
54460 (pupa_rescue_cmd_unset): New function.
54461 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54462 split the command line instead of splitting it here. Added
54463 support for setting variables using the syntax `foo=bar'. Don't
54464 initialize the prefix command anymore. Initialized the set and
54465 unset commands.
54466 * normal/cmdline.c: Include <pupa/env.h>.
54467 (pupa_tab_complete): Added prototypes for print_simple_completion,
54468 print_partition_completion, add_completion, iterate_commands,
54469 iterate_dev, iterate_part and iterate_dir. Moved code to print
54470 partition information from here to kern/disk.c.
54471 (pupa_cmdline_run): Don't check if the function exists anymore.
54472 * normal/main.c: Include <pupa/env.h>.
54473 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54474 instead of using pupa_dl_get_prefix to get the prefix.
54475 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54476 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54477 warning.
54478 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54479 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54480 ((unused))' to silence a gcc warning.
54481 (pupa_vga_setcolor): Likewise.
54482 (debug_command): Changed to match argument parsing
54483 interface changes.
54484 * util/pupa-emu.c: Include <pupa/env.h>.
54485 (options): Added 0's for unused fields to silence a gcc warning.
54486 (argp): Likewise.
54487 (main): Use the environment variable `prefix' instead of using
54488 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54489 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54490 and terminal.
54491
54492 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54493 * util/misc.c: Include <malloc.h>.
54494 (pupa_malloc): Rewritten so errors are correctly reported.
54495 (pupa_realloc): Likewise.
54496 (pupa_memalign): Likewise.
54497 (pupa_mm_init_region): Declare unused variables with
54498 `__attribute__ ((unused))' to silence a gcc warning.
54499 * normal/i386/setjmp.S: Remove tab at the end of the file to
54500 silence a gcc warning.
54501 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54502 variables with `__attribute__ ((unused))' to silence a gcc
54503 warning.
54504 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54505 local variable i unsigned to silence a gcc warning.
54506
54507 * kern/term.c: Include <pupa/misc.h>.
54508 (pupa_more_lines): New variable.
54509 (pupa_more): Likewise.
54510 (pupa_putcode): When the pager is active pause at the end of every
54511 screen.
54512 (pupa_set_more): New function.
54513 * include/pupa/term.h (pupa_set_more): New prototype.
54514
54515
54516 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54517
54518 Now this project is GRUB 2 rather than PUPA. The location of
54519 the CVS repository was moved to GRUB's.
54520
54521 * configure.ac: Use bug-grub as the reporting address.
54522 Use GRUB instead of PUPA.
54523 Change the version number to 1.90.
54524
54525 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54526
54527 * genkernsyms.sh: Updated copyright information.
54528 * genmk.rb: Likewise.
54529 * genmodsrc.sh: Likewise.
54530 * gensymlist.sh: Likewise.
54531 * boot/i386/pc/boot.S: Likewise.
54532 * boot/i386/pc/diskboot.S: Likewise.
54533 * disk/i386/pc/biosdisk.c: Likewise.
54534 * disk/i386/pc/partition.c: Likewise.
54535 * font/manager.c: Likewise.
54536 * fs/ext2.c: Likewise.
54537 * fs/fat.c: Likewise.
54538 * include/pupa/boot.h: Likewise.
54539 * include/pupa/device.h: Likewise.
54540 * include/pupa/disk.h: Likewise.
54541 * include/pupa/dl.h: Likewise.
54542 * include/pupa/elf.h: Likewise.
54543 * include/pupa/err.h: Likewise.
54544 * include/pupa/file.h: Likewise.
54545 * include/pupa/font.h: Likewise.
54546 * include/pupa/fs.h: Likewise.
54547 * include/pupa/kernel.h: Likewise.
54548 * include/pupa/loader.h: Likewise.
54549 * include/pupa/misc.h: Likewise.
54550 * include/pupa/mm.h: Likewise.
54551 * include/pupa/net.h: Likewise.
54552 * include/pupa/normal.h: Likewise.
54553 * include/pupa/rescue.h: Likewise.
54554 * include/pupa/setjmp.h: Likewise.
54555 * include/pupa/symbol.h: Likewise.
54556 * include/pupa/term.h: Likewise.
54557 * include/pupa/types.h: Likewise.
54558 * include/pupa/i386/setjmp.h: Likewise.
54559 * include/pupa/i386/types.h: Likewise.
54560 * include/pupa/i386/pc/biosdisk.h: Likewise.
54561 * include/pupa/i386/pc/boot.h: Likewise.
54562 * include/pupa/i386/pc/console.h: Likewise.
54563 * include/pupa/i386/pc/init.h: Likewise.
54564 * include/pupa/i386/pc/kernel.h: Likewise.
54565 * include/pupa/i386/pc/linux.h: Likewise.
54566 * include/pupa/i386/pc/loader.h: Likewise.
54567 * include/pupa/i386/pc/memory.h: Likewise.
54568 * include/pupa/i386/pc/multiboot.h: Likewise.
54569 * include/pupa/i386/pc/partition.h: Likewise.
54570 * include/pupa/i386/pc/time.h: Likewise.
54571 * include/pupa/i386/pc/vga.h: Likewise.
54572 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54573 * include/pupa/util/getroot.h: Likewise.
54574 * include/pupa/util/misc.h: Likewise.
54575 * include/pupa/util/resolve.h: Likewise.
54576 * kern/device.c: Likewise.
54577 * kern/disk.c: Likewise.
54578 * kern/dl.c: Likewise.
54579 * kern/err.c: Likewise.
54580 * kern/file.c: Likewise.
54581 * kern/fs.c: Likewise.
54582 * kern/loader.c: Likewise.
54583 * kern/main.c: Likewise.
54584 * kern/misc.c: Likewise.
54585 * kern/mm.c: Likewise.
54586 * kern/rescue.c: Likewise.
54587 * kern/term.c: Likewise.
54588 * kern/i386/dl.c: Likewise.
54589 * kern/i386/pc/init.c: Likewise.
54590 * kern/i386/pc/lzo1x.S: Likewise.
54591 * kern/i386/pc/startup.S: Likewise.
54592 * loader/i386/pc/chainloader.c: Likewise.
54593 * loader/i386/pc/linux.c: Likewise.
54594 * loader/i386/pc/multiboot.c: Likewise.
54595 * normal/cmdline.c: Likewise.
54596 * normal/command.c: Likewise.
54597 * normal/main.c: Likewise.
54598 * normal/menu.c: Likewise.
54599 * normal/i386/setjmp.S: Likewise.
54600 * term/i386/pc/console.c: Likewise.
54601 * term/i386/pc/vga.c: Likewise.
54602 * util/console.c: Likewise.
54603 * util/genmoddep.c: Likewise.
54604 * util/misc.c: Likewise.
54605 * util/pupa-emu.c: Likewise.
54606 * util/resolve.c: Likewise.
54607 * util/unifont2pff.rb: Likewise.
54608 * util/i386/pc/biosdisk.c: Likewise.
54609 * util/i386/pc/getroot.c: Likewise.
54610 * util/i386/pc/pupa-mkimage.c: Likewise.
54611 * util/i386/pc/pupa-setup.c: Likewise.
54612
54613 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54614
54615 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54616 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54617 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54618 reading and reset it after reading.
54619 (pupa_ext2_close): Return PUPA_ERR_NONE.
54620
54621 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54622 Correct value.
54623 (struct linux_kernel_header): Add kernel_version and
54624 initrd_addr_max.
54625 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54626 pupa_file_read succeeds.
54627 (pupa_rescue_cmd_initrd): Implement.
54628
54629 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54630
54631 * fs/ext2.c (pupa_ext2_label): New function.
54632 (pupa_ext2_fs): Added label.
54633 * fs/fat.c (pupa_fat_label): New function.
54634 (pupa_fat_fs): Added label.
54635 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54636
54637 * kern/misc.c (pupa_strndup): New function.
54638 * include/pupa/misc.h (pupa_strndup): New prototype.
54639
54640 * include/pupa/normal.h: Include <pupa/err.h>.
54641 (pupa_set_history): New prototype.
54642 (pupa_iterate_commands): New prototype.
54643 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54644 <pupa/disk.h>, <pupa/file.h>.
54645 (hist_size): New variable.
54646 (hist_lines): Likewise.
54647 (hist_end): Likewise.
54648 (hist_used): Likewise.
54649 (pupa_set_history): New function.
54650 (pupa_history_get): Likewise.
54651 (pupa_history_add): Likewise.
54652 (pupa_history_replace): Likewise.
54653 (pupa_tab_complete): Likewise.
54654 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54655 completion shows partitionnames while completing partitions, this
54656 feature was suggested by Jeff Bailey.
54657 * normal/command.c (pupa_iterate_commands): New function.
54658 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54659 (pupa_normal_init): Initialize history buffer.
54660 (PUPA_MOD_INIT): Likewise.
54661 (pupa_normal_fini): Free the history buffer.
54662 (PUPA_MOD_FINI): Likewise.
54663
54664 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54665 key.
54666
54667 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54668 * configure.ac [i386]: Check for regparam bug.
54669 (NESTED_FUNC_ATTR) [! i386]: Defined.
54670
54671 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54672
54673 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54674 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54675 (pupa_emu_SOURCES): New variable.
54676 (pupa_emu_LDFLAGS): Likewise.
54677 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54678 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54679 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54680 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54681 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54682 (pupa_jmp_buf): New typedef.
54683 (pupa_setjmp) [PUPA_UTIL]: New macro.
54684 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54685 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54686 (pupa_refresh): New prototype.
54687 * include/pupa/util/getroot.h: New file.
54688 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54689 it.
54690 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54691 (pupa_rescue_cmd_cat): Likewise.
54692 (pupa_rescue_cmd_ls): Likewise.
54693 (pupa_rescue_cmd_testload): Likewise.
54694 (pupa_rescue_cmd_lsmod): Likewise.
54695 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54696 * normal/menu.c (run_menu): Likewise.
54697 * kern/term.c (pupa_cls): Likewise.
54698 (pupa_refresh): New function.
54699 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54700 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54701 * util/console.c: New file.
54702
54703 * util/i386/pc/getroot.c: New file.
54704 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54705 (pupa_putchar): New function.
54706 (pupa_refresh): Likewise.
54707 (xgetcwd): Function moved to ...
54708 (strip_extra_slashes): Likewise.
54709 (get_prefix): Likewise.
54710 * util/i386/pc/getroot.c: ... here.
54711 (find_root_device): Function moved and renamed to...
54712 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54713 Changed all callers.
54714 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54715 and renamed to...
54716 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54717 Changed all callers.
54718 * util/misc.c (pupa_memalign): New function.
54719 (pupa_mm_init_region): Likewise.
54720 (pupa_register_exported_symbols): Likewise.
54721 (pupa_putchar): Function removed.
54722 * util/pupa-emu.c: New file.
54723
54724 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54725
54726 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54727 (_multiboot_mod_SOURCES): New variable.
54728 (_multiboot_mod_CFLAGS): Likewise.
54729 * loader/i386/pc/multiboot.c: New file.
54730 * include/pupa/i386/pc/multiboot.h: Likewise.
54731 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54732 (pupa_multiboot_real_boot): New function.
54733 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54734 (pupa_multiboot_real_boot): New prototype.
54735 (pupa_rescue_cmd_multiboot): Likewise
54736 (pupa_rescue_cmd_module): Likewise.
54737
54738 * kern/loader.c (pupa_loader_set): Continue when
54739 pupa_loader_unload_func() fails.
54740 (pupa_loader_unset): New function.
54741 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54742
54743 * kern/misc.c (pupa_stpcpy): New function.
54744 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54745
54746 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54747
54748 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54749 for available extensions.
54750
54751 * include/pupa/i386/pc/time.h: New file.
54752 * kern/disk.c: Include <pupa/machine/time.h>.
54753 (PUPA_CACHE_TIMEOUT): New macro.
54754 (pupa_last_time): New variable.
54755 (pupa_disk_open): Flush the cache when there was a timeout.
54756 (pupa_disk_close): Reset the timer.
54757 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54758 pupa_currticks.
54759 * util/misc.c: Include <sys/times.h>
54760 (pupa_get_rtc): New function.
54761
54762 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54763
54764 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54765 as blocks.
54766 (pupa_ext2_get_file_block): Use blocks member.
54767
54768 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54769 first block. Return -1 instead of pupa_errno on error.
54770
54771 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54772
54773 * README: In the pupa-mkimage example use _chain instead of chain
54774 and ext2 instead of fat.
54775 * TODO: Replace ext2fs with jfs as an example. Add an item for
54776 adding journal playback for ext2fs.
54777 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54778 (pkgdata_MODULES): Added ext2.mod.
54779 (ext2_mod_SOURCES): New variable.
54780 (ext2_mod_CFLAGS): Likewise.
54781 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54782 * include/pupa/misc.h (pupa_strncpy): New prototype.
54783 (pupa_strcat): Likewise.
54784 (pupa_strncmp): Likewise.
54785 * kern/misc.c (pupa_strcat): Enable function.
54786 (pupa_strncpy): New function.
54787 (pupa_strncmp): Likewise.
54788 * fs/ext2.c: New file.
54789
54790 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54791 when the read failed before retrying.
54792 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54793 (_FILE_OFFSET_BITS): Likewise.
54794 * configure.ac: Added AC_SYS_LARGEFILE.
54795
54796 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54797
54798 * genmk.rb (PModule#rule): Make sure to get only symbol names
54799 from the output of nm.
54800 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54801
54802 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54803
54804 I forgot to check in these changes for a long time. This adds
54805 incomplete support for VGA console, and this is still very
54806 buggy. Also, a lot of consideration is required for I18N,
54807 UNICODE, and VGA font issues. Therefore, assume that this is
54808 such that "better than nothing".
54809
54810 * font/manager.c: New file.
54811 * include/pupa/font.h: Likewise.
54812 * include/pupa/i386/pc/vga.h: Likewise.
54813 * term/i386/pc/vga.c: Likewise.
54814 * util/unifont2pff.rb: Likewise.
54815
54816 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54817 (pkgdata_MODULES): Added vga.mod and font.mod.
54818 (vga_mod_SOURCES): New variables.
54819 (vga_mod_CFLAGS): Likewise.
54820 (font_mod_SOURCES): Likewise.
54821 (font_mod_CFLAGS): Likewise.
54822
54823 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54824
54825 * include/pupa/term.h: Include pupa/err.h.
54826 (struct pupa_term): Added init and fini.
54827 Changed the argument of putchar to pupa_uint32_t.
54828
54829 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54830 (pupa_console_real_putchar): New prototype.
54831 (pupa_console_putchar): Removed.
54832 (pupa_console_checkkey): Exported.
54833 (pupa_console_getkey): Likewise.
54834
54835 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54836 characters.
54837
54838 * kern/term.c (pupa_term_set_current): Rewritten.
54839 (pupa_putchar): Likewise.
54840 (pupa_putcode): New function.
54841
54842 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54843 (pupa_console_real_putchar): ... this.
54844 (pupa_vga_set_mode): New function.
54845 (pupa_vga_get_font): Likewise.
54846
54847 * normal/command.c: Include pupa/term.h.
54848 (terminal_command): New function.
54849 (pupa_command_init): Register the command "terminal".
54850
54851 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54852 (DISP_UP): Likewise.
54853 (DISP_RIGHT): Likewise.
54854 (DISP_DOWN): Likewise.
54855 (DISP_HLINE): Likewise.
54856 (DISP_VLINE): Likewise.
54857 (DISP_UL): Likewise.
54858 (DISP_UR): Likewise.
54859 (DISP_LL): Likewise.
54860 (DISP_LR): Likewise.
54861
54862 * term/i386/pc/console.c (pupa_console_putchar): New function.
54863
54864 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54865
54866 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54867 FIX. Reverse the path_list.
54868
54869 * include/pupa/normal.h: Export pupa_register_command and
54870 pupa_unregister_command.
54871
54872 * hello/hello.c (pupa_cmd_hello): New module.
54873 * conf/i386-pc.rmk: Added hello.mod.
54874
54875 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54876
54877 * kern/i386/pc/lzo1x.S: New file.
54878
54879 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54880 (compress_kernel): New variable.
54881 (generate_image): Heavily modified to support compressing a
54882 large part of the core image.
54883
54884 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54885 leak.
54886 (pupa_util_load_image): New function.
54887
54888 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54889 (pupa_compressed_size): New variable.
54890 (codestart): Enable Gate A20 here.
54891 Decompress the compressed part of the core image.
54892 Rearrange the code to put functions and variables which are
54893 required for initialization in the non-compressed part.
54894 Include lzo1x.S.
54895
54896 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54897 here.
54898
54899 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54900
54901 * include/pupa/i386/pc/kernel.h
54902 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54903 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54904 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54905 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54906 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54907
54908 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54909
54910 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54911 (Utility#rule): Likewise.
54912
54913 * configure.ac: Check if LZO is available.
54914
54915 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54916
54917 * include/pupa/normal.h: New file.
54918 * include/pupa/setjmp.h: Likewise.
54919 * include/pupa/i386/setjmp.h: Likewise.
54920 * normal/cmdline.c: Likewise.
54921 * normal/command.c: Likewise.
54922 * normal/main.c: Likewise.
54923 * normal/menu.c: Likewise.
54924 * normal/i386/setjmp.S: Likewise.
54925
54926 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54927 (pupa_rescue_cmd_initrd): Likewise.
54928
54929 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54930 Likewise.
54931
54932 * kern/i386/pc/startup.S (translation_table): New variable.
54933 (translate_keycode): New function.
54934 (pupa_console_getkey): Call translate_keycode.
54935
54936 * kern/rescue.c (attempt_normal_mode): New function.
54937 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54938 it failed, print a message.
54939
54940 * kern/mm.c (pupa_real_malloc): Print more information when a
54941 free magic is broken.
54942 (pupa_free): If the first free header is not free actually, set
54943 it to P.
54944
54945 * kern/main.c (pupa_load_normal_mode): Just load the module
54946 "normal".
54947 (pupa_main): Don't print the message
54948 "Entering into rescue mode..." here.
54949
54950 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54951 Declared.
54952 (pupa_rescue_cmd_initrd): Likewise.
54953 (pupa_rescue_cmd_initrd): Likewise.
54954
54955 * include/pupa/symbol.h (FUNCTION): Specify the type.
54956 (VARIABLE): Likewise.
54957
54958 * include/pupa/err.h (pupa_err_t): Added
54959 PUPA_ERR_UNKNOWN_COMMAND.
54960
54961 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54962 (pupa_dl_get_prefix): Likewise.
54963
54964 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54965 Added _chain.mod and _linux.mod instead of chain.mod and
54966 linux.mod.
54967 (chain_mod_SOURCES): Renamed to ...
54968 (_chain_mod_SOURCES): ... this.
54969 (chain_mod_CFLAGS): Renamed to ...
54970 (_chain_mod_CFLAGS): ... this.
54971 (linux_mod_SOURCES): Renamed to ...
54972 (_linux_mod_SOURCES): ... this.
54973 (linux_mod_CFLAGS): Renamed to ...
54974 (_linux_mod_CFLAGS): ... this.
54975 (normal_mod_SOURCES): New variable.
54976 (normal_mod_CFLAGS): Likewise.
54977 (normal_mod_ASFLAGS): Likewise.
54978
54979 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54980
54981 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54982 possible.
54983
54984 * kern/dl.c (pupa_dl_ref): Refer depending modules
54985 recursively.
54986 (pupa_dl_unref): Unrefer depending modules recursively.
54987 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54988 a module is unloaded before one depending on that module is
54989 unloaded.
54990 (pupa_dl_unload): Unload depending modules explicitly,
54991 if possible.
54992
54993 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54994
54995 * include/pupa/i386/pc/linux.h: New file.
54996 * loader/i386/pc/linux.c: Likewise.
54997
54998 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54999 Removed.
55000 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55001 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55002 of PUPA_CHAINLOADER_BOOT_SECTOR.
55003
55004 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55005 (pupa_linux_prot_size): New variable.
55006 (pupa_linux_tmp_addr): Likewise.
55007 (pupa_linux_real_addr): Likewise.
55008 (pupa_linux_boot_zimage): New function.
55009 (pupa_linux_boot_bzimage): Likewise.
55010
55011 * kern/i386/pc/init.c (struct mem_region): New structure.
55012 (MAX_REGIONS): New macro.
55013 (mem_regions): New variable.
55014 (num_regions): Likewise.
55015 (pupa_os_area_addr): Likewise.
55016 (pupa_os_area_size): Likewise.
55017 (pupa_lower_mem): Likewise.
55018 (pupa_upper_mem): Likewise.
55019 (add_mem_region): New function.
55020 (compact_mem_regions): Likewise.
55021 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55022 the size of the conventional memory and that of so-called upper
55023 memory (before the first memory hole).
55024 Instead of adding each found region to free memory, use
55025 add_mem_region and add them after removing overlaps.
55026 Also, add only 1/4 of the upper memory to free memory. The rest
55027 is used for loading OS images. Maybe this is ad hoc, but this
55028 makes it much easier to relocate OS images when booting.
55029
55030 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55031 (pupa_enter_rescue_mode): Don't register initrd and module.
55032
55033 * kern/mm.c: Include pupa/dl.h.
55034
55035 * kern/main.c: Include pupa/file.h and pupa/device.h.
55036
55037 * kern/loader.c (pupa_loader_load_module_func): Removed.
55038 (pupa_loader_load_module): Likewise.
55039
55040 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55041 ``.o''.
55042
55043 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55044 (pupa_linux_tmp_addr): Likewise.
55045 (pupa_linux_real_addr): Likewise.
55046 (pupa_linux_boot_zimage): Likewise.
55047 (pupa_linux_boot_bzimage): Likewise.
55048
55049 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55050 (pupa_upper_mem): Likewise.
55051 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55052 module is too dangerous.
55053
55054 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55055 (pupa_os_area_size): Likewise.
55056 (pupa_loader_set): Remove the first argument. Loader doesn't
55057 manage modules or initrd any longer.
55058 (pupa_loader_load_module): Removed.
55059
55060 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55061 (linux_mod_SOURCES): New variable.
55062 (linux_mod_CFLAGS): Likewise.
55063
55064 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55065
55066 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55067 the length of a blocklist correctly.
55068
55069 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55070 Use ioctl only if the OS file is a block device.
55071 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55072 not very useful for normal files.
55073
55074 * kern/main.c (pupa_set_root_dev): New function.
55075 (pupa_load_normal_mode): Likewise.
55076 (pupa_main): Call those above.
55077
55078 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55079 pupa_uint16_t.
55080
55081 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55082
55083 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55084
55085 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55086 (setup): Configure the installed partition information and the
55087 dl prefix.
55088
55089 * loader/i386/pc/chainloader.c (my_mod): New variable.
55090 (pupa_chainloader_unload): New function.
55091 (pupa_rescue_cmd_chainloader): Refer itself.
55092 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55093
55094 * kern/i386/pc/startup.S (install_partition): Removed.
55095 (version_string): Likewise.
55096 (config_file): Likewise.
55097 (pupa_install_dos_part): New variable.
55098 (pupa_install_bsd_part): Likewise.
55099 (pupa_prefix): Likewise.
55100 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55101
55102 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55103 and pupa/misc.h.
55104 (make_install_device): New function.
55105 (pupa_machine_init): Set the dl prefix.
55106
55107 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55108 (buf): Renamed to ...
55109 (linebuf): ... this.
55110 (pupa_rescue_cmd_prefix): New function.
55111 (pupa_rescue_cmd_insmod): Likewise.
55112 (pupa_rescue_cmd_rmmod): Likewise.
55113 (pupa_rescue_cmd_lsmod): Likewise.
55114 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55115 rmmod and lsmod.
55116
55117 * kern/mm.c (pupa_memalign): If failed even after invalidating
55118 disk caches, unload unneeded modules and retry.
55119
55120 * kern/misc.c (pupa_memmove): New function.
55121 (pupa_memcpy): Removed.
55122 (pupa_strcpy): New function.
55123 (pupa_itoa): Made static.
55124
55125 * kern/dl.c (pupa_dl_iterate): New function.
55126 (pupa_dl_ref): Likewise.
55127 (pupa_dl_unref): Likewise.
55128 (pupa_dl_unload): Return if succeeded or not.
55129 (pupa_dl_unload_unneeded): New function.
55130 (pupa_dl_unload_all): Likewise.
55131 (pupa_dl_init): Renamed to ...
55132 (pupa_dl_set_prefix): ... this.
55133 (pupa_dl_get_prefix): New function.
55134
55135 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55136 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55137 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55138 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55139 (pupa_install_dos_part): Declared.
55140 (pupa_install_bsd_part): Likewise.
55141 (pupa_prefix): Likewise.
55142 (pupa_boot_drive): Likewise.
55143
55144 * include/pupa/types.h: Fix a typo.
55145
55146 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55147 pupa_memmove.
55148 (pupa_memmove): Declared.
55149 (pupa_strcpy): Likewise.
55150
55151 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55152 pupa_mod_init takes one argument, its own module.
55153 (pupa_dl_unload_unneeded): Declared.
55154 (pupa_dl_unload_all): Likewise.
55155 (pupa_dl_ref): Likewise.
55156 (pupa_dl_unref): Likewise.
55157 (pupa_dl_iterate): Likewise.
55158 (pupa_dl_init): Renamed to ...
55159 (pupa_dl_set_prefix): ... this.
55160 (pupa_dl_get_prefix): Declared.
55161
55162 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55163 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55164 unloaded.
55165 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55166 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55167
55168 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55169 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55170
55171 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55172
55173 * util/i386/pc/pupa-setup.c (setup): Define the internal
55174 function find_first_partition_start at the top level, because GCC
55175 3.0.x cannot compile internal functions in deeper scopes
55176 correctly.
55177 (find_root_device): Use lstat instead of stat.
55178 Don't follow symbolic links.
55179 Fix the path-constructing code.
55180
55181 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55182 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55183 by a BLKGETSIZE ioctl first, because block devices don't fill
55184 the member st_mode of the structure stat on Linux.
55185 [__linux__] (linux_find_partition): Use a temporary buffer
55186 REAL_DEV for the working space. Copy it to DEV before returning.
55187 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55188 buffer cache consistent.
55189 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55190 strncmp. The previous value was merely wrong.
55191 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55192
55193 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55194 FAT size is 12. The previous value was merely wrong.
55195
55196 * kern/main.c (pupa_main): Don't split the starting message from
55197 newlines.
55198
55199 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55200 LF, because BIOS goes crazy about character attributes in this
55201 case.
55202
55203 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55204
55205 * include/i386/pc/util/biosdisk.h: New file.
55206 * util/i386/pc/biosdisk.c: Likewise.
55207 * util/i386/pc/pupa-setup.c: Likewise.
55208
55209 * Makefile.in (INCLUDE_DISTFILES): Added
55210 include/pupa/i386/pc/util/biosdisk.h.
55211 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55212 directory util/i386/pc.
55213 (install-local): Added a rule for sbin_UTILITIES.
55214 (uninstall): Likewise.
55215
55216 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55217
55218 * util/misc.c (xrealloc): New function.
55219 (pupa_malloc): Likewise.
55220 (pupa_free): Likewise.
55221 (pupa_realloc): Likewise.
55222 (pupa_stop): Likewise.
55223 (pupa_putchar): Likewise.
55224
55225 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55226
55227 * include/pupa/util/misc.h (xrealloc): Declared.
55228
55229 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55230 macro.
55231 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55232 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55233
55234 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55235 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55236
55237 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55238 way should be implemented.
55239 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55240
55241 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55242 the size of NAME for safety.
55243 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55244 0x88.
55245
55246 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55247 (pupa_setup_SOURCES): Likewise.
55248
55249 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55250
55251 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55252
55253 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55254 bunch of pushl's from pusha, because this destroys the return
55255 value.
55256
55257 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55258
55259 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55260 This means that any missing prototypes could be fatal. Also, you
55261 must take care when writing assembly code. See the comments at
55262 the beginning of startup.S, for more details.
55263
55264 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55265 compilation mechanism.
55266 (pupa_chainloader_real_boot): Likewise.
55267 (pupa_biosdisk_rw_int13_extensions): Likewise.
55268 (pupa_biosdisk_rw_standard): Likewise.
55269 (pupa_biosdisk_check_int13_extensions): Likewise.
55270 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55271 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55272 (pupa_get_memsize): Likewise.
55273 (pupa_get_mmap_entry): Likewise.
55274 (pupa_console_putchar): Likewise.
55275 (pupa_console_setcursor): Likewise.
55276 (pupa_getrtsecs): Use pushl instead of push.
55277
55278 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55279 memory instead of the stack for a mmap entry, because some
55280 BIOSes may ignore the maximum size and overflow.
55281
55282 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55283
55284 * genmk.rb (PModule#rule): Compile automatically generated
55285 sources with module-specific CFLAGS as well as other sources.
55286
55287 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55288
55289 * configure.ac: Check ld.
55290 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55291 respectively, before checking endianness and sizes.
55292
55293 * Makefile.in (LD): New variable.
55294
55295 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55296
55297 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55298
55299 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55300
55301 * Changelog: New file.
55302