]> git.proxmox.com Git - grub2.git/blob - ChangeLog
190d19d9b25e9c20c183b433ed2205b062ca35b7
[grub2.git] / ChangeLog
1 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
2
3 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
4 avoid fatal warnings with older gcc (probably before 4.7).
5 * grub-core/loader/arm64/linux.c: Likewise.
6 * grub-core/loader/i386/linux.c: Likewise.
7 * grub-core/loader/i386/pc/linux.c: Likewise.
8 * grub-core/loader/ia64/efi/linux.c: Likewise.
9 * grub-core/loader/mips/linux.c: Likewise.
10 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
11 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
12
13 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
14
15 Fix in-tree --platform=none
16
17 * configure.ac: Only remove include/grub/cpu and
18 include/grub/machine in the --platform=none case, not all of
19 include/grub.
20
21 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
22
23 Add a new "none" platform that only builds utilities
24
25 * configure.ac: Add "none" platform. Default to it for unsupported
26 CPUs rather than stopping with a fatal error. Don't downgrade
27 x86_64-none to i386. Define COND_real_platform Automake conditional
28 if the platform is anything other than "none". Don't do any include
29 directory linking for "none".
30 * Makefile.am: Skip building grub-core and all bootcheck targets if
31 !COND_real_platform.
32 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
33 is defined.
34
35 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
36
37 Use grub_cpu_to_XXX_compile_time for constants.
38
39 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
40
41 The AML parser implements only a small subset of possible AML
42 opcodes. On the Fujitsu Lifebook E744 this and another bug in
43 the parser (incorrect handling of TermArg data types) would lead
44 to the laptop not turning off (_S5 not found).
45
46 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
47 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
48 aren't always simply strings!); Add function to skip TermArgs
49 * include/grub/acpi.h: Add new opcodes
50
51 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
52
53 * grub-core/normal/main.c: Don't drop to rescue console in
54 case of password-protected prompt and no menu entries.
55
56 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
57
58 * grub-core/commands/keylayouts.c: Ignore unknown keys.
59
60 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
61
62 * grub-core/gmodule.pl.in: Accept newer binutils which output
63 empty column rather than 0x0.
64
65 2014-09-21 Michael Chang <mchang@suse.com>
66
67 * grub-core/osdep/unix/config.c: Remove extraneous comma.
68
69 2014-09-21 Peter Jones <pjones@redhat.com>
70
71 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
72 we don't free a random pointer from the stack.
73 * grub-core/loader/arm64/linux.c: Likewise.
74 * grub-core/loader/i386/linux.c: Likewise.
75 * grub-core/loader/i386/pc/linux.c: Likewise.
76 * grub-core/loader/ia64/efi/linux.c: Likewise.
77 * grub-core/loader/mips/linux.c: Likewise.
78 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
79 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
80
81 2014-09-15 Khem Raj <raj.khem@gmail.com>
82
83 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
84 _BSD_SOURCE to avoid warnings under glibc 2.20+.
85
86 2014-09-08 Michael Chang <mchang@suse.com>
87
88 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
89 check; comparing &data->extent against addresses in the region it
90 points to is unpredictable.
91
92 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
93
94 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
95
96 * configure.ac: Remove -m64 from checks for -mcmodel=large and
97 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
98 already in TARGET_CFLAGS at this point, and they produce incorrect
99 results when building for x32.
100 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
101 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
102 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
103 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
104
105 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
106
107 * configure.ac: Remove several unnecessary semicolons.
108
109 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
110
111 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
112 Initialise pend to pacify GCC.
113
114 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
115
116 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
117 gettext_printf).
118
119 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * grub-core/term/at_keyboard.c: Retry probing keyboard if
122 scancode setup failed.
123
124 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
125
126 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
127
128 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
129
130 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
131 safety to avoid triggerring VirtualBox bug.
132
133 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
134
135 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
136
137 Fixes hang on virtualbox.
138
139 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
140
141 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
142 kernels whose paths contain regex metacharacters.
143 * util/grub.d/10_kfreebsd.in: Likewise.
144 * util/grub.d/10_linux.in: Likewise.
145 * util/grub.d/20_linux_xen.in: Likewise.
146
147 Reported by: Heimo Stranner.
148
149 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
150
151 * docs/grub-dev.texi (Finding your way around): The build system no
152 longer uses AutoGen directly.
153
154 2014-06-21 Роман Пехов <roman_pekhov>
155
156 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
157
158 2014-06-21 Glenn Washburn <development@efficientek.com>
159
160 * util/grub-install.c: Fix handling of --disk-module.
161
162 2014-06-21 Stephane Rochoy <sheda>
163
164 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
165 EFI system table.
166
167 2014-06-21 Stephane Rochoy <sheda>
168
169 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
170 EFI system table physical address.
171
172 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
173
174 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
175
176 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
177
178 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
179
180 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
183 check.
184
185 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
186
187 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
188
189 Reported by: Yves Blusseau <blusseau@zetam.org>.
190
191 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
192
193 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
194 GDT in conventional memory.
195
196 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
197
198 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
199 UUID. Other parts of grub-mkconfig tolerate these, they were
200 previously allowed here up to commit
201 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
202 practice when the system has active LVM snapshots.
203 Fixes Ubuntu bug #1287436.
204
205 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
206
207 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
208 "logical_volumes" block a little more accurately.
209
210 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
213
214 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
215
216 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
217 pulled from libgcc.
218
219 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
220
221 Replace few instances of memcmp/memcpy in the code that should be
222 grub_memcmp/grub_memcpy.
223
224 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
225
226 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
227 device names.
228
229 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
230
231 btrfs: fix get_root key comparison failures due to endianness
232
233 * grub-core/fs/btrfs.c (get_root): Convert
234 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
235
236 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
237
238 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
239
240 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
241 no longer to be forgiving of trailing spaces on grub-probe output
242 lines, which among other things means that util/grub.d/10_linux.in
243 no longer detects LVM. To fix this, make grub-probe's output
244 delimiting more consistent. As a bonus, this improves the coverage
245 of the -0 option.
246
247 Fixes Debian bug #735935.
248
249 * grub-core/disk/cryptodisk.c
250 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
251 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
252 Likewise.
253 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
254 Update prototype.
255 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
256 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
257 probe_mods): Adjust for extra user-data arguments.
258 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
259 probe_abstraction): Use configured delimiter. Update callers.
260
261 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
262
263 * util/grub-probe,c (options): Make -0 work again (broken by
264 conversion to argp).
265 (main): Simplify logic.
266
267 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
268
269 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
270
271 2014-03-26 Fu Wei <fu.wei@linaro.org>
272
273 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
274
275 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
278 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
279
280 Suggested by: Markus Müller.
281
282 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
283
284 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
285 if E820 failed to return any regions.
286
287 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
288
289 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
290 tables for low memory calculations.
291
292 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
293
294 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
295 location to 640K.
296
297 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
298
299 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
300 region.
301
302 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
305 exclusively.
306
307 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
308
309 Add bootpath parser for open firmware.
310
311 It enables net boot even when there is no bootp/dhcp server.
312
313 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
314 and call it at grub_ieee1275_net_config_real.
315 * grub-core/kern/ieee1275/init.c: Add bootpath to
316 grub_ieee1275_net_config.
317 * include/grub/ieee1275/ieee1275.h: Likewise.
318
319
320 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
321
322 Add grub_env_set_net_property function.
323
324 * grub-core/net/bootp.c: Remove set_env_limn_ro.
325 * grub-core/net/net.c: Add grub_env_set_net_property.
326 * include/grub/net.h: Likewise.
327
328 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
331
332 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
335
336 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
339 7 seconds to recover if last poweroff was bad.
340
341 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
342
343 * grub-core/disk/ahci.c: Properly handle transactions with no
344 transferred data.
345
346 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * grub-core/disk/ahci.c: Add safety cleanups.
349
350 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
351
352 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
353 slots to avoid pointing to uninited area.
354
355 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
356
357 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
358 enabling busmaster for the end.
359
360 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * util/grub-mkfont.c: Downgrade warnings about unhandled features
363 to debug.
364
365 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
368
369 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
370
371 * .gitignore: add missing files and .exe variants.
372
373 2014-01-26 Mike Gilbert <floppym@gentoo.org>
374
375 grub-install: support for partitioned partx loop devices.
376
377 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
378 /dev/loopX as being the parent of /dev/loopXpY.
379
380 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
383 Ensure that pointers are inited to NULL and that pointers are not
384 accessed after free.
385
386 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
387
388 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
389 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
390 * include/grub/emu/misc.h: ... and here.
391 * include/grub/err.h: ... and here.
392 * util/import_gcry.py: ... and here (in files g10lib.h).
393
394 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
395
396 * util/grub-mkimage.c: Make prefix argument mandatory.
397
398 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
399
400 Fix several translatable strings.
401
402 Suggested by: D. Prévot.
403
404 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
405
406 * util/grub-install.c: List available targets.
407
408 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
409
410 * util/grub-install.c (write_to_disk): Add an info message.
411
412 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
413
414 * Makefile.am: Allow adding extra files to generated Windows ZIP
415 archive by setting GRUB_WINDOWS_EXTRA_DIST.
416
417 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
418
419 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
420 Show detected font path in summary.
421
422 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
423
424 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
425 interval gradually.
426 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
427 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
428 * grub-core/net/tftp.c (tftp_open): Likewise.
429 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
430
431 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
432
433 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
434 infinite loops.
435
436 In net/net.c there is a while (1) that only exits if there is a stop
437 condition and more then 10 packages or if there is no package received.
438
439 If GRUB is idle and enter in this loop, the only condition to leave is
440 if it doesn't have incoming packages. In a network with heavy traffic
441 this never happens.
442
443 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
444
445 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
446 EPERM when modifying kern.geom.debugflags. It is only a problem for
447 such things as installing GRUB to the MBR, in which case there'll be
448 an error later anyway, not for opening files during tests.
449
450 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
451
452 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
453 instead of MOD_FILES.
454 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
455 both with and without .exe.
456 * grub-core/genemuinitheader.sh: Same.
457
458 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
459
460 * util/grub-install.c: Fix a typo.
461
462 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
463
464 * grub-core/normal/main.c (read_config_file): Buffer config file.
465 Reduces boot time.
466
467 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
468
469 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
470 symbolic link to directory. It fails in Msys shell on Windows 2003.
471
472 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * Makefile.am (default_payload.elf): Add modules
475 multiboot cbmemc linux16 gzio echo help.
476
477 2014-01-18 Mike Gilbert <floppym@gentoo.org>
478
479 * Makefile.util.def: Link grub-ofpathname with zfs libs.
480
481 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
484 conflicts.
485
486 Reported by: Andrey Borzenkov.
487
488 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
489
490 * include/grub/misc.h: Move macros for compiler features to ...
491 * include/grub/compiler.h: ... new file.
492 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
493 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
494 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
495 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
496 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
497 * grub-core/video/capture.c: Include <grub/misc.h>.
498 * include/grub/command.h: Include <grub/misc.h>.
499 * include/grub/dl.h: Include <grub/misc.h>.
500 * include/grub/procfs.h: Include <grub/misc.h>.
501
502 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
503
504 * configure.ac: Add support for BUILD_EXEEXT and use it ...
505 * Makefile.am: ... here.
506 * Makefile.util.def: ... and here.
507 * grub-core/Makefile.am: ... and here.
508
509 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
510
511 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
512 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
513
514 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
515
516 * grub-core/term/terminfo.c: Recognize keys F1-F12.
517
518 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
519
520 * configure.ac: Add support for BUILD_LDFLAGS.
521 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
522 * grub-core/Makefile.am: ... and here.
523 * INSTALL: Mention BUILD_LDFLAGS.
524
525 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
528
529 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
532 and has no //.
533
534 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * NEWS: Add few missing entries.
537
538 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
539
540 * util/grub.d/00_header.in (make_timeout): Use && rather than test
541 -a.
542 * util/grub.d/10_windows.in: Likewise.
543 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
544 than test -o.
545 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
546 rather than test -o.
547
548 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
549
550 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
551 redundant preprocessor conditional.
552
553 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
554
555 * Makefile.util.def (grub-macbless): Change mansection to 8.
556
557 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
558
559 * grub-core/loader/arm64/linux.c: correctly set device path end length.
560
561 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
562
563 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
564 arm64 to comply with EFI specification. Also use grubaa64.efi for
565 consistency.
566 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
567
568 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
569
570 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
571 on MinGW-64 when compiling for 32 bits.
572
573 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
574
575 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
576
577 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
578
579 * NEWS: Add few missing entries. Correct existing ones.
580
581 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
582
583 Don't abort() on unavailable coreboot tables if not running on coreboot.
584
585 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
586
587 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
588 on mingw.
589
590 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
591
592 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
593 mention of it from 2.02.
594
595 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
598
599 As these functions are used on pre-ARMv6 CPUs as well we don't want
600 to make assembler assume that architecture is higher than default one.
601
602 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
603
604 * NEWS: First draft of 2.02 entry.
605
606 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
607
608 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
609 * docs/grub.texi (Getting the source code): Likewise.
610
611 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
612
613 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
614 detection.
615
616 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
617
618 * configure.ac: Set version to 2.02~beta2.
619
620 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
623
624 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
625
626 * util/grub-probe.c: Improve help message and simplify list handling.
627
628 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
629
630 Fix buffer overflow in grub_efi_print_device_path.
631
632 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
633
634 Show SATA device path.
635
636 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
637
638 Revert grub-file usage in grub-mkconfig.
639
640 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
641
642 Make newly-created files other than grub.cfg world-readable.
643
644 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
645
646 * util/grub.d/00_header.in: Improve compatibility with old config.
647
648 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
649
650 Make rijndael.c respect aliasing rules.
651
652 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
653
654 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
655
656 Make grub_util_device_is_mapped_stat available in grub-emu core.
657
658 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
659
660 Add -Qn to TARGET_CFLAGS if it's supported.
661 Fixes compilation on cygwin.
662
663 Reported by: Andrey Borzenkov.
664 Suggested by: Andrey Borzenkov.
665
666 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
667
668 Save TARGET_CC version in modinfo.sh.
669
670 Suggested by: Andrey Borzenkov.
671
672 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
673
674 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
675 follow the same algorithm to avoid method mismatch. Don't assume
676 DMRAID- UUID to mean full disk but instead check that mapping is linear.
677
678 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
679
680 Declare GRUB_EFI_VENDOR_APPLE_GUID.
681
682 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
683
684 Dump type and vendor specific data when printing device path.
685
686 2013-12-23 Colin Watson <cjwatson@debian.org>
687
688 Update some documentation to refer to Git rather than Bazaar.
689
690 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
691 than Bazaar.
692 * po/README: Likewise. Fix spelling mistake.
693
694 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
695
696 Don't distribute config.h.
697
698 * Makefile.am (platform_HEADERS): Move to ...
699 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
700 failure when building from a distributed tarball.
701
702 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
703
704 * configure.ac: Fix spelling.
705 * grub-core/commands/parttool.c: Fix grammar.
706 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
707 Embedding Partition".
708
709 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
710
711 ARM64 support for grub-mkrescue.
712
713 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
714
715 Install modinfo.sh to keep build information around.
716
717 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
718
719 * grub-core/modinfo.sh.in: Add build config information.
720
721 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
722
723 ARM64 grub-file and grub-mkconfig support.
724
725 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
726
727 Remove leftover options defines.
728
729 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
730
731 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
732
733 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * grub-core/loader/arm64/linux.c: Add missing bracket.
736
737 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
738
739 Add arm64-efi recognition to grub-file.
740
741 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
742
743 Fix ia64-efi recognition in grub-file.
744
745 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
746
747 Recognize raspberry pi kernel in grub-file.
748
749 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
750
751 Enable cache on ARM U-Boot port.
752
753 Without it the port is reidiculously slow.
754
755 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
756
757 Fix ARM cache maintainance.
758
759 More code was converted from ASM to C for easier handling.
760
761 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
764 algorithm on v5.
765
766 Suggested by: Leif Lindholm.
767
768 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
769
770 * util/grub-mkconfig.in: Fix Xen platform conditions.
771
772 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
773
774 * util/grub-mkrescue.c: Split single help message string in several
775 strings used in previous shell version.
776
777 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
778
779 Add arm64 Linux loader.
780
781 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
782
783 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
784
785 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
786
787 Add module loading and parsing boot time checkpoints.
788
789 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
790
791 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
792 platforms.
793
794 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
795
796 * util/grub-mkconfig.in: Skip non-executable files.
797
798 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
799
800 Workaround buggy timer in raspberry pie by using our own timer
801 implementation.
802
803 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
806 Increase to 16 MiB to allow loading the whole memdisk.
807
808 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
809
810 Fix ARM Linux Loader on non-FDT platforms.
811
812 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * configure.ac: Choose link format based on host_os on emu.
815
816 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
817
818 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
819
820 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
821
822 * grub-core/kern/emu/main.c: Build fix for emu.
823
824 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
825
826 Build fixes for argp.h with older gcc.
827
828 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
829
830 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
831 in strings.
832
833 Suggested by: David Prévot.
834
835 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
836
837 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
838
839 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
840
841 Enable -Wformat=2 if it's supported.
842
843 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
844
845 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
846 -Wmissing-declarations if supported.
847
848 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
849
850 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
851 u32 as both HFS and HFS+ have 32-bit inodes.
852
853 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * include/grub/misc.h (grub_strtol): Fix overflow.
856
857 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
860 as return type in both conditionals.
861
862 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
865 to use uint8_t for color.
866
867 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
868
869 * util/misc.c (grub_util_get_image_size): Check for overflow.
870
871 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
874 for size.
875
876 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
877
878 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
879 for pointer difference.
880
881 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * util/import_gcry.py: Skip sample keys.
884
885 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
888
889 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * configure.ac: Remove duplicate warning arguments.
892
893 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
894
895 Add missing static qualifiers.
896
897 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
898
899 Add missing includes.
900
901 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
902
903 Inline printf templates when possible to enable format checking.
904
905 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
906
907 * include/grub/crypto.h: Don't discard const attribute.
908
909 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
912 was intended.
913
914 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
915
916 * grub-core/lib/crypto.c: Don't discard const attribute.
917
918 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * grub-core/lib/disk.c: Fix potential overflow.
921
922 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
923
924 * grub-core/lib/arg.c: Don't discard const attribute.
925
926 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * grub-core/kern/dl.c: Don't discard const attribute.
929
930 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * grub-core/kern/disk.c: Fix potential overflow.
933
934 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * conf/Makefile.common: Don't include non-existing directory
937 grub-core/lib/libgcrypt-grub/include.
938
939 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
940
941 Clarify several translatable messages.
942
943 2013-12-21 David Prévot <david@tilapin.org>
944
945 Correct some translatable strings.
946
947 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
948
949 * util/grub-mkrescue.c: Rephrase mkrescue description.
950
951 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
952 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
953
954 Clarify several translatable messages.
955
956 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
957
958 Be more verbose about some configure failures.
959
960 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
961
962 Fix various build problems on GNU/Hurd.
963
964 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
965 !defined (__GNU__).
966 (xgetcwd): Likewise.
967 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
968 [__GNU__]: Add prototype.
969 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
970 long int using %ld rather than %d.
971
972 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * util/grub-install.c: Inform user about install platform.
975
976 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
977
978 * configure.ac: Set version to 2.02~beta1.
979
980 2013-12-18 Allen Pais <allen.pais@oracle.com>
981 2013-12-18 Bob Picco <bob.picco@oracle.com>
982
983 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
984
985 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
986
987 Make grub_zlib_decompress handle incomplete chunks.
988
989 Fixes squash4.
990
991 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
992
993 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
994 on i386-multiboot.
995
996 2013-12-18 Aleš Nesrsta <starous@volny.cz>
997
998 * grub-core/disk/usbms.c: Retry on unknown errors.
999 Reuse the same tag on retries.
1000
1001 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1002
1003 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1004
1005 Avoid confusing them with already completed transfers.
1006
1007 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 Remove xen VFB.
1010
1011 Due to XEN bug it prevents Linux boot. Remove it at least, until
1012 workaround is found.
1013
1014 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1015
1016 * po/exclude.pot: Add 2 missing excludes.
1017
1018 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 Add missing license section in macbless.mod and macho.mod.
1021
1022 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1023
1024 Allow compilation without thumb-interwork as long as no thumb is
1025 involved or only thumb2 is used.
1026
1027 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1030
1031 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 Add __attribute__ ((sysv_abi)) only if it's really needed.
1034
1035 Some compilers don't support it.
1036
1037 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1040
1041 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1042
1043 Remove -Wold-style-definition.
1044
1045 Not very useful and interaction of it with regexp depends on GCC
1046 version.
1047
1048 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 Make grub_util_get_windows_path_real static.
1051
1052 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1053
1054 * grub-core/commands/fileXX.c: Silence cast-align.
1055 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1056
1057 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1060 rather than LL suffix.
1061
1062 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1065
1066 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 * grub-core/loader/arm/linux.c: Use common initrd functions.
1069
1070 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1071
1072 Decrease number of strings to translate.
1073
1074 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1075
1076 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1077
1078 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 Mark strings for translation and add remaining ones to exclude list.
1081
1082 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * util/grub-file.c (main): Fix sizeof usage.
1085
1086 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 Silence spurious warning.
1089
1090 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 Remove check_nt_hiberfil as it's been superseeded by file command.
1093
1094 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1097
1098 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 Implement syslinux parser.
1101
1102 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1105
1106 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 Support cpuid --pae.
1109
1110 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 Use AT keyboard on Yeeloong 3A.
1113
1114 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 Add Yeeloong 3A reboot and halt.
1117
1118 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 Add Radeon Yeeloong 3A support.
1121
1122 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1123
1124 Add bonito 3A support.
1125
1126 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1129
1130 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1133
1134 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/loader/macho.c: Fix compilation on non-i386.
1137
1138 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Add missing format_arg attribute to check that printf with translated
1141 messages has proper arguments.
1142
1143 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 Use grub_xasprintf to format translated error messages containing
1146 64-bit quantity.
1147
1148 2013-12-17 Jon McCune <jonmccune@google.com>
1149
1150 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1151
1152 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 Unify message for unsupported relocation.
1155
1156 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 Mark miscompile error for translation.
1159
1160 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 Use %I64 and not %ll when using OS printf if compiling for windows.
1163
1164 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 Update Mac code to match new register_efi prototype.
1167
1168 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 Implement better integration with Mac firmware.
1171
1172 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1175 load_addr.
1176
1177 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 Include serial module in default_payload.elf.
1180
1181 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1182
1183 Add explicit thumb interwork bx in asm files.
1184
1185 Shouldn't matter for armv >= 5 but let's be safe.
1186
1187 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 Implement Truecrypt ISO loader.
1190
1191 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1192
1193 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1194
1195 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1196
1197 Implement grub_file tool and use it to implement generating of config
1198 in separate root.
1199
1200 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 Change to v1 xen grants.
1203
1204 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1205
1206 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1207
1208 GRUB relied on %ebx being preserved across hypercall which isn't true.
1209
1210 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1213
1214 GRUB relied on %rdi being preserved across hypercall which isn't true.
1215
1216 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1217
1218 Implement XEN VFB support.
1219
1220 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 Remove grub_bios_interrupt on coreboot.
1223
1224 It's not used currently and cannot be used safely currently.
1225
1226 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 Update exclude.pot and mark few strings for translation.
1229
1230 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1233
1234 Reported by: Jon McCune
1235
1236 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1237
1238 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1239 Add verbose information which firmware directories were tried.
1240
1241 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1242
1243 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1244 function to optionally redirect all three standard descriptors.
1245 Redefine grub_util_exec, grub_util_exec_redirect and
1246 grub_util_exec_redirect_null to use it.
1247 * include/grub/emu/exec.h: Define it.
1248 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1249 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1250 Use grub_util_exec_redirect_all to redirect error to NULL.
1251
1252 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1253
1254 * grub-core/tests/sleep_test.c: Silence spurious warning.
1255
1256 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1259 linker trying to "fixup" the code.
1260
1261 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1264
1265 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 Add support for converting PE+ to Elf64.
1268
1269 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1272
1273 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 Remove practice of assigning random const pointers to device id.
1276
1277 This is not required as cache code already checks driver id as well.
1278
1279 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1282 with mingw.
1283
1284 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1287 mingw or cygwin as API already matches.
1288
1289 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1292
1293 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1296 not on long.
1297
1298 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1299
1300 Handle X86_64_PC64 relocation.
1301
1302 Those are generated by some cygwin compilers.
1303
1304 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 Determine the need for mingw-related stubs at compile time rather than
1307 using not very significant $target_os.
1308
1309 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1312 may not work with ELF.
1313
1314 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 Use unix functions for temporary files and special files on cygwin.
1317
1318 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 Define functions explicitly rather than using --defsym in tests
1321 whenever possible. Respect locality in remaining cases.
1322
1323 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1326
1327 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1328
1329 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1330 unlikely errors when getting EFI variables and make exhaustive search
1331 for all BootNNNN variables to find matching one.
1332
1333 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1334
1335 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1336
1337 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 New functional test for sleep function.
1340
1341 This test allows to check sleep without qemu. Keep qemu version as
1342 well as functional test won't notice if all clocks are going too fast
1343 or too slow.
1344
1345 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 Add explicit sysv_abi on amd64 asm routines.
1348
1349 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1352 num_table_entries.
1353
1354 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1357 functions.
1358
1359 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1362 appropriate.
1363
1364 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1365
1366 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1367
1368 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1371 appropriate.
1372
1373 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1376
1377 In case of quick removal of loopback and adding another one it may
1378 get same ID, confusing the cache system.
1379
1380 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1383 appropriate.
1384
1385 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1388 than converting to long.
1389
1390 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1393
1394 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1397 than almost useless pointer.
1398
1399 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1400
1401 Add gcc_struct to all packed structures when compiling with mingw.
1402
1403 Just "packed" doesn't always pack the way we expect.
1404
1405 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1408
1409 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * util/grub-pe2elf.c: Fix handling of .bss.
1412
1413 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 Implement windows flavour of EFI install routines.
1416
1417 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1420
1421 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 Change grub_install_register_efi interface to pass GRUB device.
1424
1425 This allows grub_install_register_efi to request partition info
1426 directly.
1427
1428 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1431
1432 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 Do not use TCHAR string functions as they are not available on cygwin.
1435
1436 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 Workaround windows bug when querying EFI system partition parameters.
1439
1440 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1443 by using bitfields.
1444
1445 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1448
1449 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 Make i386-* other than i386-pc compileable under cygwin.
1452
1453 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 Fix definition of grub_efi_hard_drive_device_path. Take care that
1456 existing code would work even if by some reason bogus definition is
1457 used by EFI implementations.
1458
1459 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1462
1463 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1466 invocation.
1467
1468 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 * util/config.c: Remove trailing newline from distributor in simple
1471 parsing.
1472
1473 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * include/grub/efi/api.h: Rename protocol and interface to avoid
1476 conflict.
1477
1478 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * .gitignore: add .exe variants. add missing files. remove few outdated
1481 entries.
1482
1483 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/osdep/exec.c: Use unix version on cygwin.
1486
1487 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 Implement multiboot2 EFI BS specification.
1490
1491 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1494 Crash happened only in some cases like a string starting at the
1495 half of the screen of same length.
1496
1497 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1500 with EFI counterpart.
1501
1502 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 Propagate the EFI commits to x86-efi specific parts.
1505
1506 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1507
1508 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1509
1510 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 Introduce grub_efi_packed_guid and use it where alignment is not
1513 guaranteed.
1514
1515 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1518 unaligned u16 rather than u8[2].
1519
1520 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1521
1522 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1523 for relocation range.
1524
1525 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1528 non-function pcrel21b relocation. It happens with .text.unlikely
1529 section.
1530
1531 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1532
1533 * make MAX_USABLE_ADDRESS platform-specific
1534 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1535
1536 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1537
1538 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1539
1540 2013-12-09 Jon McCune <jonmccune@google.com>
1541
1542 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1543 in grub-install and grub-bios-setup for x86 BIOS targets.
1544
1545 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 Add missing compile and link options for sparc64-emu.
1548
1549 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 Implement sparc64 trampolines (needed for sparc64-emu).
1552
1553 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1556 range of R_SPARC_HI22.
1557 Implement R_SPARC_LM22.
1558
1559 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1562 Do not explicitly check for symbol table as it's already checked in
1563 platform-independent layer.
1564
1565 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1568 on ia64 as __clear_cache is a dummy on ia64.
1569
1570 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1573 Do not explicitly check for symbol table as it's already checked in
1574 platform-independent layer.
1575
1576 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1577
1578 * util/grub-mkconfig.in: Add missing newline to output.
1579
1580 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1583 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1584
1585 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1586
1587 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1588 compilation with GCC <= 4.2.
1589 * grub-core/kern/emu/argp_common.c: Likewise.
1590
1591 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1594 right platform rather than leaking to sparc64-emu.
1595
1596 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1599 But ensure that the variables in question are indeed unsigned.
1600
1601 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1604
1605 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 Remove grub_memalign on emu.
1608
1609 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1612 truncate incomplete lines but instead flushes them.
1613
1614 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1617 and implement windows variant.
1618
1619 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 Fix mips-emu compilation.
1622
1623 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * configure.ac: Check for freetype library usability.
1626
1627 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 Make arm-emu work.
1630
1631 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1634
1635 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1636
1637 * docs/grub.texi (Environment): Update color_normal and color_highlight
1638 defaults (light-gray instead of white).
1639
1640 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1641
1642 * grub-core/normal/main.c (INIT): Set default color to light-gray
1643 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1644 and apparently BIOS defaults.
1645
1646 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 Transform -C option to grub-mkstandalone to --core-compress available
1649 in all grub-install flavours.
1650
1651 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 Merge GRUBFS and GRUB_FS variables.
1654
1655 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1656
1657 Revert commit 69ca97c820, it caused failures when using OS device name
1658 in grub-install. Instead just strip off parenthesis in grub-install
1659 if (hdX) was passed.
1660
1661 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1662
1663 * util/grub-install.c (push_partmap_module): Add helper to convert
1664 partmap names to module names and use it in probe_mods(). Fixes
1665 failure to find partmap modules in diskfilter case.
1666
1667 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * configure.ac: Make unifont mandatory on coreboot.
1670
1671 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * configure.ac: Skip unifont 6.3 pcf and bdf.
1674
1675 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * Makefile.am: Remove partial font files if generation failed.
1678
1679 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1680
1681 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1682 strings.
1683 * include/grub/util/misc.h: Define it ...
1684 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1685
1686 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1687
1688 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1689 ${grub_probe}.
1690
1691 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 Don't add -mlong-calls when compiling with clang.
1694
1695 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * configure.ac: Fix a typo.
1698
1699 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 Revamp relocation handling.
1702
1703 Move more code to common dl.c. Add missing veneers for arm and arm64.
1704 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1705
1706 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1709
1710 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1711
1712 * INSTALL: Raise minimum python version to 2.6.
1713 * gentpl.py: Use python3-style print function.
1714
1715 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * util/grub-install.c: Mention Boot* variable.
1718
1719 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1720
1721 * grub-core/osdep/linux/hostdisk.c
1722 (grub_util_find_partition_start_os): Initialise start to avoid
1723 spurious compiler warning.
1724
1725 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1726
1727 On Linux, read partition start offsets from sysfs if possible, to
1728 cope with block device drivers that don't implement HDIO_GETGEO.
1729 Fixes Ubuntu bug #1237519.
1730
1731 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1732 function.
1733 (sysfs_partition_start): Likewise.
1734 (grub_util_find_partition_start_os): Try sysfs_partition_start
1735 before HDIO_GETGEO.
1736
1737 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1738
1739 * grub-core/kern/fdt.c: Update struct size when adding node.
1740
1741 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 Handle unaligned .bss on sparc64.
1744
1745 Current code improperly assumes that both __bss_start and _end are
1746 aligned to 8-bytes. Eliminating this assumption and explicitly align
1747 modules.
1748
1749 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1750
1751 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1752 so it doesn't land in the middle of loaded image.
1753
1754 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * configure.ac: Move all warning options that may be absent in
1757 gcc >= 3.1 to optional.
1758
1759 Note: while this allows to compile with older GCC, official requirements
1760 remain the same and no support for older GCC.
1761
1762 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1763
1764 Copying the themes directory in grub-shell isn't
1765 parallel-test-friendly and breaks on the second test when the source
1766 directory is read-only (as in "make distcheck"). Instead, add a
1767 hidden --themes-directory option to grub-mkrescue et al, and use it
1768 in grub-shell.
1769
1770 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1773 as it's no longer necessarry.
1774
1775 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 * configure.ac: Allow compilation with older GCC for ARM.
1778
1779 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1782 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1783 ppc.
1784
1785 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1788
1789 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 Pass font config to config.h and not by TARGET_CFLAGS as adding
1792 arguments doesn't work if TARGET_CFLAGS is specified on command
1793 line.
1794
1795 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * configure.ac: Add -Wvla if compiler supports it.
1798
1799 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1802 Remove variable length arrays.
1803 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1804
1805 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1808
1809 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 * include/grub/types.h: Declare all byteswaps as inline functions
1812 except compile-time ones.
1813
1814 Solves variable shadowing in constructions like
1815 cpu_to_le (le_to_cpu(x) + 1).
1816
1817 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1820
1821 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1824 minutes.
1825
1826 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1827
1828 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1829 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1830
1831 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1832
1833 * grub-core/Makefile.core.def (setjmp): Distribute
1834 lib/arm64/setjmp.S.
1835
1836 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1837
1838 Add a new timeout_style environment variable and a corresponding
1839 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1840 controls hidden-timeout handling more simply than the previous
1841 arrangements, and pressing any hotkeys associated with menu entries
1842 during the hidden timeout will now boot the corresponding menu entry
1843 immediately.
1844
1845 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1846 generates a warning, and if it shows the menu it will do so as if
1847 the second timeout were not present. Other combinations are
1848 translated into reasonable equivalents.
1849
1850 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1851
1852 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 * util/config.c: Add missing pointer adjustment.
1855 Reported by: qwertial
1856
1857 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1858
1859 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1860 directly, not via `cpu' link, to fix libgrub.pp generation.
1861
1862 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1863
1864 New port arm64-efi.
1865
1866 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1867
1868 * docs/grub.texi (sleep): Document exit codes.
1869
1870 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 Ensure that -mno-unaligned-access or some equivalent option is used.
1873
1874 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1877 -march=armv3.
1878
1879 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1882
1883 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1884
1885 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1886 builds, since we don't have an EPS version of font_char_metrics.png.
1887 Add leading dot to image extension per the Texinfo documentation.
1888
1889 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1890
1891 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1892 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1893 * util/grub-gen-widthspec.c: Likewise.
1894 * util/grub-mkfont.c: Likewise.
1895
1896 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1897
1898 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1899 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1900 failed to install on (hdX).
1901 * util/grub-setup.c (get_device_name): Remove, not needed after
1902 above change.
1903
1904 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1907
1908 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 * util/grub-fstest.c: Remove variable length arrays.
1911
1912 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1915
1916 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1919 computing crc32 rather than handling with md fundtions directly.
1920
1921 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1922
1923 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1924 checking fwstart.img rather than md fundtions directly.
1925
1926 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * util/grub-mkrescue.c (main): Check that fread succeeded.
1929
1930 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * conf/Makefile.common: Remove -mexplicit-relocs and
1933 -DUSE_ASCII_FALLBACK on yeeloong.
1934
1935 -DUSE_ASCII_FALLBACK is already added by font snippets.
1936 -mexplicit-relocs isn't needed is compiler/assemblera are
1937 configured properly.
1938 If they're not we shouldn't attempt to fix it by ourselves.
1939 Binary compare between before and after shows no difference.
1940
1941 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1942
1943 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1944 sources in dependencies directly.
1945
1946 This was the only instance of "library" in core config. A bug was
1947 reported that -fno-stack-protector wasn't passed to it. Instead of
1948 figuring out why it failed just remove this construction used
1949 needlessly.
1950
1951 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1952
1953 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1954 fgets succeeded.
1955
1956 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1957
1958 * docs/grub.texi (ls): Fix command description in case of a device name
1959 passed as argument.
1960
1961 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 Eliminate variable length arrays in grub_vsnprintf_real.
1964
1965 A bit tricky because this function has to continue to work without
1966 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1967 but make all stack references use 32-bit offset rather than 8-bit one.
1968 So split va_args preparsing to separate function and put the prealloc
1969 into the caller.
1970
1971 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1974 Fixes build for windows.
1975
1976 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * gentpl.py: Don't generate platform-dependent conditionals for
1979 platform-independent targets.
1980
1981 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1982
1983 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1984 references to mdadm from otherwise generic code.
1985 (grub_util_exec_pipe): Likewise.
1986 (grub_util_exec_pipe_stderr): Likewise.
1987 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1988 This function calls vgs, not mdadm; adjust variable names
1989 accordingly.
1990
1991 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1992
1993 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1994 of Autogen. The Autogen definitions files remain intact as they
1995 offer a useful abstraction.
1996
1997 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1998
1999 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2000 into no-ops, and use it in programs that copy files but do not need
2001 to take special care to sync writes (grub-mknetdir, grub-rescue,
2002 grub-mkstandalone).
2003
2004 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2005
2006 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2007 than hardcoding /usr/local/bin/xorriso.
2008
2009 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 Add PCI command activation to all PCI drivers as required for coreboot
2012 and maybe some other firmwares.
2013
2014 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2015
2016 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2017 and non-Apple variants of efiemu compile.
2018
2019 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2020
2021 * configure.ac: Add explicit check for linking format of
2022 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2023 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2024 hardcoding linking format.
2025
2026 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2027
2028 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2029 and not pkgdatadir.
2030
2031 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2032 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 Add a --locale-directory option to grub-install and related tools.
2035
2036 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2037 --locale-directory option.
2038 (enum grub_install_options): Add
2039 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2040 * util/grub-install-common.c (grub_install_help_filter): Handle
2041 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2042 (grub_install_parse): Likewise.
2043 (get_localedir): New function to check for a user-provided option
2044 before trying grub_util_get_localedir.
2045 (copy_locales): Use get_localedir rather than
2046 grub_util_get_localedir. Handle differing locale directory layouts.
2047 (grub_install_copy_files): Likewise.
2048
2049 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2050
2051 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2052 Don't rely on PATH_MAX.
2053
2054 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * grub-core/genmoddep.awk: Use more portable && rather than and.
2057
2058 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2059
2060 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2061 an object after data. While it doesn't seem right solution, it
2062 works well enough and OSX isn't main compilation platform.
2063
2064 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2067 While it doesn't seem right solution, it works well enough and
2068 OSX isn't main compilation platform.
2069
2070 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2071
2072 * configure.ac: Add -static to LDFLAGS when using apple linker to
2073 prevent it from pulling in dynamic linker.
2074
2075 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 Apple assembly doesn't handle symbol arithmetic well. So define an
2078 offset symbol in boot.S and use it.
2079
2080 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2081
2082 Apple assembly doesn't handle symbol arithmetic well. So instead
2083 of getting addres of kernel_sector + 4 define kernel_sector_high.
2084 It also makes code more readable.
2085
2086 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 With Apple assembly in .macro environvemnt you have to use $$ instead
2089 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2090 to $$x on Apple and to $x on everything else.
2091
2092 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2095 OBJCONV.
2096
2097 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2100 and non-Apple. This instruction is shorter and faster,
2101 so no reason not to use it on both.
2102
2103 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2106 .text when compiling for Apple.
2107
2108 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2111
2112 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2115 %dx restore the probe worked on non-existant drive. Reorganize the
2116 code a little bit to free 2 bytes necessary for push/pop.
2117
2118 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2121 Add missing cast to silence warning.
2122
2123 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2124
2125 * util/grub-install.c (update_nvram): Support --no-nvram flag
2126 for EFI targets.
2127
2128 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2131
2132 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * util/garbage-gen.c: Add missing include of sys/time.h.
2135
2136 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 Don't add -mflush-func if it's not supported by compiler.
2139
2140 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 Move common BIOS/coreboot memory map declarations to
2143 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2144
2145 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2146
2147 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2148
2149 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * INSTALL: Document why older clang versions aren't appropriate.
2152
2153 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2154
2155 * INSTALL: Document about clang for mips.
2156
2157 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2160 clang.
2161
2162 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 Add *-xen to the list of grub-install-common platforms.
2165
2166 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2169 3 last commits.
2170
2171 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2174
2175 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2178 with -mcmodel=large.
2179
2180 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2183 range-checking for 32-bit quantities.
2184
2185 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 * configure.ac: Compile with -fPIC when compiling with clang on
2188 mips.
2189
2190 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2193 when compiling with clang.
2194
2195 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 clang emits calls to abort () under some unknown conditions.
2198 Export abort () when compiling with clang.
2199
2200 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * docs/grub-dev.texi: Document stack and heap sizes.
2203
2204 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * include/grub/i386/pc/memory.h: Decrease
2207 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2208 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2209 The binary doesn't change (checked). It's more to better reflect actual
2210 usage.
2211
2212 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2215 at compile time that enough of scratch size is available.
2216
2217 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2220 Previously we misaligned stack by 8 in startup.S and compensated
2221 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2222 right behaviour is to align stack in startup.S and keep it aligned
2223 in callwrap.S. startup.S part was committed few commits before. This
2224 takes care of callwrap.S.
2225 Reported by: Gary Lin.
2226
2227 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2230 .data and .bss. May happen if compiler and assembly use different
2231 alignment.
2232
2233 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2236 way.
2237
2238 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 Add support for a new magic symbol _gp_disp on mips to handle PIC
2241 binaries.
2242
2243 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2246
2247 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2250 when rest of GRUB is compiled for hisher stepping. Instead use
2251 .set mips3/.set mips1 around cache and sync opcodes.
2252
2253 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2256 do essentially the same thing, do it in similar way.
2257
2258 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2259
2260 * util/grub-mkrescue.c (main): If a source directory is not
2261 specified, read platform-specific files from subdirectories of
2262 pkglibdir, not pkgdatadir.
2263
2264 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2265
2266 * grub-core/normal/progress.c: Remove unused file.
2267
2268 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2269
2270 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2271 array.
2272
2273 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2276 than grub.cfg.
2277
2278 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * coreboot.cfg: Add missing file.
2281
2282 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2285
2286 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2287
2288 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2289 selectively skipping systems.
2290
2291 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2292
2293 * Makefile.util.def (grub-mkimage): Add
2294 grub-core/osdep/aros/config.c to extra_dist.
2295 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2296 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2297 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2298 grub-core/gnulib-no-gets.diff.
2299
2300 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 Add automated filesystem checking based on scripts I've used now for
2303 quite some time locally. Most of the test require root so they are
2304 skipped when run without necessarry privelegies.
2305
2306 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2307
2308 * util/grub-install.c (main): Adjust info messages to match
2309 installed paths of grub-bios-setup and grub-sparc64-setup.
2310
2311 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2312
2313 * util/grub-install-common.c (copy_locales): Consistently use
2314 grub_util_get_localedir () rather than LOCALEDIR.
2315 (grub_install_copy_files): Likewise.
2316
2317 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2318
2319 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2320 16-byte boundary, as required by the x86-64 ABI, before calling
2321 grub_main. In some cases, GCC emits code that assumes this
2322 alignment, which crashes if not aligned. The EFI firmware is also
2323 entitled to assume that stack alignment without checking.
2324
2325 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2326
2327 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2328 4k page boundaries as expected by firmware rather than 1k
2329 boundaries.
2330 (grub_mmap_malign_and_register): Likewise.
2331
2332 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2335 fragmentation 512M is enough.
2336
2337 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2340 pointer to 32K. This is the size of cache element which is the most
2341 common allocation >1K. This way the pointer is always around blocks
2342 of 32K and so we keep performance while decreasing fragmentation.
2343
2344 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2347 current memory when allocating large chunks. This significantly
2348 decreases memory fragmentation.
2349
2350 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2351
2352 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2353 but for symmetry).
2354 * tests/lzocompress_test.in: Skip if lzop is not installed.
2355 * tests/xzcompress_test.in: Skip if xz is not installed.
2356
2357 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2358
2359 * util/grub-mkrescue.c (main): Fix typo.
2360
2361 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2362
2363 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2364 clock frequency to 200 MHz,
2365
2366 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2369
2370 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2373 Load config file from (cbfsdisk)/etc/grub.cfg.
2374
2375 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 * util/grub-install-common.c (grub_install_copy_files): Fix module
2378 destination directory.
2379
2380 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2381
2382 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2383 files have not been built.
2384
2385 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2386
2387 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2388 Handle errors from mkstemp.
2389 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2390
2391 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2394 on primary master on pseries.
2395
2396 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2399 already loaded. This saves memory needed for tests,
2400
2401 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2404 work again.
2405
2406 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2409 work again.
2410
2411 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2414 master since with some combinations of qemu and firmware only primary
2415 IDE channel is available.
2416
2417 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2418
2419 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2420 low-memory platforms where we don't have enough memory for them.
2421 * grub-core/tests/videotest_checksum.c: Likewise.
2422
2423 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2426 already loaded. This saves memory needed for tests,
2427
2428 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 Fix handling of install lists.
2431
2432 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2433
2434 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2435
2436 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2439 the devices before accessing them.
2440
2441 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2442
2443 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2444 as file argument.
2445
2446 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2449
2450 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2453 (grub_file_close): Free file->name.
2454
2455 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2458 (grub_load_public_key): Likewise.
2459 (grub_verify_signature_real): Likewise.
2460 (grub_cmd_verify_signature): Likewise.
2461
2462 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2465 memory leak.
2466
2467 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2470 (grub_longjmp): Restore r31.
2471 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2472
2473 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2476 modules to be in line with make_image_abs.
2477
2478 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2479
2480 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2481
2482 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2483
2484 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2485
2486 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2487
2488 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2491 to leave some memory to firmware.
2492
2493 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2494
2495 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2496 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2497 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2498 Load gfxmenu.
2499
2500 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2503 now needs full arguments.
2504
2505 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * util/grub-mkrescue.c (main): Add trailing \n in
2508 .disk_label.contentDetails to be in line with previous shell script.
2509
2510 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2513
2514 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 * util/grub-install-common.c (grub_install_parse): Recognize
2517 --compress=none like shell script did.
2518
2519 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2520
2521 * include/grub/misc.h: Replace check for __sparc64__ with one for
2522 __sparc__ as __sparc64__ isn't actually defined.
2523
2524 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2527 counterpart of fixing the naming of escc ports.
2528
2529 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 * util/grub-install-common.c (platforms): Fix the order of entries and
2532 remove useless field val.
2533
2534 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * util/grub-install.c: Add new option --no-bootsector to skip
2537 installing of bootsector. Accept --grub-setup=/bin/true as
2538 backwards-compatible synonym.
2539
2540 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2541
2542 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2543 order of qsort arguments (number of elements vs. element size).
2544
2545 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2546
2547 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2548 the function of these files exceeds what can be sanely handled in shell
2549 in posix-comaptible way. Also writing it in C extends the functionality
2550 to non-UNIX-like OS and minimal environments.
2551
2552 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2555 compiling to thumb2.
2556 * grub-core/kern/arm/cache_armv7.S: Likewise.
2557 * grub-core/lib/arm/setjmp.S: Likewise.
2558
2559 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2560
2561 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2562 in grub_uboot_syscall
2563
2564 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 Decrease stack usage in lexer.
2567
2568 We have only 92K of stack and using over 4K per frame is wasteful
2569
2570 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2571 as macros so that compiler would remove useless structure on stack.
2572 Better solution would be to fix flex not to put this structure on
2573 the stack but flex is external program.
2574
2575 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2576
2577 Decrease stack usage in signature verification.
2578
2579 We have only 92K of stack and using over 4K per frame is wasteful
2580
2581 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2582 rather than stack.
2583 (grub_verify_signature_real): Likewise.
2584
2585 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 Decrease stack usage in mdraid 0.9x.
2588
2589 We have only 92K of stack and using over 4K per frame is wasteful
2590
2591 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2592 rather than stack.
2593
2594 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 Decrease stack usage in BtrFS.
2597
2598 We have only 92K of stack and using over 4K per frame is wasteful
2599
2600 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2601 rather than stack.
2602
2603 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 Decrease stack usage in JFS.
2606
2607 We have only 92K of stack and using over 4K per frame is wasteful
2608
2609 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2610 stack. Note: this function is recursive.
2611 (grub_jfs_read_inode): Read only part we care about.
2612
2613 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2614
2615 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2616 handling
2617
2618 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2619
2620 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2621
2622 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2623
2624 * docs/grub.texi (Environment): Document cmdpath.
2625
2626 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2627
2628 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2629 Remove "unused" attribute from arguments, they are used.
2630
2631 2013-11-15 Colin Watson <cjwatson@debian.org>
2632
2633 * .gitignore: Only ignore grub-mk* at the top level.
2634
2635 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2636
2637 * util/grub-reboot.in (usage): Fix a typo.
2638
2639 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 Replace libgcc version of ctz with our own.
2642
2643 On upcoming arm64 port libgcc ctz* are not usable in standalone
2644 environment. Since we need ctz* for this case and implementation is
2645 in C we may as well use it on all concerned platforms.
2646
2647 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2648
2649 * configure.ac: Probe for linking format rather than guessing it based
2650 on target_os.
2651
2652 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2655 "1" prior to handoff.
2656
2657 Reported by: M A Young.
2658
2659 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2660
2661 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2662 \0 to all files.
2663
2664 Reported by: M A Young.
2665
2666 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2669 compilation on NetBSD.
2670
2671 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 * acinclude.m4: Don't add -P on initial nm test.
2674
2675 Note: even though this patch postdates Andrey's it bears 14 Nov as
2676 date due to timezone difference.
2677
2678 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2679
2680 * grub-core/Makefile.core.def (signature_test): Add missing
2681 tests/signatures.h.
2682
2683 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2684
2685 * util/grub-install_header: Set localedir here, since this file is
2686 where it's used.
2687 * util/grub-install.in: Remove setting of localedir.
2688 * util/grub-mkrescue.in: Likewise.
2689
2690 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2693
2694 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * configure.ac: Move nm checks to the end.
2697 Call grub_PROG_NM_WORKS.
2698 * acinclude.m4: New check grub_PROG_NM_WORKS.
2699 Use $TARGET_CFLAGS -c when compiling test binary.
2700
2701 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2702
2703 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2704 unused variables.
2705
2706 2013-11-14 Matthew Garrett <mjg@redhat.com>
2707
2708 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2709 cmdpath to firmware directory.
2710
2711 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2714 at the start of second iteration.
2715
2716 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2719
2720 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * Makefile.am (default_payload.elf): New target for easier coreboot
2723 build.
2724
2725 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2728 clang (not necessarry with -no-integrated-as).
2729 * include/grub/symbol.h [__arm__]: Likewise.
2730
2731 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * configure.ac: Use -no-integrated-as on arm with clang.
2734 * INSTALL: Mention ARM compilation with clang.
2735
2736 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2739 -mthumb-interwork.
2740
2741 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2742
2743 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2744 code for indirect block handling.
2745
2746 Saves 185 bytes on compressed image.
2747
2748 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2749
2750 Fix make clean.
2751
2752 * Makefile.am: Remove build-grub-* in make clean.
2753
2754 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2755
2756 New files to gitignore.
2757
2758 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2759 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2760
2761 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2762
2763 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2764
2765 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2766
2767 * .gitignore: fix rules for .dep* and add *.a post git migration
2768
2769 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2770
2771 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2772 to match INSTALL.
2773
2774 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2775
2776 * grub-core/kern/misc.c: Don't redirect divisions in the
2777 GRUB_UTIL case.
2778 * include/grub/misc.h: Likewise.
2779
2780 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2781
2782 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2783 systems that require checking the return value of write.
2784
2785 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2786
2787 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2788 efibootmgr quiet when --debug is not used, rather than when it is.
2789
2790 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2791
2792 * gentpl.py (define_macro_for_platform_dependencies): Remove
2793 first (and thus unused) of two definitions for this function.
2794 (platform_dependencies): Likewise.
2795
2796 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2797
2798 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2799 functions, we only need to check this for the target, not the host.
2800 * configure.ac (grub_apple_cc): Likewise.
2801
2802 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2805 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2806 asm to stay in arm even if surrounding is thumb.
2807
2808 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2811 helper functions are needed for thumb.
2812
2813 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2816 level / 3 division explicitly unsigned. Saves few bytes.
2817
2818 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2821
2822 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2825 division.
2826
2827 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2830 grub_uboot_boot_data to asm part.
2831
2832 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2835 literal load.
2836 (grub_uboot_syscall): Save/restore r9 and align stack.
2837
2838 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2841
2842 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2845 occurencies with END.
2846
2847 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2848
2849 * util/grub-editenv.c (help_filter, argp): Document how to delete
2850 the whole environment block.
2851 Reported by Dan Jacobson. Fixes Debian bug #726265.
2852
2853 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2854
2855 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2856 sectioning.
2857
2858 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2859
2860 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2861 increment/decrement.
2862
2863 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2866 compiling with clang.
2867
2868 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2871 ".".
2872
2873 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 Redirect all divisions to grub_divmod64.
2876
2877 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2880
2881 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 Add missing includes of loader.h.
2884
2885 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2886
2887 * configure.ac: Allow disabling themes.
2888
2889 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2890
2891 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2892
2893 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2896 until it becomes operational.
2897
2898 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/Makefile.core.def (legacy_password_test): Disable
2901 on platforms where no legacycfg is compiled.
2902 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2903 load legacy_password_test.
2904
2905 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2906
2907 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2908
2909 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2912
2913 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2916 strict-aliasing warning.
2917 (fsync): Silence cast warning.
2918
2919 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * grub-core/commands/verify.c: Remove variable length arrays.
2922 Load gcry_dsa/gcry_rsa automatically.
2923
2924 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/tests/signature_test.c: New test.
2927
2928 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2931 API.
2932
2933 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2936 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2937
2938 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2941
2942 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * grub-core/fs/proc.c: Allow \0 in proc files.
2945
2946 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2949
2950 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2953
2954 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2955
2956 * grub-core/fs/ext2.c: Remove variable length arrays.
2957
2958 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2961 length arrays.
2962
2963 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2964
2965 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2966 * grub-core/disk/cryptodisk.c: Likewise.
2967 * grub-core/disk/geli.c: Likewise.
2968 * grub-core/disk/luks.c: Likewise.
2969
2970 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * grub-core/tests/legacy_password_test.c: New test.
2973 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2974
2975 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2978
2979 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * grub-core/tests/pbkdf2_test.c: New test.
2982
2983 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2986
2987 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/io/lzopio.c: Remove variable length arrays.
2990
2991 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * include/grub/crypto.h: Add maximums on hash size and cipher block
2994 size.
2995
2996 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2999
3000 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * grub-core/tests/xnu_uuid_test.c: New test.
3003
3004 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3007 covers it).
3008
3009 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * grub-core/commands/hashsum.c: Remove variable length arrays.
3012
3013 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3016 condition.
3017 * tests/grub_func_test.in: Increase memory allocation.
3018
3019 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3022 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3023 sys/mount.h.
3024
3025 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3028 (grub_util_get_fd_size_os): ...this.
3029 (grub_hostdisk_flush_initial_buffer): New empty function.
3030
3031 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3034 without --defined-only.
3035
3036 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3039 rip-relative addressing in prologue.
3040
3041 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3044 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3045
3046 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3049 Add missing semicolon.
3050
3051 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3054
3055 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3056
3057 * configure.ac: Check for lzma.h for enabling liblzma and allow
3058 manual disabling.
3059
3060 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 Add missing includes of loader.h.
3063
3064 2013-11-11 Fam Zheng <famcool@gmail.com>
3065
3066 * util/grub.d/30_os-prober.in: Add minix entry.
3067
3068 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3071 right buffer for temporary load.
3072
3073 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3076
3077 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3080 payload.
3081
3082 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3085 not Types.h.
3086 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3087 environment.
3088 (LzmaDec_InitDicAndState): Make static.
3089
3090 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3093
3094 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3097
3098 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3099
3100 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * docs/grub-dev.texi: Replace bzr references with git ones.
3103
3104 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3105
3106 * docs/grub.texi (Simple configuration): Remove reference to
3107 grub-reboot from saved default entry description - grub-default
3108 does not use it anymore.
3109
3110 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3113 compiled with.
3114
3115 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3116
3117 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3118
3119 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 Fix grub_machine_fini bitrot.
3122
3123 Reported by: Glenn Washburn.
3124
3125 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3128
3129 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3132 -DELF.
3133 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3134 instead of ELF*.
3135
3136 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3139 Add -march=core2 when testing compile of efiemu64.
3140
3141 Thanks Andrey Borzenkov for spotting this.
3142
3143 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3144
3145 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3146 XEN PV environment and load kernels.
3147
3148 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3151 * grub-core/loader/multiboot_mbi2.c: Likewise.
3152
3153 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3156 handling.
3157
3158 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3161
3162 Tested by: Denis 'GNUtoo' Carikli.
3163
3164 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3167
3168 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3171 Use to get rounded angle rather than truncated.
3172
3173 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3174
3175 * grub-core/term/serial.c: Add option for enabling/disabling
3176 RTS/CTS flow control.
3177
3178 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3181 divisions.
3182
3183 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3186 Use grub_fatal rather than divide by zero.
3187 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3188
3189 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3192 truncate.
3193 (grub_fixed_fsf_divide): Likewise.
3194
3195 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3198 division by-zero and senseless negative divisions.
3199
3200 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3203 division by-zero and senseless negative divisions.
3204 (circprog_set_property): Don't accept negative num_ticks.
3205
3206 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3209 division by-zero and senseless negative divisions.
3210
3211 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * configure.ac: Use elf_*_fbsd on kfreebsd.
3214
3215 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * grub-core/tests/div_test.c: New test.
3218
3219 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3220
3221 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3222 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3223 * grub-core/gfxmenu/view.c: Likewise.
3224 * grub-core/video/fb/video_fb.c: Introduce new functions:
3225 grub_video_set_area_status, grub_video_get_area_status,
3226 grub_video_set_region, grub_video_get_region.
3227 * grub-core/video/bochs.c: Likewise.
3228 * grub-core/video/capture.c: Likewise.
3229 * grub-core/video/video.c: Likewise.
3230 * grub-core/video/cirrus.c: Likewise.
3231 * grub-core/video/efi_gop.c: Likewise.
3232 * grub-core/video/efi_uga.c: Likewise.
3233 * grub-core/video/emu/sdl.c: Likewise.
3234 * grub-core/video/radeon_fuloong2e.c: Likewise.
3235 * grub-core/video/sis315pro.c: Likewise.
3236 * grub-core/video/sm712.c: Likewise.
3237 * grub-core/video/i386/pc/vbe.c: Likewise.
3238 * grub-core/video/i386/pc/vga.c: Likewise.
3239 * grub-core/video/ieee1275.c: Likewise.
3240 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3241 * include/grub/video.h: Likewise.
3242 * include/grub/video_fb.h: Likewise.
3243 * include/grub/fbfill.h: Updated render_target structure.
3244 grub_video_rect_t viewport, region, area
3245 int area_offset_x, area_offset_y, area_enabled
3246 * include/grub/gui.h: New helper function
3247 grub_video_bounds_inside_region.
3248 * docs/grub-dev.texi: Added information about new functions.
3249
3250 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3251
3252 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3253 for alignment.
3254
3255 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3256
3257 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3258 missing attribute.
3259 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3260
3261 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3264 simple division on arm and ia64.
3265
3266 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3269 link with libgcc.
3270
3271 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3274
3275 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3278 prefix symbol, not @.
3279
3280 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3281
3282 * INSTALL: Add note about older gcc and clang.
3283
3284 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3285
3286 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3287
3288 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3291 NULL pointer dereference.
3292
3293 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3294
3295 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3296 clang.
3297
3298 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3301 warnings.
3302
3303 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3306 function.
3307 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3308 * grub-core/disk/geli.c (ascii2hex): Likewise.
3309
3310 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * configure.ac: Run linker tests without -Werror.
3313 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3314 Change all occurences of -static-libgcc resp -lgcc to
3315 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3316
3317 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3320
3321 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3322
3323 Allow compiling with clang (not really supported though).
3324
3325 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3326 unconditionally.
3327 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3328 Add -mrtd -mregparm=3 on i386 when not using clang.
3329 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3330
3331 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3334 bindings.
3335 * grub-core/lib/reed_solomon.c: Likewise.
3336 * include/grub/i386/gdb.h: Likewise.
3337 * include/grub/i386/pc/int.h: Likewise.
3338 * include/grub/i386/pc/pxe.h: Likewise.
3339 * include/grub/ieee1275/ieee1275.h: Likewise.
3340
3341 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 Import libgcrypt 1.5.3.
3344
3345 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * configure.ac: Don't add -Wcast-align on x86.
3348
3349 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * configure.ac: Add -freg-struct-return on all platforms that
3352 support it.
3353
3354 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * acinclude.m4: Use -Werror on parameter tests.
3357 * configure.ac: Likewise.
3358
3359 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3362
3363 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3364
3365 * configure.ac: Check that -malign-loops works rather than assuming that
3366 either -falign-loops or -malign-loops work.
3367
3368 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3369
3370 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3371
3372 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3373
3374 * configure.ac: Prevent cflags leaking to subsequent tests by always
3375 resetting cflags to target_cflags in target tests.
3376
3377 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3380 function.
3381
3382 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3385
3386 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3387
3388 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3389
3390 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * grub-core/normal/cmdline.c (grub_cmdline_get):
3393 Remove nested functions.
3394
3395 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * tests/test_sha512sum.in: Make it work on emu.
3398
3399 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3402 functions.
3403 (grub_bidi_line_logical_to_visual): Likewise.
3404
3405 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 Remove vestiges of -Wunsafe-loop-optimisations.
3408
3409 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3410 -Wno-unsafe-loop-optimisations.
3411 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3412 pragma.
3413 * grub-core/io/gzio.c: Likewise.
3414 * grub-core/script/parser.y: Likewise.
3415 * grub-core/script/yylex.l: Likewise.
3416 * util/grub-mkfont.c: Likewise.
3417
3418 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * util/grub-mkfont.c (process_cursive): Remove nested function.
3421
3422 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3425 (grub_boot_time): Likewise.
3426
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * include/grub/symbol.h (FUNCTION): Use @function rather than
3430 "function".
3431 (VARIABLE): Likewise.
3432
3433 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3436
3437 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3438
3439 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3440 (parse_dhcp_vendor): Likewise.
3441
3442 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3443
3444 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3445
3446 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3449 Define after defining type and not before.
3450
3451 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3454 type.
3455 (grub_gcm_decrypt): Likewise.
3456 (algo_decrypt): Likewise.
3457 (grub_zfs_decrypt_real): Transform error type.
3458
3459 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3460
3461 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3462
3463 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3466 (grub_usbms_cbi_reset): Likewise.
3467 (grub_usbms_bo_reset): Likewise.
3468 (grub_usbms_reset): Likewise.
3469 (grub_usbms_attach): Likewise.
3470 (grub_usbms_transfer_cbi): Likewise.
3471
3472 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3475 "checksum = checksum;".
3476
3477 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3480 entry_type.
3481
3482 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3485 BIOS disk check.
3486
3487 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3490 type.
3491 (grub_ehci_fini_hw): Likewise.
3492 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3493
3494 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3497 return grub_usb_err_t for cosistency. All users updated.
3498
3499 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3500
3501 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3502 assigning to itself.
3503
3504 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3505 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3506
3507 Issue separate DNS queries for ipv4 and ipv6
3508
3509 Adding multiple questions on a single DNS query is not supportted by
3510 most DNS servers. This patch issues two separate DNS queries
3511 sequentially for ipv4 and then for ipv6.
3512
3513 Fixes: https://savannah.gnu.org/bugs/?39710
3514
3515 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3516 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3517 * (grub_net_dns_lookup): Now using separated dns packages.
3518 * (grub_cmd_nslookup): Add error condition.
3519 * (grub_cmd_list_dns): Print DNS option.
3520 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3521 --prefer-ipv4, and --prefer-ipv6.
3522 * include/grub/net.h (grub_dns_option_t): New enum.
3523 * (grub_net_network_level_address): option added.
3524
3525 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3526
3527 * grub-core/video/fb/video_fb.c: Merge two blit functions
3528 into one.
3529
3530 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * grub-core/term/terminfo.c: Add sequences for home and end.
3533
3534 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3537 graphics console.
3538
3539 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3542 add mode 0x12.
3543
3544 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3547 e-mail by Per Öberg.
3548
3549 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3552 name.
3553
3554 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3555
3556 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3557 emu platforms.
3558 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3559
3560 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * docs/grub.texi: Document usage of menuentry id.
3563
3564 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3565
3566 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3567
3568 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3569
3570 * grub-core/commands/i386/nthibr.c: New command.
3571
3572 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3575
3576 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3579 coordinate.
3580
3581 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 Support GRUB_DISABLE_SUBMENU config.
3584
3585 Inspired by patch from Prarit Bhargava.
3586
3587 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * docs/grub.texi: Mention RSA support.
3590
3591 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * grub-core/commands/verify.c: Add RSA support.
3594
3595 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3596
3597 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3598 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3599 device is known to be ATAPI.
3600
3601 2013-11-03 Mike Frysinger <vapier>
3602
3603 * configure.ac: Don't add target-prefix.
3604
3605 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3608 variables.
3609
3610 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3613 if language is English.
3614
3615 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3618
3619 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * configure.ac: Don't add -m32/-m64 on emu.
3622
3623 2013-11-02 neil
3624
3625 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3626 broken linux headers.
3627
3628 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3631
3632 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3635 Reed-Solomon recovery if more than half of redundancy info is 0.
3636
3637 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * util/grub-mount.c: Handle symlinks to directories.
3640
3641 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3644 find_file recursively for symlink.
3645
3646 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * tests/util/grub-shell.in: Copy themes.
3649
3650 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3653
3654 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * configure.ac: Use 0x8000 for address instead of 8000.
3657
3658 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3661 signature.
3662
3663 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3666 variable.
3667
3668 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3671
3672 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3675 file_progress_read_hook.
3676 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3677
3678 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3681 and double.
3682
3683 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3686
3687 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 Rewrite blocklist functions in order to get progress when
3690 reading large extents and decrease amount of blocklist hook calls.
3691
3692 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3695 of SI suffixes.
3696
3697 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3698
3699 Support --base-clock for serial command to handle weird cards with
3700 non-standard base clock.
3701
3702 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3705 strncpy.
3706 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3707 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3708 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3709 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3710 + strcpy rather than strncpy.
3711
3712 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3715 (check_pool_label): Likewise. Fixes overflow.
3716 (nvlist_find_value): Fix comparison.
3717
3718 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3721 more appropriate functions.
3722
3723 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3726 realloc.
3727
3728 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3731
3732 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3735 on core size.
3736
3737 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3740
3741 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3744 (initialize_tables): reset tl and td to NULL after freeing.
3745
3746 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3749
3750 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3753 of supported tags.
3754
3755 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3758
3759 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3760
3761 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3762 quirks.
3763
3764 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3767 a page in protected space.
3768
3769 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3770
3771 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3772 allocate space for zero-sized modules.
3773
3774 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3777
3778 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3779
3780 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3781
3782 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3785 safeguards. Fixes a crash with i386/pc/console.c.
3786
3787 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3790 and grub_hostfs_init.
3791
3792 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3795 windows method on other platforms without good stat as well.
3796
3797 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3800
3801 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 Make / in btrfs refer to real root, not the default volume.
3804 Modify mkrelpath to work even if device is mounted with subvolid option.
3805
3806 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3807
3808 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3809 extra_dist.
3810 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3811 extra_dist.
3812
3813 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3816 fails.
3817
3818 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3819
3820 * docs/autoiso.cfg: New file.
3821
3822 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3825 COND_GRUB_PE2ELF conditions.
3826
3827 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3830 "vnd", "rd" and "fd" disks.
3831
3832 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 Move grub_disk_write out of kernel into disk.mod.
3835
3836 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3839 handling.
3840
3841 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * grub-core/kern/misc.c (grub_abort): Make static
3844
3845 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3848 transform invalid unicode codepoints.
3849
3850 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3853 \0 checking.
3854
3855 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3858
3859 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 Consolidate cpuid code.
3862
3863 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 Move cpuid code to cpuid.h and TSC code to tsc.c.
3866
3867 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3868
3869 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3870
3871 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3872
3873 * util/grub-mkconfig.in: Replace $0 with $self.
3874 * util/grub-reboot.in: Likewise.
3875 * util/grub-set-default.in: Likewise.
3876
3877 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3878
3879 * docs/osdetect.cfg: New file.
3880
3881 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3882
3883 * tests/util/grub-shell.in: Add new --debug option.
3884
3885 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3886
3887 * tests/test_unset.in: New test.
3888
3889 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3890
3891 * tests/test_sha512sum.in: New test.
3892
3893 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3896 * include/grub/misc.h: Remove strncat.
3897 * grub-core/lib/posix_wrap/string.h: Likewise.
3898
3899 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3902 Try to handle more than 0xFFFF packets.
3903 Reported by: Bernhard Übelacker <bernhardu>.
3904 He also spotted few overflows in first version of this patch.
3905
3906 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * tests/date_unit_test.c: New test.
3909
3910 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3913 of first three years after start of validity of unixtime.
3914
3915 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3918 division as the one making more sense.
3919 (update_screen): Likewise.
3920 (complete): Likewise.
3921
3922 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3925
3926 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 Make char and string width grub_size_t rather than grub_ssize_t.
3929
3930 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3931
3932 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3933 unsigned.
3934 (grub_history_replace): Likewise.
3935
3936 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3939 appropriate.
3940
3941 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3944 appropriate.
3945
3946 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3949 Use unsigned divisions rather than signed variants.
3950
3951 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3954 unsigned arithmetics.
3955 Add missing break.
3956
3957 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3960
3961 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3962
3963 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3964 rather than signed one.
3965 (recovery): Likewise.
3966
3967 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3970
3971 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3974 than signed.
3975
3976 2013-10-25 Jon McCune <jonmccune@google.com>
3977
3978 * docs/grub.texi: Cleanup security documentation around signatures.
3979
3980 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3981
3982 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3983
3984 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3985
3986 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3987 than int.
3988
3989 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3992 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3993 functions when compiling for kernel.
3994
3995 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3998 unsigned long long when using %llu.
3999
4000 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4003 terminal after updating progress.
4004
4005 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4008 argument. We don't disable Gate A20 in this code.
4009
4010 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4013 Conceptually based on change in branch "vbe-on-coreboot".
4014
4015 2013-10-24 Robert Millan <rmh@gnu.org>
4016
4017 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4018 numeric constants with their symbolic equivalent.
4019 Taken from branch "vbe-on-coreboot".
4020
4021 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4024
4025 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4028 divmod64 for offset division.
4029
4030 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4031
4032 Rename .bzrignore to .gitignore. Add "*.o" rule.
4033
4034 * .bzrignore: Renamed to...
4035 * .gitignore: ...this.
4036
4037 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4038
4039 Add new progress module that displays the load progress of files.
4040
4041 * grub-core/lib/progress.c: New file.
4042 * grub-core/Makefile.core.def (progress): New module.
4043 * grub-core/kern/file.c (grub_file_open): File name added.
4044 * (grub_file_read): Progress hook added.
4045 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4046 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4047 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4048 * include/grub/file.h (struct grub_file): Add progress module members.
4049 * include/grub/term.h (struct grub_term_output): Likewise.
4050 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4051 Terminal velocity added.
4052 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4053 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4054 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4055 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4056 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4057 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4058 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4059 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4060 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4061 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4062 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4063 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4064
4065 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 Verify signatures of signatures unless --skip-sig is specified.
4068
4069 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4072 \0 checking.
4073
4074 Saves 70 bytes on compressed image.
4075
4076 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4077
4078 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4079 check.
4080
4081 Saves 10 bytes on compressed image.
4082
4083 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * grub-core/kern/misc.c (grub_isprint): Move to ...
4086 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4087
4088 Saves 20 bytes on compressed image due to remving exporting.
4089
4090 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4091
4092 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4093
4094 Saves 5 bytes on compressed image.
4095
4096 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4099 function get_utf8.
4100
4101 Saves 379 bytes on compressed image.
4102
4103 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4106
4107 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4110
4111 Saves 40 bytes on compressed image.
4112
4113 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4116 mask rather than 64-bit type.
4117
4118 Saves 20 bytes on compressed image.
4119
4120 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4123 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4124
4125 Saves 273 bytes on compressed image.
4126
4127 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4130 variable length arrays.
4131
4132 Saves 50 bytes on compressed image.
4133
4134 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4137
4138 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 * grub-core/fs/ufs.c: Remove variable length arrays.
4141
4142 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4145
4146 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 * grub-core/fs/zfs.c: Remove variable length arrays.
4149 Reduces zfs.mod by 160 bytes (208 compressed).
4150
4151 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4152
4153 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4154
4155 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4156
4157 * grub-core/net/arp.c: Remove variable length arrays.
4158 * grub-core/net/bootp.c: Likewise.
4159 * grub-core/net/dns.c: Likewise.
4160 * grub-core/net/icmp6.c: Likewise.
4161 * grub-core/net/net.c: Likewise.
4162
4163 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4164
4165 * grub-core/fs/ntfs.c: Remove variable length arrays.
4166 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4167 compressed).
4168
4169 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 * grub-core/fs/hfs.c: Remove variable length arrays.
4172 Reduces hfs.mod by 8 bytes (52 compressed).
4173
4174 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 * grub-core/fs/udf.c: Remove variable length arrays.
4177 Increases udf.mod by 128 bytes (but decreases by 13 when
4178 compressed).
4179
4180 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4181
4182 * grub-core/fs/iso9660.c: Remove variable length arrays.
4183 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4184 compressed).
4185
4186 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4187
4188 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4189 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4190 compressed).
4191
4192 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 * grub-core/fs/xfs.c: Remove variable length arrays.
4195 Reduces xfs.mod by 40 bytes (43 compressed).
4196
4197 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4198
4199 * grub-core/fs/fshelp.c: Remove variable length arrays.
4200 Reduces fshelp.mod by 116 bytes (23 compressed).
4201
4202 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/normal/completion.c: Remove variable length arrays.
4205 * grub-core/normal/menu_entry.c: Likewise.
4206
4207 Reduces normal.mod by 496 bytes.
4208
4209 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4212 by 356 bytes (158 compressed).
4213
4214 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4217 by 364 bytes (169 compressed).
4218
4219 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4222 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4223 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4224
4225 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4228 bitmasks to small structures of size chosen to fit in registers.
4229
4230 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4231
4232 * conf/Makefile.common: Use -freg-struct-return on i386. This
4233 decreases code size and improves performance.
4234
4235 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4238
4239 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4240
4241 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4242 "(null)" string.
4243 Simplify expressions to save around 256 bytes in kernel.img.
4244 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4245
4246 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4247
4248 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4249 Use GRUB_UTIL_FD_O_* rather than O_*.
4250
4251 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 Add haiku-specific functions.
4254
4255 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4256
4257 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4258
4259 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 Move stat () and device mode checking into OS-dependent files as
4262 long as performance doesn't suffer.
4263
4264 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 Split make_system_path_relative_to_its_root into separate file
4267 relpath.c from getroot.c as it's common between unix and haiku
4268 but otherwise haiku doesn't use any functions from unix getroot.c.
4269
4270 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4273 New function.
4274 (grub_util_is_special_file): Likewise.
4275
4276 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4277
4278 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4279 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4280
4281 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4284 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4285
4286 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4287
4288 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4289 (load_image): Likewise.
4290
4291 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * util/grub-render-label.c: Move backend part to ...
4294 * util/render-label.c: ... here.
4295
4296 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4299 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4300
4301 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4304
4305 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4308 CD-ROM in case when it's declared as having subpartitions.
4309
4310 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 Don't add -lm on haiku.
4313
4314 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4315 and empty on haiku.
4316 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4317 -lm.
4318
4319 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * configure.ac: Use -melf_*_haiku as target on haiku.
4322
4323 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 * Makefile.util.def: Add util/setup.c to extra_dist.
4326
4327 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4328
4329 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4330 unknown types through.
4331
4332 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4335 (grub_util_check_char_device): Likewise.
4336 * include/grub/emu/getroot.h: Likewise.
4337
4338 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4341 memset rather than inline static function.
4342
4343 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4346 not doing embedded decompressor.
4347
4348 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4351 shadowing.
4352 * grub-core/kern/disk.c: Likewise.
4353 * grub-core/kern/misc.c: Likewise.
4354 * include/grub/parser.h: Likewise.
4355 * include/grub/script_sh.h: Likewise.
4356 * include/grub/zfs/zfs.h: Likewise.
4357
4358 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4361
4362 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4365 defined before trying to use it.
4366
4367 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4370 warning.
4371
4372 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4375 Use __unused__ rather than __used__ on gcc < 3.2.
4376
4377 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4380 gcc < 4.0.
4381 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4382
4383 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4386
4387 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4390 * include/grub/emu/misc.h: Likewise.
4391
4392 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4393
4394 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4395 cur_color.
4396
4397 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4398
4399 * grub-core/tests/checksums.h: Regenerated due to progress bar
4400 get_minimal_size changes.
4401
4402 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4403
4404 Added `tr' command support.
4405
4406 * grub-core/commands/tr.c: New file.
4407 * grub-core/Makefile.core.def: Build rules for new module.
4408
4409 * tests/grub_cmd_tr.in: New test.
4410 * Makefile.util.def: Build rules for new test.
4411
4412 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4413
4414 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4415
4416 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4417
4418 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4419 * docs/gurb.texi: Likewise.
4420
4421 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4422
4423 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4424 Pixmap highlighted section with east and west slices was displayed
4425 incorrectly due to negative width of the central slice.
4426
4427 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4428
4429 * docs/grub.texi: Graphical options information update.
4430 Removed outdated. Updated current. Inserted missed.
4431
4432 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * docs/grub.texi: Mention few new platform-specific commands.
4435
4436 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4439 currently used so this doesn't really have any effect.
4440 Reported by: Douglas Ray <dougray>
4441
4442 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4445 compilation but prevents gcc from displaying messages in non-Latin
4446 alphabets.
4447 * conf/Makefile.common: Likewise.
4448
4449 2013-10-16 Hiroyuki YAMAMORI
4450
4451 Handle Japanese special keys.
4452 Reported by: Hiroyuki YAMAMORI.
4453 Codes supplied by: Hiroyuki YAMAMORI.
4454
4455 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4456
4457 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4458
4459 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4460
4461 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4462 * docs/grub.texi: Likewise.
4463
4464 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4465
4466 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4467 value in case of incomplete read.
4468 (grub_util_fd_write): Likewise.
4469
4470 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4473
4474 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4475
4476 * util/grub-editenv.c (create_envblk_file): More from here ...
4477 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4478
4479 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4480
4481 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4482 canonicalize file name before doing the rest.
4483
4484 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4485
4486 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4487 mingw32.
4488
4489 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4490
4491 Define grub_util_is_directory/regular/special_file and
4492 use OS-dependent versions rather than to rely on stat().
4493
4494 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * util/grub-mkimage.c: Move backend part to ...
4497 * util/mkimage.c: ... here.
4498
4499 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 Allow compilation with mingw64 albeit with warnings due to lack of
4502 %llx/%llu.
4503
4504 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4505 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4506 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4507 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4508 on mingw64.
4509 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4510
4511 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 Remove leftover references to some of the system headers.
4514
4515 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4518 read.
4519
4520 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4523 of strerror.
4524
4525 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4526
4527 Split out blocklist retrieving from setup.c to
4528 grub-core/osdep/blocklist.c and add windows implementation since
4529 generic version doesn't work on NTFS on Windows due to aggressive
4530 unflushable cache.
4531
4532 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4535 files.
4536
4537 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4538
4539 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4540 Cut tailing newline. Remove arbitrary limitation. Always use
4541 grub_util_tchar_to_utf8.
4542
4543 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4546 * tests/printf_unit_test.c (printf_test): Add %% tests.
4547 Reported by: Paulo Flabiano Smorigo.
4548
4549 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4552 implement fsync.
4553
4554 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4555
4556 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4557 use nvlist_lookup_string and don't use nvlist_print.
4558
4559 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4562 closedir to handle filename charset translation.
4563
4564 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4565
4566 * include/grub/emu/hostdisk.h: Move file operations to
4567 * include/grub/emu/hostfile.h: ... here.
4568
4569 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4572 unicode path.
4573
4574 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4577
4578 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4581 and remove export.h.
4582
4583 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * grub-core/kern/emu/error.c: Removed.
4586 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4587 explicitly as it's already in libgnu.a.
4588
4589 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4592 config-util.h include.
4593
4594 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 Split emunet into platform-dependent and GRUB-binding parts. Keep
4597 platform-dependent part in kernel for easy access to OS functions.
4598
4599 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4602 open/read/write.
4603
4604 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 * grub-core/osdep/windows/emuconsole.c: New file.
4607
4608 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4609
4610 * conf/Makefile.extra-dist: Add osdep/*/init.c
4611
4612 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4613
4614 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4615
4616 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4617
4618 * util/grub-probe.c (probe): Separate different drives in hint-str
4619 by spaces and not newlines.
4620 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4621
4622 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4623
4624 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4625 Handle CD-ROMs.
4626
4627 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 Pass-through unknown E820 types. It required reorganisation of mmap
4630 module.
4631
4632 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4633
4634 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4635
4636 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4639 fseeko.
4640
4641 2013-10-14 qwertial <qwertial>
4642
4643 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4644
4645 2013-10-14 Jon McCune <jonmccune@google.com>
4646
4647 * docs/grub.texi: Document new signatures possibility.
4648
4649 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4650
4651 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4652
4653 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4654
4655 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4656 missing prototype.
4657 (grub_util_tchar_to_utf8): Likewise.
4658
4659 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4662 * grub-core/kern/emu/main.c: Add missing include.
4663 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4664 Don't call grub_util_init_nls.
4665 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4666 Likewise.
4667
4668 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4671 stat.
4672
4673 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4674
4675 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4676
4677 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4680
4681 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 Add a wrapper for fopen. On unix-like systems just pass-through. On
4684 windows use unicode version.
4685
4686 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4687
4688 Move set_program_name and init_nls to host_init. On windows
4689 fix in this fuction console and argument charset as well.
4690
4691 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4692
4693 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4694 GRUB_ENABLE_CRYPTODISK.
4695
4696 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4697 GRUB_ENABLE_CRYPTODISK.
4698 * util/grub-mkconfig_lib.in: Likewise.
4699
4700 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4701
4702 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4703
4704 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4705
4706 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4707 error when enabling debug.
4708
4709 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4710
4711 * configure.ac: Use -melf_*_obsd on openbsd.
4712
4713 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4714
4715 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4716
4717 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 * include/grub/misc.h: Use gnu_printf rather than printf as format
4720 template since our functions are independent of libc.
4721
4722 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 * util/grub-setup.c (setup): Move copying of partition table as
4725 futher up as possible to avoid possible overwrite by floppy routines.
4726
4727 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4730
4731 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4732
4733 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4734 * docs/grub.texi: Likewise.
4735
4736 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4739 it's mostly unused. Move vestiges to the callers.
4740
4741 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4744 version of salt and hash. Use grub_snprintf rather than snprintf.
4745
4746 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * docs/grub.texi: Fix problem with braces.
4749
4750 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 * conf/Makefile.extra-dist: Fix extra-dist list.
4753 * grub-core/Makefile.core.def: Likewise.
4754
4755 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * docs/grub.texi: Document disk names used on Windows and AROS.
4758
4759 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4762 with AROS devs.
4763 * grub-core/osdep/aros/hostdisk.c: Likewise.
4764
4765 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 Avoid including hostfile.h when not necessarry as it pulls
4768 in OS-specific headers which may redefine generic names
4769 like "far".
4770
4771 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4772
4773 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4774 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4775 scrollbar_bottom_pad
4776 * docs/grub.texi: Likewise.
4777
4778 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4779
4780 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4781
4782 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4783
4784 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4785
4786 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4787
4788 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4789 Removed.
4790 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4791 Made static.
4792
4793 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4796 leftover.
4797
4798 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4799
4800 Move OS-specific driver configuration to grub_util_fd_open. This
4801 moves OS-dependent parts from kern/emu/hostdisk.c to
4802 grub-core/osdep/*/hostdisk.c.
4803
4804 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * util/grub-mkimage.c (generate_image): Use size_t instead of
4807 grub_size_t.
4808 * util/grub-mkimagexx.c (locate_sections): Likewise.
4809 (load_image): Likewise.
4810
4811 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4812
4813 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4814 size_t.
4815 (grub_util_write_image): Likewise.
4816
4817 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4818
4819 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4820 get random when no RNG is available.
4821 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4822
4823 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4824
4825 * include/grub/util/lvm.h: Removed.
4826
4827 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4830 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4831
4832 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4835
4836 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4837
4838 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4839
4840 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * grub-core/net/drivers/emu/emunet.c: Move to ..
4843 * grub-core/osdep/linux/emunet.c: ..here.
4844
4845 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 * util/ieee1275/ofpath.c: Move to ...
4848 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4849 * grub-core/osdep/basic/ofpath.c: ..here.
4850
4851 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4852
4853 Move password-querying (util-version) routines to grub-core/osdep.
4854
4855 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4856
4857 Move sleep routines to grub-core/osdep.
4858
4859 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 Move OS-dependent files to grub-core/osdep and document it.
4862
4863 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4866 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4867
4868 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4871
4872 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * util/misc.c: Remove leftover inclusion of malloc.h.
4875
4876 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * include/grub/setjmp.h: Remove leftover GRUBOF.
4879
4880 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * util/raid.c: Fold into ...
4883 * util/getroot_linux.c: ... here. Make all functions static.
4884
4885 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4888 macros to GRUB ones.
4889
4890 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4891
4892 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4893 occasional bug. If there are too many boot entries or too low
4894 scrollbar height then we need to use another formula to calculate
4895 the position and size of the scrollbar thumb.
4896
4897 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4900
4901 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4902
4903 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4904 * docs/grub.texi: Likewise.
4905
4906 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4907
4908 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4909 viewport.
4910
4911 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4912
4913 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4914 minimal width calculations.
4915
4916 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 * docs/grub.texi: Update note on colors on emu console.
4919
4920 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4921
4922 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4923 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4924 it's FS and not GRUB limitation.
4925
4926 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4929
4930 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4933
4934 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4935
4936 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4937 kernels by version order.
4938
4939 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4942
4943 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 Add AROS hostdisk and getroot routines.
4946
4947 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4948
4949 Make cryptodisk and diskfilter probe data retrievable programmatically
4950 and not just printable.
4951
4952 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4953
4954 Split random retrieving code into separate files.
4955
4956 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4959 R_ARM_V4BX.
4960
4961 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4964 condition.
4965 * grub-core/tests/fake_input.c: Likewise.
4966 * grub-core/tests/cmdline_cat_test.c: Likewise.
4967
4968 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4969
4970 * grub-core/video/capture.c: Do not do finalization when .fini
4971 is called as there is explicit capture_end.
4972
4973 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4974
4975 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4976 changing windows to avoid crash.
4977
4978 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4979
4980 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4981
4982 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4983
4984 * po/exclude.pot: Add several strings to exclude.
4985
4986 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4989
4990 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4991
4992 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4993 ./util/grub-gen-asciih.c to exclude list.
4994
4995 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4998 and don't mark error strings for translation.
4999
5000 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5003 properly in case of missing block size.
5004
5005 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * grub-core/lib/arm/setjmp.S: Add missing license section.
5008
5009 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5010
5011 * po/swiss.sed: Add replacement for key names and for term computer.
5012
5013 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5014
5015 * grub-core/gfxmenu/theme_loader.c: New global options for the
5016 theme background image handling. desktop-image-scale-method,
5017 desktop-image-h-align, desktop-image-v-align.
5018 * grub-core/gfxmenu/view.c: Likewise.
5019 * include/gfxmenu_view.h: Likewise.
5020 * include/bitmap_scale.h: Proportional scale functions introduced.
5021 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5022 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5023 cases of unexpected input variables for scale functions.
5024 * docs/grub.texi: Updated documentation for new options.
5025
5026 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5029
5030 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5031
5032 * grub-core/tests/checksums.h: Corrected due to changes in
5033 bilinear interpolation function.
5034
5035 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5036
5037 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5038 to eliminate artefacts in bilinear interpolation.
5039
5040 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 * grub-core/video/readers/tga.c: Support paletted tga.
5043
5044 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5045
5046 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5047 incorrect cbcr setting when in color mode.
5048
5049 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 * grub-core/video/readers/png.c: Support paletted images and clean up
5052 greyscale support.
5053
5054 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5057 usage of wrong table which resulted in mishandling of 4-byte
5058 sequences.
5059
5060 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5061
5062 * grub-core/term/terminfo.c: Add Home and End key sequences.
5063
5064 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5067 Fix formula for computing total number of bytes.
5068
5069 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5072 image processing, fix big-endian and support grayscale.
5073
5074 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5075
5076 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5077 Correctly will with maximum transparency when using index color.
5078
5079 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 * grub-core/video/readers/png.c: Support grayscale
5082
5083 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5084
5085 * grub-core/video/readers/jpeg.c: Support grayscale.
5086
5087 2013-09-26 Jon McCune <jonmccune@google.com>
5088
5089 * grub-core/commands/loadenv.c: Support skipping signature check
5090 and variable names filtering.
5091
5092 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5095 * grub-core/kern/emu/hostfs.c: Likewise.
5096 * util/getroot_unix.c: Likewise.
5097
5098 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5099
5100 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5101 Migrate all explicit defines to this new one.
5102
5103 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5104
5105 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5106 grub_util_fd_strerror when using grub_util_fd_*.
5107 (grub_util_fd_open_device): Likewise.
5108 (grub_util_biosdisk_read): Likewise.
5109 (grub_util_biosdisk_write): Likewise.
5110 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5111 (grub_util_fd_strerror): Likewise.
5112 (grub_util_fd_sync): Likewise.
5113 (grub_util_fd_close): Likewise.
5114 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5115 (grub_util_fd_close): Likewise.
5116 (grub_util_fd_strerror): Likewise.
5117 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5118 function proto rather than macro.
5119 (grub_util_fd_sync): Likewise.
5120 (grub_util_fd_open): Likewise.
5121 (grub_util_fd_strerror): New proto.
5122
5123 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5124
5125 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5126 platforms on which it doesn't work.
5127
5128 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5129
5130 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5131 stat immediately to where it's used.
5132
5133 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 * util/getroot.c (grub_util_check_block_device): Move to ...
5136 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5137 * util/getroot.c (grub_util_check_char_device): Move to ...
5138 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5139
5140 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5143 disk closing logic.
5144
5145 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5146
5147 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5148
5149 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5150
5151 * docs/grub.texi (File name syntax): Document ZFS filenames
5152 (/volume@snapshot/...).
5153
5154 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5157 Always return full path. Fixes a problem with mkrelpath.
5158
5159 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5160
5161 * util/grub-install.in: Add GPT PReP support.
5162 * util/grub-probe.c (probe): Support GPT partition type.
5163 (main): Support -t gpt_parttype.
5164
5165 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5166
5167 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5168
5169 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5170
5171 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5172
5173 2013-09-23 Tim Hardeck <thardeck>
5174
5175 * util/grub.d/10_hurd.in: Filter out character for the class.
5176 * util/grub.d/10_kfreebsd.in: Likewise.
5177 * util/grub.d/10_linux.in: Likewise.
5178 * util/grub.d/20_linux_xen.in: Likewise.
5179
5180 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5181
5182 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5183 "changed".
5184
5185 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5186
5187 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5188 boot partition.
5189
5190 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5191
5192 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5193 doesn't use posix_wrap. Keep literal -fno-builtin however.
5194
5195 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5198
5199 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5200 2013-09-23 neil
5201
5202 * configure.ac: Do not enable -Wmissing-noreturn as its
5203 usefulness is limited and creates problems on some OS notably with
5204 code generated by bison.
5205
5206 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5207 2013-09-23 neil
5208
5209 * configure.ac: Do not explicitly enable -Waddress as it's not
5210 supported by all gcc and when it is, it's already enabled by -Wall.
5211
5212 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5213
5214 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5215 desactivated use of EDID at all.
5216
5217 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5218 2013-09-23 neil
5219
5220 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5221 video if no text is available.
5222
5223 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5224 2013-09-23 neil
5225
5226 * configure.ac: Substitute TARGET_RANLIB.
5227
5228 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5229 2013-09-23 neil
5230
5231 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5232
5233 Based on patches from AROS.
5234
5235 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5236 2013-09-23 neil
5237
5238 * grub-core/Makefile.am: Override STRIP and RANLIB.
5239 * configure.ac: compute TARGET_RANLIB.
5240 * INSTALL: Document TARGET_RANLIB
5241
5242 Based on patches from AROS.
5243
5244 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5245
5246 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5247 that floppies are unpartitioned.
5248
5249 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5250
5251 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5252 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5253
5254 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5257 less nice but more portable.
5258 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5259
5260 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5263 for cheat_fd.
5264 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5265 functions.
5266 (grub_cryptodisk_cheat_insert): Likewise.
5267 (grub_cryptodisk_close): Likewise.
5268
5269 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5272 Use windows path for DEFAULT_DIRECTORY.
5273
5274 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5277 difference was likely just gcc version, not anything mingw-related.
5278
5279 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5280
5281 Use Winapi on both cygwin and mingw32 to share more code between both.
5282
5283 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5284
5285 * util/grub-install.in: Add --grub-editenv option.
5286 * util/grub-install_header (grub_compress_file): Explicitly check for
5287 plain file to avoid cp error.
5288
5289 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5290
5291 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5292 names; fix LVM driver name (lvm, not lv).
5293 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5294 names.
5295
5296 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5299 files rather than one file with loads of #if's.
5300 * util/getroot.c: Likewise.
5301
5302 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5305
5306 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5307
5308 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5309 GNU/Hurd to the list of checked PRNG.
5310
5311 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5312
5313 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5314
5315 2013-09-21 Ales Nesrsta <starous@volny.cz>
5316
5317 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5318
5319 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5322 * grub-core/disk/lvm.c: Add LVM UUIDs.
5323 * util/getroot.c: Use LVM UUIDs whenever possible.
5324
5325 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5326
5327 * docs/grub.texi (Networking commands): Add documentation for
5328 network related commands.
5329
5330 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5331
5332 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5333 to determine if device is handled by devmapper.
5334 (convert_system_partition_to_system_disk): Likewise.
5335 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5336 already done in grub_util_open_dm.
5337
5338 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5339
5340 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5341 Clean up stack manipulation (sync_caches_armv*)
5342
5343 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 * util/lvm.c: Remove since unused. Remove remaining references.
5346
5347 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5348
5349 Handle the case of partitioned LVM properly.
5350
5351 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5352 Stop on meeting LVM, mpath or DMRAID.
5353 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5354 (read_device_map): Likewise.
5355 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5356 device is full disk rather than erroring out on LVM and similar cases.
5357
5358 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5361
5362 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5363
5364 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5365 4K before the end.
5366 Reported by: Leif Lindholm
5367
5368 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5369 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5370
5371 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5372 codes.
5373
5374 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5375
5376 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5377 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5378
5379 2013-09-18 Douglas Ray <dougray@cpan.org>
5380
5381 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5382 as secure.
5383
5384 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5385
5386 * docs/grub.texi: Fix broken link.
5387
5388 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5389
5390 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5391 to break endless loop.
5392
5393 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5394
5395 * util/grub-fstest.c: Fix several printf formats.
5396 * util/grub-mkimage.c: Likewise.
5397 * util/grub-mkimagexx.c: Likewise.
5398 * util/grub-script-check.c: Likewise.
5399
5400 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5401
5402 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5403 error.
5404
5405 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5408
5409 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5410
5411 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5412 removed in current versions cygwin_conv_*.
5413
5414 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5415
5416 * configure.ac: Disable efiemu runtime on cygwin.
5417
5418 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5419
5420 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5421 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5422
5423 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5424
5425 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5426 error message.
5427
5428 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5429
5430 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5431 windows variant.
5432 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5433 data.
5434
5435 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5436
5437 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5438 when on x86 and not cygwin.
5439 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5440 -Wl,-melf_x86_64.
5441
5442 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * configure.ac: Set CPP to build one when checkoing for freetype for
5445 build.
5446
5447 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5450 [!GRUB_BUILD]: Remove has_argument.
5451
5452 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5455 Replace with a dummy.
5456
5457 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5458
5459 * configure.ac: Don't change host_os from mingw to cygwin.
5460
5461 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5462
5463 * configure.ac: Change target_os from windows to cygwin.
5464
5465 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5466
5467 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5468
5469 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5470 (build-grub-gen-asciih): Likewise.
5471 (build-grub-gen-widthspec): Likewise.
5472 * Makefile.util.def (grub-pe2elf): Remove.
5473 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5474 * configure.ac: Separate tests for build.
5475 Move ./build-grub-pe2elf to grub-core.
5476 Fix typo.
5477 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5478 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5479 defined.
5480 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5481 constants.
5482 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5483 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5484 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5485
5486 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5489 mingw32 as well based on grub_util_get_disk_size.
5490 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5491 grub_util_get_fd_size.
5492 (sync): Removed.
5493 (fsync): Moved to ...
5494 * grub-core/kern/emu/misc.c (fsync): ... here.
5495
5496 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5497
5498 * include/grub/mm.h (grub_extend_alloc): Remove.
5499 * grub-core/loader/i386/pc/plan9.c: Use own version of
5500 grub_extend_alloc with appropriate types.
5501
5502 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5503
5504 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5505
5506 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5507
5508 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5509
5510 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 Fix dependencies on cygwin.
5513
5514 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5515 dependencies when used and defined.
5516 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5517
5518 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5521 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5522
5523 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5526 implementation available to cause compile-time rather than runtime
5527 error.
5528
5529 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 * util/grub-fstest.c: Don't check for symlinks on windows.
5532
5533 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * INSTALL: Mention unavailability of man pages when cross-compiling.
5536
5537 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5538
5539 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5540 and gcry_log_bug.
5541 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5542
5543 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5544
5545 * INSTALL: Document cross-compilation.
5546 * acinclude.m4: Determine whether nm support -P and --defined-only.
5547 * configure.ac: Add TARGET_ to all variables pertaining to target
5548 that don't have it yet.
5549 * gentpl.py: Likewise.
5550 * grub-core/Makefile.am: Likewise.
5551 * grub-core/genmod.sh.in: Likewise.
5552 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5553 as well.
5554
5555 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5556
5557 * configure.ac: Remove -Wempty-body. It's not essential and needs
5558 recent gcc.
5559
5560 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5561
5562 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5563 * util/getroot.c: Likewise.
5564
5565 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5566
5567 * grub-core/disk/ahci.c: Add needed explicit cast.
5568 * grub-core/lib/backtrace.c: Likewise.
5569 * grub-core/net/ip.c: Likewise.
5570 * grub-core/net/tcp.c: Likewise.
5571 * grub-core/net/udp.c: Likewise.
5572
5573 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5574
5575 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5576
5577 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 * util/import_gcry.py: Add final newline in visibility.h.
5580
5581 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 * conf/Makefile.common: Fix typo.
5584
5585 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5588
5589 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 * Makefile.am (widthspec.h): Fix typo.
5592 * util/grub-gen-widthspec.c: Likewise.
5593
5594 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5595
5596 Move ascii.h and widthspec.h generation to a separate build-time-only
5597 tool.
5598
5599 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5600
5601 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5602 Always fill bootdisk info and improve check for NetBSD disklabel.
5603
5604 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * conf/Makefile.extra-dist: Add util/bin2h.c.
5607 Reported by: floppym.
5608
5609 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5612
5613 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 * configure.ac: Disable unifont and starfield if no freetype was found.
5616
5617 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5618
5619 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5620 on NetBSD and OpenBSD.
5621
5622 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5623
5624 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5625
5626 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5627
5628 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5629 reduced. Inheritant options are processed during the theme loading.
5630
5631 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5632
5633 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5634
5635 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5636
5637 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5638
5639 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5640
5641 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5642 using qemu.
5643
5644 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5645
5646 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5647 remove-potcdate.sed.
5648
5649 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5650
5651 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5652 unused attribute from pull argument.
5653
5654 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5655
5656 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5657 memory leak.
5658
5659 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5660
5661 * util/getroot.c (pull_lvm_by_command): add --separator option
5662 to vgs call to disable padding of output to 10 characters.
5663
5664 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5665
5666 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5667 here ...
5668 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5669 here.
5670
5671 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5672
5673 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5674 length.
5675
5676 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5679 full Canadian cross. Tested with build=x86_64, host=arm,
5680 target=ppc-ieee1275.
5681
5682 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * configure.ac: Error if no $BUILD_CC could be found.
5685 Reported by: DevHC.
5686
5687 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5690 i386-multiboot.
5691
5692 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5693
5694 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5695 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5696
5697 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5698
5699 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5700 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5701 falling back to the partition device, otherwise a later call to this
5702 function may fail spuriously.
5703 Reported by Axel Beckert. Fixes Debian bug #708614.
5704
5705 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5706
5707 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5708
5709 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5710
5711 Prevent shadowing of stdlib's devname(3) on BSD.
5712
5713 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5714 and devlast to diskname and disklast, respectively.
5715
5716 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5717
5718 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5719
5720 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5721
5722 * docs/grub.texi: Introduce terminal window position options:
5723 terminal-left: terminal window's left position
5724 terminal-top: terminal window's top position
5725 terminal-width: terminal window's width
5726 terminal-height: terminal window's height
5727 terminal-border: terminal window's border width
5728 * grub-core/gfxmenu/theme-loader.c: Likewise.
5729 * include/grub/gfxmenu_view.h: Likewise.
5730 * po/exlude.pot: Likewise.
5731 * grub-core/gfxmenu/view.c: Likewise.
5732 Also updated minimal window size.
5733 Also terminal_sanity_check function has been introduced.
5734 * grub-core/tests/checksums.h: Update (terminal window height
5735 is adjusted now for low resolution screen)
5736
5737 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5738
5739 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5740 position).
5741
5742 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * po/exclude.pot: Add few recent exceptions.
5745
5746 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5747
5748 * tests/grub_func_test.in: Add unicode.pf2.
5749
5750 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5751
5752 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5753 standard rather than noral color, in line with other terminals.
5754
5755 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5758 analysis.
5759
5760 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5763
5764 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5767 inappropriate printf.
5768
5769 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5770
5771 * .bzrignore: Remove grub-core/lib/dtc-grub,
5772 grub-core/Makefile.libfdt.def
5773 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5774
5775 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 * include/grub/video.h (grub_video_register): Keep double-linked as
5778 well as single-linked invariants.
5779 Reported by: qwertial.
5780
5781 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/commands/nativedisk.c (get_uuid): Handle
5784 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5785
5786 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5787
5788 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5789 maximum of NW, N, NE heights instead of N's height and maximum of
5790 NW, W, SW widths instead of W's width. (So the box will be always
5791 correctly drawn)
5792
5793 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5794
5795 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5796 Fix misuse of variable count.
5797
5798 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5799 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5800 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5801
5802 New ports to arm-uboot and arm-efi.
5803 Mostly by Leif Lindholm with some additions from
5804 Francesco Lavra and cleanup by Vladimir Serbinenko.
5805
5806 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5809 and not before.
5810 Reported by: Leon Drugi.
5811
5812 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5815 Reported by: Paulo Flabiano Smorigo.
5816
5817 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5818
5819 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5820
5821 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5822
5823 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5824
5825 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5828
5829 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5830
5831 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5832
5833 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5834
5835 * grub-core/net/bootp.c: Export net_* variables.
5836 * grub-core/net/net.c: Likewise.
5837
5838 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5839
5840 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5841
5842 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5845
5846 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5847
5848 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5849
5850 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5853
5854 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5855
5856 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5857 <= 0.
5858
5859 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5860
5861 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5862 functions.
5863
5864 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5865
5866 * grub-core/fs/zfs/zfs_lz4.c: New file.
5867 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5868
5869 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5870
5871 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5872
5873 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5874
5875 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5876 (check_pool_label): Likewise.
5877 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5878
5879 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5880
5881 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5882
5883 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5884
5885 * docs/grub.texi (Commands): Document postition parameters
5886 for menuentry command.
5887
5888 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5889
5890 * util/grub-mknetdir.in: Remove stray line from help output.
5891
5892 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5893
5894 Remove early sm712 init as there is no reason for it (the "watchdog"
5895 effect was due to wrong GPIO map).
5896
5897 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 * grub-core/commands/pcidump.c: Remove static variables.
5900
5901 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5904
5905 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 * configure.ac: Move delimiter after the infos.
5908
5909 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5910
5911 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5912
5913 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5916 not filling whole 8x16 space.
5917
5918 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5921
5922 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 * configure.ac: Indicate which liblzma is used if any.
5925
5926 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5927 2013-06-21 Craig Sanders <savannah@taz.net.au>
5928
5929 * util/grub-reboot.in: Document submenu usage.
5930
5931 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5932
5933 * .bzrignore: Update with a number of new test-related files.
5934
5935 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5936
5937 * util/grub-script-check.c: Fail on scripts containing no
5938 commands, to guard against corrupted grub-mkconfig setups that
5939 produce no useful output.
5940 * tests/grub_script_no_commands.in: New test.
5941 * Makefile.util.def (grub_script_no_commands): Add.
5942 Reported by Hans Putter. Fixes Debian bug #713886.
5943
5944 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5945
5946 * grub-core/disk/diskfilter.c: Forgot to remove comment
5947 from previous commit.
5948
5949 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5950
5951 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5952 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5953
5954 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5955
5956 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5957
5958 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5959
5960 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5961 rescan diskfilter devices until nothing new is found.
5962
5963 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5964
5965 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5966
5967 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5968
5969 Don't try to detect cbfs on *-emu.
5970
5971 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5972
5973 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5974
5975 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 Add support for processed coreboot payload chainloading.
5978
5979 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 Enable coreboot information commands even when not loaded as
5982 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5983
5984 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 Support for cbfs. Also factor out the part which is common
5987 for all archives to a separate module. This splits tar from cpio
5988 as they are very different but keeps cpio, cpio_be, odc and newc
5989 together since they're very similar.
5990
5991 2013-06-15 David Michael <fedora.dm0@gmail.com>
5992
5993 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5994 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5995
5996 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5997
5998 * tests/grub_script_eval.in: Really add the eval test.
5999
6000 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6001
6002 Move flavour-specific parts out of common cpio.c file and
6003 rename remaining to cpio_common.c
6004
6005 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6006
6007 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6008 off new function grub_script_execute_new_scope. Change callers to use
6009 either of them as appropriate.
6010 * grub-core/commands/eval.c: New command eval.
6011 * docs/grub.texi (Commands): Document it.
6012
6013 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6014
6015 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6016 to fetch values when listing.
6017
6018 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6019
6020 Fix make dist on non-pc.
6021
6022 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6023
6024 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6025 without a device name.
6026
6027 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6028
6029 Remove enable_executable_check as it's not needed anymore.
6030 Reported by: dougray.
6031
6032 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6035 ambigouos RAID before discovering RAIDs on top of it.
6036 Reported by: bodom.
6037
6038 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 Fix typo (failback vs fallback).
6041
6042 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6043
6044 * util/grub.d/30_os-prober.in: Add support for probing EFI
6045 System Partition (as of os-prober 1.58).
6046
6047 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 * configure.ac: Add yet another path to unifont. For parabola.
6050
6051 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6052
6053 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6054 handling to copy the killed characters to the kill buffer as
6055 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6056 stored as char. Eliminates UCS4 truncation and corruption
6057 observed when killing characters with Ctrl-u and yanking them
6058 back with Ctrl-y.
6059
6060 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 Detach optional parts of gfxterm and integrate in with coreboot init.
6063
6064 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6065
6066 Move blit and fill dispatcher to appropriate files to decrease export
6067 and relocation overhead.
6068
6069 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6072 functions.
6073
6074 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6075
6076 * grub-core/Makefile.am: Fix compilation problem with some
6077 automake versions.
6078
6079 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6080
6081 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6082
6083 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6086 automake versions.
6087
6088 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6091 SSDT.
6092
6093 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6094
6095 * grub-core/partmap/dfly.c: New partition map.
6096
6097 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6100 checking.
6101 Reported by: Francesco Lavra.
6102
6103 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6104
6105 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6106 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6107 false conditions.
6108 * conf/Makefile.common: define dist_grubconf_DATA
6109
6110 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6111
6112 Progressively skip menu elements on small terminals rather
6113 than crashing.
6114
6115 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6116
6117 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6118 to avoid losing last column.
6119
6120 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 * po/exclude.pot: Add missing string "%C".
6123
6124 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6127 after the test.
6128
6129 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * util/grub-install.in: Gettextize "Not found" message.
6132
6133 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 Fix distfiles list.
6136 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6137
6138 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6139
6140 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6141 present.
6142 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6143
6144 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6147
6148 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6149
6150 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6151 attribute since structure is not necessarily aligned.
6152
6153 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6154
6155 * docs/grub.texi (Device syntax): Clarify description of network
6156 drives.
6157
6158 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6159
6160 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6161 for vasprintf presence.
6162
6163 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 * util/grub-install.in: Handle efibootmgr presence check.
6166 Reported by: Leif Lindholm.
6167
6168 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6171 new strings to translate.
6172
6173 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6174
6175 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6176 yet another string (pun intended) to translate.
6177
6178 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 * po/POTFILES-shell.in: Autogenerate it.
6181
6182 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6183
6184 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6185
6186 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6189 misnomer.
6190
6191 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6192
6193 * docs/grub.texi (Network): Add description of net_default_interface,
6194 net_default_ip and net_default_mac. Rewrite variables description
6195 to emphasize that they are per-interface.
6196
6197 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 New test: cmdline and cat.
6200
6201 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6202
6203 * grub-core/commands/cat.c: Show UTF-8 characters.
6204
6205 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * conf/Makefile.common: Poison float and double on non-emu.
6208
6209 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6210
6211 * configure.ac: Don't disable extended registers on emu.
6212
6213 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 * configure.ac: Don't use extended registers on x86_64.
6216 Reported by: Peter Jones.
6217
6218 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * grub-core/term/efi/console.c: Fix compile error.
6221
6222 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6223
6224 Compressed HFS+ support.
6225
6226 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6229 pixel".
6230
6231 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 Menu color test.
6234
6235 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 * grub-core/tests/setjmp_test.c: New test.
6238
6239 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 New variables 'net_default_*' to determine MAC/IP of default interface.
6242
6243 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6244
6245 * tests/gettext_strings_test.in: A test to check for strings not
6246 marked for translation.
6247
6248 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * autogen.sh: Exclude unused libgcrypt files from translation.
6251
6252 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 Simplify few strings.
6255
6256 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 Mark few forgotten strings for translation.
6259
6260 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6263 rather than printf.
6264
6265 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6268 rather than printf.
6269 * grub-core/video/readers/tga.c: Likewise.
6270
6271 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * tests/priority_queue_unit_test.cc: New test.
6274
6275 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6276
6277 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6278 than printf.
6279
6280 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6281
6282 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6283 variable for one time boot menu entry.
6284
6285 2013-05-05 Bean <bean123ch@gmail.com>
6286
6287 * grub-core/commands/testspeed.c: New command testspeed.
6288
6289 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6290
6291 Factor-out human-size printing.
6292
6293 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 Agglomerate more mallocs to speed-up gfxterm.
6296
6297 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 Speed-up gfxterm by slightly agglomerating mallocs.
6300
6301 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 More video checks.
6304
6305 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6306
6307 Speed-up gfxterm by saving intermediate results in index+alpha
6308 format.
6309
6310 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6313 test.
6314
6315 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6318 line of timeout as it may contain the rest of long line.
6319
6320 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * grub-core/normal/main.c: Fix freed memory dereference.
6323
6324 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6325
6326 Fix several memory leaks.
6327
6328 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6329
6330 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6331
6332 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6333
6334 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6335
6336 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 Fix test -a and -o precedence.
6339 Reported by: adrian15.
6340
6341 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6344
6345 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6346
6347 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6348 and add it as source to functional_test module.
6349
6350 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6353
6354 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6355
6356 New series of tests for gfxterm and gfxmenu.
6357
6358 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6361 the theme path relative to $prefix/themes.
6362
6363 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6366 Fix order bug.
6367 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6368
6369 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6372 descriptor.
6373
6374 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6377 grub_gfxmenu_timeout_notifications.
6378 (grub_gfxmenu_view_destroy): Likewise.
6379
6380 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6383
6384 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 Several fixes to ieee1275 and big-endian video.
6387
6388 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 Add missing exports on mips.
6391
6392 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6395 if no unifont is found.
6396 Restore original keyboard.
6397
6398 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6399
6400 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6401 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6402
6403 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6404
6405 First automated video test (running videotest and comparing results)
6406
6407 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6408
6409 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6410 instead of 2 to have full RGB/CMY test pattern.
6411
6412 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 Add few more tests.
6415
6416 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6419 ARCS. All users updated.
6420
6421 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6422
6423 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6424
6425 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6428
6429 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6432 Reported by: qwertial.
6433
6434 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6435
6436 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6437 with syntax "XXX deg"/"XXX °".
6438
6439 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6440
6441 Make PCI init in i386-qemu port more robust.
6442
6443 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6444
6445 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6446 cached view is reused.
6447 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6448 open boot menus.
6449
6450 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6451
6452 Unify more code in grub-install_header.
6453
6454 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 Add few new tests.
6457
6458 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6459
6460 Enforce disabling of firmware disk drivers when native drivers kick in.
6461
6462 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 * grub-core/commands/nativedisk.c: Customize the list of modules on
6465 platform. Don't try to search for disks already using native drivers.
6466
6467 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6470 platforms.
6471
6472 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6475 handling of variables containing backslash.
6476
6477 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6480 dereference.
6481 Reported by: qwertial.
6482
6483 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6484
6485 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6486
6487 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6490 dereference.
6491 Reported by: qwertial.
6492
6493 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6496
6497 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6500
6501 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 New command `nativedisk'.
6504
6505 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6506
6507 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6508 * grub-core/loader/i386/bsd.c: Likewise.
6509
6510 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6511
6512 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6513
6514 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6517 grub_get_unaligned16 rather than shifts.
6518
6519 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6520
6521 * grub-core/kern/file.c: Use const char * rather than casting to
6522 non-const.
6523
6524 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6525
6526 * grub-core/commands/probe.c: Add missing grub_device_close.
6527
6528 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 * INSTALL: Document linguas.sh.
6531
6532 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 Remove POTFILES.in and regenerate it in autogen.sh.
6535
6536 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 Move --directory/--override-directorry to grub-install_header and unify.
6539
6540 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 * grub-core/term/morse.c: Macroify dih and dah.
6543
6544 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6545
6546 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6547
6548 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * grub-core/term/ns8250.c: Systematically probe ports by writing
6551 to SR before using them.
6552
6553 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6554
6555 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6556 disks.
6557 (check_sas): Get sas_adress info.
6558
6559 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6562 ports.
6563
6564 2013-04-27 Leon Drugi <eyak>
6565
6566 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6567 BSS clearing.
6568
6569 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 Core compression test.
6572
6573 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 Implement grub_machine_get_bootlocation for ARC.
6576
6577 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 Improve AHCI detection and command issuing.
6580
6581 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6582
6583 Fix pseries test.
6584
6585 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 Make 'make check' work on emu.
6588
6589 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 Replace libcurses with our own vt100 handling for the ease of testing
6592 and decreasing prerequisites.
6593
6594 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6597
6598 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6599
6600 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6601 compile when not needed.
6602
6603 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 * tests/pseries_test.in: New test.
6606
6607 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 Add test to check that different boot mediums work.
6610
6611 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6614 ofw limited ISO support.
6615
6616 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 * configure.ac: Fix loongson conditional.
6619
6620 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 Enable mipsel-arc.
6623
6624 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6625
6626 Add serial on ARC platform.
6627
6628 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6631 commit.
6632
6633 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6634
6635 * tests/partmap_test.in: Add missing double semicolon.
6636
6637 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * util/grub-mkrescue.in: Fix loongson filename.
6640
6641 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 * util/grub-mkrescue.in: Move all files that don't have a location
6644 set in stone under /boot/grub. Use ISO hard links rather than copies
6645 to save some space.
6646
6647 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6650 bogus SLOF values.
6651
6652 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 Make check work on mips-arc.
6655
6656 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * util/grub-mkrescue.in: Alias sashARCS as sash.
6659
6660 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6661
6662 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6663 it's serial.
6664
6665 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6666
6667 * util/grub-install.in: Fix target fo qemu_mips.
6668 Fix extension on EFI.
6669
6670 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6673 in front of chosen entry to mark it even if highlighting is lost.
6674
6675 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6678 gfxpayload=keep if cbfb is active.
6679
6680 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6683
6684 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 Add missing video ids to coreboot and ieee1275 video.
6687
6688 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * util/grub-mkrescue.in: Add mips-arc support.
6691
6692 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6695
6696 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6697
6698 Move mips-arc link address. Previous link address was chosen
6699 in belief that RAM on SGI platforms grows down while in fact it
6700 grows up from an unusual base.
6701
6702 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6705 Fix a type which prevented CD-ROM and floppy boot.
6706
6707 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6708
6709 Support coreboot framebuffer.
6710
6711 * grub-core/video/i386/coreboot/cbfb.c: New file.
6712
6713 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6716 detecting too small regions.
6717
6718 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6721
6722 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6725 Remove dprintf.
6726 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6727
6728 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6729
6730 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6731 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6732 * grub-core/loader/powerpc/ieee1275/linux.c
6733 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6734
6735 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6738 Look for /boot-rom as well as /rom/boot-rom.
6739
6740 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6743 handling when creating text_layer failed.
6744 * grub-core/video/video.c (grub_video_create_render_target):
6745 Set result to 0 on error.
6746 (grub_video_delete_render_target): Do not dereference NULL.
6747
6748 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6751 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6752 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6753 (grub_linux_load64): Mask out 2 high bits.
6754
6755 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6756
6757 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6758 more place.
6759
6760 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 Add support for pseries and other bootinfo machines to grub-mkrescue.
6763
6764 Tested by: Paulo Flabiano Smorigo.
6765
6766 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 * util/grub-mkrescue.in: Add GPT for EFI boot.
6769
6770 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6771
6772 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6773 It improves performance in qemu.
6774
6775 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 * build-aux/snippet: Add missing gnulib files.
6778
6779 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6780
6781 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6782
6783 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6784
6785 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6786
6787 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6788 2013-04-15 Peter Jones <pjones@redhat.com>
6789
6790 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6791 sectors.
6792 Based on patch by Peter Jones.
6793
6794 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6795
6796 Fix DMRAID partition handling.
6797
6798 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 * tests/grub_cmd_date.in: Skip on sparc64.
6801
6802 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6805 firmware error messages.
6806
6807 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6810 source and destination differ.
6811
6812 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6815 detection.
6816
6817 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6820 match config-util.h to avoid warnings and increase compatibility.
6821
6822 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6823 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 Add option to compress files on install/image creation.
6826
6827 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * docs/grub-dev.texi: Rearrange menu to match the section order.
6830 Reported by: Bryan Hundven.
6831
6832 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6833
6834 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6835
6836 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6837
6838 Move GRUB out of system area when using xorriso 1.2.9 or later.
6839
6840 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * tests/grub_cmd_date.in: Add missing exit 1.
6843
6844 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * tests/partmap_test.in: Skip on sparc64.
6847
6848 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6849
6850 Support grub-shell on sparc64.
6851
6852 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 Support mkrescue on sparc64.
6855
6856 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6857
6858 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6859 Needed on OpenBIOS due to incomplete device tree.
6860
6861 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6864 would be otherwise excluded.
6865
6866 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6869 Inline name defines used only once.
6870
6871 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 Fix memory leaks in ofnet.
6874 Reported by: Francesco Lavra.
6875
6876 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * docs/man/grub-glue-efi.h2m: Add missing file.
6879
6880 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6883
6884 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 Better support Apple Intel Macs on CD.
6887
6888 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 Replace stpcpy with grub_stpcpy in tools.
6891
6892 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 Handle Japanese special keys.
6895 Reported by: Hiroyuki YAMAMORI.
6896 Codes supplied by: Hiroyuki YAMAMORI.
6897
6898 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 * util/grub-mkimage.c: Document memdisk implying --prefix.
6901
6902 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6903
6904 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6905 much we can do about it anyway.
6906
6907 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6908
6909 Fix handling of split transfers.
6910
6911 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6912
6913 * grub-core/net/http.c: Fix bad free.
6914
6915 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6916
6917 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6918 than buffer size.
6919
6920 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6921
6922 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6923
6924 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6925
6926 * tests/util/grub-shell.in: Fix it on powerpc.
6927
6928 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 Turn off QEMU ACPI-way since new releases don't have shutdown port
6931 anymore.
6932
6933 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6934
6935 * docs/grub.texi: Update coreboot status info.
6936
6937 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6938
6939 * tests/grub_cmd_date.in: New test for datetime.
6940
6941 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * tests/partmap_test.in: Fix missing qemudisk setting.
6944
6945 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6946
6947 Support i386-ieee1275 grub-mkrescue and make check on it.
6948
6949 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6952 feature for it.
6953
6954 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6955
6956 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6957 GRUB_CMDLINE_XEN_DEFAULT.
6958 Reported by: Marc Warne (GigaTux) <gigatux>
6959
6960 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 Import new gnulib.
6963
6964 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 Use ACPI shutdown intests as traditional port was removed.
6967
6968 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6969
6970 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6971 distinction.
6972
6973 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6976 Fix few warining messages and leaks while on it.
6977
6978 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6979
6980 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6981 links under grub-core/lib/libgcrypt-grub/mpi.
6982
6983 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 Fix ia64-efi image generation on big-endian machines. Deduplicate
6986 some code while on it.
6987 Reported by: Leif Lindholm.
6988
6989 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6990
6991 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6992 as extra_dist.
6993
6994 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6995
6996 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6997
6998 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6999
7000 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7001 texinfo-5.1.
7002
7003 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 * grub-core/normal/term.c: Few more fixes for menu entry editor
7006 rendering.
7007 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7008
7009 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7010
7011 * grub-core/normal/term.c: Few more fixes for menu entry editor
7012 rendering.
7013 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7014
7015 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7016
7017 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7018 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7019
7020 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7021
7022 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7023 instead of hardcoding grub.mo.
7024
7025 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7026
7027 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7028
7029 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7032 grub-core/disk/geli.c.
7033
7034 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * util/grub-mkfont.c: Prefer enum to #define.
7037
7038 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7039
7040 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7041
7042 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7043
7044 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7045
7046 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7049
7050 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7051
7052 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7053
7054 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * include/grub/bsdlabel.h: Use enums.
7057
7058 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7059
7060 Move GRUB_CHAR_BIT to types.h.
7061
7062 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7063
7064 * docs/grub.texi: Document more user commands.
7065
7066 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7067
7068 * docs/grub.texi: Document menuentry --id option.
7069
7070 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7071
7072 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7073
7074 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 Unify file copying setup across different install scripts. Add
7077 options for performing partial install.
7078
7079 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7080 2013-04-04 Peter Jones <pjones@redhat.com>
7081
7082 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7083
7084 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 Use TSC as a possible time source on i386-ieee1275.
7087
7088 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7091 Init err.
7092
7093 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 * util/grub-setup.c (setup): Handle some corner cases.
7096
7097 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7098
7099 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7100
7101 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7102
7103 * grub-core/commands/verify.c: Save verified file to avoid it being
7104 tampered with after verification was done.
7105
7106 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7109 reported width by one to compensate for curesor algorithm problem.
7110
7111 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 Fix screen corruption in menu entry editor and simplify the code
7114 flow while on it.
7115
7116 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7117
7118 * util/grub-mount.c (fuse_init): Return error if fuse_main
7119 failed.
7120
7121 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7122
7123 * include/grub/elf.h: Add missing ARM relocation codes and fix
7124 existing ones.
7125
7126 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7127
7128 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7129
7130 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7131 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7134 into account when calculating radius.
7135
7136 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7137
7138 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7139
7140 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7141
7142 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7143
7144 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7145
7146 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7147 missing closing bracket.
7148
7149 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7150
7151 * INSTALL: Mention xorriso requirement.
7152
7153 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7154
7155 * grub-core/commands/verify.c: Fix hash algorithms values for
7156 the first three hashes - they start with 1, not with 0.
7157
7158 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7159
7160 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7161 Try terminating EFI services several times due to quirks in some
7162 implementations.
7163
7164 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7165
7166 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7167 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7168 BankField extended opcodes.
7169 (get_sleep_type): Add minimal scope handling (just enough to
7170 handle setting the scope to the root path).
7171 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7172 * include/grub/acpi.h: Add enumeration values for Event, Device,
7173 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7174
7175 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7176
7177 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7178 memory leak.
7179
7180 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 * grub-core/disk/ahci.c: Give more time for AHCI request.
7183
7184 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7187 command.
7188
7189 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 Replace the region at 0 from coreboot tables to available in BSD
7192 memory map.
7193
7194 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7197 non-BIOS platforms.
7198
7199 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7202 platforms.
7203
7204 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7207 handling of multi-device filesystems.
7208
7209 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7210
7211 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7212 platforms.
7213
7214 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7215
7216 Add new 'proc' filesystem framework and put luks_script into it.
7217
7218 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7221 and qemu.
7222
7223 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7224
7225 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7226
7227 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7228
7229 Add ability to generate newc additions on runtime.
7230
7231 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7232
7233 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7234 description.
7235
7236 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7237
7238 * po/POTFILES.in: Regenerate.
7239
7240 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 * grub-core/commands/verify.c (hashes): Add several hashes
7243 from the spec.
7244
7245 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7246
7247 Slight improve in USB-related boot-time checkpoints.
7248
7249 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * grub-core/commands/boottime.c: Fix copyright header.
7252
7253 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7254
7255 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7256 coreboot tables content. Support for cbmemc.
7257
7258 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 Fix a conflict between ports structures with 2 controllers of
7261 same kind.
7262
7263 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 * include/grub/boottime.h: Add missing file.
7266
7267 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7268
7269 Initialize USB ports in parallel to speed-up boot.
7270
7271 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7272
7273 Fix USB devices not being detected when requested
7274 due to delayed attach.
7275
7276 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 Implement boot time analysis framework.
7279
7280 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7281
7282 Remove get_endpoint_descriptor and change all functions needing
7283 descriptor to just receive it as argument rather than endpoint
7284 address.
7285
7286 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7287
7288 Better estimate the maximum USB transfer size.
7289
7290 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 Resend a packet if we got the wrong buffer in status.
7293
7294 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7297 multiplication rather than division.
7298
7299 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7302 than divisions.
7303
7304 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7307 operations to have intended shifts and not divisions.
7308
7309 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7312 intended shifts rather than division.
7313
7314 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7315
7316 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7317 computation for some years before epoch. Avode confusing division
7318 while on it.
7319
7320 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7321
7322 * grub-core/video/i386/pc/vbe.c
7323 (grub_video_vbe_print_adapter_specific_info): Replace division by
7324 shifts.
7325
7326 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7327
7328 Adjust types in gdb module to have intended unsigned shifts rather than
7329 signed divisions.
7330
7331 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7334 maximum size is 4G - 1 on hfs
7335
7336 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7339
7340 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7343 function.
7344
7345 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7346
7347 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7348 causing gcc error with gcc 4.7.1.
7349
7350 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7351
7352 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7353 dereference null pointer. While the code is technically correct, gcc
7354 may eliminate a null check if pointer is already dereferenced.
7355
7356 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7357
7358 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7359 OOM check.
7360 * grub-core/normal/term.c (read_terminal_list): Likewise.
7361
7362 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7363
7364 Lift up core size limits on some platforms. Fix potential memory
7365 corruption with big core on small memory systems. Document remaining
7366 limits.
7367
7368 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7371 gotoxy to 0,0.
7372
7373 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 Remove all trampoline support. Add -Wtrampolines when
7376 present. Remove symbols used for trampolines to make
7377 link fail if trampolines are present.
7378
7379 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7382 append out of its parent.
7383
7384 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7385
7386 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7387 parent.
7388
7389 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7392 all vars to a macro. All users updated.
7393
7394 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7397 i386-ieee1275.
7398
7399 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7402
7403 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7406
7407 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 Move to more hookless approach in IEEE1275 devices handling.
7410
7411 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 * grub-core/kern/term.c (grub_term_normal_color),
7414 (grub_term_highlight_color): Add back lost defaults.
7415
7416 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 Make elfload not use hooks. Opt for flags and iterators instead.
7419
7420 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7423 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7424
7425 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7428
7429 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7430
7431 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7432 hook pass-through parameter. All users updated and unnested.
7433
7434 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7437 out of its parent.
7438
7439 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * grub-core/fs/hfs.c: Remove nested functions.
7442
7443 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7446 the context through.
7447 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7448
7449 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 * util/grub-editenv.c (list_variables): Move print_var out of its
7452 parent.
7453
7454 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7457 function.
7458
7459 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * grub-core/gentrigtables.c: Make tables const.
7462
7463 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7464
7465 Remove nested functions from videoinfo iterators.
7466
7467 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7470 for 64-bit platforms.
7471
7472 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7475 a FOR_CHILDREN macro.
7476
7477 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7480 platform from firmware path.
7481
7482 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 Enable linux16 on non-BIOS systems for i.a. memtest.
7485
7486 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7487 correctly.
7488 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7489
7490 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7493 Fix end of table condition.
7494
7495 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7498 out of its parent.
7499
7500 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * grub-core/fs/jfs.c: Remove nested functions.
7503
7504 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7505
7506 * grub-core/fs/minix.c: Remove nested functions.
7507
7508 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * grub-core/fs/iso9660.c: Remove nested functions.
7511
7512 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7515 of parent function.
7516
7517 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 * util/grub-fstest.c: Remove nested functions.
7520
7521 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * grub-core/loader/machoXX.c: Remove nested functions.
7524
7525 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7526
7527 Remove nested functions from disk and file read hooks.
7528
7529 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7530 (struct grub_disk): Add read_hook_data member.
7531 * include/grub/file.h (struct grub_file): Likewise.
7532 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7533 argument.
7534
7535 Update all callers.
7536
7537 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7538
7539 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7540 Fix off by one error in enumerating extended partitions.
7541
7542 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7543
7544 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7545 memory leak if device name is not found.
7546
7547 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7548
7549 * grub-core/normal/menu_entry.c (update_screen): remove
7550 unused variable `off' which caused scroll down arrow to be always shown.
7551
7552 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7553
7554 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7555 access to unallocated memory.
7556
7557 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7558
7559 * Makefile.util.def: Add partmap/msdos.c to common library.
7560 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7561 * grub-core/disk/ldm.c: Check for existence of
7562 GRUB_PC_PARTITION_TYPE_LDM.
7563
7564 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7565
7566 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7567 sizes and display sector size.
7568
7569 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7570
7571 Implement new command cmosdump.
7572
7573 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7574
7575 Support Openfirmware disks with non-512B sectors.
7576
7577 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7578 size of the disk.
7579 * (grub_ofdisk_get_block_size): New function.
7580 * (grub_ofdisk_prepare): Use the correct block size.
7581 * (grub_ofdisk_read): Likewise.
7582 * (grub_ofdisk_write): Likewise.
7583 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7584 New proto.
7585
7586 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7587
7588 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7589
7590 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7593 on first error.
7594
7595 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7596
7597 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7598 freeing it.
7599
7600 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 Implement USBDebug (full USB stack variant).
7603
7604 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7607 unless they have unexpected values.
7608
7609 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7610
7611 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7612 grub_print_error.
7613
7614 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7617 zero-out of port structure.
7618
7619 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7622 of extended attributes.
7623
7624 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7625
7626 * util/grub-install.in: change misleading comment about
7627 device.map creation
7628
7629 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7632 when menu highlight color isn't set.
7633
7634 2013-01-27 C. Masloch <pushbx@38.de>
7635
7636 Improve FreeDOS direct loading support compatibility.
7637
7638 * include/grub/i386/relocator.h (grub_relocator16_state):
7639 New member ebp.
7640 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7641 variable.
7642 (grub_relocator16_boot): Handle %ebp.
7643 * grub-core/lib/i386/relocator16.S: Likewise.
7644 * grub-core/loader/i386/pc/freedos.c:
7645 Load BPB to pass kernel which partition to load from.
7646 Check that kernel file is not too large.
7647 Set register dl to BIOS unit number as well.
7648
7649 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7650
7651 * util/grub-reboot.in (usage): Document the need for
7652 GRUB_DEFAULT=saved.
7653 * util/grub-set-default.in (usage): Likewise.
7654 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7655
7656 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7659 than defining WORDS_BIGENDIAN manually.
7660
7661 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7664 invariants.
7665
7666 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7667
7668 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7669 nested.
7670 (blit_comb: add_device_width): Likewise.
7671
7672 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7673
7674 Remove nested functions from USB iterators.
7675
7676 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7677 (grub_usb_controller_iterate_hook_t): Likewise.
7678 (grub_usb_iterate): Add hook_data argument.
7679 (grub_usb_controller_iterate): Likewise.
7680 (struct grub_usb_controller_dev.iterate): Likewise.
7681
7682 Update all implementations and callers.
7683
7684 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7685
7686 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7687 margin when not needed.
7688
7689 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 Make color variables global instead of it being per-terminal.
7692
7693 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7694
7695 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7696 asterisk.
7697
7698 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7699
7700 Fix powerpc and sparc64 build failures caused by un-nesting memory
7701 map iterators.
7702
7703 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7704
7705 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7706 parameter declarations.
7707
7708 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7711
7712 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 Improve spkmomdem reliability by adding a separator between bytes.
7715
7716 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7717
7718 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7719 an Acer registration utility with several sightings in the wild.
7720 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7721
7722 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7723
7724 Remove nested functions from filesystem directory iterators.
7725
7726 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7727 (struct grub_fs.dir): Add hook_data argument.
7728
7729 Update all implementations and callers.
7730
7731 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7732
7733 * docs/grub.texi (Multi-boot manual config): Fix typo for
7734 "recommended".
7735
7736 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7737
7738 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7739 until after its use in generate_image.
7740
7741 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7742
7743 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7744 initrd size to addr_min, since the initrd will be allocated after
7745 this address.
7746
7747 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7748
7749 * conf/Makefile.common: Fix autogen rules to pass definition
7750 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7751
7752 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7753
7754 * include/grub/elf.h: Update ARM definitions based on binutils.
7755
7756 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7757
7758 Split long USB transfers into short ones.
7759
7760 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7761
7762 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7763 is interrupted by ESC.
7764
7765 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7766
7767 * util/grub-script-check.c (main): Uniform the error message.
7768
7769 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7770
7771 Remove nested functions from ELF iterators.
7772
7773 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7774
7775 Remove nested functions from device iterators.
7776
7777 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7778 (grub_arc_iterate_devs): Add hook_data argument.
7779 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7780 (struct grub_ata_dev.iterate): Add hook_data argument.
7781 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7782 (grub_device_iterate): Add hook_data argument.
7783 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7784 (struct grub_disk_dev.iterate): Add hook_data argument.
7785 (grub_disk_dev_iterate): Likewise.
7786 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7787 Likewise.
7788 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7789 Likewise.
7790 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7791 type.
7792 (struct grub_partition_map.iterate): Add hook_data argument.
7793 (grub_partition_iterate): Likewise.
7794 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7795 (struct grub_scsi_dev.iterate): Add hook_data argument.
7796
7797 Update all callers.
7798
7799 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7800
7801 Fix typos for "developer" and "development".
7802
7803 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7804
7805 Add license header to spkmodem-recv.c.
7806
7807 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7808
7809 Rewrite spkmodem to use PIT for timing. Double the speed.
7810
7811 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7812
7813 Add new command pcidump.
7814
7815 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7816
7817 New terminal outputs using serial: morse and spkmodem.
7818
7819 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 Improve bidi handling in entry editor.
7822
7823 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7824
7825 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7826 argument to prevent name collision.
7827
7828 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7829
7830 Remove nested functions from script reading and parsing.
7831
7832 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7833 getline_data argument, passed to getline.
7834 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7835 getline_data argument, passed to grub_parser_split_cmdline.
7836 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7837 lexerstate->getline_data to lexerstate->getline.
7838 (grub_script_lexer_init): Add getline_data argument, saved in
7839 lexerstate->getline_data.
7840 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7841 argument, passed to grub_script_parse.
7842 * grub-core/script/script.c (grub_script_parse): Add getline_data
7843 argument, passed to grub_script_lexer_init.
7844 * include/grub/parser.h (grub_parser_split_cmdline): Update
7845 prototype. Update all callers to pass appropriate getline data.
7846 (struct grub_parser.parse_line): Likewise.
7847 (grub_rescue_parse_line): Likewise.
7848 * include/grub/reader.h (grub_reader_getline_t): Add void *
7849 argument.
7850 * include/grub/script_sh.h (struct grub_lexer_param): Add
7851 getline_data member.
7852 (grub_script_parse): Update prototype. Update all callers to pass
7853 appropriate getline data.
7854 (grub_script_lexer_init): Likewise.
7855 (grub_normal_parse_line): Likewise.
7856
7857 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7858 data argument.
7859 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7860 static instead of nested. Rename to ...
7861 (grub_parser_execute_getline): ... this.
7862 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7863 data argument.
7864 * grub-core/normal/main.c (read_config_file: getline): Make static
7865 instead of nested. Rename to ...
7866 (read_config_file_getline): ... this.
7867 (grub_normal_read_line): Add unused data argument.
7868 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7869 getline): Make static instead of nested. Rename to ...
7870 (grub_script_execute_sourcecode_getline): ... this.
7871 * util/grub-script-check.c (main: get_config_line): Make static
7872 instead of nested.
7873
7874 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7875
7876 Remove nested functions from memory map iterators.
7877
7878 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7879 argument, passed to hook.
7880 * grub-core/kern/i386/coreboot/mmap.c
7881 (grub_linuxbios_table_iterate): Likewise.
7882 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7883 instead of nested.
7884 (grub_machine_mmap_iterate): Add hook_data argument.
7885 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7886 Add hook_data argument, passed to hook.
7887 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7888 Likewise.
7889 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7890 Likewise.
7891 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7892 Likewise.
7893 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7894 Likewise.
7895 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7896 Likewise.
7897 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7898 Likewise.
7899 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7900 (grub_machine_mmap_iterate): Likewise.
7901 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7902 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7903 prototype.
7904 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7905 Remove NESTED_FUNC_ATTR from here and from all users.
7906 (grub_mmap_iterate): Update prototype.
7907 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7908 pass appropriate hook data.
7909 (grub_machine_mmap_iterate): Likewise.
7910
7911 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7912 static instead of nested.
7913 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7914 Rename to ...
7915 (lsmmap_hook): ... this.
7916 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7917 Likewise.
7918 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7919 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7920 heap_init): Likewise.
7921 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7922 Rename to ...
7923 (mmap_iterate_hook): ... this.
7924 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7925 Likewise.
7926 * grub-core/lib/ieee1275/relocator.c
7927 (grub_relocator_firmware_get_max_events: count): Likewise.
7928 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7929 to ...
7930 (grub_relocator_firmware_fill_events_iter): ... this.
7931 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7932 hook): Likewise. Rename to ...
7933 (grub_relocator_alloc_chunk_align_iter): ... this.
7934 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7935 Rename to ...
7936 (generate_e820_mmap_iter): ... this.
7937 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7938 Rename to ...
7939 (count_hook): ... this.
7940 (grub_linux_boot: hook): Likewise. Rename to ...
7941 (grub_linux_boot_mmap_find): ... this.
7942 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7943 (grub_linux_boot_mmap_fill): ... this.
7944 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7945 hook): Likewise. Rename to ...
7946 (grub_fill_multiboot_mmap_iter): ... this.
7947 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7948 hook): Likewise. Rename to ...
7949 (count_hook): ... this.
7950 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7951 hook): Likewise. Rename to ...
7952 (grub_fill_multiboot_mmap_iter): ... this.
7953 * grub-core/loader/powerpc/ieee1275/linux.c
7954 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7955 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7956 Likewise. Rename to ...
7957 (alloc_phys_choose): ... this.
7958 (determine_phys_base: get_physbase): Likewise.
7959 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7960 find_hook): Likewise.
7961 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7962 (malloc_hook: count_hook): Likewise.
7963 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7964 Likewise. Rename to ...
7965 (lower_hook): ... this.
7966 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7967 (upper_hook): ... this.
7968 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7969 (post64_hook): ... this.
7970 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7971 Likewise. Rename to ...
7972 (lower_hook): ... this.
7973 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7974 (upper_hook): ... this.
7975 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7976 (grub_mmap_iterate: fill_hook): Likewise.
7977 (fill_mask): Pass addr and mask within a single struct.
7978 (grub_cmd_badram: hook): Make static instead of nested. Rename
7979 to ...
7980 (badram_iter): ... this.
7981 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7982 (cutmem_iter): ... this.
7983
7984 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7985
7986 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7987 delimit path in strings using quotes.
7988 * util/getroot.c (grub_guess_root_devices): Likewise.
7989 (grub_make_system_path_relative_to_its_root): Likewise.
7990 * util/grub-probe.c (probe): Likewise.
7991 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7992 (xrealpath): Likewise.
7993
7994 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7995
7996 Fix compilation with older compilers.
7997
7998 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7999 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8000 declarations.
8001 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8002 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8003 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8004 identifier with b.
8005 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8006 * include/grub/crypto.h: Add type defines.
8007 * util/import_gcrypth.sed: Remove duplicate type defines.
8008
8009 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 New command list_trusted.
8012
8013 * grub-core/commands/verify.c (grub_cmd_list): New function.
8014
8015 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8016
8017 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8018 info message.
8019
8020 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8021
8022 Remove nested functions from PCI iterators.
8023
8024 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8025 passed to hook. Update all callers to pass appropriate hook data.
8026 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8027 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8028 Remove NESTED_FUNC_ATTR from here and from all users.
8029 (grub_pci_iterate): Update prototype.
8030 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8031 instead of nested. Rename to ...
8032 (grub_cs5536_find_iter): ... this.
8033 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8034 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8035 Likewise.
8036 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8037 Likewise.
8038 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8039 Likewise.
8040 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8041 Likewise.
8042 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8043 * grub-core/video/radeon_fuloong2e.c
8044 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8045 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8046 find_card): Likewise.
8047 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8048 Likewise.
8049
8050 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8051
8052 * grub-core/commands/verify.c: Mark messages for translating.
8053
8054 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8055
8056 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8057 fatal.
8058
8059 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8062 fatal.
8063
8064 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 * autogen.sh: Do not try to delete nonexistant files.
8067 * util/import_gcrypth.sed: Add some missing header removals.
8068
8069 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8070
8071 Clean up dangling references to grub-setup.
8072 Fixes Ubuntu bug #1082045.
8073
8074 * docs/grub.texi (Images): Refer generally to grub-install rather
8075 than directly to grub-setup.
8076 (Installing GRUB using grub-install): Remove direct reference to
8077 grub-setup.
8078 (Device map) Likewise.
8079 (Invoking grub-install): Likewise.
8080 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8081 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8082 * util/grub-install.in (usage): Likewise.
8083
8084 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8085 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8086 grub-setup.
8087 * configure.ac: Remove grub_setup output variable.
8088
8089 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8090 to grub-bios-setup.
8091 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8092 grub-setup to grub-sparc64-setup.
8093
8094 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8095
8096 Import gcrypt public-key cryptography and implement signature checking.
8097
8098 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 * grub-core/fs/ntfs.c: Ue more appropriate types.
8101 * grub-core/fs/ntfscomp.c: Likewise.
8102 * include/grub/ntfs.h: Likewise.
8103
8104 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8105
8106 Support Apple FAT binaries on non-Apple platforms.
8107
8108 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8109 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8110 Likewise.
8111 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8112 Apple FAT binaries.
8113
8114 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8115
8116 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8117 sector devices.
8118
8119 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8120
8121 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8122 explicitly zeroing elements.
8123 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8124 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8125 of elements in a structure already allocated using grub_zalloc.
8126 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8127
8128 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8129
8130 * docs/grub.texi (grub_cpu): New subsection.
8131 (grub_platform): Likewise.
8132
8133 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8136
8137 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8138
8139 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8140 divisions.
8141
8142 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8143
8144 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8145 * grub-core/fs/ntfscomp.c: Likewise.
8146 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8147 (grub_ntfs_comp): Likewise.
8148
8149 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8152 Rename to ...
8153 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8154 of groups_per_block. All users updated.
8155
8156 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8157
8158 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8159 grub_error properly.
8160 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8161 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8162
8163 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8166 always in /boot/zfs.
8167 Reported by: Yuta Satoh.
8168
8169 2013-01-03 Yuta Satoh <nigoro>
8170
8171 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8172 ${grub_probe}
8173
8174 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 * configure.ac: Extend -Wno-trampolines to host.
8177
8178 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8181 entry->len = 0.
8182
8183 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8184
8185 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8186 (Invoking grub-script-check): Likewise.
8187
8188 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8189
8190 * docs/grub.texi (Invoking grub-mount): New section.
8191 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8192
8193 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8194
8195 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8196 test failures, so that a failing unit test correctly causes 'make
8197 check' to fail.
8198
8199 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8200
8201 Fix failing printf test.
8202
8203 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8204 '$' in the correct order when collecting type information.
8205
8206 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8207
8208 * docs/grub.texi (configfile): Explain environment variable
8209 handling.
8210 (source): New section.
8211 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8212
8213 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8214
8215 Remove several trivially-unnecessary uses of nested functions.
8216
8217 * grub-core/commands/i386/pc/sendkey.c
8218 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8219 instead of nested.
8220 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8221 Rename to ...
8222 (legacy_file_getline): ... this.
8223 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8224 Likewise.
8225 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8226 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8227 to ...
8228 (probe_dummy_iter): ... this.
8229 * grub-core/kern/i386/coreboot/mmap.c
8230 (grub_linuxbios_table_iterate: check_signature): Likewise.
8231 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8232 check_varstate): Likewise. Mark inline.
8233 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8234 an additional parameter.
8235 (find_long: fnd_long): Likewise. Pass two additional parameters.
8236 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8237 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8238 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8239 Likewise. Rename to ...
8240 (grub_cmos_find_port_iter): ... this.
8241 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8242 Rename to ...
8243 (find_rtc_iter): ... this.
8244
8245 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8246 function directly into the function body, since it is only called
8247 once.
8248
8249 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8250
8251 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8252 __attribute__ ((unused)).
8253 * grub-core/video/bochs.c (find_card): Likewise.
8254 * grub-core/video/cirrus.c (find_card): Likewise.
8255 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8256 * grub-core/video/sis315pro.c (find_card): Likewise.
8257 * grub-core/video/sm712.c (find_card): Likewise.
8258
8259 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8260
8261 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8262 Fixes Savannah bug #37821.
8263
8264 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8265
8266 Apply program name transformations at build-time rather than at
8267 run-time. Fixes Debian bug #696465.
8268
8269 * acinclude.m4 (grub_TRANSFORM): New macro.
8270 * configure.ac: Create output variables with transformed names for
8271 most programs.
8272 * util/bash-completion.d/grub-completion.bash.in: Use
8273 pre-transformed variables for program names.
8274 * util/grub-install.in: Likewise.
8275 * util/grub-kbdcomp.in: Likewise.
8276 * util/grub-mkconfig.in: Likewise.
8277 * util/grub-mkconfig_lib.in: Likewise.
8278 * util/grub-mknetdir.in: Likewise.
8279 * util/grub-mkrescue.in: Likewise.
8280 * util/grub-mkstandalone.in: Likewise.
8281 * util/grub-reboot.in: Likewise.
8282 * util/grub-set-default.in: Likewise.
8283 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8284 * tests/util/grub-shell-tester.in: Remove unused assignment.
8285 * tests/util/grub-shell.in: Likewise.
8286 * util/grub.d/00_header.in: Likewise.
8287
8288 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8289
8290 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8291
8292 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8293 HAVE_RAW_DECL_GETS.
8294 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8295
8296 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8297
8298 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8299 Reported by: Eriks Latosheks <foresterlv>.
8300
8301 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8302
8303 * docs/grub.texi (Network): Update instructions on generating netboot
8304 image.
8305
8306 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8307
8308 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8309 around device name if necessarry.
8310
8311 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8312
8313 * util/grub-install.in: Follow the symbolic link parameter added
8314 to the file command.
8315
8316 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8317
8318 * util/grub-install.in: Remove stale TODO.
8319
8320 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8321
8322 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8323 dynamic allocation for the bootpath buffer.
8324
8325 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8326
8327 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8328 window too small.
8329
8330 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8331
8332 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8333 argument rather than font name. All users updated.
8334 (grub_gfxterm_set_window): Likewise.
8335
8336 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8337
8338 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8339 from working.
8340
8341 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8342
8343 * util/getroot.c (convert_system_partition_to_system_disk): Support
8344 nbd disks.
8345
8346 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8347
8348 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8349 infinite loop on corrupted FS.
8350
8351 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 Fix big-endian mtime.
8354
8355 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8356 together sec and usec.
8357 (grub_ufs_dir): Use correct byteswapping for UFS time.
8358
8359 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 Support big-endian UFS1.
8362
8363 * Makefile.util.def (libgrubmods): Add ufs_be.c
8364 * grub-core/Makefile.core.def (ufs1_be): New module.
8365 * grub-core/fs/ufs_be.c: New file.
8366 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8367 the file.
8368
8369 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8370
8371 * include/grub/types.h: Fix functionality unaffecting typo in
8372 GRUB_TARGET_WORDSIZE conditional macro.
8373
8374 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8375
8376 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8377
8378 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8379
8380 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8381 that /netbsd appears first (when it exists).
8382
8383 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8384
8385 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8386 Fixes Savannah bug #37558.
8387
8388 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8389
8390 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8391 description of extract_entries_configfile.
8392
8393 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8394
8395 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8396 preferred_address.
8397 (grub_cmd_linux): Likewise.
8398 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8399 preferred_lifetime. Update all users.
8400
8401 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8402
8403 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8404 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8405
8406 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8407
8408 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8409 errors from grub-probe to /dev/null, not stdout.
8410
8411 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8412
8413 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8414 sector 1.
8415
8416 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8417
8418 * util/grub-install.in: Make the error message if $source_dir
8419 doesn't exist more useful.
8420
8421 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8422
8423 Fix grub-emu build on FreeBSD.
8424
8425 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8426 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8427 headers on Linux.
8428 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8429 implementation is currently Linux-specific.
8430 * util/getroot.c (exec_pipe): Define only on Linux or when either
8431 libzfs or libnvpair is unavailable.
8432 (find_root_devices_from_poolname): Remove unused path variable.
8433
8434 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8435
8436 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8437 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8438 should fit before end == 63.
8439
8440 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8441
8442 * util/grub-setup.c (write_rootdev): Remove unused core_img
8443 parameter. Update all callers.
8444 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8445 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8446 GRUB_SETUP_BIOS.
8447
8448 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8449
8450 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8451 (grub_add_tab): New function.
8452 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8453 * util/grub.d/10_illumos.in: Likewise.
8454 * util/grub.d/10_kfreebsd.in: Likewise.
8455 * util/grub.d/10_linux.in: Likewise.
8456 * util/grub.d/10_netbsd.in: Likewise.
8457 * util/grub.d/10_windows.in: Likewise.
8458 * util/grub.d/10_xnu.in: Likewise.
8459 * util/grub.d/20_linux_xen.in: Likewise.
8460 * util/grub.d/30_os-prober.in: Likewise.
8461
8462 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8463
8464 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8465 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8466 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8467 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8468 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8469 ieee1275-nocursor.
8470 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8471 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8472
8473 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8476 le-conversion.
8477 Reported by: BURETTE, Bernard.
8478
8479 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8480
8481 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8482 from comment.
8483
8484 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8485
8486 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8487 IEEE1275 machines. Fixes powerpc-emu compilation.
8488 * include/grub/terminfo.h: Likewise.
8489
8490 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8491
8492 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8493 a const pointer.
8494 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8495 const pointer.
8496 (efiemu_set_variable): Make vendor_guid a const pointer.
8497
8498 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 Don't require grub-mkconfig_lib to generate manpages for programs.
8501
8502 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8503 dependencies, don't add grub-mkconfig_lib.
8504 (program): Pass empty adddeps.
8505 (script): Pass grub-mkconfig_lib as adddeps.
8506
8507 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8508
8509 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8510 * util/getroot.c (grub_find_device): Likewise.
8511 (get_mdadm_uuid): Likewise.
8512 (grub_util_is_imsm): Likewise.
8513 (grub_util_pull_device): Likewise.
8514 * util/grub-probe.c (probe): Likewise.
8515
8516 2012-09-10 Benoit Gschwind <gschwind>
8517
8518 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8519 (devs): Add devpath_8.
8520
8521 2012-09-08 Peter Jones <pjones@redhat.com>
8522
8523 * grub-core/Makefile.core.def (efifwsetup): New module.
8524 * grub-core/commands/efi/efifwsetup.c: New file.
8525 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8526 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8527 New define.
8528 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8529
8530 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8531
8532 * configure.ac: Add SuSe path.
8533
8534 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8535
8536 * NEWS: Fix typo.
8537
8538 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8539
8540 * util/import_gcry.py: Sort cipher_files, to make build system
8541 generation more deterministic.
8542
8543 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8544
8545 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8546 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8547 (grub_set_datetime): Likewise.
8548
8549 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8550
8551 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8552 warnings.
8553
8554 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8557
8558 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8561
8562 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8563
8564 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8565 required for checkouts from bzr, but it may be useful for users or
8566 distributors wishing to update translations against a tarball
8567 distribution, and it can be helpful for the tarball to be a superset
8568 of what's in bzr.
8569
8570 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8571
8572 * Makefile.am (EXTRA_DIST): Add
8573 grub-core/tests/boot/linux.init-mips.S,
8574 grub-core/tests/boot/linux.init-ppc.S, and
8575 grub-core/tests/boot/linux-ppc.cfg.
8576
8577 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8578
8579 * grub-core/mmap/mips/loongson: Remove empty directory.
8580
8581 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8582
8583 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8584 gone.
8585
8586 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8587
8588 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8589 grub-sparc64-setup.
8590
8591 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8592
8593 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8594
8595 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8596
8597 * po/POTFILES.in: Regenerated.
8598
8599 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8600
8601 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8602 (NetBSD): New subsection.
8603
8604 2012-07-22 Ales Nesrsta <starous@volny.cz>
8605
8606 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8607 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8608
8609 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8612 * util/grub.d/10_hurd.in: Add missing quoting.
8613 * util/grub.d/10_illumos.in: Likewise.
8614 * util/grub.d/10_kfreebsd.in: Likewise.
8615 * util/grub.d/10_linux.in: Likewise.
8616 * util/grub.d/20_linux_xen.in: Likewise.
8617
8618 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8619
8620 New command `lsefi'.
8621
8622 * grub-core/Makefile.core.def (lsefi): New module.
8623 * grub-core/commands/efi/lsefi.c: New file.
8624 * include/grub/efi/api.h: Add more GUIDs.
8625
8626 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8629 (grub_bsd_elf32_hook): Likewise.
8630 (grub_bsd_elf64_size_hook): Likewise.
8631 (grub_bsd_elf64_hook): Likewise.
8632 (grub_bsd_load_elf): Likewise.
8633
8634 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8635
8636 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8637 if hash function is unavailable.
8638 (dec_stream_header): Likewise.
8639
8640 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8641
8642 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8643 filter state.
8644
8645 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8646
8647 Fix coreboot compilation.
8648
8649 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8650 (grub_vga_text_init_real): ... this.
8651 (grub_vga_text_fini): Rename to ...
8652 (grub_vga_text_fini_real): ... this.
8653
8654 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8657
8658 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8659
8660 * grub-core/lib/legacy_parse.c: Support clear and testload.
8661
8662 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8665
8666 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8669
8670 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 * grub-core/net/tftp.c (ack): Fix endianness problem.
8673 (tftp_receive): Likewise.
8674 Reported by: Michael Davidsaver.
8675
8676 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8677
8678 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8679
8680 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8683 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8684 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8685
8686 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8687
8688 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8689 efi_mmap_size.
8690 Reported by: Stuart Hayes.
8691
8692 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8693
8694 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8695
8696 * grub-core/Makefile.core.def (mda_text): New module.
8697 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8698 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8699 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8700 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8701 here.
8702 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8703 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8704 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8705 here.
8706 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8707 to ..
8708 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8709 ... here
8710 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8711 here.
8712 * grub-core/term/i386/vga_common.c: Removed.
8713 * include/grub/i386/vga_common.h: Likewise.
8714 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8715 (grub_vga_cr_bw_read): Likewise.
8716 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8717 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8718 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8719 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8720 grub_vga_cr_read/grub_vga_cr_write.
8721 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8722
8723 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8724
8725 * configure.ac: Bump version to 2.00.
8726 * grub-core/normal/main.c (features): Add feature_200_final.
8727
8728 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8729 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8730
8731 * NEWS: Fix unclarity and language mistakes.
8732
8733 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8736 additional size to 3 pages.
8737 Reported by: Stuart Hayes.
8738
8739 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8740
8741 * NEWS: Add 2.00 entry.
8742
8743 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8744
8745 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8746 put explicit "/" for empty path.
8747 (wildcard_expand): Improve dprintf.
8748
8749 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8750
8751 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8752 it's equal to currnode. This can happen with "" symlink.
8753
8754 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8755
8756 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8757 echo shell command by printf command.
8758
8759 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8762 the value returned by firmware is the maximal position, not diumension.
8763 (grub_terminfo_output_state): Use a more sane fallback.
8764
8765 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8768
8769 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8772 frequency to 150 MHz.
8773
8774 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 Apple fixes.
8777
8778 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8779 __APPLE_
8780 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8781 definition.
8782 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8783
8784 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 Handle slash in HFS label.
8787
8788 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8789 (grub_hfs_dir): Tanslate slash.
8790 (grub_hfs_label): Don't translate slash.
8791
8792 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8795 network protocol listing since it introduces problematic dependency on
8796 net module.
8797
8798 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8801
8802 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8803
8804 Init video early on yeeloong to avoid being rebooted by watchdog.
8805
8806 * grub-core/Makefile.am (gensm712): New target.
8807 (sm712_start.S): Likewise.
8808 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8809 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8810 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8811 description.
8812 * include/grub/vga.h: Move registry definitions to...
8813 * include/grub/vgaregs.h: ... here.
8814
8815 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8818 signedness.
8819
8820 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8823 platforms with firmware disk drivers in the core.
8824
8825 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8828 informative verbose message.
8829 (read_lv): Handle 64-bit segment size.
8830
8831 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8834
8835 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8838 character but still remove trainling spaces.
8839 (grub_fat_label): Ignore archive flag.
8840
8841 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8844 cast between linux_kernel_header and linux_kernel_params.
8845
8846 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8847
8848 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8849 type for size.
8850 (grub_raid6_recover_func_t): Likewise.
8851 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8852 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8853
8854 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8857
8858 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8859
8860 Fix overflow.
8861
8862 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8863 [__NetBSD__]: Add explicit cast before bitshift.
8864
8865 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 * configure.ac: Bump to 2.00~rc1.
8868
8869 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8872 half of $a0.
8873
8874 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8875 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8876
8877 * docs/grub.texi: Fix search syntax.
8878 (Multi-boot manual config): Put msdos rather than GPT example.
8879 Grammar corrections.
8880
8881 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8882
8883 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8884
8885 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8888
8889 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8892 message on double free. Put the value of magic in case of mismatch.
8893
8894 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 Speed-up video on yeeloong.
8897
8898 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8899 add cached_ptr.
8900 (grub_video_sm712_video_fini): Unmap cached_ptr.
8901 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8902 (grub_video_sm712_set_active_render_target): Removed.
8903 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8904 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8905 sync caches.
8906
8907 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8908
8909 Avoid flushing the same line multiple times on loongson.
8910
8911 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8912 Step in 32 bytes and not 1 byte.
8913 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8914 Likewise.
8915
8916 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8919 subvolumes.
8920
8921 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8922
8923 Implement flow control for http.
8924
8925 * grub-core/net/http.c (parse_line): Handle response 206.
8926 (http_receive): Stall if too many packets are in the queue.
8927 (http_establish): Fix range header.
8928 (http_seek): Fix double free.
8929 (http_close): Likewise.
8930 (http_packets_pulled): New function.
8931 (grub_http_protocol): Set http_seek
8932 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8933 (ack_real): Set window depending on i_stall.
8934 (grub_net_send_tcp_packet): Likewise.
8935 (grub_net_tcp_stall): New function.
8936 (grub_net_tcp_unstall): Likewise.
8937 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8938 (grub_net_tcp_unstall): Likewise.
8939
8940 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8943
8944 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8947
8948 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8949
8950 * tests/util/grub-shell.in: Fix a typo.
8951
8952 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8953
8954 Implement flow control for tftp.
8955
8956 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8957 packets but stop only if stop condition is satisfied.
8958 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8959 `stall' instead of `eof' as stop condition.
8960 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8961 (http_err): Likewise.
8962 * grub-core/net/tftp.c (ack): Replace the first argument with data
8963 instead of socket.
8964 (tftp_receive): Stall if too many packets are in wait queue.
8965 (tftp_packets_pulled): New function.
8966 (grub_tftp_protocol): Set packets_pulled.
8967 * include/grub/net.h (grub_net_packets): New field count.
8968 (grub_net_put_packet): Increment count.
8969 (grub_net_remove_packet): Likewise.
8970 (grub_net_app_protocol): New field `packets_pulled'.
8971 (grub_net): New field `stall'.
8972
8973 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8974
8975 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8976 sync part to handle them.
8977
8978 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8979
8980 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8981 * grub-core/net/drivers/ieee1275/ofnet.c
8982 (grub_ieee1275_net_config_real): Likewise.
8983
8984 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8985
8986 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8987 the direct route for server/gateway.
8988
8989 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8992 IP address to server name since we may not hame the DNS.
8993
8994 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8997 freeing random buffer on failure.
8998 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8999
9000 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9003
9004 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9007 reserved bytes.
9008 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9009 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9010 Handle malloc error correctly.
9011
9012 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9015 blocks.
9016
9017 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9018
9019 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9020 increment.
9021
9022 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9025 none is explicitly specified.
9026
9027 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9028
9029 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9030 while reallocating.
9031
9032 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 Respect netmask from bootp/dhcp.
9035
9036 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9037 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9038 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9039 into ...
9040 (grub_net_add_ipv4_local): ... this.
9041 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9042 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9043 (grub_net_add_ipv4_local): New proto.
9044
9045 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9048 determining EFI memory map size.
9049
9050 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9051
9052 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9053
9054 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9055
9056 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9057 when looking for partition separator.
9058
9059 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9060
9061 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9062 Escape commas.
9063
9064 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 Restructure FAT driver to avoid hook in label reading as it hits a
9067 GCC bug.
9068
9069 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9070 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9071 (grub_fat_iterate_dir): Split into ...
9072 (grub_fat_iterate_init): ... this, ...
9073 (grub_fat_iterate_fini): ... this, ...
9074 (grub_fat_iterate_dir_next): ... and this. All users updated.
9075
9076 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9077
9078 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9079 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9080 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9081 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9082 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9083 New fields last_key and last_key_time.
9084 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9085 extended key-esc into extended key-extended key.
9086
9087 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9088
9089 Avoid unnecessary memcpy of whole video buffer.
9090
9091 * grub-core/video/fb/video_fb.c (dirty): New struct.
9092 (framebuffer): Add members current_dirty and previous_dirty.
9093 (dirty): New function.
9094 (grub_video_fb_fill_rect): Update dirty.
9095 (common_blitter): Likewise.
9096 (grub_video_fb_scroll): Likewise.
9097 (doublebuf_blit_update_screen): Copy only dirty part.
9098 (doublebuf_pageflipping_update_screen): Likewise.
9099 (grub_video_fb_doublebuf_blit_init): Init dirty.
9100 (doublebuf_pageflipping_init): Likewise.
9101 (grub_video_fb_setup): Likewise.
9102
9103 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9106 poll rate.
9107
9108 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 Fix wildcard regexp dot and other special characters handling.
9111 Reported by: Robert Mabee.
9112
9113 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9114 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9115 (split_path): Trigger expansion on '?'.
9116 (unescape): New function.
9117 (wildcard_expand): Unescape parts copied without globbing.
9118 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9119 (grub_script_arglist_to_argv): Don't unescape expansions.
9120
9121 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 * include/grub/net.h (grub_net_card): New member txbufsize.
9124 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9125 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9126 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9127 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9128 txbufsize.
9129 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9130 compatible property to check for macs. Set
9131 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9132 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9133 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9134 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9135 (send_card_buffer): Use txbuf.
9136 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9137 nested function out of the parent while on it.
9138
9139 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9140
9141 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9142 presence check.
9143 (grub_ieee1275_net_config_real): Fix config pointer.
9144
9145 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9148 filename parsing to non-block devices.
9149
9150 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9153
9154 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9157 All users updated.
9158
9159 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9162 UUID search command even if hints probing failed.
9163
9164 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 * po/POTFILES.in: Regenerated.
9167
9168 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9169
9170 Speed-up video on fuloong.
9171
9172 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9173 New function.
9174 (grub_pci_device_unmap_range): Handle non-cached address.
9175 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9176 add direct_ptr.
9177 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9178 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9179 (grub_video_sis315pro_set_active_render_target): Removed.
9180 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9181 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9182 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9183 sync caches.
9184 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9185 New proto.
9186
9187 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * docs/grub.texi (Multi-boot manual config): New section.
9190
9191 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9192
9193 Avoid slow read-back from VRAM.
9194
9195 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9196 Move from here ...
9197 * grub-core/video/fb/video_fb.c
9198 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9199 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9200 (front_target): Remove front_target. Add pages.
9201 (grub_video_fb_init): Skip setting front_pages.
9202 (grub_video_fb_fini): Likewise.
9203 (doublebuf_blit_update_screen): Use pages.
9204 (grub_video_fb_doublebuf_blit_init): Likewise.
9205 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9206 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9207 (grub_video_fb_setup): Prefer doublebuffing.
9208
9209 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9210
9211 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9212 gzio.
9213
9214 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 Add loongson tests.
9217
9218 * tests/util/grub-shell.in: Handle loongson.
9219 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9220 drivers.
9221 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9222 Reboot instead of shutdown if REBOOT is defined.
9223
9224 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9227 sized ports since unlike on real hardware qemu supports only 32-bit
9228 regs.
9229
9230 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9231
9232 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9233 * util/grub-mkrescue.in: Handle loongson.
9234
9235 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9236
9237 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9238 Set is_part appropriately.
9239 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9240 names. Canonicalize partition without full disk.
9241
9242 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 Revert usb-quiesce since it's wrong.
9245
9246 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9247 (grub_ofdisk_init): Don't do quiesce.
9248
9249 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9250
9251 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9252 PowerMac workaround to Xserves as well.
9253 Information supplied by: Benjamin Herrenschmidt.
9254
9255 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9256
9257 Don't assume that beginning address is also the entry point on ppc.
9258
9259 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9260 (grub_linux_boot): Use linux_entry.
9261 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9262 (grub_linux_load64): Likewise.
9263
9264 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9265
9266 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9267
9268 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9271 needlessly lose the console.
9272
9273 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9274
9275 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9276 space.
9277
9278 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9281 than current grub_get_rtc() not implemented when booted with
9282 coreboot without TSC.
9283
9284 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9285 Add machine/time.h to kernel headers on loongson.
9286 * grub-core/Makefile.core.def (kernel): Remove
9287 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9288 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9289 (grub_get_rtc): Likewise.
9290 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9291 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9292 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9293 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9294 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9295 rather than installing known non-working time source.
9296 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9297 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9298 * include/grub/time.h: Don't include machine/time.h.
9299 * include/grub/efi/time.h: Removed.
9300 * include/grub/i386/efi/time.h: Likewise.
9301 * include/grub/i386/ieee1275/time.h: Likewise.
9302 * include/grub/powerpc/ieee1275/time.h: Likewise.
9303 * include/grub/sparc64/ieee1275/time.h: Likewise.
9304 * include/grub/x86_64/efi/time.h: Likewise.
9305
9306 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 Remove dot on i and j when combining with above diacritics.
9309
9310 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9311 value.
9312 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9313 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9314 with dotless variants when any combining above is present.
9315
9316 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9317
9318 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9319 text and not binary.
9320
9321 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 Stop polling as soon as we have the packet we were waiting for.
9324
9325 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9326 All users updated.
9327 * grub-core/net/arp.c (have_pending): New var.
9328 (pending_req): Likewise.
9329 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9330 stop indicator.
9331 (grub_net_arp_receive): Set have_pending.
9332 * grub-core/net/dns.c (recv_data): New field stop.
9333 (recv_hook): Set stop.
9334 (grub_net_dns_lookup): Init stop and use as stop condition.
9335 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9336 condition.
9337 * grub-core/net/net.c (grub_net_poll_cards): New argument
9338 stop_condition. Stop when it goes true.
9339 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9340 indicator.
9341 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9342
9343 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 Keep TX and RX buffers on EFI rather than always allocate new ones.
9346
9347 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9348 card. All users updated.
9349 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9350 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9351 (get_card_packet): Likewise.
9352 (grub_efinet_findcards): Init new fields.
9353
9354 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9357 compilation error on sparc64.
9358
9359 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 Use ITC on IA64 rather than broken routine based on daytime.
9362
9363 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9364 ia64.
9365 (grub_get_rtc) [__ia64__]: Likewise.
9366 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9367 (get_itc): New function.
9368 (grub_rtc_get_time_ms): Likewise.
9369 (grub_machine_init): Calibrate ITC.
9370 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9371 Keep only on non-ia64. Don't export since it's broken and used only
9372 if TSC is unavailable.
9373
9374 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9375
9376 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9377 even if it's used.
9378 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9379 Skip if parent is unused.
9380
9381 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9384
9385 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 Fix wildcard escaping.
9388
9389 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9390 * grub-core/script/execute.c (wildcard_escape): .. to here.
9391 Don't escape dot.
9392 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9393 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9394 Don't escape dot.
9395 * grub-core/script/execute.c (gettext_append): Always escape.
9396 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9397 * grub-core/script/yylex.l: Don't cut away the escaping.
9398 * tests/grub_script_echo1.in: Add tests with wildcard.
9399
9400 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9403 (ftdi_hw_configure): Likewise.
9404 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9405 define.
9406 (real_config): Handle 1.5 stop bits.
9407 (pl2303_hw_configure): Likewise.
9408
9409 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9410
9411 * Makefile.am: Add ppc linux bootcheck.
9412 * grub-core/tests/boot/linux-ppc.cfg: New file.
9413 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9414
9415 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9416
9417 * tests/grub_script_expansion.in: Skip network protocols.
9418
9419 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9420
9421 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9422
9423 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9424
9425 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9426 --rom-directory.
9427 Add -graft-points.
9428
9429 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 ESCC serial driver for conducting sautomated tests in qemu.
9432 Not tested on real hardware.
9433
9434 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9435 * grub-core/term/ieee1275/escc.c: New file.
9436 * grub-core/Makefile.core.def (escc): New module.
9437
9438 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9439
9440 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9441 invalid on error.
9442 (serial_hw_fetch): Don't read invalid handle.
9443 (serial_hw_put): Don't write into invalid handle.
9444
9445 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 Add a 1.5 stop bits value.
9448
9449 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9450 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9451 GRUB_SERIAL_STOP_BITS_1_5.
9452
9453 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9456 value rather than let it uninited.
9457
9458 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 * grub-core/commands/wildcard.c (+check_file): New function.
9461 (wildcard_expand): Don't expand to non-existing files, expand with
9462 suffix and not attempt to expand if not needed.
9463
9464 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9465
9466 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9467 out of partitions containing other partitions.
9468
9469 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9472 on some qemu versions with GRUB.
9473
9474 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9475 define.
9476 (grub_openbsd_bootarg_pcibios): New struct.
9477 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9478 Add PCIINFO.
9479
9480 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * tests/util/grub-shell.in: Trim firmware output on EFI.
9483
9484 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9487 and coreboot since it's already in kernel.
9488
9489 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9492 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9493 to here. New return value start. All users updated.
9494 Recursively scan linear mappings.
9495 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9496 proto.
9497 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9498 Use grub_util_get_dm_node_linear_info.
9499 * util/getroot.c (convert_system_partition_to_system_disk): Use
9500 grub_util_info rather than grub_dprintf.
9501 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9502
9503 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9504
9505 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9506
9507 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9508 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9509
9510 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9511
9512 * include/grub/types.h (grub_set_unaligned64): New function.
9513 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9514 (setup): Likewise.
9515
9516 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9519 (grub_ofdisk_fini): Quiesce USB devices.
9520
9521 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9522
9523 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9524 caches.
9525
9526 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9529
9530 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 * grub-core/disk/pata.c (grub_pata_pio_read)
9533 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9534 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9535
9536 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 Extend automated tests to qemu-mips.
9539
9540 * Makefile.am: reorganise tests and enable qemu-mips.
9541 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9542 * grub-core/tests/boot/linux.init-mips.S: New file.
9543 * tests/partmap_test.in: Handle ata0 disks.
9544 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9545 non-pc i386.
9546
9547 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9550 ia64.
9551 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9552 quotes while on it.
9553
9554 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9555
9556 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9557 (grub_halt): Likewise.
9558 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9559
9560 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * grub-core/term/serial.c (grub_serial_register)
9563 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9564 the behaviour in line with x86 platforms.
9565
9566 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9569 (grub_ata_strncpy): Likewise.
9570 (grub_ata_identify): Add missing byteswaps.
9571
9572 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9573
9574 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9575 byte-swap.
9576 (screen_read_char): Likewise.
9577 (grub_vga_text_cls): Likewise.
9578
9579 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9580
9581 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9582 filenames.
9583 (make_file_path): Likewise.
9584
9585 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9586
9587 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9588 machines.
9589 Tested by: Paulo Flabiano Smorigo.
9590 Crucial information about API supplied by: Coleen <Last name unknown>.
9591 Reviewed by: Coleen <Last name unknown>.
9592
9593 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 * util/grub-mkimage.c: Disable -Wcast-align.
9596
9597 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9598
9599 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9600 as they are fatal.
9601
9602 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9605
9606 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 * util/grub-probe.c (escape_of_path): Fix double free.
9609
9610 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9611
9612 * grub-core/commands/videoinfo.c (hook): Show pitch.
9613
9614 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9617
9618 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9619
9620 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9621 (probe): Add ieee1275 to OFW devices.
9622
9623 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9626
9627 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9628
9629 Handle IBM OFW path.
9630
9631 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9632 available.
9633 (of_path_of_scsi): Handle vdevice.
9634
9635 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9638 Allocate in multiples of 16 to avoid adding a few bytes free region the
9639 windows bugs upon.
9640
9641 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9642
9643 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9644 Allocate in multiples of 16 to avoid adding a few bytes free region the
9645 windows bugs upon.
9646 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9647
9648 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9649
9650 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9651 resolutions.
9652 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9653 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9654
9655 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9656
9657 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9658
9659 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9660
9661 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9662 resulted in \\ at the end of the line.
9663
9664 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9665
9666 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9667 (grub_parser_cmdline_state): Likewise.
9668 (grub_parser_split_cmdline): Likewise.
9669
9670 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9673 /dev/root and /dev/dm-*.
9674
9675 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9676
9677 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9678 fix partially stale display.
9679
9680 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9683 substraction.
9684
9685 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9688 Fix MBR remapping workaround.
9689 (grub_util_biosdisk_read) [__linux__]: Likewise.
9690
9691 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9694
9695 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9696
9697 * configure.ac: Bump to beta6.
9698
9699 2012-05-31 Christer Weinigel <christer@weinigel.se>
9700
9701 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9702
9703 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9706 (grub_cmd_linux): Likewise.
9707
9708 2012-05-31 Christer Weinigel <christer@weinigel.se>
9709
9710 Fix EHCI low-speed.
9711
9712 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9713 (GRUB_EHCI_MULT_TWO): Likewise.
9714 (GRUB_EHCI_MULT_THREE): Likewise.
9715 (GRUB_EHCI_CMASK_MASK): New enum value.
9716 (GRUB_EHCI_SMASK_MASK): Likewise.
9717 (GRUB_EHCI_CMASK_OFF): Likewise.
9718 (GRUB_EHCI_SMASK_OFF): Likewise.
9719 (grub_ehci_pci_iter): Enable periodic schedule.
9720 (grub_ehci_parse_notrun): Likewise.
9721 (grub_ehci_restore_hw): Likewise.
9722 (grub_ehci_setup_qh): Set flags for low speed transfers.
9723 (grub_ehci_find_qh): Use periodic list for low speed.
9724 (grub_ehci_setup_transfer): Check periodic queue as well.
9725 (grub_ehci_check_transfer): Likewise.
9726 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9727
9728 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9729
9730 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9731 parameter is used.
9732
9733 2012-05-31 Peter Jones <pjones@redhat.com>
9734
9735 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9736 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9737 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9738
9739 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9742 uninited variable. Allocate at least setup_sects.
9743
9744 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 Fix handling of EFI with big memory maps.
9747
9748 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9749 (real_mode_mem): Likewise.
9750 (real_mode_target): Likewise.
9751 (real_mode_pages): Likewise.
9752 (prot_mode_pages): Likewise.
9753 (linux_params): New var.
9754 (linux_cmdline): Likewise.
9755 (free_pages): Don't set real mode variables.
9756 (allocate_pages): Don't allocate real mode memory.
9757 (grub_e820_add_region): Remove the limit.
9758 (grub_linux_boot): Allocate and copy real mode memory.
9759 (grub_linux_unload): Free linux_cmdline.
9760 (grub_cmd_linux): Use temporary storage for parameters.
9761 (grub_cmd_initrd): Likewise.
9762 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9763 (linux_kernel_params): Make it 1K big.
9764
9765 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9766
9767 * Makefile.util.def: Remove -Wno-format.
9768 * grub-core/Makefile.core.def: Likewise.
9769
9770 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 * tests/cmp_unit_test.c: Add missing failure message.
9773 * tests/example_unit_test.c: Likewise.
9774 * tests/printf_unit_test.c: Likewise.
9775
9776 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9777
9778 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9779 relaxation of protective MBR requirements.
9780
9781 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 * configure.ac: Add condition for COND_HOST_XNU.
9784 * Makefile.util.def (10_xnu): New script.
9785 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9786
9787 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9788
9789 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9790 objconv bug.
9791
9792 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9793
9794 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9795 Binary on other platforms stays identical.
9796
9797 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9800 Apple.
9801
9802 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9803
9804 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9805
9806 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9807
9808 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9809 rather than defining size_t ourselves to avoid conflict.
9810
9811 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9814 initialisation to avoid __bzero reference.
9815
9816 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9817
9818 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9819 version.
9820 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9821 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9822 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9823 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9824 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9825
9826 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9827
9828 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9829 * grub-core/kern/misc.c: Likewise.
9830 * grub-core/loader/i386/xnu.c: Likewise.
9831 * include/grub/i386/tsc.h: Likewise.
9832 * include/grub/symbol.h: Likewise.
9833
9834 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9837 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9838 on older compiler.
9839
9840 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9841
9842 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9843 Implement Apple flavour.
9844 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9845
9846 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9847
9848 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9849 (memmove) [__APPLE__]: Likewise.
9850 (memcpy) [__APPLE__]: Likewise.
9851 (memset) [__APPLE__]: Likewise.
9852 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9853 (memmove) [__APPLE__]: Likewise.
9854 (memcpy) [__APPLE__]: Likewise.
9855 (memset) [__APPLE__]: Likewise.
9856
9857 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9858
9859 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9860 dependency discard.
9861
9862 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * grub-core/normal/main.c (read_config_file): Provide config_file and
9865 config_directory.
9866 * util/grub.d/41_custom.in: Use config_directoy when available.
9867
9868 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9869
9870 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9871 (grub_bfs_dir): Likewise.
9872
9873 2012-05-27 Peter Jones <pjones@redhat.com>
9874
9875 The old code gives arguments to a printf function which can't work
9876 correctly, and the compiler complains.
9877
9878 * grub-core/tests/example_functional_test.c (example_test): Add
9879 missing text.
9880 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9881 * include/grub/test.h (grub_test_assert_helper): New declaration.
9882 (grub_test_assert): Use grub_test_assert_helper.
9883
9884 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9887 (exfctest): ... this to avoid overlong filenames.
9888 All users updated.
9889
9890 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 Handle "." and ".." on squashfs.
9893
9894 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9895 Make inode numbers into stack.
9896 (grub_squash_read_symlink): Use stack.
9897 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9898 (make_root_node): Fill stack.
9899 (grub_squash_open): Use stack.
9900
9901 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9904 freeing.
9905
9906 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9907
9908 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9909 stderr on test calls.
9910
9911 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9914
9915 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9918
9919 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9920
9921 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9922 "..".
9923
9924 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9927 (grub_hfsplus_iterate_dir): Add "." and "..".
9928
9929 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9932 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9933
9934 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9937 (find_path): Handle "." and "..".
9938
9939 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9942 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9943 (grub_affs_iterate_dir): Handle hardlinks.
9944
9945 2012-05-26 Matthew Garrett <mjg@redhat.com>
9946
9947 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9948 (grub_efi_console_fini): Likewise.
9949 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9950 (grub_video_gop_fill_mode_info): Rename to ...
9951 (grub_video_gop_fill_real_mode_info): ... this.
9952 (grub_video_gop_fill_mode_info): New function.
9953 (grub_video_gop_setup): Setup double framebuffer.
9954 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9955 Free offscreen.
9956 (grub_video_gop_swap_buffers): Copy framebuffer.
9957 (grub_video_gop_fini): Free offscreen buffer.
9958 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9959 New enum.
9960 (grub_efi_gop_blt_pixel): New struct.
9961
9962 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 * gentpl.py: Remove error disabling for objconv.
9965
9966 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 * configure.ac: Remove -Wunitialized as it's not available on older
9969 compilers.
9970
9971 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9972
9973 Fix extent overflow comparator.
9974
9975 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9976 (grub_hfsplus_read_block): Set type.
9977 (grub_hfsplus_cmp_extkey): Compare type.
9978
9979 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9982
9983 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9986 than 0.
9987
9988 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9991 (dejavu_bold_14.pf2): New target.
9992
9993 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * configure.ac: Fix djvu font detection.
9996
9997 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10000 ext* instead of ext2.
10001
10002 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10005 name with \0.
10006
10007 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10008
10009 * docs/grub-dev.texi: Remove dot from .png.
10010
10011 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10012
10013 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10014 protective entry in any slot.
10015 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10016 if protective entry is found in any slot.
10017
10018 Protective entry in non-first slot make no sense but is a widespread
10019 brain damage.
10020
10021 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10024
10025 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10026
10027 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10028 with old reiserfs.
10029 (grub_reiserfs_open): Don't free root.
10030
10031 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10034 after freeing for safety.
10035
10036 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10037
10038 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10039 Reported by: Jordan Uggla.
10040
10041 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10042
10043 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10044 actual implementation. Specifically, clarify that the grub menu will
10045 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10046 passed.
10047
10048 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10049
10050 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10051 of r0.
10052
10053 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 Remove unjustified hard dependency of normal.mod on gfxterm.
10056
10057 * include/grub/term.h (grub_term_output): New member fullscreen.
10058 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10059 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10060 (grub_gfxterm): Set .fullscreen.
10061 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10062 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10063
10064 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10067 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10068 Mention case-insensitive AFFS, SFS and JFS.
10069
10070 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10071
10072 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10073
10074 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10077 a bad FS.
10078
10079 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10080
10081 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10082 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10083
10084 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10087 (grub_jfs_mount): Fill caseins.
10088 (grub_jfs_find_file): Respect caseins.
10089
10090 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10091
10092 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10093 through UTF-16.
10094
10095 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10098 New argument origpath. All users updated.
10099
10100 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10103 (read_attr): Ensure that we read start of possibly compressed block.
10104
10105 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10106
10107 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10108 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10109 All users updated.
10110
10111 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10114 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10115 (dejavu.pf2): Replace with ...
10116 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10117 this.
10118
10119 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 * util/grub.d/20_linux_xen.in: Add missing line.
10122
10123 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10126 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10127 (grub_utf16_to_utf8): Likewise.
10128
10129 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10130
10131 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10132 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10133 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10134 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10135 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10136 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10137
10138 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10141 a bad FS.
10142
10143 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10144
10145 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10146 (grub_udf_read_symlink): Handle read_string failure.
10147
10148 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10151 comment.
10152
10153 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10154
10155 Fix handling of UDF symlinks.
10156
10157 * grub-core/fs/udf.c (read_string): New argument outbuf.
10158 All users updated.
10159 (grub_ufs_read_symlink): Rename to ...
10160 (grub_udf_read_symlink): ... this. All users updated.
10161 Handle symlinks with more than one component.
10162
10163 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10166 symlinks. Replace leading colon with a slash.
10167
10168 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10169
10170 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10171 filename.
10172
10173 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10174
10175 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10176 match in inner node.
10177
10178 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10181 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10182 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10183 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10184 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10185 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10186 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10187 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10188 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10189
10190 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10191
10192 Use grub-probe and not cmp to check that disk is empty.
10193
10194 * util/grub-install.in: Use grub-probe for zero-check.
10195 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10196 (probe): Handle PRINT_ZERO_CHECK.
10197 (argp_parser): Handle -t zero_check.
10198
10199 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 Flush block cache on adding disk to device map.
10202
10203 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10204 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10205 adding.
10206 (read_device_map): Likewise.
10207 (open_device): Flush on opening.
10208
10209 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10212 (handle_symlink): Fix off-by-one error.
10213 Canonicalize the target.
10214 (grub_cpio_dir): Canonicalize the name.
10215 Fix memory leak.
10216 Set directory.
10217 (grub_cpio_open): Canonicalize the name.
10218
10219 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10222 handling.
10223
10224 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10225
10226 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10227 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10228
10229 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10232 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10233 All users updated.
10234
10235 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10236
10237 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10238 counterpart.
10239
10240 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 Fix UFS1 big file support.
10243
10244 * grub-core/fs/ufs.c (INODE): Removed.
10245 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10246 64-bit.
10247 (INODE_MODE): Simplify.
10248 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10249 (grub_ufs_lookup_symlink): Don't use INODE.
10250
10251 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10254
10255 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10256 (grub_minix_data): Replace log_block_size with block_size.
10257 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10258 (grub_minix_mount): Fill block_size.
10259
10260 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10261
10262 * configure.ac: Bump to beta5.
10263
10264 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10265
10266 Fix wrapped HFS+ handling.
10267
10268 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10269 blocks_start. All users updated.
10270 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10271 wrapping offset.
10272 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10273
10274 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 Fix long symlinks on reiserfs.
10277
10278 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10279 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10280 (grub_reiserfs_iterate_dir): Save size for non-directories.
10281 (grub_reiserfs_open): Don't reread stat block as we already know the
10282 size.
10283 (grub_reiserfs_read): Split into...
10284 (grub_reiserfs_read_real): ... and ...
10285 (grub_reiserfs_read): ...this.
10286
10287 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 Fix non-indexed JFS.
10290
10291 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10292 (grub_jfs_data): New field namecomponentlen.
10293 (grub_jfs_mount): Fill namecomponentlen.
10294 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10295
10296 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10297
10298 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10299 * tests/grub_script_echo1.in: Add tests.
10300
10301 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * util/grub-install.in: Ignore empty devicetree directory.
10304
10305 2012-05-08 Bean <bean123ch@gmail.com>
10306
10307 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10308 All users updated.
10309 (free_rsm): Free header as well.
10310 (free_old_fragments): Fix memory leak.
10311 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10312 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10313 (destroy_pq): Likewise.
10314 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10315
10316 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10319 resulting hash as a precaution.
10320
10321 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10324 '_' in variable names.
10325 * grub-core/net/net.c (grub_net_network_level_interface_register):
10326 Likewise.
10327
10328 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10329
10330 Fix AFFS with non-512B blocks.
10331
10332 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10333 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10334 (grub_affs_data): Replace blocksize with log_blocksize.
10335 (grub_affs_read_block): Fix non-512B blocks.
10336 (grub_affs_read_symlink): Likewise.
10337 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10338 (grub_affs_read): Fix non-512B blocks.
10339 (grub_affs_label): Likewise.
10340 (grub_affs_mtime): Likewise.
10341 (grub_affs_mount): Fix block detection routine.
10342
10343 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10344
10345 Add filesystem mtime to AFFS.
10346
10347 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10348 (aftime2ctime): New function.
10349 (grub_affs_dir): Use aftime2ctime.
10350 (grub_affs_label): Fix return value.
10351 (grub_affs_mtime): New function.
10352 (grub_affs_fs): Add mtime.
10353
10354 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10357 UTF-8.
10358
10359 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10362 UTF-8.
10363
10364 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10367
10368 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10371 flags.
10372 (FLAGS_CASE_SENSITIVE): New enum value.
10373 (cache_entry): New struct.
10374 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10375 cache_size and cache.
10376 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10377 Add log_blocksize and fshelp_flags.
10378 (grub_sfs_read_extent): Handle non-512 blocks.
10379 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10380 (grub_sfs_read_file): Handle non-512 blocks.
10381 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10382 fshelp_flags.
10383 (grub_sfs_read_symlink): Handle non-512 blocks.
10384 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10385 (grub_sfs_dir): Free cache.
10386 (grub_sfs_close): Likewise.
10387
10388 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10391 filesystems.
10392
10393 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10394
10395 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10396
10397 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10398
10399 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10400
10401 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10402
10403 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10404 (grub_sfs_read_extent): Likewise.
10405 (grub_sfs_read_block): Likewise.
10406 (grub_sfs_mount): Likewise.
10407 (grub_sfs_iterate_dir): Likewise.
10408 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10409 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10410
10411 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10412
10413 Fix errors on compressed NTFS with 512B clusters.
10414
10415 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10416 types.
10417 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10418 not 0.
10419 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10420 Relax check for inline extents.
10421 (ntfscomp): Return correct -1 on error and not 0.
10422
10423 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 * util/grub-install.in: Fix handling of prefix containing spaces.
10426
10427 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10428
10429 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10430 (grub_squash_read_data): Fix offset byte-swapping.
10431
10432 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10433
10434 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10435 per common usage and preffered in several parts of code.
10436 (grub_memcmp): Likewise.
10437 (grub_strncmp): Likewise.
10438 * include/grub/misc.h (grub_strcasecmp): Likewise.
10439 (grub_strncasecmp): Likewise.
10440 * Makefile.util.def (cmp_test): New test.
10441 (grub_script_strcmp): Likewise.
10442 * tests/cmp_unit_test.c: New file.
10443 * tests/grub_script_strcmp.in: Likewise.
10444 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10445
10446 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10447
10448 * include/grub/pci.h: Move enums into no-asm part.
10449
10450 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10451
10452 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10453
10454 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10455
10456 * util/getroot.c (find_hurd_root_device): Try to make error message
10457 and comments to translators clearer.
10458
10459 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10460
10461 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10462
10463 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10464
10465 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10466 btrfs.
10467
10468 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10469
10470 * docs/grub.cfg: Update.
10471
10472 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * docs/grub.texi (PXE): Remove not present variables.
10475
10476 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10477
10478 * grub-core/net/net.c (defserver_set_env): New function.
10479 (defserver_get_env): Likewise.
10480 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10481
10482 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10483
10484 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10485 entries.
10486
10487 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10490 * grub-core/kern/emu/hostdisk.c: Likewise.
10491
10492 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10493
10494 Handle hurd userspace partitions.
10495
10496 * util/getroot.c (find_hurd_root_device): New function.
10497 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10498
10499 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10500
10501 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10502 names.
10503 Reported by: Bastian Blank.
10504
10505 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10506
10507 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10508 crossing page boundary.
10509
10510 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 Fix B-tree search in BFS, especially in presence of non-ASCII
10513 characters.
10514
10515 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10516 (find_in_b_tree): Use standard bsearch + btree algorithm.
10517
10518 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10521 and so on.
10522
10523 2012-05-03 Matthew Garrett <mjg@redhat.com>
10524 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10525
10526 Suspend broadcom cards in order to stop their DMA.
10527
10528 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10529 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10530 (pci): Don't build on x86 EFI.
10531 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10532 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10533 New function.
10534 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10535 stop_broadcom if running on EFI.
10536 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10537 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10538 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10539 (grub_pci_find_capability): New proto.
10540
10541 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10542
10543 * docs/grub.texi: Remove dot from the extension as it apparently
10544 doesn't work with some makeinfo versions.
10545
10546 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10549 with GRUB expectance.
10550
10551 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10552
10553 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10554
10555 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10556
10557 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10558 zero after directory block since last entry may be not 0-terminated if
10559 it ends on block boundary. Use continue instead of if spanning whole
10560 loop.
10561
10562 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10563
10564 Support 4K sectors UDF inline files.
10565
10566 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10567 (grub_udf_extended_file_entry): Likewise.
10568 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10569 All users updated.
10570 (get_fshelp_size): New function.
10571 (grub_udf_read_icb): Read whole block.
10572 (grub_udf_iterate_dir): Likewise.
10573 (grub_udf_dir): Likewise.
10574 (grub_udf_open): Likewise.
10575
10576 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10577
10578 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10579
10580 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10581
10582 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10583 inline symlinks in addition to workaround.
10584
10585 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10588
10589 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10592
10593 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10594
10595 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10596
10597 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10598
10599 Fix reiserfs big seek times.
10600
10601 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10602 exact. All users updated.
10603 (grub_reiserfs_read): Use nearest btree search for seeking.
10604 Fix return value on error.
10605
10606 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10609 entries.
10610 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10611 * docs/grub.texi: Update menuentry description.
10612
10613 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10614
10615 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10616 crash when embedding onto filesystem.
10617
10618 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10619
10620 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10621 name.
10622
10623 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10626
10627 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10630 commit.
10631
10632 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10633 2012-05-01 Bean <bean123ch@gmail.com>
10634
10635 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10636
10637 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10638
10639 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10640 Special behaviour for len = 0 to read whole file isn't used anywhere and
10641 can cause buffer ovewrflows in several places.
10642
10643 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10644
10645 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10646
10647 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10648
10649 Handle RAIDZ on non-512B sectors.
10650
10651 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10652 max_children_ashift.
10653 (fill_vdev_info_real): Fill max_children_ashift.
10654 (read_device): Use max_children_ashift.
10655
10656 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10657
10658 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10659
10660 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10661
10662 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10663 disk names.
10664 * docs/grub.texi: Update device.map parts.
10665
10666 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 Don't scan into non-diskfilter devices having diskfilter names.
10669
10670 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10671 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10672 handling.
10673 (scan_disk_hook): New function.
10674
10675 2012-04-29 Bean <bean123ch@gmail.com>
10676
10677 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10678 allocation.
10679
10680 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10681
10682 * configure.ac: Detect starfield theme font path
10683 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10684
10685 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10686
10687 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10688 geometry on serial consoles.
10689
10690 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10691
10692 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10693 because of network consoles.
10694
10695 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10698 handling.
10699
10700 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10703 falls on Q syndrom.
10704
10705 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10708 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10709
10710 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10711
10712 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10713 Allocate at lest 8192 for temporary buffer as required for lzo.
10714
10715 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10718 to cluster_bits, since it's already added in.
10719 (grub_fat_read_data): Likewise.
10720
10721 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10724 as long as cluster size is multiple of 512 bytes.
10725
10726 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10727
10728 * util/grub-mkrescue.in: Fix locale directory.
10729
10730 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * grub-core/kern/emu/hostdisk.c (map): Make static.
10733
10734 2012-04-23 Bean <bean123ch@gmail.com>
10735
10736 * util/grub-fstest.c (fstest): Add missing break.
10737
10738 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10739
10740 Fix hurd build.
10741
10742 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10743 not define nr variable.
10744 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10745 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10746 grub_find_device): Do not define.
10747
10748 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 Fix kfreebsd compile and behaviour.
10751
10752 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10753 format-security.
10754 * util/getroot.c: Fix wait.h include.
10755 (grub_guess_root_devices): Error if grub_find_device fails.
10756 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10757 (grub_util_get_dev_abstraction): Likewise.
10758 (grub_util_pull_device): Likewise.
10759 (grub_util_get_grub_dev): Likewise.
10760 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10761
10762 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10763
10764 Fix and unify wholedisk detection.
10765
10766 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10767 is_part. All users updated.
10768 (device_is_wholedisk): Removed.
10769 (grub_util_biosdisk_get_grub_dev): Use is_part.
10770
10771 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10774 mode.
10775
10776 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10777
10778 * configure.ac: Bump to beta4.
10779
10780 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10781
10782 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10783 --fs-uuid --set UUID syntax.
10784
10785 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10786
10787 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10788 disunification.
10789
10790 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10793
10794 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10795
10796 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10797
10798 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10799
10800 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10801
10802 2012-04-18 Bean <bean123ch@gmail.com>
10803
10804 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10805 place.
10806
10807 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10810 users updated.
10811 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10812 corresponding to GRUB partitions.
10813 (grub_util_biosdisk_write): Likewise.
10814
10815 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10816
10817 Scan mdraid before LVM.
10818
10819 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10820 (grub_diskfilter_register_front): ... this.
10821 (grub_diskfilter_register_back): New function.
10822 All users of grub_diskfilter_register updated.
10823
10824 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * util/grub-install.in: Fix an automatic target detection bug.
10827
10828 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10829
10830 * util/grub-install.in: New option --efi-directory.
10831
10832 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10833
10834 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10835 boot services if we have no other choice.
10836
10837 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10838
10839 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10840 document it.
10841 * tests/util/grub-shell.in: Update to --directory.
10842
10843 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10844
10845 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10846
10847 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10848
10849 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10850 (grub_minix_read_file): Likewise.
10851 (grub_minix_read_inode): Likewise.
10852 (grub_minix_find_file): Likewise.
10853 (grub_minix_dir): Likewise.
10854
10855 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * util/grub-setup.c (setup): Fix partition handling and blocklist
10858 check.
10859
10860 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10863 redundant buggy overlap check.
10864
10865 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10868 and grub-mknetdir.
10869
10870 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10873 kh.loadflags on pre-2.00 kernels.
10874
10875 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10876
10877 Terminate UNDI and PXE before launching the payload to avoid problems
10878 with DMA.
10879
10880 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10881 (grub_loader_flags): ... this. All users updated.
10882 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10883 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10884 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10885 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10886 function.
10887 (grub_pxe_restore): Likewise.
10888 (fini_hnd): New var.
10889 (GRUB_MOD_INIT): Register shutdown hook.
10890 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10891 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10892 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10893 (grub_loader_set): Rename second argument to flags.
10894
10895 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10896
10897 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10898 written bytes.
10899 (grub_get_num_of_utf8_bytes): New function.
10900 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10901 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10902 executing it.
10903 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10904 (grub_ucs4_to_utf8): Change return type.
10905
10906 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10907
10908 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10909 warning.
10910 * grub-core/fs/bfs.c (hop_level): Likewise.
10911 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10912
10913 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10914
10915 * grub-core/lib/adler32.c: Recode due to license unclearness.
10916
10917 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10918
10919 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10920 (test_header): Likewise.
10921
10922 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 Fix --help formatting.
10925
10926 * util/grub-mkconfig_lib.in (print_option_help): New function.
10927 (grub_fmt): Likewise.
10928 * util/grub-install.in: Use print_option_help and grub_fmt.
10929 * util/grub-kbdcomp.in: Likewise.
10930 * util/grub-mkconfig.in: Likewise.
10931 * util/grub-mknetdir.in: Likewise.
10932 * util/grub-mkrescue.in: Likewise.
10933 * util/grub-mkstandalone.in: Likewise.
10934 * util/grub-reboot.in: Likewise.
10935 * util/grub-set-default.in: Likewise.
10936 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10937
10938 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10939
10940 * linguas.sh: Remove autogenerated *.po.
10941
10942 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10943
10944 * po/README: Move language fetcing to ...
10945 * linguas.sh: ... here.
10946 * po/README: Point to linguas.sh.
10947
10948 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 * po/README: Exclude ko.po due to disclaimer problems.
10951
10952 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10955 len = 0.
10956 (grub_gettext_translate_real): Handle 0th string.
10957 (grub_gettext_translate): Ensure that "" isn't translated.
10958
10959 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10960
10961 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10962 TRANSLATORS comment.
10963 (grub_diskfilter_print_partmap): Propagate changing of error into
10964 warning.
10965
10966 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10967
10968 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10969 to uint64_t to prevent overflow.
10970 (grub_diskfilter_lv): Increase start_extent and extent_count
10971 to uint64_t to prevent overflow.
10972
10973 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10974
10975 * configure.ac: Increase version.
10976
10977 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10978
10979 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10980
10981 * po/Rules-translit: New file.
10982 * po/arabic.sed: Likewise.
10983 * po/cyrillic.sed: Likewise.
10984 * po/greek.sed: Likewise.
10985 * po/hebrew.sed: Likewise.
10986 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10987 * po/Makefile.in.in: Add extra_dist4.
10988
10989 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10990
10991 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10992
10993 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10994 modify names. Introduce MODE_BIGENDIAN.
10995 * grub-core/fs/minix_be.c: New file.
10996 * grub-core/fs/minix2_be.c: Likewise
10997 * grub-core/fs/minix3_be.c: Likewise.
10998 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10999 minix3_be.
11000 * grub-core/Makefile.core.def (minix_be): New module.
11001 (minix2_be): Likewise.
11002 (minix3_be): Likewise.
11003
11004 2012-04-01 Felix <email@hamburg.de>
11005
11006 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11007 (devs): Add MBP 2011.
11008
11009 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11010
11011 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11012
11013 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11014
11015 * grub-core/normal/cmdline.c (print_completion): New field
11016 prompt_len.
11017 (grub_cmdline_get): Handle width properly.
11018
11019 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11022
11023 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11024
11025 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11026 after 29th of February.
11027
11028 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11029
11030 Fix exfat endianness handling.
11031
11032 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11033 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11034 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11035 Byte-swap utf16 when necessary.
11036 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11037
11038 2012-03-31 Anton Blanchard <anton@samba.org>
11039 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11040
11041 Fix btrfs endianness handling.
11042
11043 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11044 (lower_bound): Make root uint64_t. Use root in le.
11045 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11046 (find_path): Fix template key init.
11047 (grub_btrfs_dir): Fix mtime byteswap.
11048 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11049
11050 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11051
11052 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11053 recursion_depth. Break infinite resursions. All users updated.
11054
11055 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11056
11057 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11058 after free.
11059 Reported by: Peter Jones.
11060
11061 2012-03-31 Anton Blanchard <anton@samba.org>
11062
11063 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11064 8 bit values.
11065
11066 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 * util/grub-install.in: Fix nvram call for PreP.
11069
11070 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11071
11072 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11073 the error when some elements are missing into a warning.
11074
11075 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11078
11079 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11080
11081 * docs/grub.texi (Invoking grub-probe): New section.
11082 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11083
11084 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 Fix tab and wide character handling in editor and menu.
11087
11088 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11089 agglomerate control characters with combining marks.
11090 (bidi_line_wrap): Allow break on tab.
11091 (grub_unicode_get_comb_start): New function.
11092 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11093 and tab correctly.
11094 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11095 with a space.
11096 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11097 fixed_tab_size. All users updated.
11098 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11099 (grub_term_getcharwidth): Handle \t.
11100 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11101 and copy.
11102
11103 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 Handle big-endian mdraid.
11106
11107 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11108 * grub-core/Makefile.core.def (mdraid09_be): New module.
11109 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11110 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11111 * grub-core/disk/mdraid_linux_be.c: New file.
11112
11113 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11116
11117 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11118
11119 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11120 missing quotes which caused confusion among translators.
11121
11122 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11123
11124 * util/grub-mkconfig_lib.in: Fix typo.
11125
11126 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11129 spaces.
11130 * tests/grub_script_leading_whitespace.in: New file.
11131 * Makefile.util.def (grub_script_leading_whitespace): New test.
11132
11133 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11134
11135 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11136 to work.
11137
11138 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11139
11140 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11141 starts with control character.
11142
11143 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11146 overflow.
11147 (grub_gdb_outbuf): Likewise.
11148
11149 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11152 zero terminator. Fixes a crash.
11153
11154 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11155
11156 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11157 beyond 4 GiB.
11158 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11159 images independently of preffered adderss field.
11160
11161 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11164 * grub-core/commands/regexp.c: Likewise.
11165 * grub-core/loader/i386/linux.c: Likewise.
11166 * grub-core/partmap/msdos.c: Likewise.
11167 * grub-core/script/execute.c: Likewise.
11168 * grub-core/term/gfxterm.c: Likewise.
11169
11170 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 Add variable parsing in $"..." and fix several mismatches with bash.
11173
11174 * Makefile.util.def (grub_script_gettext): New test.
11175 * grub-core/script/execute.c (parse_string): New function.
11176 (gettext_append): Likewise.
11177 (grub_script_arglist_to_argv): Use gettext_append.
11178 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11179 * tests/grub_script_gettext.in: New file.
11180
11181 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11182
11183 Fix handling of leading spaces in scripts.
11184
11185 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11186 spaces.
11187 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11188 other than skipping \r. All users updated.
11189 * tests/grub_script_echo1.in: Add space-related tests.
11190 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11191
11192 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11193
11194 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11195
11196 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 * configure.ac: Bump up the version to beta2.
11199
11200 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11201
11202 Fix gettext reload bugs (e.g. inability to disable gettext
11203 once enabled).
11204
11205 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11206 main_context and secondary_context. All functions updated.
11207 (grub_gettext_translate): Rename to ...
11208 (grub_gettext_translate_real): ... this. Return NULL on failed
11209 translate.
11210 (grub_gettext_translate): Handle secondary context.
11211 (grub_gettext_delete_list): Close file and zero-out the context.
11212 (grub_mofile_open): Don't call grub_gettext_delete_list.
11213 Don't close file.
11214 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11215 if locale="" to avoid pointless error message.
11216 (grub_gettext_env_write_lang): Update lang even if load fails.
11217 Handle secondary context.
11218 (grub_gettext_reread_prefix): New function.
11219 (read_main): Likewise.
11220 (read_secondary): Likewise.
11221 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11222 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11223 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11224 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11225
11226 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11227
11228 * configure.ac: Decrease warning level to avoid spurious warnings and
11229 to be able to compile with GCC 4.2.
11230 * Makefile.util.def: Remove -Wno-error=logical-op.
11231
11232 2012-03-10 William Bittner <william.bittner@gmail.com>
11233
11234 * util/import_unicode.py: Add missing brackets around string for
11235 python 3 support.
11236
11237 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 Fix efi chainloader on network root.
11240
11241 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11242 network devices.
11243 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11244 New function.
11245
11246 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11249 unused show_text member.
11250 * docs/grub.texi: Document "text" property.
11251
11252 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11255 in dprintf.
11256
11257 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11258
11259 Fix IMSM handling on Fedora.
11260
11261 * util/getroot.c (grub_util_is_imsm): New function.
11262 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11263
11264 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11265
11266 * Makefile.am: Strip gold section.
11267 * conf/Makefile.common: Likewise.
11268 * gentpl.py: Likewise.
11269 * grub-core/Makefile.core.def: Likewise.
11270 * grub-core/genmod.sh.in: Likewise.
11271
11272 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11273
11274 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11275 * util/grub.d/20_linux_xen.in: Likewise.
11276 Based on Debian patch.
11277
11278 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11279
11280 * util/grub.d/10_linux.in: Fix syntax error resulting in
11281 Richard Laager's patch.
11282 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11283
11284 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11285
11286 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11287 dependencies.
11288
11289 2012-03-10 Richard Laager <rlaager@wiktel.com>
11290
11291 * util/grub.d/10_linux.in: Fix ZFS root passing.
11292
11293 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11294
11295 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11296 * grub-core/commands/xnu_uuid.c: Likewise.
11297 * grub-core/loader/efi/appleloader.c: Likewise.
11298 * grub-core/script/execute.c: Likewise.
11299 * grub-core/script/main.c: Likewise.
11300 * util/grub-mkfont.c: Likewise.
11301
11302 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11303
11304 * util/grub-mkfont.c (options): Use more appropriate "select" that
11305 "set" for face index.
11306
11307 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11308
11309 * util/grub-editenv.c (options): Gettextize command summaries.
11310
11311 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11312
11313 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11314 "out of memory" error messagge.
11315
11316 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11319 of diskfilter for diskfilter on diskfilter support.
11320
11321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11324
11325 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11328 themes/starfield.
11329
11330 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11331
11332 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11333
11334 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11337
11338 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11341 of error message.
11342
11343 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11344
11345 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11346
11347 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11348
11349 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11350 message.
11351 * util/grub-install.in: Fix and gettextize error message.
11352
11353 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11354
11355 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11356 Gettextize.
11357 * util/grub-mount.c (options): Likewise.
11358
11359 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11360
11361 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11362 gettextize.
11363 * grub-core/commands/search_wrap.c (options): Likewise.
11364
11365 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11366
11367 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11368
11369 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11372 size calculation.
11373 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11374 none is known.
11375
11376 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11377
11378 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11379 "temporary" since it's used in identifier and is limited in space.
11380
11381 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11382
11383 * po/POTFILES.in: Regenerate. Include *.h since they contain
11384 translatable strings as well.
11385
11386 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11389 byte-swap on big-endian.
11390 Reported by: Lennart Sorensen
11391
11392 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11393
11394 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11395 (allocate_pages): Improve dprintf.
11396 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11397 code32_start. Fill code32_start and kernel_alignment in params.
11398 (grub_cmd_initrd): Use prot_init_space.
11399
11400 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11401
11402 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11403
11404 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 * util/grub-install.in: Add missing dot at the end of sentence.
11407
11408 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11409
11410 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11411 * grub-core/commands/videotest.c: Likewise.
11412 * grub-core/loader/i386/linux.c: Likewise.
11413
11414 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11417 sentence.
11418 Reported by: Milo Casagrande.
11419
11420 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11421
11422 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11423 * grub-core/commands/gptsync.c: Likewise.
11424 * grub-core/commands/hashsum.c: Likewise.
11425 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11426 * grub-core/commands/legacycfg.c: Likewise.
11427 * grub-core/io/gzio.c: Likewise.
11428 * grub-core/net/net.c: Likewise.
11429 * grub-core/term/gfxterm.c: Likewise.
11430 * grub-core/term/terminfo.c: Likewise.
11431 * grub-core/tests/test_blockarg.c: Likewise.
11432 * grub-core/video/video.c: Likewise.
11433 * util/grub-install.in: Likewise.
11434 * util/grub-mkfont.c: Likewise.
11435
11436 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11437
11438 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11439
11440 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11441
11442 * grub-core/commands/search_wrap.c (options): Fix a typo.
11443 Reported by: David Prévot.
11444
11445 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11448 description.
11449
11450 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 * util/grub-script-check.c (main): Fix a syntax error message which was
11453 unclear.
11454
11455 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11456
11457 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11458
11459 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11460
11461 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11462 messages.
11463
11464 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11465
11466 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11467 without argument.
11468 * util/grub-mount.c (options): Likewise.
11469
11470 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11473
11474 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11475
11476 * grub-core/net/http.c: Add TRANSLATORS comments.
11477 * grub-core/normal/cmdline.c: Likewise.
11478 * grub-core/normal/misc.c: Likewise.
11479 * grub-core/partmap/msdos.c: Likewise.
11480 * grub-core/parttool/msdospart.c: Likewise.
11481 * grub-core/script/execute.c: Likewise.
11482 * grub-core/script/main.c: Likewise.
11483 * grub-core/term/terminfo.c: Likewise.
11484 * grub-core/video/bitmap.c: Likewise.
11485 * util/grub-install.in: Likewise.
11486 * util/grub-mkimage.c: Likewise.
11487 * util/grub-mklayout.c: Likewise.
11488 * util/grub-setup.c: Likewise.
11489
11490 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11493 with similar messages in grub-fstest.
11494
11495 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11496
11497 * util/grub-install.in: Unify "option requires an argument" message
11498 with similar messages in other files.
11499 * util/grub-mkconfig.in: Likewise.
11500
11501 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11502
11503 * util/grub-set-default.in: Replace printf with gettext_printf (the
11504 string in in question is already translated from grub-reboot)
11505
11506 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11507
11508 * configure.ac: Bump up the version to beta1.
11509
11510 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11511
11512 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11513 case when min_align = 0.
11514
11515 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11516
11517 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11518 and fix a case when line_start overflows.
11519
11520 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11521
11522 * util/grub-reboot.in (usage): Mention id posibility.
11523 * util/grub-set-default.in (usage): Likewise.
11524
11525 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11526
11527 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11528 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11529 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11530 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11531 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11532 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11533 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11534
11535 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11536
11537 * grub-core/commands/menuentry.c (options): Remove
11538 GRUB_ARG_OPTION_REPEATABLE.
11539 Reported by: Andreas Vogel
11540
11541 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11542
11543 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11544
11545 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11546
11547 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11548 error.
11549
11550 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 Use sort -V by the idea of Georgi Georgiev.
11553
11554 * util/grub-mkconfig_lib.in (version_sort): New function.
11555 (version_test_numeric): Use version_sort.
11556
11557 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11558
11559 Use submenus in grub-mkconfig.
11560
11561 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11562 * util/grub-mkconfig_lib.in (grub_quote): New function.
11563 (gettext_printf): Use gettext and not gettext_quoted to fix several
11564 messages.
11565 * util/grub.d/10_hurd.in: Use submenus.
11566 * util/grub.d/10_kfreebsd.in: Likewise.
11567 * util/grub.d/10_linux.in: Likewise.
11568 * util/grub.d/10_netbsd.in: Likewise.
11569 * util/grub.d/20_linux_xen.in: Likewise.
11570 * util/grub.d/30_os-prober.in: Likewise.
11571 * util/grub.d/10_illumos.in: Add missing quoting.
11572 * util/grub.d/10_windows.in: Likewise.
11573
11574 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11575
11576 Fix menu title instability bug.
11577
11578 * grub-core/commands/menuentry.c (options): New option --id.
11579 (grub_normal_add_menu_entry): New argument id. All users updated.
11580 (grub_cmd_menuentry): Handle --id.
11581 (grub_menu_init): Accept unknown arguments.
11582 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11583 feature_menuentry_options.
11584 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11585 saved_entry.
11586 (get_entry_number): Match with id as well.
11587 * include/grub/menu.h (grub_menu_entry): New member id.
11588 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11589 * util/grub.d/00_header.in: Define menuentry_id_option.
11590 * util/grub.d/10_hurd.in: Define id.
11591 * util/grub.d/10_illumos.in: Likewise.
11592 * util/grub.d/10_kfreebsd.in: Likewise.
11593 * util/grub.d/10_linux.in: Likewise.
11594 * util/grub.d/10_netbsd.in: Likewise.
11595 * util/grub.d/10_windows.in: Likewise.
11596 * util/grub.d/20_linux_xen.in: Likewise.
11597 * util/grub.d/30_os-prober.in: Likewise.
11598
11599 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11600
11601 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11602 "scope" with "body".
11603
11604 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11605
11606 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11607 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11608 prot_size and prot_file_size.
11609
11610 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11611
11612 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11613 All users updated. If easily=1 require raid-5/-6 to be full.
11614 (is_node_readable): Likewise.
11615 (scan_devices): Scan incomplete but readable LVs at the end.
11616 (grub_diskfilter_memberlist): Pull missing devices.
11617 (insert_array): Skip scanning until device is complete or scan is
11618 done otherwise.
11619 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11620 check.
11621 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11622 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11623
11624 2012-03-03 Matthew Garrett <mjg@redhat.com>
11625 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11626
11627 Avoid EFI boot services when loading Linux.
11628
11629 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11630 avoid_efi_bootservices. All users updated.
11631 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11632 argument avoid_efi_bootservices. All users updated.
11633 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11634 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11635 align, min_align, relocatable, prefered_address. All users updated.
11636 Allocate avoiding boot services if kernel is relocatable.
11637 (grub_cmd_linux): Check if kernel is relocatable.
11638 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11639 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11640 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11641 avoid_efi_boot_services.
11642 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11643 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11644 (linux_kernel_params): Likewise.
11645
11646 2012-03-03 Matthew Garrett <mjg@redhat.com>
11647 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11648
11649 Use EDID on EFI.
11650
11651 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11652 datasize_out.
11653 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11654 modes. Set gop_handle.
11655 (grub_video_gop_get_edid): New function.
11656 (grub_gop_get_preferred_mode): Likewise.
11657 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11658 (grub_video_efi_gop_adapter): Set .get_edid.
11659 * include/grub/efi/edid.h: New file.
11660 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11661
11662 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11663
11664 * util/grub-install.in: Load efivars unconditionally.
11665
11666 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11667
11668 * po/Rules-piglatin: Change suffix from .po-update-en to
11669 .po-update-en-piglatin.
11670
11671 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11672
11673 Add a pig farm.
11674
11675 * po/piglatin.sed: New file.
11676 * po/en@piglatin.header: Likewise.
11677 * po/Rules-piglatin: Likewise.
11678 * po/README: Add en@piglatin to autogenerated languages.
11679
11680 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11683 "Command for ...".
11684 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11685 "Check" since we don't check anything.
11686 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11687 is 64-bit one.
11688 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11689 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11690 (grub_md_sha512_real): Likewise.
11691
11692 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11693
11694 * grub-core/commands/gptsync.c: Fix typographic quoting.
11695 * grub-core/commands/ieee1275/suspend.c: Likewise.
11696 * grub-core/commands/parttool.c: Likewise.
11697 * grub-core/commands/search_wrap.c: Likewise.
11698 * grub-core/commands/videoinfo.c: Likewise.
11699 * grub-core/gfxmenu/gui_label.c: Likewise.
11700 * grub-core/hello/hello.c: Likewise.
11701 * grub-core/kern/emu/main.c: Likewise.
11702 * grub-core/net/net.c: Likewise.
11703 * grub-core/normal/menu.c: Likewise.
11704 * grub-core/normal/menu_text.c: Likewise.
11705 * grub-core/normal/misc.c: Likewise.
11706 * util/grub-editenv.c: Likewise.
11707 * util/grub-install.in: Likewise.
11708 * util/grub-kbdcomp.in: Likewise.
11709 * util/grub-mkconfig.in: Likewise.
11710 * util/grub-mknetdir.in: Likewise.
11711 * util/grub-mkrescue.in: Likewise.
11712 * util/grub-mkstandalone.in: Likewise.
11713 * util/grub-reboot.in: Likewise.
11714 * util/grub-set-default.in: Likewise.
11715 * util/grub-setup.c: Likewise.
11716 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11717
11718 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11719
11720 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11721 * grub-core/commands/keystatus.c: Likewise.
11722 * grub-core/commands/loadenv.c: Likewise.
11723 * grub-core/commands/probe.c: Likewise.
11724 * grub-core/commands/regexp.c: Likewise.
11725 * grub-core/commands/true.c: Likewise.
11726 * grub-core/commands/videoinfo.c: Likewise.
11727 * grub-core/disk/cryptodisk.c: Likewise.
11728 * grub-core/disk/ldm.c: Likewise.
11729 * grub-core/disk/loopback.c: Likewise.
11730 * grub-core/disk/luks.c: Likewise.
11731 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11732 * grub-core/kern/disk.c: Likewise.
11733 * grub-core/kern/emu/hostdisk.c: Likewise.
11734
11735 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11736
11737 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11738 * util/grub-install.in: Add missing quote in the comment.
11739
11740 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11741
11742 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11743 * grub-core/commands/lsmmap.c: Likewise.
11744 * grub-core/commands/minicmd.c: Likewise.
11745 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11746 * grub-core/commands/regexp.c: Likewise.
11747 * grub-core/gdb/gdb.c: Likewise.
11748 * grub-core/term/gfxterm.c: Likewise.
11749 * util/grub-mkconfig.in: Likewise.
11750 * util/grub-mkfont.c: Likewise.
11751 * util/grub-mklayout.c: Likewise.
11752 * util/grub-mknetdir.in: Likewise.
11753 * util/grub-mkrescue.in: Likewise.
11754 * util/grub.d/30_os-prober.in: Likewise.
11755
11756 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11757
11758 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11759 with "Direct color" and "Packed" with "Packed pixel".
11760 (grub_cmd_videoinfo): Simplify legend.
11761
11762 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11763
11764 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11765 absolutely unclear error message.
11766
11767 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 * util/grub-mkstandalone.in: Remove confusing leftover print.
11770
11771 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11772
11773 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11774 comments.
11775 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11776 (GRUB_MOD_INIT): Likewise.
11777 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11778 VGA mode.
11779 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11780 comments.
11781 * util/grub-install.in (usage): Likewise.
11782 Spell ID in whole letters.
11783 Add missing ending dot.
11784 Quote variables.
11785 * util/grub-reboot.in: Fix capitalisation.
11786 * util/grub-set-default.in: Likewise.
11787
11788 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11791 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11792 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11793 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11794 Disable -Werror for -Wdeprecated-declarations.
11795 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11796 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11797 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11798 (grub_util_get_grub_dev): Make luks handling dependent on
11799 HAVE_DEVICE_MAPPER and not __linux__.
11800 (get_win32_path): Fix format security.
11801 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11802 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11803 Don't try grub_find_zpool_from_dir.
11804 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11805 #ifdef-out paresdir.
11806
11807 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11808
11809 * util/grub-pe2elf.c (usage): Add missing noreturn.
11810 (write_section_data): Rename name to shname to avoid shadowing.
11811 (write_symbol_table): Rename name to symname to avoid shadowing.
11812 Fix write_reloc_section call.
11813
11814 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11815
11816 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11817 to ensure that it's after the last byte of .text.
11818
11819 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11820
11821 * util/ieee1275/ofpath.c (my_isdigit): New function.
11822 (trailing_digits): Use my_isdigit.
11823 (strip_trailing_digits): Likewise.
11824
11825 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11826
11827 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11828 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11829
11830 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11831
11832 * grub-core/kern/i386/pc/startup.S: Define __start.
11833
11834 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11835
11836 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11837 strip already transforms he format.
11838
11839 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11840
11841 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11842
11843 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11844
11845 * util/grub-install.in: Add missing gettext init.
11846 * util/grub-kbdcomp.in: Likewise.
11847 * util/grub-mkconfig.in: Likewise.
11848 * util/grub-mknetdir.in: Likewise.
11849 * util/grub-mkrescue.in: Likewise.
11850 * util/grub-mkstandalone.in: Likewise.
11851 * util/grub-reboot.in: Likewise.
11852 * util/grub-set-default.in: Likewise.
11853 * util/grub.d/00_header.in: Likewise.
11854 * util/grub.d/10_hurd.in: Likewise.
11855 * util/grub.d/10_windows.in: Likewise.
11856 * util/grub.d/30_os-prober.in: Likewise.
11857 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11858
11859 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11860
11861 * po/Rules-swiss: Fix header comment.
11862
11863 2012-02-29 Andreas Vogel <anvoit>
11864
11865 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11866 resulted in leak of arguments.
11867
11868 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11869
11870 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11871 reed_solomon_size const definition instead of computing it since
11872 Apple assembler doesn't support the later.
11873
11874 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11875
11876 * gentpl.py (kernel): Rewrite Apple part.
11877
11878 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11879
11880 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11881
11882 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11885 ELF section gap.
11886 (load_image): Likewise.
11887
11888 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11889
11890 * configure.ac: Fix a typo in previous commit.
11891
11892 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 Don't add -Wl,-N on Apple platform.
11895
11896 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11897 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11898
11899 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11900
11901 * grub-core/Makefile.core.def (lzma_decompress): Use
11902 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11903
11904 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11905
11906 * grub-core/genmod.sh.in: Rewrite the Apple part.
11907
11908 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11909
11910 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11911 comparison.
11912
11913 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11914
11915 * acinclude.m4 (grub_CHECK_PIC): New test.
11916 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11917
11918 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11921 to avoid the warning.
11922
11923 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11924
11925 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11926 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11927 after. All users updated.
11928
11929 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11930
11931 Use the common size routine in hostfs so we can read disks as well.
11932
11933 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11934 (grub_util_get_fd_size): ... this. Return size in bytes.
11935 All users updated.
11936 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11937 grub_util_get_fd_size.
11938
11939 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11940
11941 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11942 Add blocksize retrieval.
11943
11944 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11945
11946 * configure.ac: Restore CFLAGS after efiemu check.
11947
11948 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11949
11950 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11951 Apple bug.
11952
11953 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11956
11957 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11958
11959 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11960 (grub_cmd_halt): Likewise.
11961
11962 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11963
11964 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11965 for local arithmetics.
11966 Break %sp init into 2 instructions.
11967 Add 0 byte at the end.
11968
11969 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11970
11971 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11972 before loops.
11973
11974 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11975
11976 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11977 for context.
11978
11979 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 * grub-core/disk/ldm.c (make_vg): Init part.name.
11982 (grub_ldm_detect): Silence spurious warning.
11983 (grub_util_is_ldm): Likewise.
11984
11985 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11986
11987 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11988 sane value to avoid a spurious warning.
11989
11990 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11991
11992 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11993 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11994
11995 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11996
11997 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11998 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11999
12000 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12001
12002 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12003 hardcoding the relevant info.
12004
12005 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12006
12007 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12008 missing const qualifiers.
12009 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12010
12011 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 * util/getroot.c [__APPLE__]: Add missing includes.
12014 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12015
12016 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12017
12018 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12019
12020 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12021
12022 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12023 avoid conflicts.
12024
12025 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12028
12029 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12030
12031 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12032 and grub_file_close call.
12033
12034 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12035
12036 Add LZSS Mach-O support (needed for new xnu kernelcache).
12037
12038 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12039 * grub-core/loader/lzss.c: New file.
12040 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12041 on Mach-O open failure.
12042 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12043 Don't free cmdsXX in uncompressedXX is set.
12044 (grub_macho_file): Init new fields.
12045 New argument is_64bit. All users updated.
12046 Handle compressed. Error out if no suitable architecture is found.
12047 Don't close file.
12048 (grub_macho_open): New argument is_64bit. All users updated.
12049 * grub-core/loader/macho32.c: Add defines for new fields.
12050 * grub-core/loader/macho64.c: Likewise.
12051 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12052 (grub_macho_parse): Handle compressed.
12053 Defer actual processing if compressed.
12054 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12055 "filename". All users updated.
12056 (grub_macho_size): New argument "filename". All users updated.
12057 (grub_macho_get_entry_point): Likewise.
12058 (grub_macho_load): Handle compressed.
12059 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12060 (GRUB_MACHO_LZSS_OFFSET): New define.
12061 (grub_decompress_lzss): New proto.
12062 * include/grub/machoload.h (grub_macho_file): New fields to handle
12063 compressed.
12064 (grub_macho_contains_macho64): Remove proto.
12065 (grub_macho_contains_macho32): Likewise.
12066 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12067
12068 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12071
12072 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12073
12074 Fix make dist.
12075
12076 * Makefile.am (starfield_theme_files): New var.
12077 (starfield_DATA): Use starfield_theme_files.
12078 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12079 Add bootcheck-related files.
12080 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12081 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12082 and font_char_metrics.txt.
12083 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12084 (setjmp): Add lib/ia64/longjmp.S.
12085 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12086 * po/POTFILES.in: Regenerate.
12087 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12088 DISTFILES.common.extra1.
12089 * util/devicemap.c: Removed.
12090 * grub-core/lib/i386/relocator_backward.S: Likewise.
12091 * util/import_gcry.py: Remove unused files. Add extra_dist for
12092 ChangeLog.
12093
12094 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12095
12096 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12097 grub_gettext_delete_list before changing grub_gettext_max to avoid
12098 running out of array bounds.
12099
12100 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12101
12102 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12103 grub_vga_text_init/grub_vga_text_fini.
12104
12105 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12106
12107 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12108
12109 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12110
12111 * configure.ac: Bump to 2.00~beta0.
12112
12113 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12114
12115 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12116 missing initialisation.
12117
12118 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12119
12120 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12121
12122 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12123
12124 Support v2 xnu boot arguments.
12125
12126 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12127 New argument fsbfreq_out.
12128 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12129 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12130 be used.
12131 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12132 darwin_version.
12133 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12134 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12135 (grub_xnu_boot_params): Rename to ...
12136 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12137 (grub_xnu_boot_params_v2): New struct.
12138
12139 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12140
12141 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12142 zeroing of CRC field before computing CRC.
12143
12144 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12147 Change order of allocations to decrease fragmentation.
12148
12149 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12150
12151 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12152
12153 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12154
12155 Use write-combining MTRR to speed up video with buggy BIOSes.
12156
12157 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12158 (cpuid): New define.
12159 (rdmsr): Likewise.
12160 (wrmsr): Likewise.
12161 (mtrr_base): Likewise.
12162 (mtrr_mask): Likewise.
12163 (grub_vbe_enable_mtrr_entry): New function.
12164 (grub_vbe_enable_mtrr): Likewise.
12165 (grub_vbe_disable_mtrr): Likewise.
12166 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12167 control off to BIOS.
12168 (grub_video_vbe_init): Fill mtrr.
12169 (grub_video_vbe_fini): Disable mtrr.
12170 (grub_video_vbe_get_info_and_fini): Likewise.
12171 (grub_video_vbe_setup): Enable mtrr.
12172
12173 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12174
12175 * include/grub/partition.h (grub_partition_map): Change prototype of
12176 embed to take a maximum value for nsectors.
12177 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12178 * include/grub/fs.h (grub_fs): Likewise.
12179 * grub-core/partmap/msdos.c (embed_signatures): New array.
12180 (pc_partition_map_embed): Check for and avoid sectors matching any
12181 of the signatures in embed_signatures, up to max_nsectors.
12182 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12183 returned sector map to max_nsectors.
12184 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12185 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12186 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12187 * util/grub-setup.c (setup): Allow for the embedding area being
12188 split into multiple blocklists. Tell dest_partmap->embed the
12189 maximum number of sectors we care about.
12190
12191 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12192
12193 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12194 Specify blocklist_install and reserver_first_sector for all fs.
12195 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12196 blocklists.
12197
12198 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12199
12200 * util/grub-install.in: Clarify strings.
12201 Fix source dir check.
12202
12203 2012-02-27 Richard Laager <rlaager@wiktel.com>
12204
12205 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12206 "zfs" and "fuse.zfs" as synonyms.
12207
12208 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 * configure.ac: Put platform and target_cpu substitutions back since
12211 they are used for directories.
12212
12213 2012-02-27 Richard Laager <rlaager@wiktel.com>
12214 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12215
12216 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12217 * util/grub.d/20_linux_xen.in: Likewise.
12218
12219 2012-02-27 Richard Laager <rlaager@wiktel.com>
12220
12221 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12222 with full paths.
12223
12224 2012-02-27 Richard Laager <rlaager@wiktel.com>
12225
12226 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12227 unescape.
12228
12229 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12230
12231 Don't use insecure popen in getroot.
12232
12233 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12234 (exec_pipe): ... here.
12235 (find_root_devices_from_poolname): Use exec_pipe.
12236
12237 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12238
12239 Remove platform and target_cpu replacement.
12240
12241 * configure.ac: Remove platform and target_cpu substitutions.
12242 * tests/util/grub-shell.in: Use modinfo.
12243 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12244 explicitly.
12245
12246 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12247
12248 Autodetect platform in grub-install but allow override.
12249
12250 * util/grub-install.in: Autodetect platform. Support --target and
12251 --directory. Read platform from modinfo.sh.
12252
12253 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12254
12255 Support btrfs multi-volume probe.
12256
12257 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12258 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12259 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12260 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12261 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12262 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12263 grub_find_root_devices_from_btrfs if on btrfs.
12264
12265 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12266
12267 Remove any awareness of *.c util files about target.
12268
12269 * Makefile.util.def (grub-setup): Split to ...
12270 (grub-bios-setup): ... and this.
12271 (grub-sparc64-setup): ... and this.
12272 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12273 * docs/man/grub-setup.h2m: Split into ...
12274 * docs/man/grub-sparc64-setup.h2m: ... this.
12275 * docs/man/grub-bios-setup.h2m: ... and this.
12276 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12277 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12278 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12279 (grub_target_addr_t): Remove.
12280 (grub_target_size_t): Remove.
12281 (grub_target_ssize_t): Remove.
12282 * util/grub-install.in: Use new grub-*-setup.
12283 * util/grub-mkimagexx.c (Elf_Word): New define.
12284 (Elf_Half): Likewise.
12285 (Elf_Section): Likewise.
12286 (ELF_ST_TYPE): Likewise.
12287 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12288 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12289
12290 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12291
12292 Replace grub_target_addr with more appropriate types.
12293
12294 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12295 grub_target_addr with grub_addr.
12296 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12297 grub_target_addr with grub_port.
12298 (grub_cmd_write): Likewise.
12299 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12300 grub_target_addr with grub_addr.
12301 (grub_cmd_write): Likewise.
12302 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12303
12304 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12305
12306 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12307 const qualifier for vendor_guid.
12308
12309 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12310
12311 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12312 const qualifier.
12313 (efiemu_memequal): Likewise.
12314 (find_variable): Likewise.
12315
12316 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12317
12318 Fix missing console prototype on qemu-mips.
12319
12320 * include/grub/mips/qemu_mips/console.h: New file.
12321
12322 2012-02-27 Matthew Garrett <mjg@redhat.com>
12323 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12324
12325 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12326 * include/grub/efi/efi.h: Likewise.
12327 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12328 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12329 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12330 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12331 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12332 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12333
12334 2012-02-27 Matthew Garrett <mjg@redhat.com>
12335
12336 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12337
12338 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12339
12340 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12341 error.
12342
12343 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12344
12345 * configure.ac: Remove inappropriate use of program_transform_name
12346 on grubdir and bootdir but allow explicit specification of those
12347 variables.
12348
12349 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * util/grub-mknetdir.in (grub_prefix): Removed.
12352 (subdir): Use @bootdirname@ and @grubdirname@.
12353
12354 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12355
12356 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12357
12358 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12359
12360 * po/POTFILES.in: Regenerated.
12361
12362 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12363
12364 Remove improper use of program_transform_name on pkglibrootdir.
12365
12366 * configure.ac (pkglibrootdir): Removed.
12367 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12368 * util/grub-mkimage.c: Likewise.
12369
12370 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12371
12372 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12373 warning.
12374
12375 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12376
12377 * util/grub-install.in: Use file identifier if no UUID is available
12378 or user explicitly prompted for it.
12379
12380 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12381
12382 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12383 (freebsd_get_zfs): New function.
12384 (grub_freebsd_boot): Pass zfs UUID.
12385 (grub_cmd_freebsd): Set zfs UUID.
12386
12387 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12388
12389 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12390 pkglibrootdir.
12391
12392 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12393
12394 Add configure flag to control libzfs integration.
12395
12396 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12397
12398 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12399
12400 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12401 device.
12402 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12403 small devices.
12404
12405 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12406
12407 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12408 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12409 be used on non-modules.
12410
12411 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12412 Rename to grub_boot_init.
12413 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12414 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12415 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12416 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12417 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12418 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12419 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12420 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12421 includes.
12422 (grub_machine_init): Remove empty inits.
12423 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12424 includes.
12425 (grub_machine_init): Remove empty inits.
12426 * grub-core/term/arc/console.c: Remove explicit proto.
12427 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12428 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12429 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12430 grub_at_keyboard_fini.
12431 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12432 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12433 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12434 grub_gfxterm_fini.
12435 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12436 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12437 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12438 grub_vgatext_fini.
12439 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12440 * grub-core/term/serial.c (GRUB_MOD_INIT)
12441 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12442 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12443 grub_serial_fini.
12444 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12445 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12446 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12447 grub_terminfo_fini.
12448 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12449 (GRUB_MOD_FINI): Likewise.
12450 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12451 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12452 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12453 grub_video_radeon_fuloong2e_fini.
12454 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12455 [LOONGSON]: Rename to grub_video_sis315pro_init.
12456 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12457 grub_video_sis315pro_fini.
12458 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12459 [LOONGSON]: Rename to grub_video_sm712_init.
12460 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12461 grub_video_sm712_fini.
12462 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12463 (grub_at_keyboard_fini): Likewise.
12464 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12465 Don't declare grub_{modname}_init.
12466 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12467 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12468 New proto.
12469 (grub_keylayouts_fini) [!EMU]: Likewise.
12470 * include/grub/serial.h (grub_serial_init) [!EMU]:
12471 New proto.
12472 (grub_serial_fini) [!EMU]: Likewise.
12473 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12474 New proto.
12475 (grub_terminfo_fini) [!EMU]: Likewise.
12476 * include/grub/video.h (grub_font_init) [!EMU]:
12477 New proto.
12478 (grub_font_fini) [!EMU]: Likewise.
12479 (grub_gfxterm_init) [!EMU]: Likewise.
12480 (grub_gfxterm_fini) [!EMU]: Likewise.
12481 (grub_video_sm712_init) [!EMU]: Likewise.
12482 (grub_video_sm712_fini) [!EMU]: Likewise.
12483 (grub_video_sis315pro_init) [!EMU]: Likewise.
12484 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12485 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12486 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12487
12488 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12489
12490 Make nand a prefix for nand devices.
12491
12492 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12493
12494 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12495
12496 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12497 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12498
12499 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12500
12501 * include/grub/env.h (grub_env_find): Remove prototype.
12502 * grub-core/kern/env.c (grub_env_find): Make static.
12503 (grub_env_set): Remove useless set.
12504
12505 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 * grub-core/kern/i386/realmode.S: Remove useless align.
12508
12509 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12510
12511 * include/grub/dl.h (grub_dl_load_file): Don't export.
12512
12513 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12514
12515 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12516 grub_dprintf.
12517
12518 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12519
12520 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12521 grub_errors.
12522 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12523 not reloading whole superblock but only the part which is really needed.
12524 Remove useless grub_errors.
12525 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12526 grub_errors.
12527
12528 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12529
12530 Don't export grub_get_rtc.
12531
12532 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12533 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12534
12535 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12536
12537 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12538
12539 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12540
12541 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12542 argument since it can be deduced from diskfilter. All users updated.
12543
12544 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12545
12546 Remove prio_list.
12547
12548 * include/grub/list.h (grub_prio_list): Removed.
12549 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12550 GRUB_COMMAND_PRIO_MASK.
12551 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12552 GRUB_COMMAND_FLAG_ACTIVE.
12553 (grub_prio_list_insert): Removed.
12554 (grub_prio_list_remove): Likewise.
12555 (GRUB_AS_PRIO_LIST): Likewise.
12556 (GRUB_AS_PRIO_LIST_P): Likewise.
12557 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12558 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12559 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12560 * grub-core/kern/command.c (grub_register_command_prio): Inline
12561 the prio_list code.
12562 (grub_unregister_command): Likewise.
12563
12564 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12565
12566 Fix interrupt mixup from previous commit.
12567
12568 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12569 (grub_realidt): New var.
12570 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12571 Load idt.
12572 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12573 New declaration.
12574 (grub_relocator16_boot): Set grub_relocator16_idt.
12575 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12576 (LOCAL(realidt)): ... this.
12577 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12578 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12579 (grub_realidt): New variable.
12580
12581 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12582
12583 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12584 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12585 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12586 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12587 Gettextize.
12588 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12589 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12590 * po/POTFILES.in: Regenerate.
12591
12592 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12593
12594 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12595 errors.
12596
12597 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12598
12599 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12600 \0.
12601 (add_length): Likewise.
12602
12603 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12604 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12605
12606 GDB serial and backtrace support.
12607
12608 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12609 (prot_to_real): Likewise.
12610 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12611 * grub-core/Makefile.core.def (backtrace): New module.
12612 (gdb): Likewise.
12613 * grub-core/gdb/cstub.c: New file.
12614 * grub-core/gdb/gdb.c: Likewise.
12615 * grub-core/gdb/i386/idt.c: Likewise.
12616 * grub-core/gdb/i386/machdep.S: Likewise.
12617 * grub-core/gdb/i386/signal.c: Likewise.
12618 * grub-core/lib/i386/backtrace.c: Likewise.
12619 * grub-core/lib/backtrace.c: Likewise.
12620 * include/grub/backtrace.h: Likewise.
12621 * include/grub/gdb.h: Likewise.
12622 * include/grub/i386/gdb.h: Likewise.
12623
12624 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12625
12626 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12627 New function.
12628 (add_length): Likewise.
12629 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12630 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12631 proto.
12632 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12633 __argp_get_display_len.
12634
12635 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12636
12637 $"..." support in scripts.
12638
12639 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12640 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12641 * grub-core/script/yylex.l: Likewise.
12642 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12643 value.
12644
12645 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 * gentpl.py: Remove obsolete pkglib_DATA handling.
12648
12649 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12650
12651 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12652 mailing list.
12653
12654 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12655 * util/grub-kbdcomp.in: Likewise.
12656 * util/grub-mkconfig.in: Likewise.
12657 * util/grub-mkconfig_lib.in: Likewise.
12658 * util/grub-mknetdir.in: Likewise.
12659 * util/grub-mkrescue.in: Likewise.
12660 * util/grub-mkstandalone.in: Likewise.
12661 * util/grub-reboot.in: Likewise.
12662 * util/grub-set-default.in: Likewise.
12663 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12664
12665 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12666
12667 Remove GRUB_PREFIX.
12668
12669 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12670 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12671 used for backward compatibility.
12672
12673 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 Add new all_video module.
12676
12677 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12678 * grub-core/Makefile.core.def (all_video): New module.
12679 * grub-core/genmoddep.awk: Generate dependency of all_video from
12680 video.lst.
12681 * grub-core/lib/fake_module.c: New file.
12682 * grub-core/normal/main.c (features): Add feature_all_video_module.
12683 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12684 don't do explicit search again.
12685 insmod all_video in load_video if available.
12686
12687 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12688
12689 Another round of string clarification and adding TRANSLATORS comments.
12690
12691 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12694
12695 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12696
12697 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12698 to grub_ssize_t.
12699 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12700 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12701
12702 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12703
12704 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12705 trailing newline implicitly. All users updated.
12706
12707 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12708
12709 Implement serial on IEEE1275 and EFI.
12710
12711 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12712 on emu. Mention arc and emu as the only platforms without serial
12713 support.
12714 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12715 ieee1275 platforms.
12716 * grub-core/term/efi/serial.c: New file.
12717 * grub-core/term/ieee1275/serial.c: Likewise.
12718 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12719 specification if no ns8250 driver is available.
12720 (grub_cmd_serial): Likewise.
12721 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12722 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12723 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12724 (grub_efi_parity_type_t): New type.
12725 (grub_efi_stop_bits_t): Likewise.
12726 (grub_efi_serial_io_interface): New struct.
12727 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12728 available for all interfaces.
12729 Add EFI and IEEE1275 fields.
12730 (grub_ofserial_init): New proto.
12731 (grub_efiserial_init): Likeiwse.
12732 * util/grub.d/00_header.in: Don't check for the presence of serial
12733 module.
12734
12735 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12736
12737 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12738 name as if it was an alias.
12739
12740 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12741
12742 * grub-core/commands/lsacpi.c (options): Fix typo.
12743
12744 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12745
12746 Convert grub-emu to argp.
12747
12748 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12749 emu.
12750 * util/argp_common.c: Rename to ...
12751 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12752 Add missing includes.
12753 * grub-core/kern/emu/main.c: Convert to argp.
12754 * po/POTFILES.in: Regenerate.
12755 * util/grub-install.in (usage): Make first letter lowcase in messages
12756 for uniformity.
12757 * util/grub-setup.c (options): Likewise.
12758
12759 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12762 Put back accidently commented-out code.
12763
12764 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12767 loop check using Brent algorithm.
12768 (grub_hfsplus_btree_search): Likewise.
12769
12770 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 * util/grub-install.in: Fix usage of wrong device for PreP install.
12773
12774 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12775
12776 * conf/Makefile.common (CFLAGS_GNULIB): Add
12777 -Wno-unsafe-loop-optimizations.
12778 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12779 on tools.
12780 * grub-core/commands/legacycfg.c: Add pragma to skip
12781 -Wunsafe-loop-optimizations.
12782 (check_password_md5_real): Fix loop counter type.
12783 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12784 reading.
12785 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12786 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12787 loop condition.
12788 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12789 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12790 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12791 condition.
12792 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12793 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12794 avoid possible infinite loops.
12795 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12796 and -Wunsafe-loop-optimizations.
12797 * grub-core/script/yylex.l: Likewise.
12798 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12799 (print_glyphs): Avoid infinite loops.
12800 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12801
12802 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12803
12804 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12805 to avoid infinite loop.
12806 (disp_acpi_rsdt_table): Likewise.
12807
12808 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 * grub-core/font/font.c (grub_font_load): Add support for default
12811 path for fonts ($prefix/fonts).
12812 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12813 for checking if string is a path.
12814 * grub-core/normal/main.c (features): Add feature_default_font_path.
12815 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12816 * util/grub.d/00_header.in: Use default directory if possible.
12817 * util/grub-install.in: Install unicode.pf2.
12818
12819 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12820
12821 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12822 * po/Rules-swiss: New file.
12823 * po/swiss.sed: Likewise.
12824
12825 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12826
12827 * grub-core/fs/btrfs.c (find_device): Fix typos.
12828 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12829 * util/grub-mkrelpath.c (argp_parser): Likewise.
12830 Reported by: Yuri Chornoivan.
12831
12832 2012-02-23 Dalet Omega <daletomega@gmail.com>
12833
12834 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12835 for usual informative messages.
12836
12837 2012-02-23 Dalet Omega <daletomega@gmail.com>
12838
12839 Starfield theme.
12840
12841 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12842 * conf/Makefile.common: Define starfielddir.
12843 * configure.ac: Configure starfield.
12844 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12845 * themes/starfield/README: Likewise.
12846 * themes/starfield/blob_w.png: Likewise.
12847 * themes/starfield/boot_menu_c.png: Likewise.
12848 * themes/starfield/boot_menu_e.png: Likewise.
12849 * themes/starfield/boot_menu_n.png: Likewise.
12850 * themes/starfield/boot_menu_ne.png: Likewise.
12851 * themes/starfield/boot_menu_nw.png: Likewise.
12852 * themes/starfield/boot_menu_s.png: Likewise.
12853 * themes/starfield/boot_menu_se.png: Likewise.
12854 * themes/starfield/boot_menu_sw.png: Likewise.
12855 * themes/starfield/boot_menu_w.png: Likewise.
12856 * themes/starfield/slider_c.png: Likewise.
12857 * themes/starfield/slider_n.png: Likewise.
12858 * themes/starfield/slider_s.png: Likewise.
12859 * themes/starfield/src/blob_nw.xcf: Likewise.
12860 * themes/starfield/src/bootmenu/: Likewise.
12861 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12862 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12863 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12864 * themes/starfield/src/slider_c.xcf: Likewise.
12865 * themes/starfield/src/slider_n.xcf: Likewise.
12866 * themes/starfield/src/slider_s.xcf: Likewise.
12867 * themes/starfield/src/terminalbox/: Likewise.
12868 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12869 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12870 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12871 * themes/starfield/starfield.png: Likewise.
12872 * themes/starfield/terminal_box_c.png: Likewise.
12873 * themes/starfield/terminal_box_e.png: Likewise.
12874 * themes/starfield/terminal_box_n.png: Likewise.
12875 * themes/starfield/terminal_box_ne.png: Likewise.
12876 * themes/starfield/terminal_box_nw.png: Likewise.
12877 * themes/starfield/terminal_box_s.png: Likewise.
12878 * themes/starfield/terminal_box_se.png: Likewise.
12879 * themes/starfield/terminal_box_sw.png: Likewise.
12880 * themes/starfield/terminal_box_w.png: Likewise.
12881 * themes/starfield/theme.txt: Likewise.
12882
12883 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12884
12885 * util/grub.d/00_header.in: Add missing export theme.
12886
12887 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12890 already included.
12891 Reported by: Eren D.
12892
12893 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12894
12895 * conf/Makefile.common (grubdatadir): Removed.
12896 (Makefile.am): Move eveything grubdata to pkgdata.
12897
12898 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12899
12900 * grub-core/commands/acpihalt.c (get_sleep_type):
12901 Remove unused variable.
12902
12903 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12906 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12907 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12908 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12909 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12910 i18n with gettext no-op.
12911 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12912 GRUB_ACPI_OPCODE_STRING_CONST.
12913 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12914 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12915
12916 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12917
12918 * po/POTFILES.in: Regenerate.
12919
12920 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12921
12922 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12923 -Wno-error=missing-noreturn.
12924
12925 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12926
12927 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12928 condition to avoid possibly infinite loops.
12929 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12930 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12931
12932 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12935 condition to avoid possibly infinite loops.
12936
12937 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12938
12939 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12940 on show_error.
12941
12942 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12943
12944 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12945
12946 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12947
12948 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12949
12950 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12951
12952 * util/bin2h.c (usage): Add missing attribute noreturn.
12953
12954 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12955
12956 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12957 if the size isn't divisible by 512.
12958
12959 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 Make list_push and list_remove functions rather than inline functions
12962 to decrease size and avoid aliasing violations.
12963
12964 * include/grub/list.h (grub_list_push): Move to ...
12965 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12966 * include/grub/list.h (grub_list_remove): Move to ...
12967 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12968
12969 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12972 and -Wunused-result.
12973
12974 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12977 Reported by: Seth Goldberg
12978
12979 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12982
12983 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12984
12985 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12986 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12987 command line.
12988 * docs/grub.texi (Simple configuration): Document
12989 GRUB_CMDLINE_GNUMACH.
12990
12991 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * conf/Makefile.common (platform_SCRIPTS): New variable.
12994 (platform_PROGRAMS): Likewise.
12995 * gentpl.py: Mark *,module and *.image for install.
12996 * grub-core/gdb_grub.in: Add a notice of expected environment.
12997 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12998 (gmodule.pl): Likewise.
12999
13000 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13001
13002 Replace grub_checkkey with grub_getkey_noblock.
13003
13004 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13005 (grub_getkey_noblock): ... this. All users updated.
13006
13007 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 * grub-core/kern/emu/console.c: Move to ...
13010 * grub-core/term/emu/console.c: ...here.
13011 (grub_ncurses_getkey): Fix return value if no key is detected.
13012
13013 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13014
13015 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13016 (grub_unit_test_fini): Likewise.
13017 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13018
13019 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13020
13021 * include/grub/test.h (GRUB_UNIT_TEST)
13022
13023 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13024
13025 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13026 Better error handling.
13027 (grub_script_return): Likewise.
13028 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13029
13030 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13031
13032 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13033 rimplicit redifinition.
13034
13035 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13036
13037 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13038 GRUB.
13039
13040 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13043 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13044 prompt here.
13045
13046 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13047
13048 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13049 as GRUB_ERR_BUG. Don't malloc if no device is available.
13050
13051 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13052
13053 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13054 Mark calling with invalid term as GRUB_ERR_BUG.
13055
13056 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13057
13058 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13059 packets rather than raising an error.
13060
13061 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13064 in if.
13065
13066 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13067
13068 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13069 diagnostic to dprintf.
13070 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13071
13072 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13073
13074 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13075 device name.
13076
13077 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13080 (grub_ntfs_iterate_dir): Likewise.
13081
13082 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13083
13084 Efiemu stylistic fixes and gettext.
13085
13086 * grub-core/efiemu/i386/loadcore32.c
13087 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13088 * grub-core/efiemu/i386/loadcore64.c
13089 (grub_arch_efiemu_relocate_symbols64): Likewise.
13090 * grub-core/efiemu/i386/pc/cfgtables.c
13091 (grub_machine_efiemu_init_tables): Likewise.
13092 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13093 (grub_efiemu_loadcore_initXX): Add a filename argument.
13094 All users updated.
13095 Improved error message.
13096 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13097 Add a filename argument.
13098 All users updated.
13099 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13100 Reclassify double relocation as GRUB_ERR_BUG.
13101
13102 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13103
13104 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13105 handling.
13106
13107 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13110 on partition.
13111
13112 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13115
13116 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13117
13118 Improve string. Gettextize.
13119
13120 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13123 utils.
13124 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13125
13126 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13127
13128 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13129 [GRUB_UTIL]: New function.
13130 (insert_array) [GRUB_UTIL]: Store partmaps.
13131 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13132 partmaps.
13133 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13134 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13135 (probe_abstraction): Print diskfilter and not raid.
13136 Reported by: Lennart Sorensen
13137
13138 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13141 * util/grub-mkimagexx.c (MASK3): New define.
13142 (add_value_to_slot_20b): Use MASK3.
13143 (add_value_to_slot_21): Likewise.
13144 (relocate_addresses): Fix format specification.
13145 (load_image): Explicitly init symtab_section.
13146
13147 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13148
13149 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13150 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13151
13152 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13155 on powerpc.
13156 Reported by: Lennart Sorensen
13157
13158 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 * gentpl.py: Add missing license header.
13161 * docs/grub.texi: Update copyright year.
13162
13163 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13164
13165 Source grub-mkconfig_lib from the build directory at build time.
13166 Suggested by: Vladimir Serbinenko.
13167
13168 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13169 * util/grub-install.in: Define pkgdatadir if not already set, and source
13170 grub-mkconfig_lib from there.
13171 * util/grub-kbdcomp.in: Likewise.
13172 * util/grub-mkconfig.in: Likewise.
13173 * util/grub-mknetdir.in: Likewise.
13174 * util/grub-mkrescue.in: Likewise.
13175 * util/grub-mkstandalone.in: Likewise.
13176 * util/grub-reboot.in: Likewise.
13177 * util/grub-set-default.in: Likewise.
13178 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13179
13180 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 Increase warning level.
13183
13184 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13185 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13186 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13187 (TARGET_CFLAGS): Likewise.
13188 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13189 * grub-core/Makefile.core.def (decompressor_xz): Add
13190 -Wno-unreachable-code.
13191 (normal): Add -Wno-redundant-decls.
13192 (xzio): Add -Wno-unreachable-code.
13193 (lzopio): Add -Wno-redundant-decls -Wno-error.
13194 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13195 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13196 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13197 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13198 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13199 * grub-core/kern/i386/coreboot/init.c: Add exception to
13200 -Wsuggest-attribute=noreturn.
13201 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13202 * grub-core/kern/ia64/dl_helper.c: Likewise.
13203 * grub-core/kern/mips/dl.c: Likewise.
13204 * grub-core/kern/sparc64/dl.c: Likewise.
13205 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13206 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13207 (memcmp): Likewise.
13208 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13209 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13210 * grub-core/loader/mips/linux.c: Likewise.
13211 * grub-core/loader/multiboot_elfxx.c: Likewise.
13212 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13213 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13214 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13215 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13216 fixme.
13217 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13218 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13219 Fix prototype.
13220
13221 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13222
13223 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13224 address.
13225
13226 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13227
13228 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13229 Avoid improper use of strings.
13230 (grub_cmd_legacy_initrdnounzip): Likewise.
13231
13232 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13233
13234 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13235 attribute.
13236 (grub_util_info): Likewise.
13237 (grub_util_error): Likewise.
13238
13239 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13240
13241 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13242 * util/grub-fstest.c (fstest): Likewise.
13243
13244 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13245
13246 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13247 (grub_md_sha512_real): Likewise.
13248 (grub_util_get_geli_uuid): Likewise.
13249 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13250 (grub_util_biosdisk_open): Fix format specification.
13251 Respect format security.
13252 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13253 (xrealloc): Likewise.
13254 (xasprintf): Likewise.
13255
13256 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13257
13258 * util/import_gcry.py: Include grub/crypto.h in init.c.
13259
13260 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13261
13262 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13263 (generate_image): Make prefix a const char *.
13264 Fix format specifications. Respect format security.
13265 Avoid void * arithmetics.
13266 Avoid shadowing.
13267 (argp_parser): Remove unused variable. Respect format security.
13268 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13269 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13270 (count_funcs): Remove unused variable.
13271 (relocate_addresses): Fix format specification.
13272 Disable x86-64 with elf32. Remove unused variables.
13273 (add_fixup_entry): Avoid shadowing.
13274 (make_reloc_section): Fix format specification.
13275 Use assert.
13276 (locate_sections): Fix format specifications.
13277 (load_image): Avoid shadowing.
13278
13279 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13282 Fix format specifications. Respect format security.
13283 Don't translate already translated grub_errmsg.
13284 (argp_parser): Remove unused variable
13285
13286 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13287
13288 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13289
13290 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13291
13292 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13293 (main): Likewise. Use xmalloc. Respect format security.
13294
13295 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13296
13297 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13298 a const char *.
13299 (argp_parser): Remove unused variable.
13300
13301 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13304 (add_pixel): Make static.
13305 (add_font): Likewise.
13306 (write_string_section): Make name and str a const char *.
13307 (write_be16_section): Make name a const char *.
13308 (print_glyphs): Make static.
13309 (write_font_ascii_bitmap): Likewise.
13310 (write_font_width_spec): Likewise.
13311 (write_font_pf2): Likewise.
13312 (argp_parser): Remove unused variable.
13313 Respect format security.
13314 (main): Avoid shadowing. Respect format security.
13315
13316 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13317
13318 * util/grub-editenv.c (argp_parser): Make static.
13319 (create_envblk_file): Use xmalloc.
13320 (open_envblk_file): Likewise.
13321 Resepect format security.
13322 (set_variables): Respect format security.
13323
13324 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13325
13326 * util/getroot.c (grub_find_device): Respect format security.
13327 (get_mdadm_uuid): Remove unused variable.
13328 (grub_util_pull_device): Dont call gettext on already translated
13329 grub_errmsg.
13330 (find_system_device): Remove unused variable.
13331 (grub_util_get_grub_dev): Likewise.
13332 (grub_make_system_path_relative_to_its_root): Respect format security.
13333
13334 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13335
13336 * util/grub-fstest.c (execute_command): Make first argument
13337 a const char *.
13338 (read_file): Avoid shadowing.
13339 Reuse underlying error message if device open fails.
13340 (cmd_cmp): Respect format security.
13341 (root): Make const char *.
13342 (fstest): Remove args argument and use global copy.
13343 Respect format security.
13344 (argp_parser): Make static.
13345 (main): Make default_root const char *.
13346
13347 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13348
13349 * util/grub-mount.c (root): Make const char *.
13350 (execute_command): Make first argument a const char *.
13351 (fuse_init): Respect format security.
13352 (argp_parser): Make static. Remove unused variable.
13353 (main): Make default_root a const char *.
13354 Respect format security.
13355
13356 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13357
13358 * util/grub-probe.c (probe): Don't call gettext on already translated
13359 grub_errmsg.
13360 Remove unused variables.
13361 (argp_parser): Remove unused variable.
13362
13363 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13364
13365 * util/grub-script-check.c (argp_parser): Remove unused variable.
13366 (main): Rename read to curread to avoid shadowing.
13367
13368 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13369
13370 * util/misc.c (grub_util_write_image_at): Fix format specification.
13371 (grub_util_write_image): Likewise.
13372 (grub_script_execute_argument_to_string): Removed (unused).
13373 (grub_script_execute_menuentry): Likewise.
13374 (grub_putchar): Likewise.
13375
13376 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13377
13378 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13379 (FUNCTION) [GRUB_UTIL]: Likewise.
13380 (VARIABLE) [GRUB_UTIL]: Likewise.
13381
13382 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13383
13384 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13385 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13386
13387 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13390 buffer.
13391
13392 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13393
13394 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13395 (LzmaEnc_SaveState): Removed (unused).
13396 (LzmaEnc_RestoreState): Likewise.
13397 (LzmaEnc_InitPriceTables): Made static.
13398 (LzmaEnc_Construct): Likewise.
13399 (LzmaEnc_FreeLits): Likewise.
13400 (LzmaEnc_Destruct): Likewise.
13401 (LzmaEnc_Init): Likewise.
13402 (LzmaEnc_InitPrices): Likewise.
13403 (LzmaEnc_Finish): Likewise.
13404 (LzmaEnc_PrepareForLzma2): Removed (unused).
13405 (LzmaEnc_MemPrepare): Likewise.
13406 (LzmaEnc_GetNumAvailableBytes): Likewise.
13407 (LzmaEnc_GetCurBuf): Likewise.
13408 (LzmaEnc_CodeOneMemBlock): Likewise.
13409
13410 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13411
13412 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13413 (grub_util_ldm_embed): Likewise.
13414
13415 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13416
13417 * util/grub-editenv.c (print_var): Rename name to varname to
13418 avoid shadowing.
13419 (main): Rename index to curindex to avoid shadowing.
13420 Make filename a const char *.
13421
13422 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13423
13424 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13425 to arg_getline to avoid shadowing.
13426
13427 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13428
13429 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13430 disk_ to avoid shadowing.
13431
13432 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13433
13434 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13435 curindex to avoid shadowing.
13436 Make static.
13437 (MatchFinder_GetNumAvailableBytes): Make static.
13438
13439 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13440
13441 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13442 avoid shadowing.
13443
13444 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13445
13446 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13447 argument from encrypt to do_encrypt to avoid shadowing.
13448
13449 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13450
13451 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13452 incorrect nesting of #if's.
13453
13454 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13457 checks which are always false on some platforms.
13458 (grub_cmd_lsacpi): Likewise.
13459 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13460 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13461 Likewise.
13462
13463 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13464
13465 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13466 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13467
13468 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13469
13470 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13471 re_dfa_t to avoid breaking alignment invariants.
13472 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13473 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13474
13475 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13476
13477 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13478 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13479
13480 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13483 Fix declaration.
13484
13485 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13486
13487 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13488 conserve alignment invariants.
13489 (grub_ehci_ehcc_read16): Likewise.
13490 (grub_ehci_oper_read32): Likewise.
13491 (grub_ehci_oper_write32): Likewise.
13492 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13493 Conserve alignment invariants.
13494
13495 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13496
13497 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13498 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13499 declarations.
13500
13501 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13504 Remove unused variable.
13505
13506 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13509 Remove set in if.
13510
13511 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * include/grub/net.h: Remove double declarations.
13514
13515 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13516
13517 Remove "payload" command in ia64 Linux loader since I couldn't
13518 find any evidence of it being used for anything.
13519 Replace "relocate" command with an environment variable
13520
13521 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13522 fields.
13523 (ia64_boot_payload): Removed.
13524 (last_payload): Likewise.
13525 (RELOCATE_OFF): Likewise.
13526 (RELOCATE_ON): Likewise.
13527 (RELOCATE_FORCE): Likewise.
13528 (relocate): Likewise.
13529 (free_pages): Don't free payloads.
13530 (grub_load_elf64): Use common error messages.
13531 Use "linux_relocate" variable.
13532 Increase the space after boot_params.
13533 (grub_cmd_payload): Removed.
13534 (grub_cmd_relocate): Likewise.
13535 (grub_cmd_fpswa): Improve messages.
13536 (cmd_payload): Removed.
13537 (cmd_relocate): Likewise.
13538 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13539 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13540
13541 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13542
13543 Convert UHCI to DMA framework.
13544
13545 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13546 (grub_uhci_pci_iter): Fill new members
13547 (grub_alloc_td): Use P2V and V2P functions.
13548 (grub_free_queue): Likewise.
13549 (grub_alloc_qh): Likewise.
13550 (grub_uhci_setup_transfer): Likewise.
13551 (grub_uhci_check_transfer): Likewise.
13552
13553 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13556 Remove assignment in if while on it.
13557
13558 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13559
13560 * util/grub-mkstandalone.in: Fix modules directory.
13561
13562 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13563
13564 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13565 on i386-pc target.
13566 (argp_parser): Accept "auto" as compression specification.
13567
13568 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13569
13570 Fix `help' with unloaded modules.
13571
13572 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13573 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13574 (grub_dyncmd_dispatcher): Small stylistic fix.
13575 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13576 explicit help is requested.
13577
13578 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13579
13580 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13581 Explicitly init restart while on it.
13582
13583 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13586 uninited variable.
13587
13588 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13589
13590 * util/grub-mknetdir.in: Use . rather than source for POSIX
13591 compatibility.
13592
13593 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13596
13597 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13598
13599 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13600 variable.
13601
13602 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13605 without quotes.
13606
13607 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13608
13609 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13610
13611 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13612
13613 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13614 iteration of partitions.
13615
13616 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13617
13618 Improve gettext support. Stylistic fixes and error handling fixes while
13619 on it.
13620
13621 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13622
13623 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13624 part. Instead setup the correct stack in RM.
13625 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13626 for stack.
13627 * include/grub/i386/relocator_private.h: New file.
13628
13629 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13630
13631 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13632 argument.
13633 * util/grub-fstest.c (options): Add missing DEVICE part.
13634
13635 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 Clarify and unify messages.
13638
13639 * grub-core/commands/hashsum.c (options): Unify messages.
13640 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13641 literal-only message as translatable.
13642 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13643 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13644 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13645 commands.
13646 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13647 key, not the key used to unlock. Clarify what it's used for.
13648 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13649 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13650 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13651 * util/grub-editenv.c (options): Unify "verbose" message.
13652 * util/grub-fstest.c (read_file): Unify error message.
13653 (fstest): Add quotes around commands.
13654 (options): Unify "verbose" message.
13655 * util/grub-install.in: Add quotes around variable name.
13656 * util/grub-kbdcomp.in: Unify error message.
13657 * util/grub-mkfont.c (main): Likewise.
13658 * util/grub-mkrescue.in: Likewise.
13659 * util/grub-mklayout.c (options): Unify "verbose" message.
13660 * util/grub-mkstandalone.in: Unify help and verbose messages.
13661 * util/grub-mount.c (options): Unify "verbose" message.
13662 * util/grub-probe.c (options): Likewise.
13663 * util/grub-script-check.c (options): Likewise.
13664 * util/grub-setup.c (setup): Unify no-terminator message.
13665 (options): Use DEVICE and not DEV.
13666 Unify "verbose" message.
13667 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13668
13669 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13670
13671 Improve and unify messages.
13672
13673 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13674 name. All users updated.
13675 Print filename in error.
13676 (read_device_map): Print filename in error.
13677 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13678 (grub_util_get_os_disk): Likewise.
13679 (grub_util_biosdisk_get_grub_dev): Likewise.
13680 (grub_util_check_block_device): Likewise.
13681 (grub_util_check_char_device): Likewise.
13682 (grub_make_system_path_relative_to_its_root): Likewise.
13683 * util/grub-editenv.c (create_envblk_file): Likewise.
13684 (open_envblk_file): Likewise.
13685 (write_envblk): Likewise.
13686 * util/grub-fstest.c (cmd_cp): Likewise.
13687 (cmd_cat): Likewise.
13688 (cmd_cmp): Likewise.
13689 * util/grub-menulst2cfg.c (main): Likewise.
13690 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13691 (write_font_width_spec): Likewise.
13692 (write_font_pf2): Likewise.
13693 * util/grub-mkimage.c (generate_image): New argument outname.
13694 All users updated.
13695 Remove unreacheable message.
13696 (options): Unify messages.
13697 (help_filter): Likewise.
13698 * util/grub-mklayout.c (usage): Removed (unused).
13699 (main): Print filename in error.
13700 * util/grub-mkrescue.in: Fix wrong quoting.
13701 * util/grub-setup.c (setup): Print filename in error.
13702 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13703 (check_sas): Likewise.
13704 * util/misc.c (grub_util_get_fp_size): Removed.
13705 (grub_util_get_image_size): Print filename in error.
13706 (grub_util_read_at): Removed.
13707 (grub_util_read_image): Print filename in error.
13708 (grub_util_load_image): Likewise.
13709 (grub_util_write_image_at): New argument filename. All users updated.
13710 Print filename in error.
13711 (grub_util_write_image): New argument filename. All users updated.
13712 Print filename in error.
13713 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13714 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13715
13716 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13717
13718 * grub-core/Makefile.core.def (pxechain): New module.
13719 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13720 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13721 function.
13722 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13723 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13724
13725 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13726
13727 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13728 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13729 * include/grub/err.h (grub_error_saved): New struct.
13730 (grub_errmsg): Make array size explicit.
13731 * include/grub/misc.h (grub_error_save): New function.
13732 (grub_error_load): Likewise.
13733 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13734 (grub_error_push): Update `errno' member name.
13735 (grub_error_pop): Likewise
13736 * grub-core/net/tftp.c (tftp_data): New member save_err.
13737 (tftp_receive): Save error.
13738 (tftp_open): Restore error.
13739
13740 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13741
13742 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13743 to real mode down to execute A20-related code in protected mode as
13744 intended.
13745
13746 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13747
13748 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13749 NULL when the argument `level' has an unexpected value.
13750
13751 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13752
13753 Move platform-dependent files from $prefix to $prefix/$platform.
13754
13755 * config.h.in (GRUB_TARGET_CPU): New definition.
13756 (GRUB_PLATFORM): Likewise.
13757 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13758 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13759 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13760 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13761 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13762 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13763 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13764 * grub-core/normal/term.c (read_terminal_list): Likewise.
13765 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13766 $prefix/locale.
13767 (grub_gettext_init_ext): Likewise.
13768 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13769 grub_platform.
13770 * util/grub-install.in: Update directories.
13771 * util/grub-mknetdir.in: Likewise.
13772 * util/grub-mkrescue.in: Likewise.
13773
13774 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13777 grub_error framework. All users updated.
13778
13779 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13782 lists (by always binsearching), improve caching (cache strings
13783 used for binsearch, not only results), improve
13784 maintainability (by using more structured binary search) and correct
13785 error handling.
13786
13787 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13788
13789 * grub-core/script/execute.c (grub_script_return): Fix warning.
13790
13791 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13792
13793 * grub-core/script/execute.c (grub_script_return): Fix potential
13794 NULL-dereference.
13795 Reported by: Jim Meyering.
13796
13797 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13798
13799 * po/POTFILES.in: Regenerate.
13800 * util/grub-install.in: Gettextize the strings missed in first pass.
13801
13802 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13803
13804 * Makefile.util.def (grub-mkdevicemap): Removed.
13805 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13806 * include/grub/util/deviceiter.h: Removed.
13807 * util/deviceiter.c: Likewise.
13808 * util/getroot.c (grub_util_get_os_disk): New function.
13809 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13810 replacement for EFI.
13811 * util/grub-mkdevicemap.c: Removed.
13812 * util/grub-probe.c (probe): Handle PRINT_DISK.
13813 (argp_parser): Handle -t disk.
13814
13815 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * util/grub-mkfont.c: Migrate to argp.
13818 * util/grub-mklayout.c: Likewise.
13819 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13820 * util/grub-mkrelpath.c: Likewise.
13821 * util/grub-probe.c: Likewise.
13822 * util/grub-script-check.c: Likewise.
13823
13824 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13825
13826 * util/grub-reboot.in: Add missing datarootdir.
13827 Add missing newline.
13828 * util/grub-set-default.in: Add missing datarootdir.
13829 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13830 * util/grub-mkrescue.in: Likewise.
13831
13832 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13833
13834 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13835
13836 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 * util/grub-kbdcomp.in: Add decent help and gettextize.
13839 * docs/man/grub-kbdcomp.h2m: New file.
13840
13841 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13842
13843 Migrate grub-mkimage.c to argp.
13844
13845 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13846 (grub-setup): Likewise.
13847 * util/grub-setup.c (print_version): Move to ...
13848 * util/argp_common.c (print_version): ... here.
13849 * util/grub-setup.c (argp_program_version_hook): Move to ...
13850 * util/argp_common.c (argp_program_version_hook): ... here.
13851 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13852 safety.
13853 * util/grub-mkimage.c (main): Migrate to argp.
13854
13855 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 * util/grub-mkrescue.in: Use same message as
13858 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13859 for better translations.
13860
13861 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13864 options with generic grub-mkrescue.in with the goal of future
13865 merge.
13866
13867 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 * grub-core/kern/mm.c: Add missing include of i18n.h
13870 * grub-core/lib/relocator.c: Likewise.
13871
13872 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13873
13874 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13875 error.
13876 (allocate_pages): Check return value.
13877 Replace fatal with error.
13878 (grub_linux_boot): Replace printf with dprintf.
13879 Check find_mmap_size return value.
13880 Replace fatal with error.
13881 Don't call grub_machine_fini.
13882 (grub_load_elf64): Replace printf with dprintf.
13883 (grub_cmd_linux): Likewise.
13884 (grub_cmd_initrd): Likewise.
13885 (grub_cmd_payload): Likewise.
13886
13887 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13888
13889 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13890 message.
13891 * grub-core/video/radeon_fuloong2e.c
13892 (grub_video_radeon_fuloong2e_setup): Likewise.
13893 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13894 * grub-core/video/video.c (grub_video_set_mode): Don't override
13895 standard out of memory message.
13896
13897 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13898
13899 NetBSD disk wedge support.
13900
13901 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13902 [__NetBSD__]: Handle NetBSD disk wedges.
13903 * util/getroot.c (convert_system_partition_to_system_disk)
13904 [__NetBSD__]: Likewise.
13905
13906 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13907
13908 * util/grub-mkconfig.in: Use umask rather than chmod to create
13909 grub.cfg.new to avoid insecure grub.cfg.
13910
13911 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13912
13913 * grub-core/commands/ls.c: Gettextize.
13914 * grub-core/commands/setpci.c: Likewise.
13915 * grub-core/commands/videotest.c: Likewise.
13916 * grub-core/disk/geli.c: Likewise.
13917 * grub-core/kern/mm.c: Likewise.
13918 * grub-core/lib/relocator.c: Likewise.
13919 * grub-core/loader/efi/appleloader.c: Likewise.
13920 * grub-core/loader/i386/xnu.c: Likewise.
13921 * grub-core/loader/ia64/efi/linux.c: Likewise.
13922 * grub-core/loader/xnu.c: Likewise.
13923 * grub-core/net/dns.c: Likewise.
13924 * grub-core/net/net.c: Likewise.
13925 * grub-core/script/lexer.c: Likewise.
13926 * grub-core/script/parser.y: Likewise.
13927 * grub-core/script/yylex.l: Likewise.
13928 * util/getroot.c: Likewise.
13929 * util/grub-setup.c: Likewise.
13930
13931 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13934 number.
13935
13936 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13937
13938 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13939
13940 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13943 macro.
13944 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13945 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13946
13947 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13948
13949 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13950 * util/grub-install.in: Gettextize.
13951 * util/grub-mkconfig.in: Likewise.
13952 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13953 if not available.
13954 (grub_warn): Gettextize.
13955 * util/grub-mknetdir.in: Gettextize.
13956 * util/grub-mkrescue.in: Likewise.
13957 * util/grub-mkstandalone.in: Likewise.
13958 * util/grub-reboot.in: Likewise.
13959 * util/grub-set-default.in: Likewise.
13960 * util/grub.d/00_header.in: Likewise.
13961 * util/grub.d/10_hurd.in: Likewise.
13962 * util/grub.d/10_kfreebsd.in: Likewise.
13963 * util/grub.d/10_linux.in: Likewise.
13964 * util/grub.d/10_netbsd.in: Likewise.
13965 * util/grub.d/10_windows.in: Likewise.
13966 * util/grub.d/20_linux_xen.in: Likewise.
13967 * util/grub.d/30_os-prober.in: Likewise.
13968 * po/POTFILES-shell.in: Regenerate.
13969
13970 2012-02-03 Richard Laager <rlaager@wiktel.com>
13971
13972 * util/grub-mkimage.c (main): Fix format-security warning.
13973 * util/grub-mkrelpath.c (main): Likewise.
13974 * util/grub-probe.c (main): Likewise.
13975
13976 2012-02-03 Richard Laager <rlaager@wiktel.com>
13977
13978 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13979 failure.
13980 Put back lost PRINT_DRIVE.
13981
13982 2012-02-03 Richard Laager <rlaager@wiktel.com>
13983
13984 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13985 (grub_guess_root_devices): Replace strlen with sizeof.
13986 Avoid crash.
13987 (find_root_devices_from_poolname): Remove unused variable.
13988 Handle raidzN.
13989
13990 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13991
13992 Support install on multi-device filesystems.
13993
13994 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13995 (grub_guess_root_devices): ...this. Return char **. All users updated.
13996 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13997 Removed.
13998 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13999 (find_root_devices_from_poolname): ... here.
14000 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14001 Support zfs-fuse.
14002 (grub_guess_root_device): Rename to ...
14003 (grub_guess_root_devices): ... this. Return char **. All users updated.
14004 * util/grub-install.in: Handle multi-device filesystems.
14005 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14006 argument. All users updated.
14007 Handle multi-device filesystems.
14008 Use 'delim' as separator.
14009 Remove device check to allow filesystems on file.
14010 (main): Support -0 argument. Handle multi-device.
14011 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14012 Fix a cross-device check while on it.
14013 (arguments): Remove root_dev.
14014 (argp_parser): Remove -r.
14015 (main): Remove root_dev.
14016
14017 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14020
14021 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14022
14023 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14024 symbol.
14025 Reported by: NODA, Kai <nodakai>.
14026
14027 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14028
14029 Fix ehci on amd64.
14030
14031 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14032 pointers.
14033 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14034 (grub_ehci_setup_qh): Likewise.
14035 (grub_ehci_find_qh): Likewise.
14036 (grub_ehci_transaction): Likewise.
14037 (grub_ehci_setup_transfer): Likewise.
14038 (grub_ehci_check_transfer): Likewise.
14039 (grub_ehci_portstatus): Likewise.
14040 (grub_ehci_detect_dev): Likewise.
14041 (grub_ehci_transfer_controller_data): New field td_last_phys.
14042 (grub_ehci_setup_transfer): Fill td_last_phys.
14043 (grub_ehci_check_transfer): Use td_last_phys.
14044
14045 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14046
14047 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14048 if no submenu is present.
14049
14050 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14051
14052 CBI support.
14053
14054 * include/grub/usb.h (grub_usbms_protocol_t): New values
14055 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14056 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14057 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14058 (grub_usbms_dev): Add subclass, protocol and intrpt.
14059 Remove in_maxsz and out_maxsz.
14060 (grub_usbms_reset): Rename to ...
14061 (grub_usbms_bo_reset): .. this.
14062 (grub_usbms_cbi_cmd): New function.
14063 (grub_usbms_cbi_reset): Likewise.
14064 (grub_usbms_reset): Likewise.
14065 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14066 (grub_usbms_transfer): Rename to ...
14067 (grub_usbms_transfer_bo): ... this.
14068 (grub_usbms_transfer_cbi): Likewise.
14069 (grub_usbms_transfer): Likewise.
14070
14071 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14072 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14073
14074 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14075 the support for the CS5536 modification thereos and few bugfixes.
14076
14077 * grub-core/Makefile.core.def (ehci): New module.
14078 * grub-core/bus/usb/ehci.c: New file.
14079 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14080 port and hubaddr. All users updated.
14081 Save port and hubaddr into dev structure.
14082 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14083 define.
14084 * include/grub/pci.h (grub_dma_phys2virt): New function.
14085 (grub_dma_virt2phys): Likewise.
14086 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14087
14088 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14089
14090 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14091 check as some mkfs implementations omit it.
14092
14093 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14094
14095 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14096
14097 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14098
14099 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14100 Add new member volname2.
14101 (grub_jfs_label): Use volname2 if available.
14102
14103 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14106 over last_mounted as seen in image generated by mkfs.nilfs2.
14107 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14108
14109 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14110
14111 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14112 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14113 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14114
14115 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14116
14117 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14118 over the sector.
14119
14120 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14121
14122 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14123 subvolume name (by removing a bogus and useless check).
14124
14125 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14126
14127 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14128 sizeof while on it.
14129
14130 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14133 (grub_scsi_read_capacity10): ... this.
14134 (grub_scsi_read_capacity16): New function.
14135 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14136 0xffffffff.
14137 Fix off-by-one error.
14138 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14139 64-bit unsigned.
14140 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14141 (grub_scsi_read_capacity10): ... this.
14142 (grub_scsi_read_capacity_data): Rename to ...
14143 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14144 (grub_scsi_read_capacity16): New struct.
14145 (grub_scsi_read_capacity16_data): Likewise.
14146 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14147 grub_scsi_cmd_read_capacity10.
14148 New command grub_scsi_cmd_read_capacity16.
14149
14150 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14151
14152 SCSI >2TiB support.
14153
14154 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14155 (grub_scsi_write16): Likewise.
14156 (grub_scsi_read): Use read16 when necessary.
14157 (grub_scsi_write): Likewise.
14158 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14159 (grub_scsi_write16): Likewise.
14160 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14161
14162 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 SCSI write support (for usbms mainly).
14165
14166 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14167 a const pointer.
14168 (grub_scsi_write): Implement.
14169 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14170
14171 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14172
14173 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14174 variable.
14175
14176 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14179
14180 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 * po/POTFILES.in: Regenerate.
14183
14184 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14185
14186 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14187 with grub_printf to avoid unnecessary fatal failure.
14188
14189 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14190
14191 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14192 (INT_MAX): Likewise.
14193 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14194 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14195 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14196 (strcpy): Likewise.
14197 (strstr): Likewise.
14198 (strchr): Likewise.
14199 (strncpy): Likewise.
14200 (strcat): Likewise.
14201 (strncat): Likewise.
14202 (strcoll): Likewise.
14203 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14204 (GRUB_INT_MAX): Likewise.
14205
14206 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14207
14208 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14209 unexpected error.
14210 (optimize_utf8): Likewise.
14211 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14212
14213 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14214
14215 * grub-core/boot/i386/pc/lnxboot.S: Use
14216 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14217 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14218 location.
14219 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14220 definition.
14221 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14222
14223 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14224
14225 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14226 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14227 now to avoid double free.
14228 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14229 hostdisk.
14230 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14231 * util/grub-probe.c (escape_of_path): Always return a new copy.
14232 (print_full_name): Escape path.
14233 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14234 Fix hints on abstractions.
14235
14236 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14237
14238 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14239 Don't add "root" line if no compatibility hont is available.
14240 Suggested by: Seth Goldberg.
14241
14242 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14245 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14246 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14247 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14248
14249 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14252
14253 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14254
14255 * util/grub-pe2elf.c (ehdr): Make static.
14256 (shdr): Likewise.
14257 (num_sections): Likewise.
14258 (offset): Likewise.
14259
14260 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14261
14262 Eliminate ofpath limits and possible overflows.
14263
14264 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14265 (OF_PATH_MAX): Removed.
14266 (MAX_DISK_CAT): New const.
14267 (find_obppath): Use allocated rather than preallocated buffer.
14268 Return result. Argument of_path removed. All users updated.
14269 Add missing fdstat.
14270 (xrealpath): New function.
14271 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14272 Allocate rather than use preallocated buffer. All users updated.
14273 (__of_path_common): Use allocated rather than preallocatecd buffer.
14274 Return result. Argument of_path removed. All users updated.
14275 (vendor_is_ATA): Read only needed part form the file.
14276 (check_sas): Allocate depending on contents rather than fixed.
14277 (main) [STANDALONE]: Handle NULL result.
14278
14279 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14282
14283 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14284
14285 Cryptodisk write support.
14286
14287 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14288 (grub_cryptodisk_decrypt): Moved logic to ...
14289 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14290 (grub_cryptodisk_write): Implement.
14291 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14292 (grub_util_fd_write): ... this. Make global.
14293 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14294
14295 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14296
14297 * include/grub/list.h (grub_list_remove): Don't crash if element is
14298 removed twice.
14299
14300 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 Rename ofconsole to console.
14303
14304 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14305 as sysnonym to console.
14306 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14307 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14308 Rename grub_ofconsole_ to grub_console_. All users updated
14309 (grub_console_term_output): Rename "ofconsole" to "console".
14310 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14311 as "console".
14312
14313 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14316 handling.
14317 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14318 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14319 GRUB_DISK_DEVICE_FILE_ID.
14320
14321 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14322
14323 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14324 and improve performance.
14325
14326 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14327
14328 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14329 missing ieee1275/ prefix on whole disk.
14330
14331 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14332
14333 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14334 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14335
14336 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14339
14340 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14341
14342 Merge common RAID and LVM logic to an abstract diskfilter.
14343 Add LDM support using the same framework.
14344
14345 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14346 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14347 (libgrubmods): Remove grub-core/disk/raid.c and
14348 grub-core/partmap/gpt.c.
14349 * grub-core/Makefile.core.def (ldm): New module.
14350 (raid): Renamed to diskfilter. All users updated.
14351 * grub-core/disk/raid.c: Moved to ...
14352 * grub-core/disk/diskfilter.c: ... here.
14353 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14354 (lv_num): New var.
14355 (find_array): Renamed to ...
14356 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14357 (grub_is_array_readable): Renamed to ...
14358 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14359 (insert_array): New argument id.
14360 (is_node_readable): New function.
14361 (scan_device): Rename to ...
14362 (scan_disk): .. this. Restrict to one disk.
14363 (scan_devices): New function.
14364 (grub_diskfilter_iterate): Support multi-LV.
14365 Skip invisible and nameless LVs.
14366 (grub_diskfilter_memberlist): Support multi-LV.
14367 (grub_diskfilter_read_node): New function.
14368 (grub_raid_read): Most of logic moved to ...
14369 (read_segment): ... here
14370 (read_lv): New function.
14371 (grub_diskfilter_get_vg_by_uuid): New function.
14372 (grub_diskfilter_make_raid): Likewise.
14373 * grub-core/disk/ldm.c: New file.
14374 * grub-core/disk/lvm.c (vg_list): Removed.
14375 (lv_count): Likewise.
14376 (scan_depth): Likewise.
14377 (is_lv_readable): Likewise.
14378 (grub_lvm_getvalue): Advance pointer past the number.
14379 (find_lv): Removed.
14380 (do_lvm_scan): Refactored into ...
14381 (grub_lvm_detect): ... this. Support raid.
14382 (grub_lvm_iterate): Removed.
14383 (grub_lvm_memberlist): Likewise.
14384 (grub_lvm_open): Likewise.
14385 (grub_lvm_close): Likewise.
14386 (read_lv): Likewise.
14387 (read_node): Likewise.
14388 (is_node_readable): Likewise.
14389 (is_lv_readable): Likewise.
14390 (grub_lvm_read): Likewise.
14391 (grub_lvm_write): Likewise.
14392 (grub_lvm_dev): Use diskfilter
14393 (GRUB_MOD_INIT): Likewise.
14394 (GRUB_MOD_FINI): Likewise.
14395 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14396 new interface.
14397 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14398 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14399 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14400 grub_diskfilter_read_node.
14401 Fix a bug with xor.
14402 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14403 grub_diskfilter_read_node.
14404 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14405 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14406 (grub_disk_dev_iterate): Move from here...
14407 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14408 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14409 Make global.
14410 (grub_hostdisk_find_partition_start): Likewise.
14411 (grub_hostdisk_os_dev_to_grub_drive): New function.
14412 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14413 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14414 * util/getroot.c (make_device_name): ... here.
14415 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14416 Move to ...
14417 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14418 * grub-core/kern/emu/hostdisk.c
14419 (convert_system_partition_to_system_disk): Move to ...
14420 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14421 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14422 * util/getroot.c (device_is_wholedisk): ... here.
14423 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14424 * util/getroot.c (find_system_device): ... here.
14425 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14426 Move to ...
14427 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14428 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14429 Move to ...
14430 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14431 Handle LDM.
14432 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14433 Move to ...
14434 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14435 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14436 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14437 DISKFILTER.
14438 * include/grub/raid.h: Renamed to ...
14439 * include/grub/diskfilter.h: ... this.
14440 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14441 (GRUB_RAID_LAYOUT_*): Make into array.
14442 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14443 (grub_diskfilter_vg): New struct.
14444 (grub_diskfilter_pv_id): Likewise.
14445 (grub_raid_member): Removed.
14446 (grub_raid_array): Likewise.
14447 (grub_diskfilter_pv): New struct.
14448 (grub_diskfilter_lv): Likewise.
14449 (grub_diskfilter_segment): Likewise.
14450 (grub_diskfilter_node): Likewise.
14451 (grub_diskfilter_get_vg_by_uuid): New proto.
14452 (grub_raid_register): Inline.
14453 (grub_diskfilter_unregister): Likewise.
14454 (grub_diskfilter_make_raid): New proto.
14455 (grub_diskfilter_vg_register): Likewise.
14456 (grub_diskfilter_read_node): Likewise.
14457 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14458 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14459 (grub_util_is_ldm): Likewise.
14460 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14461 (grub_hostdisk_find_partition_start): Likewise.
14462 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14463 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14464 New definition.
14465 (grub_gpt_partition_map_iterate): New proto.
14466 * include/grub/lvm.h (grub_lvm_vg): Removed.
14467 (grub_lvm_pv): Likewise.
14468 (grub_lvm_lv): Likewise.
14469 (grub_lvm_segment): Likewise.
14470 (grub_lvm_node): Likewise.
14471 * util/getroot.c [...]
14472 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14473 (probe_abstraction): Likewise.
14474 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14475 (main): Remove dead logic.
14476
14477 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14478
14479 Simplify root device discover and don't fail when trying to open
14480 incorrect devices.
14481
14482 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14483 function.
14484 (get_diskname_from_path): Likewise.
14485 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14486 of iterating.
14487
14488 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14489
14490 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14491
14492 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14493
14494 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14495 pastthe end.
14496
14497 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14498
14499 * util/grub-install.in: Add missing \.
14500 Reported by: gentoofan
14501
14502 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14503
14504 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14505 (direct_read): Use correct compressed size.
14506 (grub_squash_read_data): Likewise.
14507
14508 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14509
14510 * docs/grub.texi (Platform limitations): New section.
14511 (Platform-specific operations): Likewise.
14512 * docs/grub-dev.texi (Porting): Likewise.
14513
14514 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 IEEE1275 disk write support.
14517
14518 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14519 const void *.
14520 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14521 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14522 and seek loginc to ...
14523 (grub_ofdisk_prepare): ... here.
14524 (grub_ofdisk_write): Implement.
14525
14526 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14527
14528 ARC disk write support.
14529
14530 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14531 (reopen): New argument writable. All users updated.
14532 Handle required access mode.
14533 (grub_arcdisk_write): Implement.
14534 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14535 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14536
14537 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14538
14539 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14540 (read_sblock): Don't attempt to read superblocks outside the disk size.
14541
14542 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14545 first superblock to find the second one when possible.
14546
14547 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * util/grub-install.in: Fix an ARC bug.
14550 Print a warning if no platform-specific setup is available.
14551
14552 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 Use static allocation rather than scratch pointer in reed_solomon.
14555 It decreases its size significantly and avoids a variable in .text.
14556
14557 * grub-core/lib/reed_solomon.c (scratch): Removed.
14558 (chosenstat): New const or static array.
14559 (sigma): Likewise.
14560 (errpot): Likewise.
14561 (errpos): Likewise.
14562 (sy): Likewise.
14563 (mstat): Likewise.
14564 (errvals): Likewise.
14565 (eqstat): Likewise.
14566 (pol_evaluate): Replace x with log_x argument. All users updated.
14567 (syndroms): Removed.
14568 (gauss_solve): Use statically allocated arrays.
14569 (rs_recover): Likewise.
14570 Calculate syndroms directly.
14571 (decode_block): Use statically allocated arrays.
14572 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14573 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14574
14575 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14576
14577 Eliminate fixed limit on reed solomon decoder length.
14578
14579 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14580 rather than hardcoding the address.
14581 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14582 no_reed_solomon_length.
14583 Move gate_a20 to no-reed-solomon part.
14584 Don't force a particular size of no reed-solomon part.
14585 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14586 Removed.
14587 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14588 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14589
14590 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14591
14592 * grub-core/commands/wildcard.c (match_files): Handle filenames
14593 without explicit device.
14594 (wildcard_expand): Don't add explicit device if not already present.
14595 * tests/grub_script_echo1.in: Add a new expansion test.
14596
14597 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 Replace single-linked with double-linked lists. It results in more
14600 compact and more efficient code.
14601
14602 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14603 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14604 (grub_list_remove): Moved from here ...
14605 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14606 (grub_prio_list_insert): Set prev.
14607 * include/grub/list.h (grub_list): Add prev. All users updated.
14608
14609 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14610
14611 Handle newer autotools. Add some missing quotes while on it.
14612
14613 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14614 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14615 (pkgdata_DATA): ... here.
14616 * Makefile.util.def (update-grub_lib): Removed.
14617 * conf/Makefile.common (pkglib_DATA): Removed.
14618 (pkglib_SCRIPTS): Likewise.
14619 (pkgdata_DATA): New variable.
14620 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14621 needed.
14622 Add missing quotes.
14623 Remove unused variable while on it.
14624 * tests/util/grub-shell.in: Likewise.
14625 * util/grub-install.in: Likewise.
14626 * util/grub-mkconfig.in: Likewise.
14627 * util/grub-mknetdir.in: Likewise.
14628 * util/grub-mkrescue.in: Likewise.
14629 * util/grub-mkstandalone.in: Likewise.
14630 * util/grub.d/00_header.in: Likewise.
14631 * util/grub.d/10_hurd.in: Likewise.
14632 * util/grub.d/10_illumos.in: Likewise.
14633 * util/grub.d/10_kfreebsd.in: Likewise.
14634 * util/grub.d/10_linux.in: Likewise.
14635 * util/grub.d/10_netbsd.in: Likewise.
14636 * util/grub.d/10_windows.in: Likewise.
14637 * util/grub.d/20_linux_xen.in: Likewise.
14638 * util/grub.d/30_os-prober.in: Likewise.
14639 * util/update-grub_lib.in: Removed.
14640
14641 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14642
14643 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14644 a workaround for intel problem.
14645
14646 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14647 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14648 2012-01-23 pfsmorigo
14649
14650 * util/grub-install.in: Support dd'in into PreP partition.
14651 * util/grub-probe.c (probe): Support discovering partition type.
14652 (main): Support -t msdos_parttype.
14653
14654 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14655
14656 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14657 infinite recursion using counter.
14658 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14659 init to skip it if the magic check fails.
14660 (dec_stream_header): Init s->crc32.
14661
14662 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14663 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14664 2012-01-22 Richard Laager <rlaager@wiktel.com>
14665
14666 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14667 All users updated.
14668 (find_bestub): Determine correct size.
14669 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14670 (scan_disk): Align the size down.
14671 Call check pool before find_bestub to have ashift.
14672
14673 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14674
14675 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14676 dprintf in no-malloc zone.
14677
14678 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14679
14680 * configure.ac: Add back in test for limits.h.
14681
14682 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14683
14684 Support 4K-sector NTFS.
14685
14686 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14687 (grub_ntfs_data): Remove blocksize.
14688 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14689 Remove data argument. All users updated.
14690
14691 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14692
14693 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14694 being in .text to avoid dprel references.
14695 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14696 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14697 (grub_arch_highmemsize): Likewise.
14698 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14699 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14700 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14701
14702 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14703
14704 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14705
14706 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14707 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14708
14709 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14712 GRUB_UTIL.
14713 (grub_set_datetime_cmos): Likewise.
14714
14715 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14716
14717 Make XZ compression parameters dependent on target and not host CPU.
14718
14719 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14720 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14721
14722 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14723
14724 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14725 set but not used variable.
14726
14727 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14728
14729 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14730 created when no uuid support is compiled into mkfs.reiser.
14731
14732 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14733
14734 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14735 (utf8_to_macroman): Do the opposite.
14736 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14737
14738 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 * configure.ac: Refise build qemu_mips w/o unifont.
14741
14742 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14743
14744 Eliminate grub_min/grub_max prone to overflow usage.
14745
14746 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14747 (poll_nonroot_hub): Likewise.
14748 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14749 (grub_affs_label): Likewise.
14750 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14751 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14752 (grub_hfs_label): Likewise.
14753 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14754 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14755 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14756 (zap_leaf_array_get): Likewise.
14757 (dnode_get_path): Likewise.
14758 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14759 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14760 * grub-core/script/execute.c (grub_script_break): Likewise.
14761 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14762 grub_max.
14763 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14764 * include/grub/misc.h (grub_min): Removed.
14765 (grub_max): Likewise.
14766
14767 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14768
14769 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14770 direct.inode = 0.
14771
14772 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14773
14774 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14775
14776 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14777
14778 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14779
14780 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14781
14782 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14783 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14784
14785 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14788 rather than a hack for grub_strncasemap.
14789
14790 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14791
14792 Support multiple initrds
14793 Note: part of this was accidently committed in r3739.
14794
14795 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14796 initrd.
14797 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14798 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14799 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14800 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14801 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14802
14803 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14804
14805 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14806 disks with unknown size.
14807 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14808
14809 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14810
14811 Remove defines pertaining to arbitrary limits not affecting GRUB
14812 anymore.
14813
14814 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14815 (EXT2_MAX_SYMLINKCNT): Likewise.
14816 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14817 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14818 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14819 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14820 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14821 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14822 (DN_MAX_OBJECT_SHIFT): Likewise.
14823 (DN_MAX_OFFSET_SHIFT): Likewise.
14824 (DN_MAX_OBJECT): Likewise.
14825 (DNODES_PER_LEVEL_SHIFT): Likewise.
14826 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14827 (SPA_MAXBLOCKSIZE): Likewise.
14828 (SPA_BLOCKSIZES): Likewise.
14829 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14830 (MZAP_MAX_BLKSZ): Likewise.
14831
14832 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14833
14834 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14835 handle NULL appropriately.
14836 Remove MIN.
14837
14838 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14839
14840 Fix efiemu.
14841
14842 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14843 cpu/types.h.
14844 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14845 * configure.ac: Fix efiemu check.
14846
14847 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14848
14849 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14850 grub_probe.
14851 Reported by: adamwill
14852
14853 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14854
14855 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14856
14857 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14858
14859 Fix handling of wide characters in gfxterm.
14860
14861 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14862 (clear_char): Likewise.
14863 (paint_char): Skip code == NULL chars.
14864 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14865
14866 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14867
14868 * grub-core/normal/charset.c: Move comment to right place.
14869
14870 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14871
14872 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14873 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14874 (grub_affs_mount): Revert the correct version checking.
14875
14876 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14877
14878 * docs/grub.texi (Unicode): Mention several other unsupported features.
14879
14880 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14881
14882 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14883 case statements as compile-time one.
14884 (direct_read): Prevent spurious warnings.
14885 (grub_squash_read_data): Likewise.
14886
14887 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14888
14889 Various squash4 fixes and LZO and XZ support.
14890
14891 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14892 Add xzembed source files.
14893 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14894 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14895 (grub_squash_inode): New subtype long_dir.
14896 (SQUASH_TYPE_LONG_DIR): New inode type.
14897 (COMPRESSION): New enum.
14898 (XZBUFSIZ): New const.
14899 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14900 (read_chunk): Use data->decompress.
14901 (zlib_decompress): New function.
14902 (lzo_decompress): Likewise.
14903 (xz_decompress): Likewise.
14904 (squash_mount): Set new data fields.
14905 (grub_squash_iterate_dir): Handle long dir.
14906 (squash_unmount): Free xzdec and xzbuf.
14907 (grub_squash_open): Check ino type.
14908 (direct_read): Stylistic fixes. Use data->decompress.
14909 (grub_squash_read_data): Likewise.
14910 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14911 (get_byte): Likewise.
14912 (grub_zlib_disk_read): Removed.
14913 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14914 (GRUB_POSIX_BOOL_DEFINED): New define.
14915 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14916 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14917 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14918 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14919
14920 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 Don't override more informative errors.
14923
14924 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14925 * grub-core/font/font.c (open_section): Likewise.
14926 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14927 filename. Don't override errors.
14928 (grub_cmd_openbsd_ramdisk): Don't override errors.
14929 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14930 (grub_cmd_initrd): Likewise.
14931 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14932 (grub_cmd_initrd): Likewise.
14933 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14934 (grub_cmd_linux): Likewise.
14935 (grub_cmd_initrd): Likewise.
14936 (grub_cmd_payload): Likewise.
14937 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14938 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14939 (grub_cmd_module): Likewise.
14940 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14941 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14942 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14943 (grub_cmd_xnu_mkext): Likewise.
14944 (grub_cmd_xnu_ramdisk): Likewise.
14945 (grub_xnu_check_os_bundle_required): Likewise.
14946 (grub_xnu_load_kext_from_dir): Likewise.
14947 (grub_cmd_xnu_kextdir): Likewise.
14948 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14949
14950 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14951
14952 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14953 as 1024 in block size field. Found on one of my test images.
14954 Small optimisation while on it.
14955
14956 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14957
14958 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14959 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14960 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14961 performance fixes while on it.
14962 (grub_sfs_close): Fix memory leak while on it.
14963 (grub_sfs_label): Convert Latin1 to UTF-8.
14964
14965 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14966
14967 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14968 space to avoid overflows.
14969 (grub_hfs_label): Convert from macroman to UTF-8.
14970
14971 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14974
14975 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14976
14977 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14978
14979 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14980
14981 * unicode: Import Unicode 6.0 data.
14982
14983 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14984
14985 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14986 outside of range.
14987
14988 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14989
14990 Avoid cutting in the middle of UTF-8 character.
14991
14992 * include/grub/charset.h (grub_getend): New function.
14993 * grub-core/script/function.c (grub_script_function_find): Use
14994 grub_getend.
14995 * grub-core/normal/completion.c (add_completion): Likewise.
14996
14997 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14998
14999 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15000 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15001 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15002 (GRUB_UNICODE_TAG_END): Likewise.
15003 (GRUB_UNICODE_LAST_VALID): Likewise.
15004
15005 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15006
15007 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15008 len and make it smaller. All users updated.
15009 * util/import_unicode.py: Put length and not end character.
15010 Check length.
15011
15012 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15013
15014 Make better Unicode-compliant and unify some UTF-8 code pathes.
15015
15016 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15017 valid character.
15018 (grub_is_valid_utf8): Use grub_utf8_process.
15019 Check resulting code range.
15020 (grub_utf8_to_ucs4): Use grub_utf8_process.
15021 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15022 valid character.
15023
15024 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15025
15026 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15027
15028 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15029
15030 * docs/grub.texi (Filesystems): Mention AFS.
15031
15032 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15033
15034 * docs/grub.texi (Filesystems): Clarify restrictions.
15035 (Regexp): Mention non-Unicode regexp behaviour.
15036 (Other): Mention non-Unicode matching behaviour.
15037
15038 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15039
15040 Make HFS implementation use MacRoman.
15041
15042 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15043 (macroman): New const array.
15044 (macroman_to_utf8): New function.
15045 (utf8_to_macroman): Likewise.
15046 (grub_hfs_find_dir): Use utf8_to_macroman.
15047 (grub_hfs_dir): Use macroman_to_utf8.
15048 Set case_insensitive.
15049
15050 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15053
15054 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15055
15056 Integrate hints into autogeneration scripts.
15057
15058 * docs/grub.texi (Filesystems): Add a hostdisk example.
15059 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15060 (grub-probe): Add ofpath.
15061 * gentpl.py: Remove group nosparc64.
15062 * grub-core/commands/search.c (cache_entry): New struct.
15063 (cache): New var.
15064 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15065 * grub-core/commands/search_wrap.c (options): Add platform-specific
15066 hint options.
15067 (grub_cmd_search): Handle platform-specific hints.
15068 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15069 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15070 (grub_util_biosdisk_data): Likewise.
15071 (grub_util_biosdisk_open): Set device_map.
15072 (read_device_map): Handle "" as indication of no map.
15073 Set device_map.
15074 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15075 (grub_util_biosdisk_get_compatibility_hint): New function.
15076 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15077 * include/grub/emu/hostdisk.h
15078 (grub_util_biosdisk_get_compatibility_hint): New proto.
15079 * util/grub-install.in: Don't call grub-mkdevicemap.
15080 Add platform-specific hint to load.cfg.
15081 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15082 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15083 hints. Set root preliminary to compatibility hint, not to OS name.
15084 * util/grub-probe.c (PRINT_*): Add hints.
15085 (print): Make static.
15086 (escape_of_path): New function.
15087 (guess_bios_drive): Likewise.
15088 (guess_efi_drive): Likewise.
15089 (guess_baremetal_drive): Likewise.
15090 (print_full_name): Likewise.
15091 (probe): Handle hints.
15092 (main): Likewise.
15093 * util/ieee1275/devicemap.c: Removed.
15094 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15095 updated.
15096 (grub_util_devname_to_ofpath): Return NULL on failure.
15097
15098 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15099 resource leak.
15100 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15101
15102 * po/POTFILES.in: Regenerated.
15103
15104 Allow purely long options
15105
15106 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15107 (SHORT_ARG_USAGE): Likewise.
15108 (grub_arg_show_help): Compare opt with help_options.
15109 (parse_option): Receive opt as argument. If makes big simplificatons.
15110 All users updated
15111
15112 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15113
15114 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15115 Restructure to avoid warning.
15116
15117 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15118
15119 * util/grub-install.in: Account for possible escaped comma in device
15120 name.
15121
15122 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15123
15124 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15125 channel.
15126
15127 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15130 allocation and zero-setting.
15131 (grub_ieee1275_get_devname): Check that alias is complete.
15132
15133 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15136 unaligned segments.
15137
15138 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15139
15140 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15141 prefix.
15142 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15143 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15144 Add ieee1275 prefix.
15145
15146 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15147
15148 * docs/grub.texi (Filesystems): Update.
15149
15150 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 Support odc, newc and bigendian cpio formats.
15153
15154 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15155 * grub-core/Makefile.core.def (newc): New module.
15156 (odc): Likewise.
15157 (cpio_be): Likewise.
15158 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15159 (MAGIC): Likewise.
15160 (MAGIC2): Likewise.
15161 (head) [MODE_ODC]: Adapt for the format.
15162 (head) [MODE_NEWC]: Likewise.
15163 (head) [!MODE_*]: Write fields of interest as arrays.
15164 (MAGIC_USTAR): Removed.
15165 (read_number) [MODE_NEWC]: Change to hex.
15166 (read_number) [!MODE_*]: Parse binary arrays.
15167 (grub_cpio_find_file): Factor out the code for better structure and
15168 always use read_number.
15169 (grub_cpio_mount): Use MAGIC and MAGIC2.
15170 (grub_cpio_dir): Exit on first hook non-0 return.
15171 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15172 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15173 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15174 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15175 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15176 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15177 * grub-core/fs/newc.c: New file.
15178 * grub-core/fs/odc.c: Likewise.
15179 * grub-core/fs/cpio_be.c: Likewise.
15180
15181 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15182
15183 Fix handling of tar numbers occupying the whole field.
15184
15185 * grub-core/fs/cpio.c (read_number): New function.
15186 (grub_cpio_find_file): Use read_number instead of strtoull.
15187
15188 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15189
15190 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15191 occupying the whole field size.
15192
15193 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15194
15195 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15196
15197 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15198
15199 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15200
15201 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15202
15203 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15204 TARGET_IMG_LDFLAGS.
15205
15206 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15207
15208 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15209 (mountinfo_entry): Increase the field size to take escaping into
15210 account.
15211 (find_root_device_from_libzfs): Add one byte to size of strings for
15212 security.
15213
15214 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15215
15216 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15217 an assert.
15218 * util/grub-setup.c (setup): Likewise.
15219
15220 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15221
15222 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15223 _LzmaDecodeA.
15224
15225 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15226
15227 * docs/grub.texi (Internationalisation): New section.
15228
15229 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15230
15231 * docs/grub.texi (Loopback booting): New section.
15232
15233 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15234
15235 * util/grub-mkstandalone.in: Fix minor typo errors.
15236
15237 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15240
15241 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15242 net/icmp.c and net/icmp6.c.
15243 (http): New module.
15244 (priority_queue): Likewise.
15245 * grub-core/io/bufio.c: Rewritten.
15246 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15247 TYPE_WITH_CONFIGFILE_OPTION.
15248 (legacy_commands): Add bootp and dhcp.
15249 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15250 (grub_legacy_parse): Likewise.
15251 * grub-core/lib/priority_queue.c: New file.
15252 * grub-core/net/arp.c: Add missing license header.
15253 (arp_find_entry): Removed.
15254 (arp_find_entry): Likewise.
15255 (grub_net_arp_resolve): Rename to ...
15256 (grub_net_arp_send_request): ...this.
15257 (grub_net_arp_receive): New card argument.
15258 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15259 Set router and DNS server.
15260 (grub_net_configure_by_dhcp_ack): Handle routing information.
15261 (grub_cmd_bootp): Set checksum.
15262 (grub_bootp_init): Remove net_dhcp.
15263 * grub-core/net/dns.c: New file.
15264 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15265 completion.
15266 (get_card_packet): Handle allocation.
15267 (grub_efinet_findcards): Set mtu.
15268 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15269 (get_card_packet): Handle allocation.
15270 (emucard): Set mtu.
15271 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15272 (GRUB_MOD_INIT): Set mtu.
15273 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15274 mtu.
15275 (get_card_packet): Handle allocation.
15276 (grub_ofnet_findcards): Set mtu.
15277 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15278 assert.
15279 (grub_net_recv_ethernet_packet): Handle IPv6.
15280 * grub-core/net/http.c: New file.
15281 * grub-core/net/icmp.c: Likewise.
15282 * grub-core/net/icmp6.c: Likewise.
15283 * grub-core/net/ip.c (ip6addr): New type.
15284 (ip6hdr): Likewise.
15285 (reassemble): Likewise.
15286 (cmp): New function.
15287 (reassembles): New variable.
15288 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15289 (id): New variable.
15290 (send_fragmented): New function.
15291 (grub_net_send_ip_packet): Rename to ...
15292 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15293 Handle non-UDP.
15294 (grub_net_recv_ip_packets): Rename to ...
15295 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15296 (free_rsm): New function.
15297 (free_old_fragments): Likewise.
15298 (grub_net_recv_ip4_packets): New function.
15299 (grub_net_send_ip6_packet): Likewise.
15300 (grub_net_send_ip_packet): Likewise.
15301 (grub_net_recv_ip6_packets): Likewise.
15302 (grub_net_recv_ip_packets): Likewise.
15303 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15304 (LINK_LAYER_CACHE_SIZE): New const.
15305 (link_layer_find_entry): New function.
15306 (grub_net_link_layer_add_address): Likewise.
15307 (grub_net_link_layer_resolve_check): Likewise.
15308 (grub_net_link_layer_resolve): Likewise.
15309 (grub_net_ipv6_get_slaac): Likewise.
15310 (grub_net_ipv6_get_link_local): Likewise.
15311 (grub_cmd_ipv6_autoconf): Likewise.
15312 (parse_ip): Handle one number representation.
15313 (parse_ip6): New functoion.
15314 (match_net): Handle IPv6.
15315 (grub_net_resolve_address): Handle IPv6 and DNS.
15316 (grub_net_resolve_net_address): Handle IPv6.
15317 (route_cmp): New function.
15318 (grub_net_route_address): Find best route.
15319 (grub_net_addr_to_str): Handle IPv6.
15320 (grub_net_addr_cmp): New function.
15321 (grub_net_add_addr): Register local route.
15322 (print_net_address): Handle net address.
15323 (grub_net_poll_cards): Retransmit TCP.
15324 (grub_net_poll_cards_idle_real): Likewise.
15325 (have_ahead): New function.
15326 (grub_net_seek_real): Use underlying seek.
15327 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15328 * grub-core/net/tcp.c: New file.
15329 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15330 (cmp): New function.
15331 (ack): Likewise.
15332 (tftp_receive): Handle unordered input.
15333 (destroy_pq): New function.
15334 (tftp_close): Close pq.
15335 * grub-core/net/udp.c: Put missing license header.
15336 (grub_net_udp_socket): New function.
15337 (udp_socket_register): Likewise.
15338 (grub_net_udp_close): Likewise.
15339 (grub_net_recv_udp_packet): Check checksum.
15340 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15341 * include/grub/misc.h (grub_memchr): New function.
15342 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15343 (grub_net_card_driver): Return buf in recv.
15344 (grub_net_slaac_mac_list): New struct.
15345 (grub_network_level_protocol_id): Add ipv6.
15346 (grub_net_network_level_addr): Likewise.
15347 (grub_net_network_level_net_addr): Likewise.
15348 (grub_net_app_protocol): Add seek.
15349 (grub_net_socket): Removed.
15350 (grub_net_sockets): Likewise.
15351 (grub_net_socket_register): Likewise.
15352 (grub_net_socket_unregister): Likewise.
15353 (FOR_NET_SOCKETS): Likewise.
15354 (grub_net_add_addr): Add const.
15355 (GRUB_NET_BOOTP_*): New enum.
15356 (grub_net_addr_cmp): New proto.
15357 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15358 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15359 (grub_net_hwaddr_to_str): NEw proto.
15360 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15361 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15362 (grub_dns_init): New proto.
15363 (grub_dns_fini): Likewise.
15364 (grub_net_tcp_retransmit): Likewise.
15365 (grub_net_link_layer_add_address): Likewise.
15366 (grub_net_link_layer_resolve_check): Likewise.
15367 (grub_net_link_layer_resolve): Likewise.
15368 (grub_net_dns_lookup): Likewise.
15369 (grub_net_add_dns_server): Likewise.
15370 (grub_net_remove_dns_server): Likewise.
15371 (GRUB_NET_TRIES): New const.
15372 (GRUB_NET_INTERVAL): Likewise.
15373 * include/grub/net/arp.h: Mostly rewritten.
15374 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15375 * include/grub/net/ip.h: Mostly rewritten.
15376 * include/grub/net/netbuff.h: Indent.
15377 * include/grub/net/tcp.h: New file.
15378 * include/grub/net/udp.h: Mostly rewritten.
15379 * include/grub/priority_queue.h: New file.
15380 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15381 (grub_swap_bytes64_compile_time): Likewise.
15382 (grub_cpu_to_be16_compile_time): Likewise.
15383 (grub_cpu_to_be32_compile_time): Likewise.
15384 (grub_cpu_to_be64_compile_time): Likewise.
15385 (grub_be_to_cpu64_compile_time): Likewise.
15386
15387 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15388
15389 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15390 UINT_TO_PTR with cast.
15391
15392 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15395 don't use them.
15396
15397 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15398
15399 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15400 already there.
15401
15402 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15403
15404 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15405 confusing ipxe.
15406
15407 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15408
15409 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15410 Add missing const attribute.
15411 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15412 Likewise.
15413 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15414 Likewise.
15415
15416 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15417
15418 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15419 misaligned access.
15420 (serpent_setkey): Likewise.
15421 (serpent_encrypt_internal): Likewise.
15422 (serpent_decrypt_internal): Likewise.
15423 (serpent_encrypt): Don't put an alignment-increasing cast.
15424 (serpent_decrypt): Likewise.
15425 (serpent_test): Likewise.
15426
15427 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15428
15429 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15430
15431 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15432
15433 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15434
15435 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15436 grub_addr_t casts.
15437 (PTR_TO_UINT64): Likewise.
15438 (PTR_TO_UINT32): Likewise.
15439
15440 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15441
15442 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15443 because of stack.
15444 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15445 limit.
15446
15447 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15448
15449 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15450 text_width > available width a bit more gracefully.
15451
15452 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15453
15454 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15455 current address calculation.
15456
15457 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15458
15459 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15460 stack.
15461 (encode_block): Likewise.
15462
15463 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15464
15465 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15466 certainety.
15467
15468 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15469
15470 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15471 non-RS part to avoid RS messing with GDT.
15472 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15473 Increase to suit in realmode routines.
15474
15475 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15476
15477 * grub-core/kern/i386/realmode.S: Increase alignment.
15478 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15479
15480 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15483 be deterministic.
15484 (syndroms): Compute 0 syndrom.
15485 (rs_recover): Use 0 syndrom.
15486
15487 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15490
15491 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15492
15493 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15494 brackets.
15495
15496 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15497
15498 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15499 account.
15500 (get_top_pad): Likewise.
15501 (get_right_pad): Likewise.
15502 (get_bottom_pad): Likewise.
15503
15504 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15505
15506 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15507
15508 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15509
15510 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15511 attribute as the structure isn't guaranteed to be properly aligned.
15512 (grub_efi_pci_device_path): Likewise.
15513 (grub_efi_pccard_device_path): Likewise.
15514 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15515 specify the size of `memory_type'.
15516 (grub_efi_vendor_device_path): Likewise.
15517 (grub_efi_controller_device_path): Likewise.
15518 (grub_efi_acpi_device_path): Likewise.
15519 (grub_efi_expanded_acpi_device_path): Likewise.
15520 (grub_efi_atapi_device_path): Likewise.
15521 (grub_efi_scsi_device_path): Likewise.
15522 (grub_efi_fibre_channel_device_path): Likewise.
15523 (grub_efi_1394_device_path): Likewise.
15524 (grub_efi_usb_device_path): Likewise.
15525 (grub_efi_usb_class_device_path): Likewise.
15526 (grub_efi_i2o_device_path): Likewise.
15527 (grub_efi_mac_address_device_path): Likewise.
15528 (grub_efi_ipv4_device_path): Likewise.
15529 (grub_efi_ipv6_device_path): Likewise.
15530 (grub_efi_infiniband_device_path): Likewise.
15531 (grub_efi_uart_device_path): Likewise.
15532 (grub_efi_vendor_messaging_device_path): Likewise.
15533 (grub_efi_hard_drive_device_path): Likewise.
15534 (grub_efi_cdrom_device_path): Likewise.
15535 (grub_efi_vendor_media_device_path): Likewise.
15536 (grub_efi_file_path_device_path): Likewise.
15537 (grub_efi_protocol_device_path): Likewise.
15538 (grub_efi_piwg_device_path): Likewise.
15539 (grub_efi_bios_device_path): Likewise.
15540
15541 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15544 (grub_ucs4_to_utf8_alloc): Likewise.
15545 (grub_ucs4_to_utf8): Likewise.
15546 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15547 (grub_ucs4_to_utf8_alloc): Likewise.
15548
15549 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15550
15551 AFFS never uses unicode.
15552
15553 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15554 (grub_latin1_to_utf8): New inline function.
15555 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15556
15557 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15558
15559 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15560 overflow.
15561
15562 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15563
15564 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15565 (grub_squash_dirent_header): Likewise.
15566 (read_chunk): Don't double swap.
15567 (grub_squash_iterate_dir): Fix swap sizes.
15568
15569 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15570
15571 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15572
15573 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15574
15575 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15576 (grub_hfs_iterate_dir): Likewise.
15577
15578 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15579
15580 Fix video on platforms where unaligned access is forbidden.
15581 Make several optimisations while on it.
15582
15583 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15584 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15585 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15586 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15587 Disable.
15588 (grub_video_fbblit_replace_16bit_1bit):
15589 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15590 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15591 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15592 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15593 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15594 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15595 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15596 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15597 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15598 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15599 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15600 (grub_video_fbblit_replace_index_RGB888): Likewise.
15601 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15602 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15603 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15604 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15605 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15606 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15607 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15608 Disable.
15609 (grub_video_fbblit_blend_XXX565_1bit):
15610 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15611 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15612 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15613 void *.
15614 * grub-core/video/fb/video_fb.c (common_blitter)
15615 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15616 (grub_video_fb_create_render_target_from_pointer)
15617 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15618 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15619 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15620 definition.
15621 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15622
15623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15624
15625 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15626 HH22 and HM10 relocations.
15627
15628 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15629
15630 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15631
15632 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15635 allocation succeeded.
15636
15637 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15640 argument a u8 pointer. All users updated.
15641 Handle unaligned buffers.
15642
15643 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15646 add_part to workaround compiler bug.
15647
15648 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15651
15652 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15653
15654 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15655 Reserve alignment invariants.
15656 (grub_multiboot_load): Likewise.
15657 (retrieve_video_parameters): Likewise.
15658 (grub_multiboot_make_mbi): Likewise.
15659
15660 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15661
15662 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15663 incorrect pointer.
15664
15665 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15666
15667 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15668 (grub_pata_pio_write): Likewise.
15669
15670 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15671
15672 Add noreturn attributes and remove unreachable code.
15673
15674 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15675 code.
15676 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15677 code. Mark as noreturn.
15678 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15679 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15680 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15681 unreachable code.
15682 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15683 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15684 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15685 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15686 * include/grub/kernel.h (grub_main): Mark as noreturn.
15687 * include/grub/reader.h (grub_rescue_run): Likewise.
15688
15689 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15690
15691 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15692 redundant declaration.
15693
15694 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15695
15696 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15697 redundant declaration.
15698 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15699
15700 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15701
15702 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15703 to ensure alignment.
15704 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15705 alignment. Ensure tmp alignment.
15706 (grub_cmd_hdparm): Ensure buf alignment.
15707 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15708 to ensure alignment.
15709 (grub_ata_dumpinfo): Ensure text alignment.
15710 (grub_atapi_identify): Preserve alignment invariant.
15711 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15712
15713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15714
15715 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15716 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15717 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15718 * include/grub/misc.h (grub_reboot)
15719 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15720 (grub_halt) [__mips__]: Likewise.
15721
15722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15723
15724 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15725 Remove redundant declaration.
15726 (grub_mmap_get_post64): Likewise.
15727 (grub_mmap_get_upper): Likewise.
15728 (grub_mmap_get_lower): Likewise.
15729
15730 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15731
15732 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15733 uint32_t * to ensure alignment.
15734 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15735
15736 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15737
15738 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15739 uint16_t * to ensure alignment.
15740 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15741 alignment.
15742
15743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15744
15745 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15746 to ensure alignment.
15747 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15748
15749 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15750
15751 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15752 Handle unaligned pointers.
15753 (u32at): Likewise.
15754 (u64at): Likewise.
15755 (fixup): Use byte access instead of v16at.
15756 (find_attr): Fix imporper usage of v32at.
15757 (read_data): Likewise.
15758 (list_file): Handle byte-swapping and unaligned strings.
15759 (grub_ntfs_label): Likewise.
15760
15761 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15762
15763 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15764 as it's not necessarily aligned.
15765
15766 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15767
15768 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15769 redundant declaration.
15770 (grub_serial_init): Likewise.
15771 (grub_terminfo_init): Likewise.
15772
15773 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15774
15775 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15776 function.
15777 (ZAP_HASH_IDX): Likewise.
15778 (ZAP_LEAF_HASH_SHIFT): Likewise.
15779 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15780 (LEAF_HASH): Likewise.
15781 (ZAP_LEAF_NUMCHUNKS): Likewise.
15782 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15783 alignment invariants. Return pointer. All users updated.
15784 (ZAP_LEAF_ENTRY): Make into inline function.
15785 (NBBY): Removed.
15786 (xor): LIkewise.
15787 (xor_out): Use grub_crypto_xor.
15788 (dnode_get_path): Use grub_get_unaligned.
15789 (nvlist_find_value): Likewise.
15790 (grub_zfs_nvlist_lookup_uint64): Likewise.
15791 (grub_zfs_nvlist_lookup_string): Likewise.
15792 (get_nvlist_size): Likewise.
15793 (grub_zfs_open): Likewise.
15794 (fill_fs_info): Likewise.
15795 (grub_zfs_dir): Likewise.
15796 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15797 alignment invariants.
15798 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15799 necessarily aligned.
15800
15801 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15802
15803 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15804
15805 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15806
15807 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15808 arithmetic to conserve alignment invariants.
15809
15810 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15811
15812 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15813 redundant declaration.
15814 (grub_efiemu_mm_obtain_request): Likewise.
15815 (grub_efiemu_prepare): Likewise.
15816
15817 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15818
15819 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15820 to match types.
15821
15822 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15823
15824 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15825 case of aunaligned recptr.
15826 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15827 alignment.
15828 (grub_hfsplus_btree_search): Handle unaligned index.
15829
15830 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15831
15832 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15833 to get freetag and skip.
15834
15835 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15836
15837 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15838 array.
15839 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15840 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15841
15842 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15843
15844 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15845 name for checksum and fix allocation algorithm.
15846
15847 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15848
15849 * include/grub/types.h (grub_properly_aligned_t): New type.
15850 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15851 (grub_get_unaligned16): Add explicit casts.
15852 (grub_get_unaligned32): Likewise.
15853 (grub_get_unaligned64): Likewise.
15854 (grub_set_unaligned16): New function.
15855 (grub_set_unaligned32): Likewise.
15856
15857 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15858
15859 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15860
15861 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15862
15863 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15864 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15865 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15866
15867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15870 conditionals.
15871
15872 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15873
15874 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15875 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15876
15877 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15878
15879 Unify and improve RAID and crypto xor.
15880
15881 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15882 changed to grub_crypto_xor
15883 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15884 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15885 Use bigger types when possible.
15886
15887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 * grub-core/disk/raid.c (scan_devices): Fix condition.
15890
15891 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15892
15893 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15894 Make name a const ptr.
15895
15896 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15899 first argument a const pointer.
15900 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15901 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15902 proto.
15903 (grub_children_iterate): Likewise.
15904 (grub_machine_mmap_iterate): Remove redundant declaration.
15905
15906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15907
15908 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15909 (grub_cmd_acpi) [!x86]: Disable EBDA.
15910
15911 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15912
15913 Enable UTF8 in gnulib regexp.
15914
15915 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15916 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15917 (isupper): Use grub_isupper.
15918 (isascii): New inline function.
15919 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15920 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15921 * grub-core/normal/charset.c (grub_utf8_process): New function.
15922 (grub_utf8_to_utf16): Use grub_utf8_process.
15923 (grub_encode_utf8_character): New function.
15924 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15925 * include/grub/charset.h (grub_utf8_process): New declaration.
15926 (grub_encode_utf8_character): Likewise.
15927 * include/grub/misc.h (grub_islower): New inline function.
15928 (grub_isupper): Likewise.
15929 (grub_strchrsub): Moved down to fix the definitions.
15930
15931 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15932
15933 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15934 specification.
15935
15936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15937
15938 * include/grub/loader.h (grub_loader_register_preboot_hook):
15939 Use struct preboot * and not void * for handle. All users updated.
15940 (grub_loader_unregister_preboot_hook): Likewise.
15941
15942 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15943
15944 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15945 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15946 UTF-16-BE. All users updated.
15947 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15948 (grub_hfsplus_iterate_dir): Likewise.
15949 (grub_hfsplus_label): Likewise.
15950
15951 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15952
15953 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15954
15955 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 Add missing const qualifiers.
15958
15959 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15960 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15961 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15962 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15963 (grub_lvm_check_flag): Likewise.
15964 * grub-core/efiemu/i386/coredetect.c
15965 (grub_efiemu_get_default_core_name): Likewise
15966 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15967 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15968 * grub-core/fs/ntfs.c (fixup): Likewise.
15969 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15970 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15971 (fzap_lookup): Likewise.
15972 (zap_lookup): Likewise.
15973 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15974 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15975 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15976 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15977 (grub_freebsd_add_meta_module): Likewise.
15978 (grub_cmd_freebsd_module): Likewise.
15979 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15980 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15981 (grub_xnu_writetree_get_size): Likewise.
15982 (grub_xnu_writetree_toheap_real): Likewise.
15983 (grub_xnu_find_key): Likewise.
15984 (grub_xnu_create_key): Likewise.
15985 (grub_xnu_create_value): Likewise.
15986 (grub_xnu_register_memory): Likewise.
15987 (grub_xnu_check_os_bundle_required): Likewise.
15988 (grub_xnu_scan_dir_for_kexts): Likewise.
15989 (grub_xnu_load_kext_from_dir): Likewise.
15990 * grub-core/normal/color.c (color_list): Likewise.
15991 * grub-core/normal/completion.c (current_word): Likewise.
15992 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15993 * grub-core/term/serial.c (grub_serial_find): Likewise.
15994 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15995 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15996 Likewise.
15997 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15998 (grub_freebsd_add_meta_module): Likewise.
15999 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16000 * include/grub/net.h (grub_net_card_driver): Likewise.
16001 (grub_net_card): Likewise.
16002 (grub_net_app_protocol): Likewise.
16003 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16004 * include/grub/serial.h (grub_serial_find): Likewise.
16005 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16006 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16007 (grub_xnu_create_value): Likewise.
16008 (grub_xnu_find_key): Likewise.
16009 (grub_xnu_scan_dir_for_kexts): Likewise.
16010 (grub_xnu_load_kext_from_dir): Likewise.
16011
16012 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16013 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16014 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16015 Moved from here ...
16016 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16017
16018 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16019
16020 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16021
16022 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16025 (read_device): Fix size calculation.
16026
16027 2011-11-25 Robert Millan <rmh@gnu.org>
16028
16029 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16030 (find_root_device_from_libzfs): Add zpool output parser to be used
16031 as fallback when libzfs isn't available.
16032
16033 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16034
16035 * po/Makefile.in.in: Add missing escape-continuation.
16036
16037 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16038
16039 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16040
16041 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16042
16043 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16044
16045 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16046
16047 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16048
16049 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16050
16051 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16052
16053 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16054
16055 * grub-core/lib/adler32.c: Add missing license specification.
16056 * grub-core/lib/crc64.c: Likewise.
16057 * grub-core/loader/i386/pc/plan9.c: Likewise.
16058 * grub-core/partmap/plan.c: Likewise.
16059
16060 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16061
16062 Add facility to debug GRUB with gdb under qemu.
16063
16064 * grub-core/gdb_grub.in: New file.
16065 * grub-core/gmodule.pl.in: Likewise.
16066 * grub-core/Makefile.core.def (gmodule.pl): New script.
16067 (gdb_grub): Likewise.
16068
16069 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16070
16071 * util/grub-mount.c (argp_parser): Accept relative pathes.
16072 * util/grub-fstest.c (argp_parser): Likewise.
16073
16074 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16075
16076 Plan9 support.
16077
16078 * Makefile.util.def (libgrubmods): Add
16079 grub-core/partmap/plan.c.
16080 * docs/grub.texi: Notice Plan9 support.
16081 * grub-core/Makefile.core.def (plan9): New module.
16082 (part_plan): Likewise.
16083 * grub-core/loader/i386/pc/plan9.c: New file.
16084 * grub-core/partmap/plan.c: Likewise.
16085 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16086 define.
16087 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16088 * include/grub/mm.h (grub_extend_alloc): New inline function.
16089
16090 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16091
16092 Make Reed-Solomon faster by using power of generator representation of
16093 GF(256)*.
16094
16095 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16096 (gf_double_t): Likewise.
16097 (gf_invert): Removed.
16098 (gf_powx): New array.
16099 (gf_powx_inv): Likewise.
16100 (scratch): Move higher.
16101 (gf_reduce): Removed.
16102 (gf_mul): Use powx.
16103 (gf_invert): Likewise.
16104 (init_inverts): Replaced with ...
16105 (init_powx): ...this. All users updated.
16106 (pol_evaluate): Replace multiplications with additions.
16107 (rs_encode): Likewise.
16108 (gauss_eliminate): Call gf_invert.
16109 (grub_reed_solomon_add_redundancy): Call init_powx.
16110 (grub_reed_solomon_recover): Call init_powx unconditionally.
16111
16112 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16113
16114 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16115
16116 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16117
16118 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16119 disk->partiton for safety.
16120
16121 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16122
16123 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16124 Fix a memory leak.
16125 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16126
16127 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16128
16129 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16130
16131 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16132
16133 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16134
16135 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16136
16137 Fix spaces handling in proc/self/mountinfo.
16138
16139 * util/getroot.c (unescape): New function.
16140 (grub_find_root_device_from_mountinfo): Use unescape.
16141
16142 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16143
16144 Support ZFS embedding.
16145
16146 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16147 (grub_zfs_fs): Register grub_zfs_embed.
16148
16149 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16150
16151 Fix MIPS compilation.
16152
16153 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16154 * include/grub/offsets.h: Rename decompressor fields from
16155 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16156 * util/grub-mkimage.c (image_targets): Use new names.
16157
16158 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16159
16160 Defer multiboot device parsing until we're in compressed part.
16161
16162 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16163 bsd_part. setdevice has fallen into disuse.
16164 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16165 (bsd_part): Likewise.
16166 (boot_dev): New variable.
16167 (multiboot_trampoline): Don't parse multiboot device.
16168 Pass multiboot device in %edx.
16169 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16170 grub_boot_device.
16171 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16172 Likewise.
16173 * grub-core/kern/i386/pc/startup.S: Save edx.
16174 (grub_boot_drive): Removed.
16175 (grub_install_dos_part): Likewise.
16176 (grub_install_bsd_part): Likewise.
16177 (grub_boot_device): New variable.
16178 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16179 (grub_install_bsd_part): Likewise.
16180 (grub_boot_drive): Likewise.
16181 (grub_boot_device): New variable.
16182 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16183 Removed.
16184 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16185 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16186 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16187 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16188 * util/grub-install.in: Remove redundant condition.
16189
16190 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16191
16192 Fix bug introduced by previous commit.
16193
16194 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16195
16196 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16197
16198 Use decompressors framework on i386-pc. It increases core size
16199 by 46 bytes but improves compatibility and maintainability.
16200
16201 * grub-core/Makefile.core.def (lzma_decompress): New image.
16202 (kernel): Add i386_pc_ldflags.
16203 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16204 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16205 to real_to_prot, prot_to_real and device info.
16206 * include/grub/offsets.h: Renamed decompressor offsets.
16207 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16208 (image_target_desc): Remove raw_size and rename decompressor fields.
16209 (compress_kernel): Handle lzma.
16210 (generate_image): Handle decompressors on i386-pc.
16211
16212 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16213
16214 * configure.ac: Add -fno-asynchronous-unwind-tables.
16215
16216 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16217
16218 Move assembly code to C by using intwrap. It increases core size
16219 by 88 bytes but improves compatibility and maintainability.
16220
16221 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16222 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16223 ... here. Translated to C.
16224 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16225 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16226 ... here. Translated to C.
16227 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16228 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16229 ... here. Translated to C.
16230 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16231 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16232 ... here. Translated to C.
16233 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16234 * grub-core/term/i386/pc/console.c (grub_console_cls):
16235 ... here. Translated to C.
16236 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16237 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16238 ... here. Translated to C.
16239 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16240 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16241 Translated to C.
16242 * grub-core/term/i386/pc/console.c (int10_9): New function.
16243 (grub_console_putchar): Likewise.
16244 * include/grub/i386/pc/console.h: Removed the not anymore shared
16245 functions.
16246
16247 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16248
16249 Move grub_chainloader_real_boot out of the kernel.
16250
16251 * grub-core/Makefile.am: Remove machine/loader.h.
16252 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16253 Removed.
16254 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16255 variable.
16256 (grub_relocator16_keep_a20_enabled): Likewise.
16257 (grub_relocator16_boot): Fill new variables.
16258 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16259 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16260 relocator.
16261 (grub_chainloader_unload): Likewise.
16262 (grub_chainloader_cmd): Likewise.
16263 * include/grub/i386/pc/loader.h: Removed.
16264 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16265 and esi. All initialisers updated.
16266
16267 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16268 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16269
16270 * Makefile.util.def (grub-mount): New util.
16271 * .bzrignore: Add grub-mount.
16272 * configure.ac: Check for fuse and enable grub-mount if available.
16273 * docs/man/grub-mount.h2m: New file.
16274 * util/grub-mount.c: Likewise.
16275
16276 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 * grub-core/commands/efi/fixvideo.c: Gettextize.
16279 * grub-core/commands/hashsum.c: Likewise.
16280 * grub-core/commands/i386/cmostest.c: Likewise.
16281 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16282 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16283 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16284 * grub-core/commands/lsmmap.c: Likewise.
16285 * grub-core/commands/menuentry.c: Likewise.
16286 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16287 * grub-core/commands/setpci.c: Likewise.
16288 * grub-core/loader/i386/bsd.c: Likewise.
16289 * grub-core/loader/i386/linux.c: Likewise.
16290 * util/getroot.c: Likewise.
16291 * util/grub-editenv.c: Likewise.
16292 * util/grub-fstest.c: Likewise.
16293 * util/grub-mkfont.c: Likewise.
16294 * util/grub-mkimage.c: Likewise.
16295 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16296 * util/grub-pe2elf.c: Likewise.
16297 * util/grub-probe.c: Likewise.
16298 * util/grub-setup.c: Likewise.
16299 * util/ieee1275/ofpath.c: Likewise.
16300 * util/misc.c: Likewise.
16301 * util/raid.c: Likewise.
16302
16303 2011-11-11 Robert Millan <rmh@gnu.org>
16304
16305 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16306 __attribute__((unused)) from `os_dev', which *is* being used.
16307
16308 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16309
16310 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16311 forgotten define.
16312 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16313 GRUB_IA64_DL_GOT_ALIGN.
16314 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16315 GRUB_IA64_DL_TRAMP_ALIGN.
16316
16317 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16318
16319 Replace grub_fatal with normal errors in i386 linux loader.
16320
16321 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16322 (allocate_pages): Check find_efi_mmap_size return value.
16323 (grub_e820_add_region): Return error.
16324 (grub_linux_boot): Check mmap return value.
16325
16326 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16327
16328 * grub-core/commands/acpihalt.c: Gettextized.
16329 * grub-core/commands/cacheinfo.c: Likewise.
16330 * grub-core/commands/cmp.c: Likewise.
16331 * grub-core/commands/efi/loadbios.c: Likewise.
16332 * grub-core/commands/gptsync.c: Likewise.
16333 * grub-core/commands/ieee1275/suspend.c: Likewise.
16334 * grub-core/commands/legacycfg.c: Likewise.
16335 * grub-core/commands/memrw.c: Likewise.
16336 * grub-core/commands/minicmd.c: Likewise.
16337 * grub-core/commands/parttool.c: Likewise.
16338 * grub-core/commands/time.c: Likewise.
16339 * grub-core/commands/videoinfo.c: Likewise.
16340 * grub-core/disk/geli.c: Likewise.
16341 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16342 * grub-core/disk/luks.c: Likewise.
16343 * grub-core/disk/lvm.c: Likewise.
16344 * grub-core/font/font_cmd.c: Likewise.
16345 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16346 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16347 * grub-core/gfxmenu/view.c: Likewise.
16348 * grub-core/kern/emu/hostdisk.c: Likewise.
16349 * grub-core/kern/emu/main.c: Likewise.
16350 * grub-core/kern/emu/misc.c: Likewise.
16351 * grub-core/kern/emu/mm.c: Likewise.
16352 * grub-core/kern/mips/arc/init.c: Likewise.
16353 * grub-core/kern/mips/loongson/init.c: Likewise.
16354 * grub-core/kern/partition.c: Likewise.
16355 * grub-core/lib/i386/halt.c: Likewise.
16356 * grub-core/lib/mips/arc/reboot.c: Likewise.
16357 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16358 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16359 * grub-core/loader/i386/xnu.c: Likewise.
16360 * grub-core/loader/multiboot.c: Likewise.
16361 * grub-core/net/bootp.c: Likewise.
16362 * grub-core/net/net.c: Likewise.
16363 * grub-core/normal/term.c: Likewise.
16364 * grub-core/partmap/bsdlabel.c: Likewise.
16365 * grub-core/parttool/msdospart.c: Likewise.
16366 * grub-core/term/gfxterm.c: Likewise.
16367 * grub-core/term/terminfo.c: Likewise.
16368 * grub-core/video/i386/pc/vbe.c: Likewise.
16369 * util/grub-menulst2cfg.c: Likewise.
16370 * util/grub-mkdevicemap.c: Likewise.
16371 * util/grub-mklayout.c: Likewise.
16372 * util/grub-mkrelpath.c: Likewise.
16373 * util/grub-script-check.c: Likewise.
16374 * util/ieee1275/grub-ofpathname.c: Likewise.
16375 * util/resolve.c: Likewise.
16376
16377 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16378
16379 Support %1$d syntax.
16380
16381 * tests/printf_unit_test.c: New file.
16382 * Makefile.util.def (printf_test): New test.
16383 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16384
16385 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16386
16387 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16388 fix.
16389
16390 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16393 dprintf.
16394 * grub-core/font/font.c (grub_font_load): Likewise.
16395
16396 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16397
16398 * util/grub-macho2img.c: Add comment concerning gettext.
16399 * grub-core/lib/legacy_parse.c: Likewise.
16400
16401 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16402
16403 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16404 (grub_xvasprintf): Likewise.
16405
16406 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16407
16408 Add const keyword to grub_env_get and gettextize week days.
16409
16410 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16411 (grub_read_hook_datetime): Return const char *.
16412 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16413 updated.
16414 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16415 Mark for gettext.
16416 (grub_get_weekday_name): Return const char *. Call gettext.
16417 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16418 char * and len as the argument. All users updated.
16419 (grub_script_argv_split_append): Receive const char *.
16420 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16421 * include/grub/env.h (grub_env_get): Likewise.
16422 (grub_env_read_hook_t): Return const char *.
16423 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16424 (grub_script_argv_split_append): Likewise.
16425
16426 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16427
16428 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16429
16430 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16431
16432 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16433 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16434
16435 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16436
16437 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16438 Fix prototype.
16439
16440 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16441
16442 Fix mips compilation.
16443
16444 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16445 normal decoder.
16446 (hashes): Use in embed decoder as well (for sizes).
16447 (dec_stream_header): Fix embed decompressor logic.
16448 (dec_stream_footer): Likewise.
16449
16450 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16451
16452 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16453 an error and not a fatal on unrecognised relocation types.
16454
16455 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16456
16457 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16458 Issue error rather than printf on unknown arguments.
16459
16460 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16461
16462 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16463 Make buf a const.
16464
16465 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16468 Fix module name.
16469
16470 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16471
16472 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16473 leftover debug printf.
16474
16475 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16476
16477 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16478
16479 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16480
16481 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16482 A stylistic fix.
16483
16484 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16485
16486 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16487
16488 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16489
16490 Allow all modules to perform serial IO
16491
16492 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16493 * include/grub/serial.h (grub_serial_port_configure): New inline
16494 function.
16495 (grub_serial_port_fetch): Likewise.
16496 (grub_serial_port_put): Likewise.
16497 (grub_serial_port_fini): Likewise.
16498 (grub_serial_find): New proto.
16499
16500 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 Put symlink at the end of the node and fix a potential
16503 memory corruption.
16504
16505 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16506 Make symlink into an array.
16507 (set_rockridge): Set have_symlink and alloc_dirents.
16508 (grub_iso9660_read_symlink): Use new layout.
16509 (grub_iso9660_iterate_dir): Fix memory corruption.
16510 Use new layout.
16511 (grub_iso9660_dir): Set have_symlink.
16512 (grub_iso9660_open): Likewise.
16513
16514 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16515
16516 Remove local keyword.
16517
16518 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16519 (version_test_gt): Likewise.
16520 (version_find_latest): Likewise.
16521 (gettext_printf): Likewise.
16522 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16523
16524 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16525
16526 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16527
16528 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16529
16530 Fix ZFS memory and resource leaks.
16531
16532 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16533 All users updated.
16534 Free type on exit.
16535 (fill_vdev_info): New parameter inserted. All users updated.
16536 (check_pool_label): Likewise.
16537 (scan_disk): Likewise.
16538 (scan_devices): Close non-inserted disks.
16539 (fzap_iterate): Free l.
16540 (unmount_device): Free children descripto memory.
16541
16542 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16543
16544 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16545 argument (access out of bounds).
16546
16547 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16548
16549 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16550 >= 6 drives.
16551
16552 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16553
16554 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16555 Fix declaration.
16556
16557 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16558
16559 Fix several memory leaks.
16560
16561 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16562 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16563 (grub_cpio_dir): Likewise.
16564 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16565 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16566 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16567 (grub_romfs_label): Likewise.
16568 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16569 (squash_unmount): New function.
16570 (grub_squash_dir): Fix memory leak.
16571 (grub_squash_open): Likewise.
16572 (grub_squash_read): Likewise.
16573 (grub_squash_mtime): Likewise.
16574 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16575 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16576 * util/grub-fstest.c (fstest): Likewise.
16577
16578 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16579
16580 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16581 avoid accessing beyond the array.
16582
16583 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16584
16585 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16586
16587 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16588
16589 Several AFFS fixes.
16590
16591 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16592 (GRUB_AFFS_FLAG_FFS): Removed.
16593 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16594 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16595 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16596 (grub_fshelp_node): Make block 32-bit.
16597 Add block_cache and last_block_cache.
16598 (grub_affs_read_block): Fill and use block cache.
16599 (grub_affs_read_file): Removed.
16600 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16601 boot block.
16602 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16603 safety.
16604 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16605 space.
16606 (grub_affs_close): Free block cache.
16607 (grub_affs_read): Use grub_fshelp_read_file directly.
16608
16609 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16610
16611 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16612 with no error set.
16613
16614 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16615
16616 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16617 used variable.
16618 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16619 Likewise.
16620
16621 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16624
16625 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16626 byteswap when needed.
16627
16628 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16629
16630 Fix FreeBSD compilation.
16631
16632 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16633 to avoid circular dependency.
16634 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16635 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16636 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16637
16638 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16639
16640 Fix ZFS crypto error types.
16641
16642 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16643 (grub_gcm_decrypt): Likewise.
16644 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16645 from PBKDF2.
16646
16647 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16648
16649 Illumos support.
16650
16651 * Makefile.util.def (10_illumos): New script.
16652 * configure.ac: Set COND_HOST_ILLUMOS.
16653 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16654 Support Illumos calls.
16655 (find_partition_start) [__sun__]: Likewise.
16656 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16657 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16658 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16659 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16660 device.
16661 * util/grub-probe.c (probe) [__sun__]: Do character check.
16662 * util/grub.d/10_illumos.in: New file.
16663
16664 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16665
16666 Support escaped commas in hostdisk.
16667
16668 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16669 (find_grub_drive): Use unescape_cmp.
16670 (make_device_name): Escape commas.
16671
16672 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16673
16674 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16675
16676 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16679 variable.
16680
16681 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16682
16683 Support trampoline jumps on powerpc.
16684
16685 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16686 __ia64__ path.
16687 (grub_dl_load_segments): Set mod->sz.
16688 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16689 segments.
16690 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16691 (jump): Likewise.
16692 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16693 function.
16694 (trampoline): New struct.
16695 (trampoline_template): New const.
16696 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16697 * include/grub/dl.h (grub_dl): Add sz element.
16698 [__powerpc__]: Follow __ia64__.
16699 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16700 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16701 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16702 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16703
16704 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 ZFS crypto support.
16707
16708 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16709 * grub-core/Makefile.core.def (zfscrypt): New module.
16710 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16711 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16712 it. All users updated.
16713 (grub_zfs_decrypt): New var.
16714 (grub_zfs_load_key): Likewise.
16715 (zio_checksum_functions): Add SHA256+MAC.
16716 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16717 (zio_read): Handle encrypted blocks.
16718 (zap_verify): Remove incorrect check.
16719 (fzap_iterate): Handle non-standard fzap.
16720 (zap_iterate): Likewise.
16721 (zap_iterate_u64): New function.
16722 (dnode_get_fullpath): Load keys.
16723 * grub-core/fs/zfs/zfscrypt.c: New file.
16724 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16725 (grub_crypto_ecb_encrypt): Make input const.
16726 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16727 (grub_crypto_ecb_encrypt): Make input const.
16728 (GRUB_CIPHER_AES): New macro.
16729 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16730 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16731 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16732 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16733 prefix. All users updated.
16734 (grub_zfs_add_key): New proto.
16735 (grub_zfs_decrypt): Likewise.
16736 (grub_zfs_load_key): Likewise.
16737 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16738 * util/grub-fstest.c (options): Add -K option.
16739 (argp_parser): Likewise.
16740
16741 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16742
16743 Support zle compression on ZFS.
16744
16745 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16746 (decomp_table): Add zle.
16747 * include/grub/zfs/zio.h (zio_compress): Add zle.
16748
16749 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16750
16751 Support BtrFS embedding.
16752
16753 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16754 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16755 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16756 * util/grub-setup.c (setup): Use fs embedding if available.
16757 Add additional sanity check.
16758
16759 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 * util/grub-install.in: Fix condition for config_opt.
16762
16763 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16764
16765 Support third redundancy strip on raidz3.
16766
16767 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16768 Return error on singularity. All users updated.
16769 (read_device): Don't stop on 3rd failure on raidz3.
16770
16771 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16772
16773 Support case-insensitive ZFS subvolumes.
16774
16775 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16776 All users updated.
16777 (zap_hash): Likewise.
16778 (name_cmp): New function.
16779 (zap_leaf_array_equal): New parameter case_insensitive.
16780 All users updated.
16781 (zap_leaf_lookup): Likewise.
16782 (fzap_lookup): Likewise.
16783 (zap_lookup): Likewise.
16784 (dnode_get_path): New parameter case_insensitive. Retrieve case
16785 sensitiviness of a volume. All users updated.
16786 (dnode_get_fullpath): New parameter case_insensitive.
16787 All users updated.
16788 (grub_zfs_dir): Set info.case_insensitiveness.
16789
16790 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16791
16792 Support second redundancy strip on raidz(2,3).
16793
16794 * grub-core/fs/zfs/zfs.c (powx): New array.
16795 (powx_inv): Likewise.
16796 (poly): New const.
16797 (xor_out): New function.
16798 (gf_mul): Likewise.
16799 (recovery): Likewise.
16800 (read_device): Use second redundancy strip.
16801
16802 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16803
16804 Use a power of generator representation of GF(256) multiplication group
16805 to save space time and complexity.
16806
16807 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16808 (raid6_table2): Likewise.
16809 (powx): New array.
16810 (powx_inv): Likewise.
16811 (poly): New const.
16812 (grub_raid_block_mul): Replace with ...
16813 (grub_raid_block_mulx): ...this.
16814 (grub_raid6_init_table): Rewritten.
16815 (grub_raid6_recover): Use power of generator representation.
16816
16817 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16818
16819 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16820 for the right device.
16821
16822 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16823
16824 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16825 expected by grub-mkimage and it's more clear since there is no implicit
16826 padding.
16827
16828 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16829
16830 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16831 disk.
16832 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16833
16834 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16835
16836 * util/grub-mkrescue.in: Fix handling xorriso option.
16837
16838 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16839
16840 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16841 NULL.
16842
16843 2011-11-03 crocket <crockabiscuit@gmail.com>
16844
16845 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16846
16847 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16848
16849 XZ CRC64 and SHA256 support.
16850
16851 * Makefile.util.def (libgrubmods): Add crc64.c.
16852 * grub-core/Makefile.core.def (crc64): New module.
16853 * grub-core/lib/crc64.c: New file.
16854 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16855 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16856 Fix the type.
16857 (MAX_HASH_SIZE): New define.
16858 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16859 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16860 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16861 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16862 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16863 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16864 Handle non-crc32 hashes.
16865 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16866 (dec_stream_header): Handle non-crc32 hashes.
16867 (dec_stream_footer): Likewise.
16868 (dec_block_header): Likewise.
16869 (dec_main): Likewise.
16870 (xz_dec_init): Likewise.
16871 (xz_dec_reset): Likewise.
16872 (xz_dec_end): Likewise.
16873 * util/import_gcry.py: Add CRC64 line.
16874
16875 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16876
16877 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16878 as well.
16879
16880 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16881
16882 Make reiserfs label retrieval similar to other *_label functions.
16883
16884 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16885 (REISERFS_MAX_LABEL_LENGTH): Removed.
16886 (REISERFS_LABEL_OFFSET): Likewise.
16887 (grub_reiserfs_label): Rewritten.
16888
16889 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16890
16891 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16892 field.
16893
16894 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16895
16896 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16897
16898 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16899
16900 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16901 drive failure on both raidz and raidz2.
16902
16903 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16904
16905 Fix RAIDZ(2) for >= 5 devices.
16906
16907 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16908 asize argument. All users updated.
16909
16910 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16911
16912 Fix RAIDZ(2).
16913
16914 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16915 (fill_vdev_info_real): Set ashift.
16916 (read_device): Rewrite RAIDZ part based on reverse engineering.
16917
16918 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16919
16920 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16921 don't report potentially unavialiable fields in debug output.
16922 (find_path): Fix double-free and memory leak.
16923
16924 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 Read label on UFS1.
16927
16928 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16929 (grub_ufs_fs): Always set .label.
16930
16931 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 Use shifts in UFS.
16934
16935 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16936 (grub_ufs_data): New field log2_blksz.
16937 (grub_ufs_read_file): Use shifts.
16938 (grub_ufs_mount): Check block size and logarithm it.
16939
16940 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16941
16942 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16943 long symlinks.
16944
16945 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 Handle symlinks and long names on tar and cpio.
16948
16949 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16950 (ATTR_FILE): Likewise.
16951 (ATTR_DIR): Likewise.
16952 (ATTR_LNK): Likewise.
16953 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16954 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16955 L and K entries.
16956 (grub_cpio_mount): Zero-fill data.
16957 (handle_symlink): New function.
16958 (grub_cpio_dir): Handle symlinks.
16959 (grub_cpio_open): Likewise.
16960 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16961
16962 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 Fix iso9660 filename limitations and fix memory leaks.
16965
16966 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16967 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16968
16969 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16970
16971 Fix JFS file name length limitations.
16972
16973 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16974 (grub_jfs_diropen): Fix maximum filename length.
16975 (grub_jfs_getent): Fix filename length.
16976 (grub_jfs_lookup_symlink): Fix size checks.
16977
16978 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16979
16980 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16981 string.
16982
16983 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16984
16985 Leverage BFS implementation to read AFS.
16986
16987 * Makefile.util.def (libgrubmods): Add afs.c.
16988 * grub-core/Makefile.core.def (afs): New module
16989 * grub-core/fs/afs.c: New file.
16990 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16991
16992 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16993
16994 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16995
16996 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16997
16998 * grub-core/fs/bfs.c: Run indent.
16999
17000 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17001
17002 BFS implementation based on the specification.
17003
17004 * grub-core/fs/bfs.c: New file.
17005 * Makefile.util.def (libgrubmods): Add bfs.c.
17006 * grub-core/Makefile.core.def (bfs): New module.
17007
17008 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17009
17010 * util/grub-fstest.c (cmd_cp): Clarify error message.
17011 (cmd_cmp): Likewise.
17012
17013 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17014
17015 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17016 and befs_be.
17017
17018 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 Remove afs and befs because of copyright problem.
17021
17022 * grub-core/fs/afs.c: Removed.
17023 * grub-core/fs/afs_be.c: Removed.
17024 * grub-core/fs/befs.c: Removed.
17025 * grub-core/fs/befs_be.c: Removed.
17026 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17027 * grub-core/Makefile.core.def (afs): Removed.
17028 (afs_be): Likewise.
17029 (befs): Likewise.
17030 (befs_be): Likewise.
17031
17032 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17033
17034 Prefer rockridge over Joliet.
17035
17036 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17037 to ...
17038 (set_rockridge): ... here.
17039 (grub_iso9660_mount): Check rockridge on the primary label when
17040 discovering. Ignore Joliet if Rockridge is present.
17041
17042 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 Use shifts in nilfs2.
17045
17046 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17047 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17048 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17049 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17050 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17051 (grub_nilfs2_entries_per_block): Replaced with ...
17052 (grub_nilfs2_log_entries_per_block_log): ... this.
17053 (grub_nilfs2_blocks_per_group): Replaced with ...
17054 (grub_nilfs2_blocks_per_group_log): ... this.
17055 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17056 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17057 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17058 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17059 (grub_nilfs2_palloc_entry_offset): Replaced ...
17060 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17061 (grub_nilfs2_dat_translate): Use shifts.
17062 (grub_nilfs2_read_inode): Likewise.
17063 (GRUB_MOD_INIT): Ensure that logs are correct.
17064
17065 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17066
17067 Use shifts in minix filesystem.
17068
17069 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17070 (GRUB_MINIX_ZONE2SECT): Likewise.
17071 (grub_minix_data): Replace block_size with log_block_size.
17072 (grub_minix_read_file): Use shifts.
17073 (grub_minix_mount): Check block size and take a logarithm.
17074
17075 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17076
17077 Use shifts in squash4.
17078
17079 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17080 (squash_mount): Check block size and take logarithm.
17081 (direct_read): Use shifts.
17082
17083 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17084
17085 Correct befs block counting logic.
17086
17087 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17088 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17089 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17090 (grub_afs_read_inode): Use block_shift.
17091 (RANGE_SHIFT): New definition.
17092 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17093 unexpected conditions, use shifts and appropriate types.
17094 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17095
17096 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17097
17098 * grub-core/disk/raid.c (scan_devices): Check partition.
17099 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17100
17101 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17102
17103 Support BFS (befs) UUID.
17104
17105 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17106 (grub_afs_small_data_element_header): New struct.
17107 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17108 (grub_afs_read_attribute) [MODE_BFS]: New function.
17109 (grub_afs_iterate_dir): Allocate for complete inode.
17110 (grub_afs_mount): Likewise.
17111 (grub_afs_uuid) [MODE_BFS]: New function.
17112 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17113
17114 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17115
17116 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17117 (zfs_unmount): Fix memory leak.
17118
17119 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17120
17121 Support NTFS reparse points.
17122
17123 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17124 (symlink_descriptor): New struct.
17125 (grub_ntfs_read_symlink): New function.
17126 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17127 (grub_ntfs_open): Likewise.
17128
17129 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17130
17131 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17132
17133 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17134
17135 fstest xnu_uuid subcommand.
17136
17137 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17138 grub-core/commands/xnu_uuid.c.
17139 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17140 (fstest): Handle xnu_uuid.
17141 (options): Document xnu_uuid.
17142 (argp_parser): Parse xnu_uuid.
17143
17144 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17145
17146 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17147 -l argument. Add newline at the end if printing.
17148 (GRUB_MOD_INIT): Document -l.
17149
17150 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17151
17152 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17153
17154 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17155
17156 ZFS multi-device and version 33 support.
17157
17158 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17159 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17160 (grub_zfs_data): Add multidev-ice-related fields.
17161 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17162 (dva_get_offset): Make dva const.
17163 (zfs_fetch_nvlist): New function.
17164 (fill_vdev_info_real): Likewise.
17165 (fill_vdev_info): Likewise.
17166 (check_pool_label): Likewise.
17167 (scan_disk): Likewise.
17168 (scan_devices): Likewise.
17169 (read_device): Likewise.
17170 (read_dva): Likewise.
17171 (zio_read_gang): Use read_dva.
17172 (zio_read_data): Likewise.
17173 (zap_leaf_lookup): Add missing endian conversion.
17174 (zap_verify): Add missing endian conversion. All users updated.
17175 (fzap_lookup): Likewise.
17176 (fzap_iterate): Likewise.
17177 (dnode_get_path): Handle SA bonus.
17178 (nvlist_find_value): Make input const. All users updated.
17179 (unmount_device): New function.
17180 (zfs_unmount): Use unmount_device.
17181 (zfs_mount): Use scan_disk.
17182 (zfs_mtime): New function.
17183 (grub_zfs_open): Handle system attributes.
17184 (fill_fs_info): Likewise.
17185 (grub_zfs_dir): Likewise.
17186 (grub_zfs_fs): Add mtime.
17187 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17188 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17189 (SA_MTIME_OFFSET): Likewise.
17190 (SA_SYMLINK_OFFSET): Likewise.
17191 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17192 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17193 (fstest): Support zfsinfo.
17194 (argp_parser): Likewise.
17195
17196 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17197
17198 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17199 error.
17200
17201 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17202
17203 ZFS fixes.
17204
17205 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17206 sharing the same block. Iterate over correct number of indices.
17207 (dnode_get_path): Handle symlinks correctly.
17208
17209 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17210
17211 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17212
17213 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17214
17215 Read label on HFS+.
17216
17217 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17218 (grub_hfsplus_btree_search): Fix types.
17219 (grub_hfsplus_label): Implement.
17220
17221 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17222
17223 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17224
17225 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17226
17227 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17228
17229 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17230
17231 Fix symlink handling on iso9660.
17232
17233 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17234 All users updated.
17235 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17236 (grub_iso9660_read_symlink): Moved most of code ...
17237 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17238
17239 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17240
17241 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17242 Use union to avoid breaking strict-aliasing rules.
17243
17244 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17245
17246 Support multi-extent iso files.
17247
17248 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17249 Add node.
17250 (grub_fshelp_node): Revamp. All users updated.
17251 (FLAG_*): New enum.
17252 (read_node): New function.
17253 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17254 All users updated.
17255 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17256 (get_node_size): New function.
17257 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17258 entries.
17259 Fix memory leak on . and ..
17260 (grub_iso9660_read): Use read_node.
17261 (grub_iso9660_close): Free node.
17262
17263 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17264
17265 Fix tar 4G limit and handle paths containing dot.
17266
17267 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17268 (canonicalize): New function.
17269 (grub_cpio_find_file): Use canonicalize. Store offs in
17270 grub_disk_addr_t.
17271 (grub_cpio_dir): Use grub_disk_addr_t.
17272 (grub_cpio_open): Likewise.
17273
17274 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17275
17276 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17277
17278 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17279 unused flags.
17280 (grub_squash_inode): Add long_file and block_size.
17281 (grub_squash_cache_inode): New struct.
17282 (grub_squash_dirent): Make types into enum.
17283 (SQUASH_TYPE_LONG_REGULAR): New type.
17284 (grub_squash_frag_desc): Add field size.
17285 (SQUASH_BLOCK_FLAGS): New enum.
17286 (grub_squash_data): Use grub_squash_cache_inode.
17287 (grub_fshelp_node): Make ino_chunk 64-bit.
17288 (read_chunk): Minor argument change. All users updated.
17289 (squash_mount): Use correct le_to_cpu.
17290 (grub_squash_open): Handle LONG_REGULAR.
17291 (direct_read): New function.
17292 (grub_squash_read_data): Handle blocks correctly.
17293
17294 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17295
17296 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17297
17298 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17299
17300 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17301
17302 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17303
17304 Fix 2G limit on ZFS.
17305
17306 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17307 types.
17308 (uberblock_verify): Likewise.
17309 (dmu_read): Likewise.
17310 (grub_zfs_read): Likewise. Remove invalid cast.
17311
17312 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17313
17314 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17315 (grub_jfs_blkno): Fix incorrect shift.
17316 (grub_jfs_read_file): Use more appropriate types.
17317
17318 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17319
17320 Support triple indirect on minix2 and minix3.
17321
17322 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17323 Declare triple_indir_zone.
17324 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17325 indirect.
17326
17327 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17328
17329 Minix FS fixes.
17330
17331 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17332 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17333 Rename ctime to mtime. All users updated.
17334 (grub_minix_get_file_block): Fix types and double indirect computations.
17335
17336 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17337
17338 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17339 if no label is found.
17340 (grub_fat_iterate_dir): Fix file size type.
17341 (grub_fat_iterate_dir): Likewise.
17342
17343 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17344
17345 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17346 save some space.
17347 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17348 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17349
17350 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17351
17352 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17353
17354 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17355
17356 * util/import_gcry.py: Accept space between # and include.
17357
17358 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17359
17360 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17361
17362 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17363
17364 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17365
17366 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17367 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17368 yylex_strncpy.
17369 * grub-core/script/yylex.l: Add fine-grained #pragma.
17370
17371 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17372
17373 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17374 New inline function.
17375 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17376 Likewise.
17377 (memset) [GRUB_UTIL]: Likewise.
17378 (memcmp) [GRUB_UTIL]: Likewise.
17379
17380 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17381
17382 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17383 inline function rather than a define.
17384
17385 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17386
17387 * util/grub-setup.c: Add missing include.
17388
17389 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17390
17391 * util/ieee1275/grub-ofpathname.c: Add missing include.
17392
17393 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17394
17395 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17396 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17397 Likewise.
17398
17399 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17400
17401 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17402 grub_memcmp usage.
17403
17404 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17405
17406 * util/grub-install.in: Add datarootdir as per automake manual
17407 suggestion.
17408 * util/grub-mknetdir.in: Likewise.
17409
17410 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17411
17412 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17413 suggestion.
17414 * util/grub.d/10_kfreebsd.in: Likewise.
17415 * util/grub.d/10_linux.in: Likewise.
17416 * util/grub.d/10_netbsd.in: Likewise.
17417 * util/grub.d/10_windows.in: Likewise.
17418 * util/grub.d/20_linux_xen.in: Likewise.
17419
17420 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17421
17422 Remove redundant grub_kernel_image_size.
17423
17424 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17425 _edata and _start.
17426 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17427 the small code. It moves it only by few bytes but simplifies the code.
17428 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17429 _start.
17430 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17431 (grub_kernel_image_size): Removed.
17432 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17433 (grub_kernel_image_size): Removed.
17434 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17435 compiled with Apple toolchain.
17436 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17437 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17438 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17439 (grub_total_module_size): Likewise.
17440 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17441 Removed.
17442 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17443 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17444 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17445 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17446 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17447 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17448 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17449 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17450 Removed.
17451 (grub_total_module_size): Removed.
17452 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17453 (image_targets): Likewise.
17454 Set .compressed_size to no field on sparc.
17455 (generate_image): Remove kernel_image_size handling.
17456
17457 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17458
17459 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17460 NULL pointer dereference.
17461
17462 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17463
17464 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17465 done with a dedicated section.
17466
17467 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17468 Ensure the correct position of boot_path.
17469 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17470 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17471 other fields.
17472 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17473 * include/grub/boot.h: Removed. All references removed.
17474 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17475 Removed.
17476 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17477
17478 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17479
17480 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17481 name.
17482
17483 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17484
17485 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17486
17487 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17488
17489 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17490 Don't add the bogus brackets.
17491
17492 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17493
17494 ExFAT support.
17495
17496 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17497 * grub-core/Makefile.core.def (exfat): New module.
17498 * grub-core/fs/exfat.c: New file.
17499 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17500 (GRUB_FAT_ATTR_*): Make into an enum.
17501 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17502 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17503 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17504 (GRUB_FAT_MAXFILE): Removed.
17505 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17506 (grub_current_fat_bpb_t): New type.
17507 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17508 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17509 (grub_fat_dir_node_t): New type.
17510 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17511 (fat_log2) [MODE_EXFAT]: Removed.
17512 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17513 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17514 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17515 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17516 (grub_fat_label) [MODE_EXFAT]: New function.
17517 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17518 reserved_first_sector to 0.
17519
17520 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17521
17522 Move grub_reboot out of the kernel.
17523
17524 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17525 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17526 * grub-core/lib/efi/reboot.c: ... here.
17527 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17528 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17529 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17530 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17531 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17532 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17533 * grub-core/lib/ieee1275/reboot.c: ... here.
17534 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17535 * grub-core/lib/mips/arc/reboot.c: ... here.
17536 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17537 * grub-core/lib/mips/loongson/reboot.c: ...here.
17538 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17539 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17540 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17541 * include/grub/i386/reboot.h: New file.
17542 * include/grub/mips/loongson/ec.h: Fix includes.
17543 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17544 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17545 * grub-core/lib/i386/reboot.c: New file.
17546
17547 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17548
17549 Make grub_prefix into module to fix the arbitrary limit and save
17550 some space.
17551
17552 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17553 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17554 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17555 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17556 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17557 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17558 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17559 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17560 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17561 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17562 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17563 * include/grub/ia64/efi/kernel.h: Removed.
17564 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17565 (grub_prefix): Removed.
17566 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17567 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17568 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17569 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17570 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17571 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17572 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17573 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17574 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17575 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17576 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17577 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17578 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17579 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17580 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17581 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17582 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17583 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17584 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17585 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17586 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17587 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17588 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17589 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17590 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17591 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17592 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17593 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17594 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17595 from module.
17596 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17597 prefix_end.
17598 (image_targets): Likewise.
17599 (generate_image): Put prefix as a module.
17600
17601 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17602
17603 Replace grub_module_iterate with FOR_MODULES.
17604
17605 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17606 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17607 (grub_efi_modules_addr): ...this.
17608 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17609 (grub_efi_init): Set grub_modbase.
17610 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17611 (grub_modbase): New variable.
17612 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17613 (grub_modbase): New variable.
17614 (grub_machine_init): Set grub_modbase.
17615 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17616 (grub_modbase): New variable.
17617 (grub_machine_init): Set grub_modbase.
17618 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17619 (grub_modbase): New variable.
17620 (grub_machine_init): Set grub_modbase.
17621 * grub-core/kern/main.c (grub_module_iterate): Remove.
17622 (grub_modules_get_end): Use grub_modbase.
17623 (grub_load_modules): Use FOR_MODULES.
17624 (grub_load_config): Likewise.
17625 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17626 (grub_modbase): New variable.
17627 (grub_machine_init): Set grub_modbase.
17628 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17629 (grub_modbase): New variable.
17630 (grub_machine_init): Set grub_modbase.
17631 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17632 Removed.
17633 (grub_modbase): New variable.
17634 (grub_machine_init): Set grub_modbase.
17635 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17636 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17637 (grub_module_iterate): Likewise.
17638 (grub_modbase): New variable declaration.
17639 (FOR_MODULES): New macro.
17640
17641 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17642
17643 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17644 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17645
17646 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17647
17648 Fix few obvious type discrepancies.
17649
17650 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17651 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17652 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17653 variable.
17654 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17655 and connected types.
17656 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17657 offset.
17658 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17659 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17660 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17661 and connected types.
17662
17663 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17664
17665 Fix python 3.x incompatibilities.
17666
17667 * gentpl.py: Put brackets around print strings.
17668 * util/import_gcry.py: Open explicitly as utf-8.
17669 Use in instead of has_key.
17670
17671 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17672
17673 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17674 (GRUB_XFS_INO_AGBITS): Make into inline function.
17675 (GRUB_XFS_INO_INOINAG): Likewise.
17676 (GRUB_XFS_INO_AG): Likewise.
17677 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17678 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17679 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17680 (GRUB_XFS_EXTENT_SIZE): Likewise.
17681 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17682 (GRUB_XFS_NEXT_DIRENT): Likewise.
17683 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17684 (grub_xfs_read_file): Fix offset type.
17685
17686 2011-10-15 Robert Millan <rmh@gnu.org>
17687
17688 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17689
17690 2011-10-15 Robert Millan <rmh@gnu.org>
17691
17692 Fix build problem on FreeBSD and GNU/kFreeBSD.
17693
17694 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17695
17696 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17697
17698 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17699
17700 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17701 types.
17702 (grub_hfsplus_btree_recoffset): Likewise.
17703 (grub_hfsplus_btree_recptr): Likewise.
17704 (grub_hfsplus_find_block): Likewise.
17705 (grub_hfsplus_btree_search): Likewise.
17706 (grub_hfsplus_read_block): Likewise.
17707 (grub_hfsplus_read_file): Likewise.
17708 (grub_hfsplus_mount): Likewise.
17709 (grub_hfsplus_btree_iterate_node): Likewise.
17710 (grub_hfsplus_btree_search): Likewise.
17711 (grub_hfsplus_iterate_dir): Likewise.
17712 (grub_hfsplus_read): A small code simplification.
17713
17714 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17715
17716 * grub-core/kern/emu/hostdisk.c
17717 (convert_system_partition_to_system_disk): Don't assume that children
17718 of mapper nodes are mapper nodes.
17719
17720 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17721
17722 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17723 * include/grub/misc.h (grub_isxdigit): New function.
17724 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17725 switched to grub_isxdigit.
17726 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17727 number starting with a letter.
17728
17729 2011-10-09 Robert Millan <rmh@gnu.org>
17730
17731 LVM support for FreeBSD and GNU/kFreeBSD.
17732
17733 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17734 GNU/kFreeBSD.
17735 (LVM_DEV_MAPPER_STRING): Move from here ...
17736 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17737 * util/getroot.c: Include `<grub/util/lvm.h>'.
17738 (grub_util_get_dev_abstraction): Enable
17739 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17740 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17741 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17742 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17743 support it.
17744 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17745 GNU/kFreeBSD.
17746 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17747 when LVM abstraction is required for ${GRUB_DEVICE}.
17748
17749 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17750
17751 Add support for LZO compression in GRUB:
17752 - import of minilzo library,
17753 - LZO decompression for btrfs,
17754 - lzop files decompression.
17755
17756 * grub-core/io/lzopio.c: New file.
17757 * grub-core/lib/adler32.c: Likewise.
17758 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17759 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17760 * grub-core/lib/minilzo/minilzo.c: Likewise.
17761 * grub-core/lib/minilzo/minilzo.h: Likewise.
17762 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17763 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17764 grub-core/lib/minilzo/minilzo.c to common.
17765 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17766 cflags in cppflags.
17767 * grub-core/Makefile.core.def (btrfs): Likewise.
17768 * grub-core/Makefile.core.def (lzopio): New module.
17769 (adler32): Likewise.
17770 * grub-core/fs/btrfs.c: Include minilzo.h.
17771 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17772 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17773 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17774 (grub_btrfs_lzo_decompress): New function.
17775 (grub_btrfs_extent_read): Add support for LZO compression type.
17776 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17777 (GRUB_USHRT_MAX): Likewise.
17778 (GRUB_UINT_MAX): Likewise.
17779 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17780 (UINT_MAX): Likewise.
17781 (CHAR_BIT): Likewise.
17782 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17783 grub-core/lib/posix_wrap/limits.h
17784 (UCHAR_MAX): Likewise.
17785 * include/grub/file.h (grub_file_filter_id): New compression filter
17786 GRUB_FILE_FILTER_LZOPIO.
17787 * include/grub/file.h (grub_file_filter_id): Set
17788 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17789 * include/grub/types.h (grub_get_unaligned16): New function.
17790 (grub_get_unaligned32): Likewise.
17791 (grub_get_unaligned64): Likewise.
17792 * util/import_gcry.py (cryptolist): Add adler32.
17793
17794 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17795
17796 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17797 in perspective decreases the complexity of build system and fixes
17798 compilation right now.
17799
17800 2011-10-01 Ales Nesrsta <starous@volny.cz>
17801
17802 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17803 (fixed problem related to using UHCI with coreboot).
17804
17805 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17806
17807 * gentpl.py: Use Autogen macros so that the output template file
17808 (Makefile.tpl) size is reduced.
17809
17810 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17811
17812 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17813 extra_dist.
17814
17815 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17816
17817 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17818 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17819
17820 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17821
17822 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17823 _fullpath.
17824
17825 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17826
17827 Remove extra declaration of sleep for mingw32.
17828
17829 * util/misc.c (sleep) [__MINGW32__]: Removed.
17830 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17831
17832 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17833
17834 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17835 type and packname.
17836 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17837 Resurrected.
17838 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17839 (grub_netbsd_btinfo_bootwedge): New struct.
17840 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17841 New function.
17842 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17843
17844 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17845
17846 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17847 loader.
17848
17849 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17850
17851 Fix incorrect identifiers in bash-completion.
17852
17853 * util/bash-completion.d/grub-completion.bash.in
17854 (_grub_mkpasswd-pbkdf2): Rename to ...
17855 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17856 (_grub_script-check): Rename to ...
17857 (_grub_script_check): ... this. All users updated.
17858
17859 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17860
17861 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17862 Return 0 if disk isn't biosdisk.
17863
17864 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17865
17866 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17867 on NetBSD.
17868 * Makefile.util.def (grub-fstest): Likewise.
17869
17870 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17871
17872 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17873 Get sector size from disk label.
17874
17875 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17876
17877 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17878 */README* as well as README*.
17879 Reported by: Axel Beckert.
17880
17881 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17882
17883 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17884 case of less than 256 MiB of RAM.
17885
17886 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17887
17888 * grub-core/commands/wildcard.c (make_regex): Handle @.
17889
17890 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17891
17892 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17893
17894 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17895
17896 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17897 AC_LANG_CONFTEST macros.
17898
17899 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17900
17901 Add grub-fstest option to uncompress data for commands.
17902
17903 * util/grub-fstest.c (uncompress): New var.
17904 (options): New option -u.
17905
17906 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17907
17908 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17909 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17910
17911 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17912
17913 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17914 file type was not recognized correctly (not gzip or corrupted).
17915
17916 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17917
17918 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17919 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17920
17921 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17922
17923 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17924 loongson.
17925 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17926 video_radeon_fuloong2e.
17927 * grub-core/video/radeon_fuloong2e.c: New file.
17928 * include/grub/video.h (grub_video_id_t): Add new ID
17929 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17930
17931 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17932
17933 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17934 define.
17935 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17936 that PRID matches the detected subplatform and reset the subplatform
17937 if it doesn't.
17938
17939 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17940
17941 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17942
17943 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17944
17945 Fix PCI iterating on functions >= 4.
17946
17947 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17948 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17949 Removed.
17950 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17951 (grub_pci_read): Fix bitmask.
17952 (grub_pci_read_word): Likewise.
17953 (grub_pci_read_byte): Likewise.
17954 (grub_pci_write): Likewise.
17955 (grub_pci_write_word): Likewise.
17956 (grub_pci_write_byte): Likewise.
17957
17958 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17959
17960 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17961 can still be specified in TARGET_CFLAGS)
17962
17963 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17964
17965 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17966
17967 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17968 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17969 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17970 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17971 (FULOONG): Rename to ...
17972 (FULOONG2F): ... this. All users updated.
17973 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17974 (machtype_fuloong2f_str): ... this.
17975 (machtype_fuloong2e_str): New string.
17976 Check for machtype_fuloong2e_str.
17977 * grub-core/loader/mips/linux.c (loongson_machtypes)
17978 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17979 * grub-core/term/serial.c (loongson_defserial)
17980 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17981 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17982 loongson_defserial.
17983 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17984 Rename to ...
17985 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17986 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17987 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17988 to IMAGE_FULOONG2F_FLASH. All users updated.
17989 (image_targets): Rename images.
17990 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17991
17992 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17993
17994 Make enable of disk cache statistics code configurable.
17995
17996 * configure.ac: --enable-cache-stats added.
17997 * config.h.in (DISK_CACHE_STATS): New define.
17998 * grub-core/Makefile.core.def (cacheinfo): New command.
17999 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18000 * grub-core/commands/cacheinfo.c: New file.
18001 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18002 moved to cacheinfo.c.
18003 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18004 debug code.
18005 * include/grub/disk.h: Likewise.
18006
18007 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18008
18009 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18010 * grub-core/Makefile.am: Likewise.
18011
18012 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18013
18014 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18015 non-zero pull.
18016
18017 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18018
18019 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18020 All users updated.
18021 (grub_jfs_lookup_symlink): Use correct starting inode.
18022
18023 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18024
18025 * util/grub-setup.c (main): Add missing gcry initialisation.
18026
18027 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 Don't accept text modes on EFI when booting Linux.
18030
18031 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18032 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18033
18034 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18035 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18036
18037 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18038 use of "/path/.." as in grub-install for EFI as well as handling
18039 symlinks correctly.
18040 Fixes Debian bug #637768.
18041
18042 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18043
18044 * util/grub-probe.c: Remove duplicate #include.
18045
18046 2011-08-10 Robert Millan <rmh@gnu.org>
18047
18048 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18049
18050 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18051 function.
18052 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18053 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18054
18055 2011-08-03 Robert Millan <rmh@gnu.org>
18056
18057 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18058 la_array as packed.
18059 Reported by: Zachary Bedell
18060
18061 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18062
18063 * configure.ac: The Loongson port requires grub-mkfont due to its
18064 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18065 be built.
18066
18067 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18068
18069 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18070 processing arguments (otherwise help2man fails when GRUB has not yet
18071 been installed).
18072
18073 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18074
18075 New script grub-mkstandalone.
18076
18077 * Makefile.util.def (grub-mkstandalone): New script.
18078 * docs/man/grub-mkstandalone.h2m: New file.
18079 * util/grub-mkstandalone.in: Likewise.
18080
18081 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18082
18083 Support ATA disks with 4K sectors.
18084
18085 * include/grub/ata.h (grub_ata): New member log_sector_size.
18086 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18087 (grub_ata_identify): Read sector size.
18088 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18089
18090 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18091
18092 * util/grub-install.in: Don't use uhci outside of x86.
18093
18094 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18095
18096 * util/grub-mkrescue.in: Add missing quotes.
18097
18098 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18099
18100 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18101 dereference.
18102
18103 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18104
18105 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18106
18107 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18108
18109 * include/grub/video.h: add missing EXPORT_FUND on
18110 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18111
18112 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18113
18114 * include/grub/mips/kernel.h: Fix define conflict.
18115
18116 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18117
18118 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18119 all four ways.
18120
18121 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18122
18123 Preferred resolution detection for VBE.
18124
18125 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18126 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18127 the Flat Panel extension, in line with the X.org VESA driver.
18128 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18129 New function.
18130 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18131 (grub_vbe_bios_read_edid): Likewise.
18132 (grub_vbe_get_preferred_mode): Likewise.
18133 (grub_video_vbe_setup): When the mode is "auto", try to get the
18134 preferred mode from VBE, and use the largest mode that is no larger
18135 than the preferred mode (some BIOSes expose a preferred mode that is
18136 not in their mode list!). If this fails, fall back to 640x480 as a
18137 safe conservative choice.
18138 (grub_video_vbe_get_edid): New function.
18139 (grub_video_vbe_adapter): Add get_edid.
18140 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18141 (struct grub_video_adapter): Add get_edid.
18142 (grub_video_edid_checksum): Add prototype.
18143 (grub_video_edid_preferred_mode): Likewise.
18144 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18145 structure.
18146
18147 * grub-core/commands/videoinfo.c (print_edid): New function.
18148 (grub_cmd_videoinfo): Print EDID if available.
18149
18150 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18151 is more appropriate on a wider range of platforms than 640x480.
18152 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18153 documentation.
18154
18155 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18156
18157 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18158
18159 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18160
18161 * po/POTFILES.in: Regenerate.
18162
18163 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18164
18165 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18166 incorrect memory usage.
18167
18168 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18169
18170 * util/grub-install.in: Source grub-mkconfig_lib.
18171
18172 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18173
18174 Remove getroot.c from core on emu platform.
18175
18176 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18177 kern/emu/raid.c.
18178 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18179 useless.
18180 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18181 * util/getroot.c (get_win32_path): ... here.
18182 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18183 * util/getroot.c (fini_libzfs): ... here.
18184 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18185 * util/getroot.c (grub_get_libzfs_handle): ... here.
18186 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18187 Moved from here...
18188 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18189 * grub-core/kern/emu/misc.c
18190 (grub_make_system_path_relative_to_its_root): Moved from here...
18191 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18192 * grub-core/kern/emu/getroot.c: Moved from here ...
18193 * util/getroot.c: ... here. All users updated.
18194 * grub-core/kern/emu/raid.c: Moved from here ...
18195 * util/raid.c: ... here. All users updated.
18196
18197 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18198
18199 * po/POTFILES.in: Regenerate.
18200
18201 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18202
18203 Fix compilation on GNU/Linux.
18204
18205 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18206 Disable geli.
18207 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18208 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18209 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18210
18211 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18212 2011-07-07 Michael Gorven <michael@gorven.za.net>
18213 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18214
18215 LUKS and GELI support.
18216
18217 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18218 grub-core/disk/luks.c, grub-core/disk/geli.c,
18219 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18220 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18221 grub-core/lib/arg.c.
18222 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18223 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18224 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18225 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18226 (grub-bin2h): Add libgcry.a.
18227 (grub-mkimage): Likewise.
18228 (grub-mkrelpath): Likewise.
18229 (grub-script-check): Likewise.
18230 (grub-editenv): Likewise.
18231 (grub-mkpasswd-pbkdf2): Likewise.
18232 (grub-pe2elf): Likewise.
18233 (grub-fstest): Likewise.
18234 (grub-mkfont): Likewise.
18235 (grub-mkdevicemap): Likewise.
18236 (grub-probe): Likewise.
18237 (grub-ofpath): Likewise.
18238 (grub-mklayout): Likewise.
18239 (example_unit_test): Likewise.
18240 (grub-menulst2cfg): Likewise.
18241 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18242 * grub-core/Makefile.core.def (cryptodisk): New module.
18243 (luks): Likewise.
18244 (geli): Likewise.
18245 * grub-core/disk/AFSplitter.c: New file.
18246 * grub-core/disk/cryptodisk.c: Likewise.
18247 * grub-core/disk/geli.c: Likewise.
18248 * grub-core/disk/luks.c: Likewise.
18249 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18250 grub_util_is_lvm.
18251 (grub_util_get_dm_abstraction): New function.
18252 (grub_util_follow_gpart_up): Likewise.
18253 (grub_util_get_geom_abstraction): Likewise.
18254 (grub_util_get_dev_abstraction): Use new functions.
18255 (grub_util_pull_device): Pull GELI and LUKS.
18256 (grub_util_get_grub_dev): Handle LUKS and GELI.
18257 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18258 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18259 (follow_geom_up): Removed.
18260 (grub_util_fd_seek): New function.
18261 (open_device): Use grub_util_fd_seek.
18262 (nread): Rename to ..
18263 (grub_util_fd_read): ... this. All users updated.
18264 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18265 (grub_crypto_cbc_decrypt): Likewise.
18266 (grub_crypto_hmac_write): Likewise.
18267 (grub_crypto_hmac_buffer): Likewise.
18268 (grub_password_get): Extend to util.
18269 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18270 New member modname.
18271 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18272 * include/grub/cryptodisk.h: New file.
18273 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18274 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18275 LUKS and GELI.
18276 (grub_util_follow_gpart_up): New proto.
18277 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18278 (grub_util_fd_read): Likewise.
18279 (grub_cryptodisk_cheat_mount): Likewise.
18280 (grub_util_cryptodisk_print_uuid): Likewise.
18281 (grub_util_get_fd_sectors): Likewise.
18282 * util/grub-fstest.c (mount_crypt): New var.
18283 (fstest): Mount crypto if requested.
18284 (options): New option -C.
18285 (argp_parser): Parse -C.
18286 (main): Init and fini gcry.
18287 * util/grub-install.in: Support cryptodisk install.
18288 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18289 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18290 cryptodisk.
18291 (prepare_grub_to_access_device): Likewise.
18292 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18293 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18294 (probe_cryptodisk_uuid): New function.
18295 (probe_abstraction): Likewise.
18296 (probe): Use new functions.
18297 * util/import_gcry.py: Create Makefile.utilgcry.def.
18298 Add modname member.
18299
18300 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18301
18302 Lazy device scanning.
18303
18304 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18305 (grub-setup): Remove util/raid.c.
18306 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18307 * grub-core/disk/lvm.c (scan_depth): New variable.
18308 (grub_lvm_iterate): Rescan if necessary.
18309 (find_lv): New function based on grub_lvm_open.
18310 (grub_lvm_open): Use find_lv. Rescan on error.
18311 (is_node_readable): New function.
18312 (is_lv_readable): Likewise.
18313 (grub_lvm_scan_device): Skip already found disks.
18314 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18315 Stop if searched device is found and readable.
18316 * grub-core/disk/raid.c (inscnt): New variable.
18317 (scan_depth): Likewise.
18318 (scan_devices): New function based on grub_raid_register. Abort if
18319 looked for device is found.
18320 (grub_raid_iterate): Rescan if needed.
18321 (find_array): NEw function based on -grub_raid_open.
18322 (grub_raid_open): Use find_array and rescan.
18323 (insert_array): Set became_readable_at.
18324 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18325 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18326 New function.
18327 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18328 (grub_util_pull_device): New function.
18329 (grub_util_get_grub_dev): Call grub_util_pull_device.
18330 * util/raid.c: Moved to ..
18331 * grub-core/kern/emu/raid.c: ... here.
18332 (grub_util_raid_getmembers): New parameter "bootable".
18333 All users updated. Support 1.x.
18334 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18335 All users updated.
18336 * include/grub/disk.h (grub_disk_pull_t): New enum.
18337 (grub_disk_dev): Change iterate prototype.
18338 All users updated.
18339 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18340 New proto.
18341 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18342 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18343 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18344 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18345 All users updated.
18346 * include/grub/util/raid.h: Removed.
18347
18348 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18349
18350 * po/POTFILES.in: Regenerate.
18351
18352 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18353
18354 Unify sparc init with other ieee1275.
18355
18356 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18357 instead of kern/sparc64/ieee1275/init.c.
18358 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18359 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18360 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18361 grub/machine/kernel.h.
18362 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18363 (grub_claim_heap) [__sparc__]: Use sparc version.
18364 (grub_machine_init): Moved args parsing to
18365 (grub_parse_cmdline): ...this.
18366 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18367 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18368 New definition.
18369 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18370
18371 Move BOOTP to separate file.
18372
18373 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18374 * grub-core/net/net.c: Move all BOOTP functions to
18375 * grub-core/net/bootp.c: ... here.
18376
18377 Use frame interface on PXE.
18378
18379 * grub-core/Makefile.core.def (pxecmd): Removed.
18380 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18381 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18382 * grub-core/i386/pc/pxe.c: Moved from here ...
18383 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18384 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18385 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18386
18387 EFI network support.
18388
18389 * grub-core/Makefile.core.def (efinet): New module.
18390 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18391 here...
18392 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18393 All users updated.
18394 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18395 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18396 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18397 * grub-core/net/drivers/efi/efinet.c: New file.
18398 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18399 (grub_efi_net_config): New extern var.
18400
18401 Various cleanups and bugfixes.
18402
18403 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18404 error.
18405 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18406 disk declared as partition.
18407 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18408 leak on failure.
18409 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18410 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18411 (grub_debug_zalloc): Likewise.
18412 (grub_debug_realloc): Likewise.
18413 (grub_debug_memalign): Likewise.
18414 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18415 Check that target is IPv4.
18416 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18417 local-mac-address as fallback.
18418 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18419 memory leak.
18420 * grub-core/net/ip.c (ipchksum): Rename to ...
18421 (grub_net_ip_chksum): ... this. All users updated.
18422 (grub_net_recv_ip_packets): Special handling for DHCP.
18423 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18424
18425 Unify prefix handling
18426
18427 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18428 (grub_machine_get_bootlocation): ... this.
18429 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18430 (grub_machine_get_bootlocation): ... this.
18431 (grub_prefix): New variable.
18432 (prefix): Removed.
18433 (root_dev): New variable.
18434 (dir): Likewise.
18435 (main): Use new variables.
18436 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18437 Revamped into ...
18438 (grub_machine_get_bootlocation): ... this.
18439 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18440 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18441 (grub_machine_get_bootlocation): ... this.
18442 (grub_machine_set_prefix): Removed.
18443 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18444 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18445 Revamped into ...
18446 (grub_machine_get_bootlocation): ... this.
18447 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18448 (grub_set_prefix_and_root): ... this. All users updated.
18449 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18450 Revamped into ...
18451 (grub_machine_get_bootlocation): ... this.
18452 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18453 (grub_machine_get_bootlocation): New proto.
18454 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18455
18456 Less intrusive and more reliable seek on network implementation.
18457
18458 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18459 (grub_file_seek): Don't call grub_file_net_seek.
18460 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18461 (grub_net_fs_read_real): .. this.
18462 (grub_net_seek_real): Use net->offset.
18463 (grub_net_fs_read): Seek if necessary.
18464
18465 Unify IEEE1275 netwotk config with the other platforms.
18466
18467 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18468 New variable.
18469 (grub_machine_get_bootlocation): Support network.
18470 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18471 Support type and device parsing.
18472 (grub_ieee1275_get_device_type): New function.
18473 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18474 into ...
18475 (grub_ieee1275_net_config_real): ... this.
18476 (grub_ofnet_probecards): Removed.
18477 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18478 * include/grub/ieee1275/ofnet.h: Removed.
18479 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18480 extern var.
18481 (grub_ieee1275_get_device_type): New function.
18482
18483 Unify network device closing across platforms and make more robust.
18484
18485 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18486 grub_grubnet_fini.
18487 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18488 already.
18489 * grub-core/net/net.c (grub_net_network_level_interface_register):
18490 Update num_ifaces.
18491 (grub_net_card_unregister): Close all interfaces.
18492 (receive_packets): Don't poll if no iterfaces are registered.
18493 Open if necessary.
18494 (grub_net_fini_hw): New function.
18495 (grub_net_restore_hw): Likewise.
18496 (fini_hnd): New variable.
18497 (GRUB_MOD_INIT): Register preboot hook.
18498 (GRUB_MOD_FINI): Run and unregister preboot hook.
18499
18500 Poll network cards when idle.
18501
18502 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18503 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18504 * grub-core/net/net.c (receive_packets): Save last poll time.
18505 (grub_net_poll_cards_idle_real): New function.
18506 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18507 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18508 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18509
18510 Rename ofnet interfaces.
18511
18512 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18513 (grub_ofnet_findcards): Use ofnet_%s names.
18514
18515 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18516
18517 Cleanup socket opening.
18518
18519 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18520 (grub_net_fs_close): Likewise.
18521 (grub_net_fs_read_real): Use eof member.
18522 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18523 (+grub_net_udp_close): New inline function.
18524
18525 * include/grub/net/tftp.h: Moved to the top of ...
18526 * grub-core/net/tftp.c: ... here.
18527 * include/grub/net/ip.h: Moved mostly to the top of ...
18528 * grub-core/net/ip.c: ... here.
18529 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18530 * grub-core/net/ethernet.c: ... here.
18531
18532 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18533
18534 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18535 FS name.
18536
18537 * include/grub/net/ip.h (ipv4_ini): Removed.
18538 (ipv4_fini): Likewise.
18539
18540 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18541 (grub_net_send_ip_packets): Likewise.
18542
18543 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18544
18545 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18546 grub_read_cmos prototype.
18547
18548 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18549
18550 VGA text support in qemu-mips
18551
18552 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18553 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18554 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18555 text.
18556 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18557 * grub-core/kern/vga_init.c: ... this.
18558 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18559 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18560 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18561 Adjust.
18562 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18563 GRUB_MACHINE_PCI_IO_BASE.
18564
18565 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18566
18567 MIPS qemu flash support.
18568
18569 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18570 magic.
18571 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18572 (grub_machine_init): Probe memory if its size isn't known.
18573 * util/grub-mkimage.c (image_targets): Add flash targets.
18574 (generate_image): Handle flash targets.
18575
18576 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18577
18578 MIPS qemu at_keyboard support.
18579
18580 * gentpl.py (videoinkernel): Add qemu-mips.
18581 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18582 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18583 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18584 modules.
18585 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18586 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18587 * grub-core/term/serial.c (grub_serial_register)
18588 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18589
18590 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18591
18592 CMOS support on sparc.
18593
18594 * gentpl.py (cmos): Add powerpc and sparc.
18595 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18596 powerpc and sparc.
18597 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18598 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18599 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18600 grub_set_datetime_cmos.
18601 * grub-core/lib/ieee1275/cmos.c: New file.
18602 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18603 (find_rtc): Set no_ieee1275_rtc on error.
18604 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18605 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18606 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18607 fail. Move value to argument. All users updated
18608 (grub_cmos_write): Likewise.
18609 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18610 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18611 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18612 grub_get_datetime_cmos and grub_set_datetime_cmos.
18613
18614 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18615
18616 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18617 sourcing grub-mkconfig_lib.
18618 * util/update-grub_lib.in: Likewise.
18619 * util/grub.d/00_header.in: Likewise.
18620 * util/grub.d/10_hurd.in: Likewise.
18621 * util/grub.d/10_kfreebsd.in: Likewise.
18622 * util/grub.d/10_linux.in: Likewise.
18623 * util/grub.d/10_netbsd.in: Likewise.
18624 * util/grub.d/10_windows.in: Likewise.
18625 * util/grub.d/20_linux_xen.in: Likewise.
18626 * util/grub.d/30_os-prober.in: Likewise.
18627
18628 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18629
18630 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18631 default_bg_color rather than black.
18632 (grub_gfxterm_fullscreen): Likewise.
18633 (grub_gfxterm_background_color_cmd): Save new background color in
18634 default_bg_color.
18635
18636 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18637
18638 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18639
18640 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18641
18642 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18643 mismerge.
18644
18645 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18646
18647 Chainloading on coreboot support.
18648
18649 * grub-core/Makefile.core.def (chain): Add coreboot.
18650 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18651
18652 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18653
18654 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18655 if it happens.
18656
18657 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18658
18659 Implement time command.
18660
18661 * grub-core/Makefile.core.def (time): New module.
18662 * grub-core/commands/time.c: New file.
18663 * grub-core/script/parser.y: Remove "time" keyword.
18664 * grub-core/script/yylex.l: Likewise.
18665
18666 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18667
18668 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18669
18670 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18671
18672 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18673 when handling leftovers.
18674
18675 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18676
18677 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18678 so that help2man doesn't fail.
18679
18680 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18683 type in pointers on sparc64.
18684 (get_card_packet): Likewise.
18685
18686 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18687
18688 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18689 with `*'.
18690 (grub_cmd_videoinfo): Fetch current video mode.
18691
18692 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18693
18694 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18695 because of underlying system restrictions.
18696
18697 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18698
18699 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18700 necessary.
18701
18702 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18703
18704 Coreboot video support.
18705
18706 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18707 (vbe): Likewise.
18708 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18709 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18710 here ...
18711 * grub-core/kern/i386/int.S: ... here.
18712 * grub-core/video/i386/pc/vbe.c: Updated includes.
18713 * grub-core/video/i386/pc/vga.c: Likewise.
18714 * include/grub/i386/coreboot/memory.h
18715 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18716 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18717 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18718 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18719 Disable interrupts.
18720 * include/grub/i386/pc/vga.h: Removed. All users updated.
18721
18722 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18723
18724 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18725 definitions for dprintf.
18726 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18727
18728 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18729
18730 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18731 prototype.
18732 (get_card_packet): Likewise.
18733
18734 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18735
18736 Display the path of the file when file is not found
18737
18738 * grub-core/fs/fat.c: Display the filename when file is not found.
18739 * grub-core/fs/fshelp.c: Likewise.
18740 * grub-core/fs/hfs.c: Likewise.
18741 * grub-core/fs/jfs.c: Likewise.
18742 * grub-core/fs/minix.c: Likewise.
18743 * grub-core/fs/ufs.c: Likewise.
18744 * grub-core/fs/btrfs.c: Likewise.
18745 * grub-core/commands/i386/pc/play.c: Likewise.
18746
18747 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18748
18749 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18750 pointer checks before calling grub_free().
18751 * grub-core/commands/wildcard.c (match_devices): Likewise.
18752 * grub-core/commands/wildcard.c (match_files): Likewise.
18753 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18754 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18755 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18756 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18757 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18758 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18759 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18760 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18761 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18762
18763 2011-06-25 Patrick <p55@mailinator.com>
18764
18765 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18766
18767 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18768
18769 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18770 (grub_pxe_send): Likewise.
18771 (GRUB_MOD_INIT): Fix types.
18772
18773 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18774
18775 * grub-core/io/xzio.c: Fix code style issues
18776
18777 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18778 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18779
18780 Network infrastructure.
18781 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18782
18783 * include/grub/net/arp.h: New file.
18784 * include/grub/net/device.h: Likewise.
18785 * include/grub/net/ethernet.h: Likewise.
18786 * include/grub/net/ip.h: Likewise.
18787 * include/grub/net/netbuff.h: Likewise.
18788 * include/grub/net/tftp.h: Likewise.
18789 * include/grub/net/udp.h: Likewise.
18790 * include/grub/ieee1275/ofnet.h: Likewise.
18791 * include/grub/emu/export.h: Likewise.
18792 * include/grub/net.h: Likewise.
18793 * grub-core/net/arp.c: Likewise.
18794 * grub-core/net/ethernet.c: Likewise.
18795 * grub-core/net/ip.c: Likewise.
18796 * grub-core/net/udp.c: Likewise.
18797 * grub-core/net/tftp.c: Likewise.
18798 * grub-core/net/netbuff.c: Likewise.
18799 * grub-core/net/net.c: Likewise.
18800 * grub-core/net/drivers/emu/emunet.c: Likewise.
18801 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18802 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18803 export.h.
18804 * grub-core/Makefile.core.def (net): New module.
18805 (tftp): Likewise.
18806 (ofnet): Likewise.
18807 (emunet): Likewise.
18808 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18809 network protocols.
18810 * grub-core/kern/device.c (grub_net_open) : New variable.
18811 (grub_device_open): Handle network device.
18812 (grub_device_close): Likewise.
18813 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18814 (grub_grubnet_fini): Likewise.
18815 (grub_file_seek): Seek in network device.
18816 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18817 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18818 network root.
18819 (grub_machine_fini): Call grub_grubnet_fini.
18820 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18821 network.
18822 (grub_ieee1275_get_aliasdevname): New function.
18823 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18824 Add unofficial Solaris network info.
18825 (grub_multiboot_make_mbi): Likewise.
18826 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18827 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18828 * include/grub/device.h (grub_fs): Removed.
18829 * include/grub/err.h (grub_err_t): Add network-related values.
18830 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18831 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18832 (grub_ieee1275_get_aliasdevname): New proto.
18833 * include/grub/net.h: Rewritten.
18834
18835 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18836
18837 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18838 names.
18839
18840 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18841
18842 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18843 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18844 it truncates the output.
18845 Reported by: Ximin Luo.
18846
18847 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18848
18849 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18850
18851 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18852
18853 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18854 partmap before abstraction.
18855
18856 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18857
18858 * util/grub-mkconfig_lib.in: Add missing quotes.
18859
18860 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18861
18862 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18863 old method if mountinfo would return /dev/root and /dev/root doesn't
18864 exist.
18865
18866 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 ZFS zlib support
18869
18870 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18871 (decomp_table): Add zlib entries.
18872 (zio_read): USe 8 bits for compression function rather than 3.
18873 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18874
18875 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18876
18877 * grub-core/disk/ahci.c: Add missing license statements.
18878 * grub-core/fs/romfs.c: Likewise.
18879 * grub-core/lib/ia64/setjmp.S: Likewise.
18880 * grub-core/loader/i386/pc/freedos.c: Likewise.
18881 * grub-core/loader/ia64/efi/linux.c: Likewise.
18882 * grub-core/video/colors.c: Likewise.
18883 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18884
18885 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18886
18887 AHCI support.
18888
18889 * grub-core/Makefile.core.def (ata_pthru): Removed.
18890 (ahci): New module.
18891 (pata): Likewise.
18892 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18893 on unload.
18894 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18895 readwrite.
18896 (grub_hdparm_do_check_powermode_cmd): Likewise.
18897 (grub_hdparm_do_smart_cmd): Likewise.
18898 (grub_hdparm_set_val_cmd): Likewise.
18899 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18900 * grub-core/disk/ahci.c: New file.
18901 * grub-core/disk/ata.c: Factor out the low-level part into ...
18902 * grub-core/disk/pata.c: ... here.
18903 * grub-core/disk/ata_pthru.c: Contents moved to ...
18904 * grub-core/disk/pata.c: ... here.
18905 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18906 (grub_scsi_iterate): Use grub_scsi_names.
18907 (grub_scsi_open): Likewise.
18908 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18909 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18910 (grub_ata_regs_t): New struct.
18911 (grub_disk_ata_pass_through_parms): Likewise.
18912 (grub_ata_device): Renamed to ...
18913 (grub_ata): ... this.
18914 (grub_ata_dev): New struct.
18915 Removed all low-level inline functions.
18916 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18917 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18918 iterate hooks and open. All users updated.
18919 * util/grub-install.in: Handle AHCI disk module.
18920
18921 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18922
18923 Add support for DRI and RSTn markers in JPEG files.
18924
18925 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18926 (JPEG_MARKER_RST0): Likewise.
18927 (JPEG_MARKER_RST1): Likewise.
18928 (JPEG_MARKER_RST2): Likewise.
18929 (JPEG_MARKER_RST3): Likewise.
18930 (JPEG_MARKER_RST4): Likewise.
18931 (JPEG_MARKER_RST5): Likewise.
18932 (JPEG_MARKER_RST6): Likewise.
18933 (JPEG_MARKER_RST7): Likewise.
18934 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18935 (grub_jpeg_decode_dri): New function.
18936 (grub_jpeg_decode_sos): Move image data related part into
18937 grub_jpeg_decode_data function.
18938 (grub_jpeg_decode_data): New function.
18939 (grub_jpeg_reset): New function.
18940 (grub_jpeg_decode_jpeg): Handle new markers.
18941
18942 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18943
18944 * util/ieee1275/ofpath.c (check_sas): Close fd.
18945 (main): Free of_path.
18946 Reported by: David Volgyes <dvolgyes>.
18947
18948 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18949
18950 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18951 Reported by: David Volgyes <dvolgyes>.
18952
18953 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18954
18955 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18956 file after stat.
18957 Reported by: David Volgyes <dvolgyes>.
18958
18959 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18960
18961 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18962
18963 Reported by: David Volgyes <dvolgyes>.
18964
18965 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18966
18967 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18968 Prevent memory leak.
18969
18970 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18971
18972 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18973 (main): Close file.
18974 Reported by: David Volgyes <dvolgyes>.
18975
18976 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18977
18978 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18979 to continue if allocation is failed.
18980
18981 Reported by: David Volgyes <dvolgyes>.
18982
18983 2011-06-23 David Volgyes <dvolgyes>
18984
18985 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18986 dereference.
18987
18988 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18989
18990 Fix spurious warning.
18991
18992 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18993 (acorn_partition_map_find): Use .bin member.
18994
18995 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18996
18997 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18998 /dev/root as a valid device.
18999
19000 2011-06-23 Jim Meyering <meyering@redhat.com>
19001
19002 Avoid NULL deref in grub_device_open.
19003
19004 * grub-core/kern/device.c (grub_device_open): Don't dereference
19005 a NULL pointer upon failed grub_env_get.
19006
19007 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19008
19009 Support non-512B sectors and agglomerate reads.
19010
19011 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19012 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19013 (disk_io_guid): Removed.
19014 (make_devices): Locate solely by BlockIO.
19015 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19016 (grub_efidisk_read): Use read_blocks.
19017 (grub_efidisk_write): Use write_blocks.
19018 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19019 log_sector_size.
19020 (get_safe_sectors): Handle non-512B sectors.
19021 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19022 sectors.
19023 (grub_biosdisk_write): Handle non-512B sectors.
19024 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19025 (grub_scsi_read): Remove special non-512B block handling (now handled
19026 one level up).
19027 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19028 and do sanity checks.
19029 (grub_disk_adjust_range): Handle non-512B sectors.
19030 (transform_sector): New function.
19031 (grub_disk_read_small): Likewise.
19032 (grub_disk_read): Rewritten.
19033 (grub_disk_write): Handle non-512B sectors.
19034 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19035 log_sector_size.
19036 (open_device): Use log_sector_size.
19037 (grub_util_biosdisk_read): Likewise.
19038 (grub_util_biosdisk_write): Likewise.
19039 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19040 non-512B sectors.
19041 (pc_partition_map_embed): Likewise.
19042 * include/grub/disk.h (grub_disk): New field log_sector_size.
19043 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19044 (GRUB_DISK_CACHE_BITS): Increased to 6.
19045 * util/grub-fstest.c (fstest): New command testload.
19046 (argp_parser): Likewise.
19047
19048 2011-06-16 Robert Millan <rmh@gnu.org>
19049
19050 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19051 `ata' driver on kernel of FreeBSD 9.
19052
19053 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19054 (get_ataraid_disk_name): New functions.
19055 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19056 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19057 get_ataraid_disk_name() and get_ada_disk_name().
19058
19059 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19060
19061 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19062 input format.
19063
19064 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19065
19066 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19067 `ftp.gnu.org' for `alpha.gnu.org'.
19068
19069 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19070
19071 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19072 partitions under /dev/disk/by-id/.
19073
19074 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19075
19076 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19077 after ten consecutive open failures. Scanning all the way up to
19078 10000 is excessive and can cause serious performance problems in
19079 some configurations.
19080 Fixes Ubuntu bug #787461.
19081
19082 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19083
19084 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19085 opening new one.
19086
19087 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19088 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19089
19090 Don't stat devices unless we have to.
19091
19092 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19093 dir == /dev/mapper.
19094 (grub_guess_root_device): Use already known os_dev if possible.
19095 * grub-core/kern/emu/hostdisk.c
19096 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19097 if device is known to be a dm one.
19098
19099 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19100
19101 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19102 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19103 Reported by: Pawel Tecza.
19104
19105 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19106
19107 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19108 (lsefisystab): Likewise.
19109 (lssal): Likewise.
19110 (lsefimmap): Likewise.
19111 (hdparm): Enable on qemu-mips.
19112 (setjmp): Add ia64 nodist.
19113 (serial): Simplify tags.
19114
19115 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19116
19117 * Makefile.util.def (grub-ofpathname): Install manual page.
19118
19119 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19120
19121 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19122
19123 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19124
19125 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19126
19127 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19128
19129 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19130 into dprintf.
19131
19132 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19133
19134 Use full 64-bit division.
19135
19136 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19137 (grub_divmod64): ... this.
19138 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19139 version.
19140
19141 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19142
19143 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19144 `source'.
19145
19146 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19147
19148 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19149 to avoid accidents when debugging with 'sh -x'.
19150 * grub-core/gensyminfo.sh.in: Likewise.
19151 * tests/example_scripted_test.in: Likewise.
19152 * tests/grub_cmd_regexp.in: Likewise.
19153 * tests/grub_script_blanklines.in: Likewise.
19154 * tests/grub_script_dollar.in: Likewise.
19155 * tests/grub_script_expansion.in: Likewise.
19156 * tests/grub_script_final_semicolon.in: Likewise.
19157 * tests/partmap_test.in: Likewise.
19158 * tests/util/grub-shell-tester.in: Likewise.
19159 * tests/util/grub-shell.in: Likewise.
19160
19161 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19162
19163 Move gfxmenu color handling to video, so that gfxterm can use it
19164 too.
19165
19166 * grub-core/gfxmenu/named_colors.c: Move to ...
19167 * grub-core/video/colors.c: ... here. Rename
19168 grub_gui_get_named_color to grub_video_get_named_color.
19169 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19170 * grub-core/video/colors.c (my_isxdigit): ... here.
19171 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19172 Move to ...
19173 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19174 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19175 to ...
19176 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19177
19178 * include/grub/gui.h (grub_gui_color_t): Move to ...
19179 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19180 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19181 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19182 * include/grub/gui.h (grub_gui_map_color): Move to ...
19183 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19184 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19185 to ...
19186 * include/grub/video.h (grub_video_get_named_color): ... here.
19187 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19188 * include/grub/video.h (grub_video_parse_color): ... here.
19189
19190 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19191 video/colors.c.
19192 (gfxmenu): Remove gfxmenu/named_colors.c.
19193 (video) [videomodules]: Add video/colors.c.
19194
19195 Add a background_color command.
19196
19197 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19198 function.
19199 (GRUB_MOD_INIT): Register background_color command.
19200 (GRUB_MOD_FINI): Unregister background_color command.
19201 (redraw_screen_rect): Allow blend/replace of text layer to be
19202 controlled independently from whether there is a background bitmap.
19203 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19204 changing bitmap.
19205
19206 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19207
19208 Patch BPB in ntldr and chainloader --bpb.
19209
19210 * grub-core/fs/fat.c: Include grub/fat.h.
19211 (grub_fat_bpb): Moved to ...
19212 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19213 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19214 grub/ntfs.h.
19215 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19216 Moved from here...
19217 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19218 here.
19219 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19220 New function.
19221 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19222 (GRUB_MOD_INIT): Show --bpb.
19223 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19224 * grub-core/normal/main.c (features): New variable.
19225 (GRUB_MOD_INIT): Set feature_* variables.
19226 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19227 proto.
19228 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19229
19230 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19231
19232 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19233 for cleanness.
19234
19235 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19236
19237 FreeDOS direct loading support.
19238
19239 * docs/grub.texi (Supported OS): Add FreeDOS.
19240 * grub-core/Makefile.core.def (freedos): New module.
19241 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19242 variable.
19243 (grub_relocator16_boot): Handle %ebx.
19244 * grub-core/lib/i386/relocator16.S: Likewise.
19245 * grub-core/loader/i386/pc/freedos.c: New file.
19246
19247 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19248
19249 Long Linux command line support.
19250
19251 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19252 (maximal_cmdline_size): New variable.
19253 (allocate_pages): Use maximal_cmdline_size.
19254 (grub_cmd_linux): Set and use maximal_cmdline_size.
19255 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19256 (allocate_pages): Use maximal_cmdline_size.
19257 (grub_cmd_linux): Set and use maximal_cmdline_size.
19258 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19259 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19260 and cmdline_size.
19261
19262 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19263 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19264
19265 Improve devmapper support
19266
19267 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19268 (grub_util_is_lvm): New function.
19269 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19270 than lvm if not dmraid.
19271 Handle mapped md nodes.
19272 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19273 (grub_util_device_is_mapped): ... this. Make always available. All users
19274 updated.
19275 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19276 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19277 dmraid nodes.
19278 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19279
19280 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19281
19282 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19283
19284 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19285 * grub-core/modinfo.sh.in: New file.
19286 * grub-core/Makefile.core.def (modinfo.sh): New script.
19287 * util/grub-mknetdir.in: Use modinfo.sh.
19288 * util/grub-mkrescue.in: Likewise.
19289
19290 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19291
19292 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19293 Fix potential usage of Elf32 instead of Elf64 when compiling on
19294 32-bit architecture. Add endianness macros while on it.
19295
19296 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19297
19298 Use mipsel- rather than mips- in directories involving mipsel ports to
19299 allow both endiannesses coexist.
19300
19301 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19302 mips. All conditions adjusted.
19303 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19304 variable.
19305 * util/grub-install.in: Adjust conditions to take renaming into account.
19306 * util/grub-mkimage.c (image_targets): Likewise. New target
19307 mips-qemu_mips-elf for bigendian mips.
19308
19309 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19310
19311 Avoid unnecessary copying on MIPS.
19312
19313 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19314 early if src == dest.
19315 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19316 compression is none.
19317
19318 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19319
19320 Reduce memory footprint on SGI by putting modules before the kernel
19321 as opposed to after.
19322
19323 * grub-core/Makefile.core.def (kernel): Increase linking address.
19324 (none_decompress): Likewise.
19325 (xz_decompress): Likewise.
19326 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19327 address.
19328 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19329 layout change.
19330 (grub_arch_modules_addr): New function.
19331 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19332 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19333 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19334 here.
19335 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19336 (grub_total_modules_size): ... this. Make global.
19337 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19338 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19339 New definition.
19340 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19341 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19342 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19343 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19344 * util/grub-mkimage.c (image_target_desc): New flag
19345 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19346 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19347 (generate_image): Handle images with modules before kernel.
19348
19349 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19350
19351 Prevent potential loss of memory map by overwrite on qemu-mips.
19352
19353 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19354 Save ram size in $s4.
19355 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19356 All users changed to grub_arch_memsize.
19357 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19358 Loongson.
19359 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19360 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19361 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19362 external variable.
19363
19364 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19365
19366 * .bzrignore: Remove grub-dumpbios.
19367
19368 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19369
19370 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19371 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19372 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19373 existing options which append).
19374 * docs/grub.texi (Simple configuration): Document new options.
19375 Reported by: Ian Jackson. Fixes Debian bug #617538.
19376
19377 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19378
19379 * util/grub-fstest.c (cmd_cat): New function.
19380 (fstest): Handle CMD_CAT.
19381 (options): Add cat.
19382 (argp_parser): Handle cat.
19383
19384 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19385
19386 * Makefile.util.def (grub-bin2h): Don't install.
19387 * docs/man/grub-bin2h.h2m: Remove.
19388
19389 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19390
19391 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19392 place.
19393
19394 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19395
19396 Reenable qemu-mips port.
19397
19398 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19399 Fix small arc bug while on it.
19400 * gentpl.py: Handle qemu_mips.
19401 * grub-core/Makefile.am: Likewise.
19402 * grub-core/Makefile.core.def: Likewise.
19403 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19404 inappropriate includes.
19405 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19406 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19407 * grub-core/kern/main.c (grub_modules_get_end)
19408 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19409 * grub-core/kern/mips/qemu-mips: Moved to ..
19410 * grub-core/kern/mips/qemu_mips: ... this.
19411 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19412 (grub_machine_init): Call terminfo_init and serial_init.
19413 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19414 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19415 New variable.
19416 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19417 parameter passing.
19418 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19419 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19420 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19421 * include/grub/mips/qemu_mips/cmos.h: New file.
19422 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19423 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19424 Removed.
19425 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19426 Use correct mips-style address.
19427 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19428 (GRUB_TICKS_PER_SECOND): Removed.
19429 (grub_get_rtc): Likewise.
19430 (grub_cpu_idle): Likewise.
19431 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19432 New definition.
19433 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19434 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19435 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19436 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19437 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19438 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19439 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19440 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19441
19442 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19443
19444 SGI ARCS port.
19445
19446 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19447 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19448 platforms.
19449 * configure.ac: New target mips-arc.
19450 * gentpl.py: Likewise.
19451 * grub-core/Makefile.am: Likewise.
19452 * grub-core/Makefile.core.def: Likewise.
19453 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19454 (none_decompress): Likewise.
19455 (lsdev): New module.
19456 (datetime): Use lib/arc/datetime.c on ARC.
19457 (part_dvh): New module.
19458 * grub-core/commands/arc/lsdev.c: New file.
19459 * grub-core/disk/arc/arcdisk.c: Likewise.
19460 * grub-core/kern/mips/arc/init.c: Likewise.
19461 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19462 aligned addresses.
19463 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19464 support.
19465 (grub_arch_dl_relocate_symbols): Likewise.
19466 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19467 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19468 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19469 platforms.
19470 * grub-core/lib/arc/datetime.c: New file.
19471 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19472 pci.h on non-loongson.
19473 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19474 (grub_linux_boot): Set unused registers to 0.
19475 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19476 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19477 * grub-core/mmap/mips/uppermem.c: ...here.
19478 * grub-core/partmap/dvh.c: New file.
19479 * grub-core/term/arc/console.c: Likewise.
19480 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19481 (grub_terminfo_set_current): Add terminal "arc".
19482 (grub_terminfo_readkey): Support ARC sequences.
19483 * include/grub/arc/arc.h: New file.
19484 * include/grub/arc/console.h: Likewise.
19485 * include/grub/disk.h (grub_disk_dev_id): Add
19486 GRUB_DISK_DEVICE_ARCDISK_ID.
19487 * include/grub/mips/arc/kernel.h: New file.
19488 * include/grub/mips/arc/memory.h: Likewise.
19489 * include/grub/mips/arc/time.h: Likewise.
19490 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19491 * include/grub/mips/kernel.h (grub_halt): ... here.
19492 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19493 here...
19494 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19495 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19496 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19497 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19498 proto.
19499 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19500 from here ...
19501 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19502 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19503 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19504 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19505 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19506 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19507 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19508 (grub_phys_addr_t): Moved from here ...
19509 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19510 (grub_vtop): Moved from here ...
19511 * include/grub/mips/memory.h (grub_vtop): ... here.
19512 (grub_map_memory): Moved from here ...
19513 * include/grub/mips/memory.h (grub_map_memory): ... here.
19514 (grub_unmap_memory): Moved from here ...
19515 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19516 (grub_machine_mmap_iterate): Moved from here ...
19517 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19518 (grub_mmap_get_lower): Moved from here ...
19519 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19520 (grub_mmap_get_upper): Moved from here ...
19521 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19522 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19523 here ...
19524 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19525 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19526 here ...
19527 * include/grub/mips/time.h (grub_get_rtc): ... here.
19528 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19529 here ...
19530 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19531 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19532 here ...
19533 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19534 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19535 definition.
19536 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19537 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19538 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19539 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19540 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19541 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19542 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19543 (GRUB_MACHINE_LINK_ADDR): Likewise.
19544 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19545 to 6.
19546 * util/grub-install.in: Run dvhtool on ARC.
19547 * util/grub-mkimage.c (image_targets): Add mips-arc.
19548 (generate_image): Handle ECOFF output for mips-arc.
19549
19550 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19551
19552 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19553 blocks.
19554
19555 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19556
19557 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19558 after enabling port.
19559
19560 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19561
19562 Skip incorrect USB devices.
19563
19564 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19565 configcnt == 0.
19566 * include/grub/usb.h (grub_usb_err_t): New enum value
19567 GRUB_USB_ERR_BADDEVICE.
19568
19569 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19570
19571 Fuloong video init support.
19572
19573 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19574 well.
19575 (grub_vga_read_arx): New function.
19576 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19577 definition.
19578 (framebuffer): New members io, mmioptr and mmiobase.
19579 (read_sis_cmd): New function.
19580 (write_sis_cmd): Likewise.
19581 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19582 rather than 640x400.
19583 * grub-core/video/sis315_init.c: New file.
19584
19585 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19586
19587 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19588 non-loongson.
19589 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19590 to grub_dl_register_symbol.
19591
19592 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19593
19594 Fix compilation errors.
19595
19596 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19597 potentially unused.
19598 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19599 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19600 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19601 to loongson machines.
19602
19603 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19604
19605 Several FS mtime support.
19606
19607 * grub-core/fs/affs.c (grub_affs_time): New struct.
19608 (grub_affs_file): New field mtime.
19609 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19610 type. Removed 'size'. New field 'di'. All users updated.
19611 (grub_affs_mount): Simplify checsum checking.
19612 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19613 (grub_affs_dir): Handle mtime.
19614 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19615 (grub_cpio_dir): Likewise.
19616 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19617 (grub_hfs_filerec): New field mtime.
19618 (grub_hfs_dir): Handle mtime.
19619 (grub_hfs_mtime): New function.
19620 (grub_hfs_fs): Register grub_hfs_mtime.
19621 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19622 (grub_iso9660_dir): New field mtime.
19623 (grub_fshelp_node): New field dirent.
19624 (iso9660_to_unixtime): New function.
19625 (iso9660_to_unixtime2): Likewise.
19626 (grub_iso9660_read_symlink): Use node->dirent.
19627 (grub_iso9660_iterate_dir): Likewise.
19628 (grub_iso9660_dir): Set mtime.
19629 (grub_iso9660_mtime): New function.
19630 (grub_iso9660_fs): Register grub_iso9660_mtime.
19631 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19632 (grub_jfs_inode): New fields atime, ctime and mtime.
19633 (grub_jfs_dir): Set mtime.
19634 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19635 * grub-core/fs/ntfs.c (list_file): Set mtime.
19636 (grub_ntfs_dir): Likewise.
19637 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19638 (grub_reiserfs_iterate_dir): Set mtime.
19639 (grub_reiserfs_dir): Likewise.
19640 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19641 (grub_fshelp_node): Likewise.
19642 (grub_sfs_iterate_dir): Set mtime.
19643 (grub_sfs_dir): Likewise.
19644 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19645 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19646 (grub_xfs_inode): New fields atime, mtime, ctime.
19647 (grub_xfs_dir): Set mtime.
19648 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19649 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19650 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19651
19652 Support UDF symlinks.
19653
19654 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19655 (grub_ufs_read_symlink): New function. All users updated.
19656
19657 Check amiga partmap checksum.
19658
19659 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19660 (grub_amiga_partition): Likewise.
19661 (amiga_partition_map_checksum): New function.
19662 (amiga_partition_map_iterate): Check checksum.
19663
19664 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19665
19666 ROMFS support.
19667
19668 * Makefile.util.def (libgrubmods.a): Add romfs.
19669 * grub-core/Makefile.core.def (romfs): New module.
19670 * grub-core/fs/romfs.c: New file.
19671
19672 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19673
19674 Squashfs v4 support.
19675
19676 * Makefile.util.def (libgrubmods.a): Add squash4.
19677 * grub-core/Makefile.core.def (squash4): New module.
19678 * grub-core/fs/squash4.c: New file.
19679 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19680 disk_input_start, disk_input.
19681 (get_byte): Handle disk_input.
19682 (grub_zlib_disk_read): New function.
19683 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19684
19685 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19686 2011-05-15 Feiran Zheng <famcool@gmail.com>
19687
19688 * Makefile.util.def (libgrubmods.a): Add minix3.
19689 * grub-core/Makefile.core.def (minix3): New module.
19690 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19691 (GRUB_MINIX_BSIZE): Removed.
19692 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19693 (grub_minix_ino_t): New type.
19694 (grub_minix_le_to_cpu_ino): New macro.
19695 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19696 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19697 (grub_minix_data): New field block_size.
19698 (grub_minix_read_file): Handle 64-bit correctly.
19699 * grub-core/fs/minix3.c: New file.
19700
19701 2011-05-15 Tristan Gingold <gingold@free.fr>
19702 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19703 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19704
19705 IA64 support.
19706
19707 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19708 * configure.ac: Add ia64-efi target.
19709 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19710 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19711 * gentpl.py: Add ia64_efi platform.
19712 Rename x86_efi to efi and Add ia64-efi. All users updated.
19713 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19714 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19715 Remove kern/generic/rtc_get_time_ms.c on EFI.
19716 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19717 kern/ia64/dl_helper.c on ia64-efi.
19718 Add kern/emu/cache.c on emu.
19719 (linux): Use on loader/ia64/efi/linux.c on ia64.
19720 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19721 whether symbol is a function.
19722 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19723 (grub_symbol): New field 'isfunc'.
19724 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19725 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19726 (grub_dl_load_segments): Place all sections into the same region.
19727 [__ia64__]: Create trampolines and got.
19728 [GRUB_MACHINE_EMU]: Call mprotect.
19729 (grub_dl_resolve_symbols): Resolve symbol type as well.
19730 [__ia64__]: Create function descriptors.
19731 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19732 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19733 (grub_get_rtc): New function.
19734 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19735 * grub-core/kern/emu/cache.S: Renamed to ...
19736 * grub-core/kern/emu/cache_s.S: ... this.
19737 [__ia64__]: Add a nop.
19738 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19739 [__ia64__]: New function.
19740 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19741 * grub-core/kern/ia64/dl.c: New file.
19742 * grub-core/kern/ia64/dl_helper.c: Likewise.
19743 * grub-core/kern/ia64/efi/init.c: New file.
19744 * grub-core/kern/ia64/efi/startup.S: Likewise.
19745 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19746 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19747 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19748 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19749 * grub-core/loader/ia64/efi/linux.c: New file.
19750 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19751 (GRUB_MOD_DEP): Likewise.
19752 (grub_dl) [__ia64__]: New fields got and tramp.
19753 (grub_dl): New field 'base'.
19754 (grub_dl_register_symbol): New argument isfunc. All users updated.
19755 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19756 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19757 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19758 (grub_ia64_dl_get_tramp_got_size): New proto.
19759 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19760 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19761 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19762 * include/grub/efi/api.h: Skip call wrappers on ia64.
19763 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19764 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19765 * include/grub/elf.h (ELF_ST_INFO): New definition.
19766 * include/grub/ia64/efi/kernel.h: New file.
19767 * include/grub/ia64/efi/memory.h: Likewise.
19768 * include/grub/ia64/efi/time.h: Likewise.
19769 * include/grub/ia64/kernel.h: Likewise.
19770 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19771 * include/grub/ia64/time.h: New file.
19772 * include/grub/ia64/types.h: Likewise.
19773 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19774 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19775 New protos.
19776 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19777 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19778 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19779 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19780 All users updated.
19781 (EFI64_HEADER_SIZE): New definition. All users updated.
19782 (image_targets): Add ia64-efi.
19783 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19784 jumpers_addr. All users updated.
19785 Create function descriptors.
19786 (count_funcs): New function.
19787 (unaligned_uint32): New struct.
19788 (MASK20): New definition.
19789 (MASK19): Likewise.
19790 (MASKF21): Likewise.
19791 (add_value_to_slot_20b): New function.
19792 (add_value_to_slot_21_real): Likewise.
19793 (add_value_to_slot_21): Likewise.
19794 (ia64_kernel_trampoline): New struct.
19795 (nopm): New variable.
19796 (jump): Likewise.
19797 (make_trampoline): New function.
19798 (relocate_addresses): Handle ia64.
19799 (make_reloc_section): Likewise.
19800 (load_image): Likewise.
19801
19802 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19803
19804 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19805 warning. Move variables before code while on it.
19806
19807 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19808
19809 Fuloong support.
19810
19811 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19812 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19813 * grub-core/boot/mips/loongson/fuloong.S: New file.
19814 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19815 Explicitly init CS5536.
19816 [FULOONG]: Don't use serial until CS5536 is available.
19817 Set GPIO based on dumps.
19818 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19819 [FULOONG]: Handle GPIO and memory controller differences.
19820 Parse machine type in $a2.
19821 * grub-core/boot/mips/startup_raw.S: Determine and save the
19822 architecture.
19823 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19824 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19825 init on architecture type.
19826 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19827 SIS315E. Don't init at_keyboard on fuloong.
19828 (grub_halt): Support Fuloong.
19829 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19830 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19831 (loongson_machtypes): New array.
19832 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19833 type.
19834 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19835 config. All users updated. Handle CS5536 serial.
19836 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19837 default port on machine type. Register serial as inactive.
19838 * grub-core/video/sis315pro.c: New file.
19839 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19840 definition.
19841 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19842 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19843 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19844 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19845 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19846 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19847 to ...
19848 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19849 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19850 definition.
19851 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19852 (grub_arch_machine): New extern var.
19853 * include/grub/mips/loongson/serial.h
19854 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19855 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19856 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19857 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19858 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19859 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19860 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19861 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19862 * include/grub/term.h (grub_term_register_input_inactive): New inline
19863 function.
19864 (grub_term_register_output_inactive): Likewise.
19865 * include/grub/video.h (grub_video_driver_id): New value
19866 GRUB_VIDEO_DRIVER_SIS315PRO.
19867 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19868 New field "names". All users updated.
19869 New field value IMAGE_FULOONG_FLASH.
19870 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19871
19872 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19873
19874 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19875 and add some clarification.
19876
19877 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19878
19879 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19880 platforms if kernel is compressed.
19881
19882 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19883
19884 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19885 unused modules since currently referrence counter isn't reliable and
19886 there isn't much memory to recover there anyway.
19887
19888 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19889
19890 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19891 rather than resetting it to allow modules to reference themselves
19892 in init.
19893
19894 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19895
19896 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19897 counter on dependencies since grub_dl_unref already handles this.
19898
19899 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19900
19901 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19902 on error if not already done.
19903
19904 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19905
19906 Fix few potential memory misusage.
19907
19908 * grub-core/font/font.c (load_font_index): Don't free char_index to
19909 avoid double free.
19910 (grub_font_load): Zero-fill font at alloc for safety.
19911 Close file on error.
19912 (free_font): Free bmp_idx.
19913
19914 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19915
19916 * docs/grub.texi (Installation): Fix several outdated claims.
19917
19918 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19919
19920 Handle module_license on windows.
19921
19922 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19923 sections shifted.
19924 (insert_string): Make argument const char * instead of char *.
19925 (write_section_data): Handle long section names.
19926 Handle module_license.
19927
19928 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19929
19930 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19931 handle class-free menuentries.
19932 (grub_normal_add_menu_entry): Add a check to be sure.
19933
19934 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19935
19936 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19937 PgUp and PgDown.
19938
19939 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19940
19941 * configure.ac: Bump version to 1.99.
19942
19943 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19944
19945 Give ATA device a bit more time on first try in order to allow disks
19946 to spin up.
19947
19948 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19949 if dev->present is 1. Reset dev->present on failure.
19950 (grub_ata_device_initialize): Set dev->present to 1.
19951 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19952 (grub_ata_device): New member 'present'.
19953
19954 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19955
19956 * util/grub-mkimage.c (generate_image): Update hash.
19957
19958 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19959
19960 Flush caches on DMA memory.
19961
19962 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19963 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19964 (grub_dma_free): Likewise.
19965 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19966
19967 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19968
19969 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19970 to avoid asm treating ld and sd as macros.
19971
19972 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19973
19974 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19975 decompressor.
19976
19977 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19978
19979 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19980 grub_decompress_core since later would fail if grub_decompress_core
19981 is too far.
19982
19983 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19984
19985 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19986 R_MIPS_JALR since it's used by newer compiler.
19987
19988 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19989
19990 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19991
19992 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19993
19994 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19995 file_path to 0 for surety.
19996 (grub_chainloader_boot): Set exit_data to NULL.
19997 Unset the loader once done.
19998 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19999
20000 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20001
20002 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20003 unknown key into a dprintf.
20004
20005 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20006
20007 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20008 on first non-existant partition.
20009
20010 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20011
20012 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20013 openning fails.
20014 Reported by: Mark Korenberg.
20015
20016 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20017
20018 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20019 overflow.
20020
20021 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20022
20023 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20024 before closing to ensure that it will be readable by grub-setup.
20025
20026 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20027
20028 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20029 (devpath_1): Use MAKE_PIWG_PATH.
20030 (devpath_2): Likewise.
20031 (devpath_3): Likewise.
20032 (devpath_4): Likewise.
20033 (devpath_5): Likewise.
20034 (devpath_6): Likewise.
20035
20036 The appleldr.mod was checked that to be binary identical to previous
20037 version.
20038
20039 2011-05-05 Zach <mikezackles>
20040
20041 Support 2010 Macbooks.
20042
20043 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20044 (devs): Add devpath_6.
20045
20046 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20047
20048 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20049 /dev/random. /dev/urandom is good enough for our purposes (salting).
20050
20051 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20052
20053 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20054
20055 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20056
20057 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20058 hexadecimal.
20059
20060 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20061
20062 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20063 and not 0 on failure.
20064
20065 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20066
20067 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20068 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20069 disk; otherwise grub_fs_probe will not fall back to the next
20070 filesystem.
20071 (grub_pxefs_open): Likewise, for consistency.
20072 Reported and tested by: Ezekiel Grave.
20073
20074 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20075
20076 * tests/partmap_test.in: Don't hardcode path to parted.
20077 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20078
20079 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20080
20081 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20082 of `ls' to find out which devices are available.
20083
20084 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20085
20086 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20087 than source address for efi mmap buffer.
20088
20089 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20090
20091 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20092 wrong action on non-detecting the magic.
20093
20094 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20095
20096 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20097 already supplied by another part of the module (fixes compilation on
20098 FreeBSD).
20099
20100 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20101
20102 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20103 match the one used by mdadm.
20104
20105 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20106
20107 * po/README: Add instructions for creating po/LINGUAS.
20108
20109 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20110
20111 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20112 #551428.
20113
20114 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20115 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20116 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20117 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20118 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20119 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20120 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20121 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20122 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20123 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20124 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20125 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20126 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20127 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20128 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20129 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20130 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20131 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20132 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20133 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20134 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20135 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20136
20137 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20138
20139 * grub-core/kern/emu/getroot.c
20140 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20141 test that was incorrectly reintroduced in r3214.
20142 Reported by: Ian Dall. Fixes Savannah bug #33133.
20143
20144 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20145
20146 Fix stack pointer handling in 16-bit relocator.
20147
20148 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20149 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20150 Fixes Ubuntu bug #683904.
20151
20152 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20153
20154 * configure.ac: Bump version to 1.99~rc2.
20155
20156 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20157
20158 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20159 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20160 * grub-core/lib/x86_64/setjmp.S: Likewise.
20161 * grub-core/lib/mips/setjmp.S: Likewise.
20162 * grub-core/lib/powerpc/setjmp.S: Likewise.
20163 * grub-core/lib/sparc64/setjmp.S: Likewise.
20164
20165 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20166
20167 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20168 * grub-core/lib/efi/datetime.c: Likewise.
20169
20170 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20171
20172 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20173 New function.
20174 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20175 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20176 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20177
20178 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20181 bitmap.
20182 (grub_gfxterm_term_init): Likewise.
20183
20184 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20185
20186 Take into account the decorations the computing menu entry width.
20187
20188 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20189 (grub_gfxmenu_create_box): Register get_border_width.
20190 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20191 if available.
20192 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20193 get_border_width.
20194
20195 2011-04-18 Endres Puschner <code@e7p.de>
20196
20197 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20198 Don't skip first class.
20199
20200 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20201
20202 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20203 chunks.
20204 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20205
20206 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20207
20208 Complete 64-bit division support.
20209
20210 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20211 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20212 * include/grub/misc.h (grub_divmod64): Rename to ...
20213 (grub_divmod64_full): ... this.
20214 (grub_divmod64): New inline function.
20215
20216 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20217
20218 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20219
20220 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20221
20222 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20223 performing the necessary test.
20224
20225 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20226
20227 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20228 (kfreebsd.elf): Likewise.
20229 (pc-chainloader.elf): Likewise.
20230 (ntldr.elf): Likewise.
20231
20232 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 Identify RAID by its UUID rather than (guessed) name.
20235
20236 * grub-core/disk/raid.c (ascii2hex): New function.
20237 (grub_raid_open): Accept mduuid/%s specification.
20238 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20239 (get_mdadm_uuid): ... this.
20240 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20241
20242 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20245 to negative size.
20246
20247 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20248
20249 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20250 btrfs subvolume.
20251 * util/grub.d/20_linux_xen.in: Likewise.
20252
20253 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20254
20255 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20256 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20257
20258 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20259 Build a list of relevant visible mounts using the mnt_id and
20260 parent_mnt_id fields, and then scan that list at the end.
20261
20262 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20263
20264 * docs/grub.texi (normal): New section.
20265 (normal_exit): New section.
20266 (Embedded configuration): Add reference to normal.
20267 (GRUB only offers a rescue shell): Likewise.
20268 * docs/grub-dev.texi (Error Handling): Fix typo.
20269
20270 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20271
20272 * NEWS: Drop obsolete entry about probe-only btrfs support.
20273
20274 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20275
20276 * util/import_gcry.py: Fix typo.
20277
20278 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20279
20280 * NEWS: Add btrfs support.
20281
20282 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20283 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20284
20285 BtrFS support. Written by me (Vladimir) with important bugfixes and
20286 even more important testing by Colin.
20287
20288 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20289 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20290 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20291 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20292 mem_input_off and mem_input. All users updated to accept in-RAM input.
20293 (gzio_seek): New function.
20294 (test_zlib_header): Likewise.
20295 (grub_gzio_read): Likewise.
20296 (grub_zlib_decompress): Likewise.
20297 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20298 Accept partial and non-virtual mounts.
20299 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20300 avoid receiving /dev/dm-X as device.
20301 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20302 Handle bind and partial mounts.
20303 * grub-core/lib/crc.c: New file.
20304 * include/grub/deflate.h: Likewise.
20305 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20306 proto.
20307 * include/grub/lib/crc.h: New file.
20308
20309 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20310
20311 Implement automatic module license checking according to new GNU
20312 guidelines.
20313
20314 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20315 (grub_dl_load_core): Use grub_dl_check_license.
20316 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20317 (GRUB_MOD_LICENSE): Likewise.
20318 (GRUB_MOD_DUAL_LICENSE): Likewise.
20319 All modules updated.
20320
20321 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20322
20323 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20324 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20325 loaders.
20326 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20327
20328 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20329
20330 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20331
20332 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20333
20334 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20335 failed.
20336
20337 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20338
20339 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20340 parenthesis in the middle of the filename.
20341
20342 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20343
20344 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20345 rather than trying to put initrd way too high.
20346 Reported by: Ryan Lortie <desrt@desrt.ca>
20347
20348 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20349
20350 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20351 improperly removed string.
20352
20353 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20354
20355 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20356 is_disk.
20357 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20358 (open_device) Likewise.
20359 (grub_util_biosdisk_close): Likewise.
20360 Reported by: Mark Korenberg.
20361
20362 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20363
20364 * util/grub-mkconfig_lib.in: Add missing quotes.
20365
20366 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20367
20368 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20369 is NULL.
20370
20371 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20372
20373 Dynamically count the number of lines for the lower banner.
20374
20375 * grub-core/normal/menu_entry.c (per_term_screen): New member
20376 num_entries.
20377 (print_down): Use num_entries.
20378 (update_screen): Likewise.
20379 (grub_menu_entry_run): Set num_entries.
20380 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20381 num_entries.
20382 (grub_print_message_indented): Move real part to ...
20383 (grub_print_message_indented_real): ... here. Additional argument
20384 dry_run.
20385 (draw_border): Additional argument num_entries.
20386 (print_message): Additional argument dry_run.
20387 (print_entries): Receive menu viewer data.
20388 (grub_menu_init_page): New argment num_entries.
20389 (menu_text_set_chosen_entry): Use num_entries.
20390 (grub_menu_try_text): Likewise.
20391 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20392 All users updated.
20393 (grub_ucs4_count_lines): New function.
20394 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20395 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20396 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20397 (grub_term_border_height): Likewise.
20398 (grub_term_num_entries): Likewise.
20399
20400 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20401
20402 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20403 Remove now unused string.
20404
20405 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20406
20407 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20408 build system.
20409 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20410
20411 (Comment): Fix typo.
20412 (Getting started): General copy-editing.
20413 (Typical Development Experience): Likewise.
20414 (Error Handling): Likewise.
20415 (Video API): Likewise.
20416
20417 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20418
20419 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20420 throughout.
20421
20422 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20423
20424 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20425 directory.
20426
20427 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20428
20429 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20430 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20431 "development".
20432
20433 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20434
20435 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20436 grub_strcpy since the lines aren't necessarily 0-terminated.
20437
20438 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20439
20440 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20441 root on legacy.
20442
20443 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20444
20445 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20446 (GRUB_MOD_INIT): DEVICE isn't optional.
20447
20448 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20449
20450 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20451 word on new line if it's too long anyway. Fixes a hang.
20452
20453 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20454
20455 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20456 const.
20457 * util/grub-setup.c (main): Reuse md device name if available.
20458 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20459 not GRUB name as argument.
20460 Based on patch by: Florian Wagner <fwagner>.
20461
20462 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20463
20464 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20465 Place mbi on low memory for better compatibility.
20466
20467 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20468
20469 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20470
20471 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20472 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20473
20474 * autogen.sh: Ensure that collate and ctype locale is C.
20475 * conf/Makefile.common: Likewise.
20476
20477 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20478
20479 * grub-core/normal/menu.c: Add missing include.
20480
20481 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20482
20483 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20484
20485 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20486
20487 * util/grub-mkconfig.in: Ignore emacsen backup.
20488
20489 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20490
20491 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20492 on open.
20493 (grub_util_biosdisk_close): Likewise.
20494
20495 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20496
20497 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20498 const attribute and use grub_isdigit.
20499
20500 2011-04-06 Andrey <dev_null@ukr.net>
20501
20502 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20503 gcc warning.
20504
20505 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20506
20507 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20508 useful grub_dprintf's.
20509
20510 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20511
20512 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20513
20514 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20515
20516 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20517
20518 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20519
20520 Output errors if theme loading failed.
20521
20522 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20523 grub_gfxterm_fullscreen on error paths to ...
20524 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20525 theme loading error.
20526
20527 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20528
20529 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20530 space for older compilers.
20531 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20532
20533 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20534
20535 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20536 and report them as not RAID members since they are useless for GRUB.
20537 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20538
20539 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20540
20541 Increase LVM implementation robustness in order not to crash on
20542 configurations like pvmove. Previously code assumed that in some places
20543 only lvs or only pvs are used whereas it seems that they are used
20544 interchangeably.
20545
20546 * grub-core/disk/lvm.c (read_node): New function.
20547 (read_lv): Use read_node.
20548 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20549 Match volumes only at the end when all lvs are found. Take both
20550 pvs (first) and lvs (second) into account.
20551 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20552 mirror_* into node_*. All users updated.
20553 (grub_lvm_stripe): Merge this ...
20554 (grub_lvm_mirror): ... and this ...
20555 (grub_lvm_node): ... into this. All users updated.
20556
20557 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20558
20559 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20560 of function to allow further scanning for LVMs.
20561
20562 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20563
20564 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20565 on failed seek as it breaks open fd reusage.
20566
20567 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20568
20569 * util/grub-install.in: Add a recommendation to use --recheck before
20570 reporting bugs.
20571
20572 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20575 are obtained.
20576
20577 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20578
20579 GRUB developper manual based on existing Internals section and
20580 contributions by the various authors with active copyright assignment.
20581
20582 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20583 * docs/font_char_metrics.png: New file.
20584 * docs/font_char_metrics.txt: Likewise.
20585 * docs/grub-dev.texi: Likewise.
20586 * docs/grub.texi (Internals): Move from here ...
20587 * docs/grub-dev.texi: ... here.
20588
20589 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20590
20591 Store the loopback device as data on loopback grub_disk structures,
20592 rather than the file it points to. This fixes use of freed memory
20593 if an existing loopback device is replaced.
20594
20595 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20596 disk->data, not dev->file.
20597 (grub_loopback_read): Adjust file assignment to match.
20598 Fixes Ubuntu bug #742967.
20599
20600 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20601
20602 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20603 when replacing an existing device.
20604
20605 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20606
20607 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20608 memory corruptions.
20609
20610 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20611 unsigned.
20612 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20613 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20614 (grub_jfs_read_inode): Likewise.
20615 (grub_jfs_opendir): Likewise. Remove now useless casts.
20616 (grub_jfs_getent): Likewise.
20617 Make ino a grub_uint32_t rather than int.
20618 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20619 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20620 division and module with bit operations.
20621 (grub_jfs_find_file): Make ino a grub_uint32_t.
20622 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20623
20624 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20625
20626 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20627 warning. (This was in fact always initialised before use, but GCC
20628 wasn't smart enough to prove that.)
20629 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20630
20631 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20632
20633 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20634 stack alignment.
20635 (efi_wrap_1): Likewise.
20636 (efi_wrap_2): Likewise.
20637 (efi_wrap_3): Likewise.
20638 (efi_wrap_4): Likewise.
20639 (efi_wrap_5): Likewise.
20640 (efi_wrap_6): Likewise.
20641 (efi_wrap_10): Likewise.
20642 Based on information by: Red Hat/Peter Jones.
20643
20644 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20645
20646 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20647 set-but-not-used variable.
20648
20649 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20650
20651 * docs/grub.texi (Simple configuration): Be more explicit about
20652 GRUB_DEFAULT, and add an example.
20653 Reported by: Leslie Rhorer.
20654
20655 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20656
20657 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20658 shell".
20659
20660 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20661
20662 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20663 * util/grub.d/20_linux_xen.in: Likewise.
20664
20665 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20666
20667 * util/grub.d/10_linux.in: Try alternative config filenames where
20668 we parse config file.
20669 * util/grub.d/20_linux_xen.in: Likewise.
20670
20671 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20672
20673 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20674 * util/grub.d/20_linux_xen.in: Likewise.
20675
20676 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20677
20678 * grub-core/disk/raid.c (insert_array): Add few potentially
20679 useful grub_util_info.
20680 (grub_raid_register): Likewise.
20681
20682 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20683
20684 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20685 Preserve partition number in mdadm code path.
20686
20687 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20688
20689 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20690 few potentially useful grub_util_info.
20691
20692 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20693
20694 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20695
20696 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20697
20698 * docs/grub.texi (default): Use @example rather than nested
20699 itemized lists to avoid breaking gendocs.
20700
20701 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20702
20703 * docs/grub.texi (Future): Update.
20704
20705 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20706
20707 * docs/grub.texi (Environment): New chapter.
20708 (Changes from GRUB Legacy): Link to "Environment block" section for
20709 details of limitations.
20710 (Simple configuration): Likewise. Link to documentation of gfxmode
20711 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20712 respectively.
20713 (Shell-like scripting): Note that normal variables are stored in the
20714 environment.
20715 (gettext): Link to documentation of lang and locale_dir.
20716 (list_env): New section.
20717 (load_env): New section.
20718 (save_env): New section.
20719
20720 (Reporting bugs): Fix typo.
20721
20722 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20723
20724 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20725 the example.
20726
20727 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20728
20729 * grub-core/term/at_keyboard.c (set_scancodes)
20730 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20731
20732 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20733
20734 * docs/grub.texi (Menu-specific commands): Remove some semantics
20735 that were true in GRUB Legacy but not in GRUB 2.
20736 (submenu): New section.
20737 (false): New section.
20738 (read): New section.
20739 (true): New section.
20740
20741 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20742
20743 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20744
20745 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20746
20747 * docs/grub.texi (Simple configuration): Explain some of the
20748 current limitations of grub-mkconfig.
20749 Reported by: Leslie Rhorer.
20750
20751 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20752
20753 Old macs search for boot.efi rather than for bootia32.efi.
20754
20755 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20756 * util/grub-mkrescue.in: Likewise.
20757 Suggested by: Peter Jones.
20758
20759 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20760
20761 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20762
20763 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20764
20765 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20766 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20767 (grub_lvm_mirror): New struct.
20768 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20769 (grub_lvm_iterate): Iterate only visible volumes.
20770 (grub_lvm_read): Factor out to ..
20771 (read_lv): ... this. Support mirrors.
20772 (grub_lvm_read): New wrapper function.
20773 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20774 stripped or mirrored.
20775
20776 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20777
20778 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20779
20780 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20781
20782 * docs/grub.texi (loopback): New section.
20783
20784 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20785
20786 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20787 removed -p option.
20788
20789 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20790
20791 * docs/grub.texi (BIOS installation): New section, partly based on
20792 previous text in other sections.
20793 (Installing GRUB using grub-install): Replace BIOS discussion with a
20794 cross-reference.
20795 (Images): Likewise.
20796
20797 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20798
20799 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20800 [HAVE_DIOCGDINFO]: Add safety checks.
20801
20802 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20803
20804 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20805 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20806
20807 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20808
20809 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20810 real_sb->size is zero (e.g. RAID-0), get the disk size from
20811 real_sb->data_size instead.
20812 Fixes Ubuntu bug #743136.
20813
20814 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20815
20816 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20817 printf clauses for printing size and start.
20818
20819 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20820
20821 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20822 Reported and tested by: Timothy Nikkel.
20823
20824 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20825
20826 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20827 (dirty_region_add_real): ... this.
20828 (dirty_region_add): Don't discard margin refresh when performing
20829 scheduled repaint.
20830
20831 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20832
20833 * grub-core/lib/relocator.c (allocate_regstart)
20834 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20835 terminals are capabple of malloc-free operation.
20836 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20837 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20838
20839 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20840
20841 * util/grub-setup.c: Copy the partition table zone if floppy support
20842 is disabled, even if no partition table is found.
20843
20844 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20845 during POST if an invalid partition table is contained in the PBR
20846 of the active partition when GRUB is installed to a partition.
20847
20848 2011-03-28 Colin Watson <cjwatson@debian.org>
20849
20850 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20851 comment.
20852
20853 2011-03-28 Colin Watson <cjwatson@debian.org>
20854
20855 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20856 to be specific about what kind of RAID device we're scanning for.
20857
20858 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20859
20860 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20861 return freed string.
20862
20863 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20864
20865 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20866
20867 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20868
20869 Use libgeom on FreeBSD to detect partitions.
20870
20871 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20872 (grub-mkrelpath): Likewise.
20873 (grub-script-check): Likewise.
20874 (grub-editenv): Likewise.
20875 (grub-mkpasswd-pbkdf2): Likewise.
20876 (grub-fstest): Likewise.
20877 (grub-mkfont): Likewise.
20878 (grub-mkdevicemap): Likewise.
20879 (grub-probe): Likewise.
20880 (grub-setup): Likewise.
20881 (grub-ofpathname): Likewise.
20882 (grub-mklayout): Likewise.
20883 (example_unit_test): Likewise.
20884 (grub-menulst2cfg): Likewise.
20885 * grub-core/Makefile.core.def (grub-emu): Likewise.
20886 (grub-emu-lite): Likewise.
20887 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20888 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20889 define HAVE_DIOCGDINFO.
20890 (follow_geom_up) [FreeBSD]: New function.
20891 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20892 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20893 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20894 unconditionally of HAVE_DIOCGDINFO.
20895
20896 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20897
20898 Fix FreeBSD compilation problem.
20899
20900 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20901 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20902
20903 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20904
20905 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20906 Switch back to page zero before loading a kernel, since some kernel
20907 drivers expect that.
20908 Thanks to: Felix Kuehling.
20909
20910 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20911
20912 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20913 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20914 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20915
20916 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20917
20918 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20919 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20920
20921 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20922
20923 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20924 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20925 malloc is disabled.
20926
20927 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20928
20929 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20930 for modules headers when counting the needed allocation size.
20931
20932 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20933
20934 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20935 if no ASCII character is found to prevent crash.
20936
20937 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20938
20939 * grub-core/video/bitmap.c (match_extension): Ignore case.
20940
20941 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20942
20943 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20944
20945 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20946
20947 * grub-core/script/parser.y: Declare "time" as valid argument.
20948
20949 2011-03-23 Peter Jones <pjones@redhat.com>
20950
20951 Fix incorrect assert failure reporting.
20952
20953 * grub-core/tests/example_functional_test.c (example_test): Add
20954 a failure comment.
20955 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20956 (failure_start): ...this. Check that malloc succeeded.
20957 Don't call xvasprintf. Return failure struct.
20958 (failure_append_vtext): New function.
20959 (failure_append_text): Likewise.
20960 (add_failure): Likewise.
20961 (grub_test_assert_helper): Likewise.
20962 * include/grub/test.h (grub_test_assert_helper): New declaration.
20963 (grub_test_assert): Macro rewritten.
20964
20965 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20966
20967 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20968
20969 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20970
20971 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20972
20973 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20974
20975 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20976 into GRUB-style one.
20977
20978 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20979
20980 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20981 error and not grub_errno.
20982 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20983
20984 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20985
20986 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20987 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20988
20989 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20990
20991 * grub-core/efiemu/i386/pc/cfgtables.c
20992 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20993 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20994 (grub_xnu_unlock): Likewise.
20995 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20996
20997 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20998
20999 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21000 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21001 * grub-core/commands/hashsum.c (aliases): Likewise.
21002 * grub-core/commands/setpci.c (pci_registers): Likewise.
21003 * grub-core/disk/usbms.c (attach_hook): Likewise.
21004 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21005 (zio_checksum_table): Likewise.
21006 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21007 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21008 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21009 * grub-core/lib/relocator.c (leftovers): Likewise.
21010 (extra_blocks): Likewise.
21011 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21012 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21013 (modules_last): Likewise.
21014 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21015 (devices): Likewise.
21016 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21017 (modules_last): Likewise.
21018 * grub-core/normal/auth.c (users): Likewise.
21019 * grub-core/normal/context.c (initial_menu): Likewise.
21020 (current_menu): Likewise.
21021 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21022 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21023 (grub_serial_terminfo_input_template): Likewise.
21024 (grub_serial_terminfo_output_template): Likewise.
21025 (grub_serial_terminfo_input): Likewise.
21026 (grub_serial_terminfo_output): Likewise.
21027 (registered): Likewise.
21028 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21029
21030 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21031
21032 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21033 grub_video_mode_type_t.
21034 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21035 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21036 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21037
21038 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21039
21040 * util/grub-install.in: Correct the x86-64 name as x86_64.
21041
21042 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21043
21044 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21045 initial chunk read from the kernel always includes GRUB's multiboot
21046 header, which is now outside the first sector.
21047
21048 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21049
21050 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21051 cached mmap_size, so that this works correctly when called multiple
21052 times.
21053 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21054
21055 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21056
21057 * docs/grub.texi (Simple configuration): Tidy up formatting.
21058
21059 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21060
21061 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21062 Set-but-not-used variable removed.
21063
21064 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21065
21066 Workaround yet another IEEE1275 bug.
21067
21068 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21069 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21070 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21071 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21072 is set.
21073 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21074 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21075
21076 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21077
21078 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21079 error.
21080
21081 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21082
21083 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21084 empty, since in that case we can only generate either nothing or a
21085 syntactically invalid configuration file.
21086 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21087
21088 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21089
21090 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21091 (Making a GRUB bootable CD-ROM): Likewise.
21092 (Invoking grub-mkrescue): New section.
21093 Reported by: Yann Dirson. Fixes Debian bug #612585.
21094
21095 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21096
21097 * util/grub-install.in: Remove unnecessary brackets from tr
21098 arguments.
21099 * util/grub.d/10_hurd.in: Likewise.
21100 * util/grub.d/10_kfreebsd.in: Likewise.
21101 * util/grub.d/10_linux.in: Likewise.
21102 * util/grub.d/20_linux_xen.in: Likewise.
21103 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21104
21105 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21106
21107 * include/grub/file.h (not_easly_seekable): Rename to ...
21108 (not_easily_seekable): ... this. Update all users.
21109
21110 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21111
21112 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21113 grub-mkrescue.
21114
21115 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21116
21117 * util/grub-mkimage.c (generate_image): Refuse to create the images
21118 bigger than the actual flash (512K) in Loongson machines. 512K is also
21119 the biggest chip supported by them.
21120
21121 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21122
21123 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21124
21125 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21126
21127 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21128 super_offset field.
21129
21130 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21131
21132 * util/grub-install.in: Ignore install device on platforms
21133 where it doesn't make sense. Always use UUIDs except on pc, efi and
21134 sparc64.
21135 Reported by: Daniel Kahn Gillmor.
21136
21137 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21138
21139 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21140
21141 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21142
21143 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21144 (iterate_real): Don't rely on partition being non-NULL.
21145
21146 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21147
21148 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21149 supported platforms. Put a compile time assert for this rather than
21150 generate a warning with 32-bit shift.
21151
21152 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21153
21154 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21155 logical expression more readable.
21156
21157 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21158
21159 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21160 even if some elements have a name.
21161 Reported by: Alexander GQ Gerasiov.
21162
21163 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21164
21165 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21166 path unreadable if `grub-probe -t abstraction' fails, for example if
21167 memberlist fails on an LVM volume group.
21168 Reported by: Darius Jahandarie.
21169
21170 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21171
21172 * docs/grub.texi (Simple configuration): Document
21173 GRUB_PRELOAD_MODULES.
21174
21175 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21176
21177 * .bzrignore: Remove nonexistent grub-pbkdf2.
21178
21179 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21180
21181 * configure.ac: Bump version to 1.99~rc1.
21182
21183 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21184
21185 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21186 for safety.
21187
21188 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21189
21190 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21191 module.
21192
21193 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21194
21195 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21196
21197 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21198
21199 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21200 diskdevid.
21201
21202 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21203
21204 Fix compilation on cygwin.
21205
21206 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21207 -R .drectve on cygwin.
21208 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21209 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21210 (COND_CYGWIN): New condition.
21211 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21212 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21213 not @TARGET_OBJ2ELF@.
21214 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21215 type to determine whether aux is to be used.
21216
21217 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21218
21219 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21220 realpath'ed device string.
21221 Handle floppy (somewhat).
21222 Issue error in unknown case rather than garbage.
21223 Reported by: Axel Beckert.
21224
21225 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21226
21227 * util/grub.d/00_header.in (load_video): Handle the case when no video
21228 drivers available.
21229 Thanks to: Axel Beckert.
21230
21231 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21232
21233 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21234 variable. Fixes problem on big endian platforms.
21235
21236 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21237
21238 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21239 It doesn't work well there.
21240
21241 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21242
21243 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21244 warning.
21245 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21246 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21247 counter.
21248
21249 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21250
21251 Use alias->path rather than buggy "canon".
21252
21253 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21254 (ofdisk_hash_add): New argument curcan. All users updated.
21255
21256 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21257
21258 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21259
21260 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21261
21262 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21263 loadmask before doing any calculations. Use correct type for offset.
21264 (grub_linux_load64): Likewise.
21265
21266 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21267
21268 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21269 with NULL.
21270 (console_grub_equivalences_unshift): Likewise.
21271 Reported by: Daniel Dehennin.
21272
21273 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21274
21275 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21276 (set_env_limn_ro): Likewise.
21277 (GRUB_MOD_INIT): Likewise.
21278 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21279 ARRAY_SIZE while on it.
21280 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21281 * grub-core/normal/context.c (grub_env_export): Move from here ...
21282 * grub-core/kern/env.c (grub_env_export): ... here.
21283 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21284 prefix.
21285 * grub-core/kern/main.c (grub_main): Export root and prefix.
21286 * include/grub/env.h (grub_env_export): Export.
21287 Reported by: Seth Goldberg.
21288
21289 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21292 Take into account space used by ELF sections and multiboot palette.
21293 Reported by: Grégoire Sutre.
21294
21295 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21296
21297 * BUGS: New file.
21298
21299 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 Pass more appropriate video id to Linux.
21302
21303 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21304 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21305 fill have_vga.
21306 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21307 shift params->lfb_size.
21308 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21309
21310 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21311
21312 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21313
21314 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21315
21316 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21317 separator and pass bootpath/devid even if only one of them is available.
21318 Reported by: Seth Goldberg.
21319
21320 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21321
21322 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21323 implementations bug on them.
21324
21325 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21326 memory.
21327 (filter_memory_map): Likewise.
21328
21329 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21330
21331 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21332 Reported by: nebuchadnezzar.
21333
21334 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21335
21336 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21337 Reported by: nebuchadnezzar.
21338
21339 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21340
21341 Submenu default support.
21342
21343 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21344 auto_boot. All users updated.
21345 Declared static.
21346 Handle chosen and default with submenus.
21347 (grub_menu_execute_with_fallback): Declared static.
21348 Don't notify failure if autobooted. Upper level does it.
21349 (menuentry_eq): New function.
21350 (get_entry_number): Use menuentry_eq.
21351 (show_menu): New parameter "autobooted". All users updated.
21352 (grub_show_menu): Likewise.
21353 * include/grub/normal.h (grub_show_menu): Likewise.
21354 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21355 (grub_menu_execute_with_fallback): Likewise.
21356
21357 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21358
21359 * util/grub-mklayout.c (usage): Update help text.
21360
21361 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21362
21363 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21364
21365 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21366
21367 * util/grub-menulst2cfg.c (main): Trim the line.
21368
21369 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21370
21371 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21372 (grub_machine_init): Don't check amount of low memory as reportedly
21373 INT 12h can be broken and if low memory is too low we wouldn't have
21374 gotten into grub_machine_init anyway.
21375
21376 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21377
21378 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21379 (grub_machine_mmap_iterate): Take low memory into account
21380
21381 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21382
21383 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21384 badfs.
21385 Reported by: TiCPU.
21386
21387 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21388
21389 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21390 members errors.
21391
21392 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21393
21394 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21395 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21396
21397 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21398
21399 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21400 openbsd and netbsd types being in part_bsd module.
21401
21402 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21403
21404 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21405 (_FILE_OFFSET_BITS): Likewise.
21406 Reported by: Seth Goldberg.
21407
21408 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21409
21410 * configure.ac: Check for libdevmapper header.
21411
21412 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21413
21414 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21415 avoid aliasing.
21416 (fzap_lookup): Likewise.
21417 (dnode_get): Likewise.
21418 (make_mdn): Likewise.
21419 (zfs_mount): Likewise.
21420 (fzap_iterate): Use temporary pointer to avoid aliasing.
21421 (grub_zfs_read): Likewise.
21422 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21423 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21424 pointers to avoid aliasing.
21425 (grub_cmd_xnu_kernel64): Likewise.
21426 (grub_xnu_load_driver): Likewise.
21427
21428 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21429
21430 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21431 aliasing warning.
21432 (grub_cmd_terminal_output): Likewise.
21433 Reported and tested by: Grégoire Sutre.
21434
21435 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21436
21437 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21438 warning.
21439 Reported and tested by: Grégoire Sutre.
21440
21441 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21442
21443 * configure.ac: Do CPU substitution even if it's specified explicitly.
21444 Reported and tested by: Alain Greppin.
21445
21446 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21447
21448 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21449 Reported and tested by: Alain Greppin.
21450
21451 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 Satisfy some bison versions need for inttypes.h.
21454
21455 * grub-core/lib/posix_wrap/inttypes.h: New file.
21456 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21457 (int16_t): Likewise.
21458 (int32_t): Likewise.
21459 (int64_t): Likewise.
21460 Reported and tested by: Alain Greppin.
21461
21462 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21463
21464 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21465 Silence spurious warning.
21466 Reported and tested by: Alain Greppin.
21467
21468 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21469
21470 * docs/grub.texi (Support automatic decompression): Update with xz
21471 decompression support.
21472
21473 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21474
21475 Improve loaders' kernel command line handling.
21476
21477 * grub-core/lib/cmdline.c: New file.
21478 * include/grub/lib/cmdline.h: Likewise.
21479 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21480 grub_create_loader_cmdline to create kernel command line.
21481 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21482 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21483 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21484 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21485 (linux): Add lib/cmdline.c on common.
21486
21487 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21488
21489 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21490 inopos might be unaligned.
21491
21492 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21493
21494 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21495 endian transformations.
21496 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21497 Based on report by: Doug Nazar.
21498
21499 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21500
21501 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21502 array->members[i].start_sector.
21503 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21504
21505 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21508 Reported and tested by: Grégoire Sutre.
21509
21510 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21511
21512 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21513 avoid causing test failures by clearing the screen.
21514
21515 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21516
21517 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21518 Fix prefix check to handle the case where dir ends with a slash
21519 (most significantly, "/" itself).
21520 Reported by: Michael Vogt.
21521
21522 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21523
21524 Run terminfo_cls on initing terminfo output to clear the screen and
21525 move the cursor to (0,0).
21526
21527 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21528 Call grub_terminfo_output_init.
21529 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21530 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21531 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21532
21533 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21534
21535 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21536 only when needed.
21537
21538 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21539
21540 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21541 CTRL.
21542
21543 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21544
21545 The E820 type 5 is BADRAM, not EXEC_CODE.
21546
21547 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21548 (GRUB_E820_BADRAM): New define.
21549 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21550 into reserved. Propagate BADRAM.
21551 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21552 (GRUB_E820_BADRAM): New define.
21553
21554 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21555
21556 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21557 Ignore the memory post-4G.
21558 (grub_relocator_firmware_alloc_region): Additional debug statement.
21559
21560 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21561
21562 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21563 names.
21564 Reported by: David Pravec.
21565
21566 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21567
21568 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21569 BIOSes.
21570
21571 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21572
21573 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21574 Prevent overflow.
21575 (grub_reed_solomon_recover): Likewise.
21576
21577 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21578
21579 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21580
21581 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21582
21583 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21584 variable.
21585
21586 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21587
21588 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21589 descriptions of extract_legacy_entries_source and
21590 extract_legacy_entries_configfile.
21591 Reported by: Seung Soo, Ha.
21592
21593 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21594
21595 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21596 on devices that do not implement function 0.
21597
21598 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21599
21600 * grub-core/fs/hfsplus.c: Make parent unsigned.
21601 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21602 overflows.
21603 (grub_hfsplus_cmp_extkey): Likewise
21604
21605 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21606
21607 * util/grub-install.in: Correctly use bootloader_id and not
21608 GRUB_DISTRIBUTOR on efibootmgr line.
21609
21610 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21611
21612 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21613
21614 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21615
21616 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21617 Xen and reorder menu item wording to make it clearer that this entry
21618 will launch Xen. Print separate messages when loading Xen and
21619 Linux.
21620
21621 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21622
21623 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21624 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21625 loop in case of incorrect amiga partmap.
21626
21627 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21628
21629 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21630 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21631 Reported by:EHeM.
21632
21633 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21634
21635 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21636 spurious warning.
21637 Reported by: crocket
21638
21639 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21640
21641 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21642 Preload EFIemu.
21643 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21644
21645 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21646
21647 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21648 is loaded
21649 (grub_cmd_xnu_kextdir): Likewise.
21650 (grub_cmd_xnu_splash): Likewise.
21651
21652 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21653
21654 Avoid using Reed-Solomon with 0 redundancy.
21655
21656 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21657 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21658 or 0 redundancy.
21659 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21660 (grub_reed_solomon_recover): Likewise.
21661
21662 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21663
21664 Don't use disk subsystem in freebsd_boot.
21665
21666 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21667 (freebsd_biosdev): Likewise.
21668 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21669 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21670
21671 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21672
21673 Handling of files of unknown size is currently limited. They can't be
21674 used e.g. for initrd or modules. Moreover gzip handling of not
21675 easily seekable files is buggy. Disable unknown file size for now. May
21676 be inefficient but works.
21677
21678 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21679 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21680
21681 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21682
21683 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21684 floppy probe.
21685
21686 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21687
21688 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21689
21690 2010-12-25 Shea Levy <shlevy>
21691
21692 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21693
21694 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21695
21696 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21697 Windows Server 2008.
21698 Reported by: Devin Giddings.
21699
21700 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21701
21702 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21703 writing an error message because of async power management.
21704 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21705 (grub_reboot): Likewise.
21706
21707 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21708
21709 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21710 keep unit tests from failing when they shouldn't.
21711
21712 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21713
21714 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21715 previous patch increased the size of the RS code by 20 bytes (at
21716 least with gcc-4.4), so increase this by 20 bytes to match.
21717 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21718
21719 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21720
21721 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21722 scratch area. Make sure to initialise chosen in standalone mode as
21723 well as non-standalone.
21724 Reported by: Robert Hooker and Andy Whitcroft.
21725 Tested by: Andy Whitcroft.
21726
21727 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21728
21729 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21730 constructing a new unescaped string and passing it to grub_xputs in
21731 one go, rather than passing characters to grub_printf one at a time.
21732
21733 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21734
21735 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21736 initialising utf16.
21737
21738 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21739
21740 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21741 comment. Add an extra layer of quotation, requiring the output of
21742 this function to be used in a printf format string.
21743 (gettext_printf): New function.
21744 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21745 Extract translatable strings from here-documents and use a temporary
21746 variable instead, so that xgettext can find them.
21747 * util/grub.d/10_kfreebsd.in: Likewise.
21748 * util/grub.d/10_linux.in: Likewise.
21749 * util/grub.d/20_linux_xen.in: Likewise.
21750
21751 * po/grub.d.sed: New file.
21752 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21753 arguments. Set c-format flags on all strings extracted from
21754 util/grub.d/ (xgettext refuses to include these itself for strings
21755 it extracted from a shell file, but these really are c-format).
21756
21757 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21758
21759 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21760 Avoid next pointing to nowhere.
21761
21762 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21763
21764 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21765 rather than assuming than rootblock is exactly in the middle.
21766 (grub_affs_label): Likewise.
21767
21768 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21769
21770 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21771 reserved_first_sector to 0.
21772 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21773 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21774 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21775
21776 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21777
21778 Fix handling of UTF-16 UDF labels.
21779
21780 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21781 (read_string): .. here.
21782 (grub_udf_label): Use read_string.
21783
21784 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21785
21786 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21787 editor under argument scope.
21788 Reported by: Jordan Uggla
21789
21790 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21791
21792 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21793
21794 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21795
21796 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21797 line, and other keys scroll an entire page (previous handling was
21798 for \r and \n to scroll a page and other keys to scroll two lines).
21799
21800 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21801
21802 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21803 Set ptrdest to correct get_physical_target_address rather than
21804 incorrect get_virtual_current_address.
21805
21806 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21807
21808 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21809 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21810
21811 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21812
21813 * .bzrignore: Ignore grub-core/rs_decoder.S.
21814
21815 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21816
21817 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21818 .mo/.mo.gz opening sequence to ...
21819 (grub_mofile_open_lang): ... here.
21820 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21821 * util/grub.d/00_header.in (grub_lang): Include country part of
21822 locale.
21823 Reported by: Mario Limonciello.
21824
21825 2010-12-09 Robert Millan <rmh@gnu.org>
21826
21827 * NEWS: Document addition of ZFS support.
21828
21829 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21830
21831 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21832 rather than `/ 2', as the latter requires -Wa,--divide which would
21833 require bumping our minimum binutils version.
21834
21835 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21836
21837 * util/grub-script-check.c (main): Print script line number on
21838 error.
21839
21840 2010-12-01 Robert Millan <rmh@gnu.org>
21841
21842 * grub-core/fs/zfs/zfs.c: New file.
21843 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21844 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21845 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21846 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21847
21848 * include/grub/zfs/dmu.h: Likewise.
21849 * include/grub/zfs/dmu_objset.h: Likewise.
21850 * include/grub/zfs/dnode.h: Likewise.
21851 * include/grub/zfs/dsl_dataset.h: Likewise.
21852 * include/grub/zfs/dsl_dir.h: Likewise.
21853 * include/grub/zfs/sa_impl.h: Likewise.
21854 * include/grub/zfs/spa.h: Likewise.
21855 * include/grub/zfs/uberblock_impl.h: Likewise.
21856 * include/grub/zfs/vdev_impl.h: Likewise.
21857 * include/grub/zfs/zap_impl.h: Likewise.
21858 * include/grub/zfs/zap_leaf.h: Likewise.
21859 * include/grub/zfs/zfs.h: Likewise.
21860 * include/grub/zfs/zfs_acl.h: Likewise.
21861 * include/grub/zfs/zfs_znode.h: Likewise.
21862 * include/grub/zfs/zil.h: Likewise.
21863 * include/grub/zfs/zio.h: Likewise.
21864 * include/grub/zfs/zio_checksum.h: Likewise.
21865
21866 * Makefile.util.def: Build ZFS into libgrubmods.
21867 * grub-core/Makefile.core.def: Build zfs.mod.
21868
21869 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21870
21871 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21872 variable.
21873 * grub-core/commands/wildcard.c (match_files): Likewise.
21874
21875 2010-11-30 Robert Millan <rmh@gnu.org>
21876
21877 * grub-core/loader/i386/bsd.c
21878 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21879 whether kernel is loaded using grub_loader_is_loaded(), rather
21880 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21881 certain error conditions.
21882
21883 2010-11-30 Robert Millan <rmh@gnu.org>
21884
21885 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21886 (grub_cmd_echo): Call grub_refresh() after printing a message.
21887
21888 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21889
21890 Avoid using tricks for initialising endian variables.
21891
21892 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21893 Make const.
21894 (GRUB_MOD_INIT): Don't byte-swap.
21895 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21896 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21897 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21898 (grub_swap_bytes32_compile_time): Likewise.
21899 (grub_cpu_to_le32_compile_time): Likewise.
21900 (grub_cpu_to_le16_compile_time): Likewise.
21901
21902 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21903
21904 * util/grub-setup.c (setup): Stop recommending --force. People who
21905 understand the dangers of blocklists are able to find this option
21906 anyway and the ones who don't shouldn't use it anyway.
21907
21908 2010-11-26 Robert Millan <rmh@gnu.org>
21909
21910 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21911 Update all users.
21912
21913 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21914
21915 Fix LVM-on-RAID probing.
21916
21917 * util/grub-probe.c (probe): Remember which disk was detected as
21918 RAID (perhaps an LVM physical volume). Use that disk's raidname
21919 rather than that of the top-level disk.
21920
21921 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21922
21923 Fix cmdline argument quotes for setparams command of menuentry
21924 definitions.
21925
21926 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21927 quotes for arguments.
21928 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21929 grub_strchrsub function instead.
21930
21931 * include/grub/misc.h (grub_strchrsub): New function.
21932
21933 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21934
21935 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21936 effort by skipping "." and ".." entries up-front.
21937 Suggested by: Michael Lazarev.
21938
21939 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21940
21941 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21942 ldflags to ldadd, to fix link line ordering.
21943 (none_decompress): Likewise.
21944
21945 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21946
21947 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21948 platforms.
21949 (grub-emu-lite): Remove kern/emu/cache.S.
21950
21951 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21952
21953 * util/deviceiter.c (compare_devices): If the by-id link for a
21954 device couldn't be resolved, fall back to sorting by the by-id link
21955 rather than segfaulting.
21956 Reported and tested by: Daniel Mierswa.
21957
21958 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21959
21960 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21961 ldflags, to fix link line ordering.
21962
21963 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21964
21965 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21966 linkers are picky about this.
21967
21968 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21969
21970 * grub-core/Makefile.am (command.lst): Adjust sed expression
21971 ordering so that extended and priority commands aren't treated as
21972 ordinary commands.
21973
21974 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21975
21976 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21977 Remove byte-swapping function calls, which are not valid in
21978 structure initialisers.
21979 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21980 non-const.
21981 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21982 grub_gpt_partition_type_bios_boot.
21983
21984 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21985
21986 Fix test program build on GNU/kFreeBSD.
21987
21988 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21989 $(LIBNVPAIR)' library dependencies.
21990
21991 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21992
21993 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21994
21995 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21996
21997 * util/grub-install.in: Remove excessive quoting that broke
21998 installations to RAID devices.
21999
22000 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22001
22002 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22003 bootloader version instead of 0.
22004
22005 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22006
22007 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22008 warning.
22009
22010 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22011
22012 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22013 retrieve the metadat sector if size isn't known.
22014 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22015
22016 2010-11-18 Robert Millan <rmh@gnu.org>
22017
22018 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22019 with grub_memcmp().
22020
22021 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22022
22023 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22024 arrow.
22025 Reported by: Jordan Uggla.
22026
22027 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22028
22029 Make better UTF compliant.
22030
22031 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22032 sequences as incorrect.
22033 (grub_is_valid_utf8): Likewise.
22034 (grub_utf8_to_ucs4): Likewise.
22035 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22036 (grub_ucs4_to_utf8_alloc): Likewise.
22037 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22038
22039 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22040
22041 Make legacy_source behave like source.
22042
22043 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22044 grub_show_menu.
22045 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22046
22047 2010-11-16 Colin Watson <cjwatson@debian.org>
22048
22049 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22050 (-Wunused implies -Wunused-parameter, but not vice versa).
22051
22052 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22053
22054 * configure.ac: Make error messages less confusing by testing for
22055 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22056 accepted, but produces a diagnostic if something else is wrong).
22057
22058 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22059
22060 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22061 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22062 (now unused).
22063 (grub_keyboard_controller_init)
22064 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22065 read the initial state since controller isn't inited yet.
22066
22067 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22068
22069 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22070 allocate_regbeg may need to create new chunk header.
22071
22072 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22073
22074 Fix quoting in legacy parser.
22075
22076 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22077 single quotes.
22078 (grub_legacy_parse): Likewise.
22079 Reported by: Jordan Uggla.
22080 Tested by: Jordan Uggla.
22081
22082 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22083
22084 Don't add -lgcc on i386 and x86_64.
22085
22086 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22087 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22088 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22089
22090 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22091
22092 * configure.ac: Add -Wno-trampolines when supported.
22093
22094 2010-11-14 Modestas Vainius <modax@debian.org>
22095
22096 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22097 fakeraid.
22098
22099 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22100
22101 Add generic logical block size support for UDF.
22102
22103 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22104 (GRUB_UDF_BLKSZ): Removed.
22105 (struct grub_udf_data): New field "lbshift" to hold the logical block
22106 size of the file system in log2 format. All users updated.
22107 (sblocklist): Change type to unsigned.
22108 (grub_udf_mount): Change type of "sblklist" to unsigned.
22109 Move AVDP search before VRS recognition, because the latter requires
22110 knowledge of the logical block size, which is detected during the
22111 former.
22112 Detect and validate logical block size during AVDP search, adding
22113 support for block sizes 512, 1024 and 4096.
22114 Make VRS recognition independent of block size.
22115
22116 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22117
22118 Properly handle deleted files on UDF.
22119
22120 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22121 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22122 set.
22123
22124 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22125
22126 Support reading files larger than 2 GiB.
22127
22128 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22129 "offset" to grub_off_t.
22130 (grub_udf_read_file): Likewise for parameter "pos".
22131
22132 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22133
22134 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22135 unavailable.
22136 (Simple configuration): Refer to Changes from GRUB Legacy about
22137 save_env availability.
22138
22139 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22140
22141 * util/grub-install.in: Ignore empty partition table detection
22142 instead of trying to include part_ module.
22143
22144 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22145
22146 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22147 LVM on RAID support.
22148
22149 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22150
22151 Properly define WORDS_BIGENDIAN in wrapped environments.
22152
22153 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22154 definition.
22155 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22156
22157 Reported by: Manoel Rebelo Abranches.
22158 Tested by: Manoel Rebelo Abranches.
22159
22160 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22161
22162 * util/grub-mkconfig.in: Fix quoting.
22163
22164 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22165
22166 Support big ext2 files.
22167
22168 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22169 (grub_ext2_read_block): Support triple indirect blocks.
22170 (grub_ext2_read_file): Use 64-bit types and read size_high.
22171 (grub_ext2_open): Read size_high.
22172 Reported by: Ximin Luo.
22173 Tested by: Manoel Rebelo Abranches.
22174
22175 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22176
22177 * util/grub-install.in: Handle filenames containing spaces.
22178 Reported by: Jordan Uggla.
22179 Tested by: Jordan Uggla.
22180
22181 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22182
22183 * util/grub-mkconfig.in (grub_script_check): New variable.
22184 Use grub_script_check instead of grub-script-check.
22185 Reported by: Barry Jackson.
22186
22187 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22188
22189 * docs/grub.texi (menu): Correct the order.
22190 Reported by: D. Hugh Redelmeier.
22191
22192 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22193
22194 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22195 jump.
22196
22197 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22198
22199 * include/grub/elfload.h (grub_elf32_size): New parameter.
22200 All users updated.
22201 Return maximum segments alignment.
22202 (grub_elf64_size): Likewise.
22203 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22204 Return maximum segments alignment.
22205 (grub_elf64_size): Likewise.
22206 * grub-core/loader/powerpc/ieee1275/linux.c:
22207 (grub_linux_claimmap_iterate): New function. Uses the
22208 "available" property in the "memory" node for memory allocation
22209 for kernel in the PowerPC loader.
22210 (grub_linux_load32): Correctly find linux entry point offset.
22211 (grub_linux_load64): Likewise.
22212
22213 2010-11-07 Robert Millan <rmh@gnu.org>
22214
22215 On mips-yeeloong, build with -march=loongson2f when this flag is
22216 available (GCC >= 4.4).
22217 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22218 `-march=mips3'.
22219 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22220 or otherwise add -march=mips3.
22221
22222 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22223
22224 Suppress shell expansion on echo '*' and echo "*" like cases.
22225 Reported by: Jordan Uggla.
22226
22227 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22228 string arguments before shell expansion.
22229 * tests/grub_cmd_echo.in: New testcases.
22230
22231 2010-11-07 Robert Millan <rmh@gnu.org>
22232
22233 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22234 transition.
22235
22236 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22237
22238 * grub-core/kern/emu/hostdisk.c
22239 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22240
22241 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22242
22243 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22244 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22245 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22246
22247 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22248
22249 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22250
22251 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22252
22253 * util/grub-install.in: Replace useless recomendation to pass
22254 --modules with a recomendation to report a bug.
22255
22256 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22257
22258 Properly register serial terminfo.
22259 Reported by: Jordan Uggla
22260
22261 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22262 const.
22263 (grub_serial_terminfo_output_template): Likewise.
22264 (grub_cmd_serial): Register "serial" with terminfo.
22265 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22266 grub_serial_terminfo_output.
22267
22268 2010-11-05 Robert Millan <rmh@gnu.org>
22269
22270 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22271 needed).
22272
22273 2010-11-05 Robert Millan <rmh@gnu.org>
22274
22275 On Yeeloong, pass machine type information to Linux.
22276
22277 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22278 (LOONGSON_MACHTYPE): New macro, set to
22279 "machtype=lemote-yeeloong-2f-8.9inches".
22280 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22281 additional argument to Linux.
22282
22283 2010-11-04 Robert Millan <rmh@gnu.org>
22284
22285 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22286 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22287 (its SATA disks are detected as slaveless IDE master drives on
22288 kFreeBSD).
22289 Reported by Carsten Aulbert.
22290
22291 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22292
22293 * util/bin2h.c (main): Fix spelling error in generated output.
22294
22295 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22296
22297 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22298
22299 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22300
22301 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22302 vga= option is supplied.
22303
22304 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22305
22306 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22307 * util/grub.d/10_kfreebsd.in: Likewise.
22308 * util/grub.d/10_linux.in: Likewise.
22309 * util/grub.d/20_linux_xen.in: Likewise.
22310
22311 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22312
22313 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22314 argument as an argument to no-argument option.
22315
22316 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22317
22318 * util/grub.d/10_linux.in: Add missing load_video with explicit
22319 GRUB_GFXPAYLOAD_LINUX.
22320
22321 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22322
22323 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22324
22325 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22326
22327 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22328 elements with invlid index.
22329 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22330 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22331 members.
22332 * include/grub/raid.h (grub_raid_member): New struct.
22333 (grub_raid_array): Transform devices and start_sector into usage of
22334 grub_raid_member. All users updated
22335 (allocated_devs): New member.
22336
22337 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22338
22339 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22340 is modified
22341
22342 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22343
22344 NetBSD build fix for getline function conflict from gnulib.
22345
22346 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22347 components that depend on gnulib headers.
22348 (libgrubmods.a): Renamed from earlier libgrub.a.
22349 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22350
22351 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22352
22353 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22354 install rather than creating a broken install.
22355
22356 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22357
22358 * util/grub-setup.c (argp): Remove misleading example of installing to
22359 a partition.
22360
22361 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22362
22363 * util/grub-setup.c (setup): Clarify the error message.
22364
22365 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22366
22367 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22368
22369 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22370
22371 * grub-core/kern/emu/misc.c
22372 (grub_make_system_path_relative_to_its_root)
22373 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22374
22375 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22376
22377 * grub-core/kern/emu/misc.c
22378 (grub_make_system_path_relative_to_its_root): Revert r2882.
22379
22380 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22381
22382 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22383 useless field head. All users updated.
22384 (free_subchunk): Correct handling of IN_REGION subchunk.
22385
22386 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22387
22388 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22389 (Supported kernels): Likewise.
22390
22391 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22392
22393 Make mktemp invocations portable.
22394
22395 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22396 exit if mktemp fails.
22397 * tests/grub_script_blockarg.in: Likewise.
22398 * tests/partmap_test.in: Likewise.
22399 * tests/util/grub-shell-tester.in: Likewise.
22400 * tests/util/grub-shell.in: Likewise.
22401 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22402 * Makefile.am: Likewise, and chain shell commands with `&&'
22403 instead of ';'.
22404 * util/grub-mkrescue.in: Use the same explicit template as above, and
22405 exit if mktemp fails.
22406
22407 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22408
22409 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22410 Linux kernel, reported by Dennis Schridde.
22411
22412 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22413
22414 * grub-core/normal/auth.c (grub_auth_check_authentication):
22415 Set-but-not-used variable removed.
22416
22417 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22418
22419 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22420 32-bit linux protocol.
22421
22422 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22423
22424 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22425 cursor shape for sanity.
22426
22427 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22428
22429 * docs/grub.texi (Installation): Document buggy BIOS install.
22430
22431 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22432
22433 * docs/grub.texi (Installation): Indent.
22434
22435 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22436
22437 * util/grub-setup.c (setup): New parameter allow_floppy.
22438 (arguments): New member allow_floppy.
22439 (argp_parser): Handle --allow-floppy.
22440 (main): Pass allow_floppy.
22441 * util/grub-install.in: New option --allow-floppy passed though to
22442 grub-setup.
22443
22444 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22445
22446 * util/grub-install.in: Handle partitionless disks.
22447
22448 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22449
22450 * util/grub-setup.c (setup): Don't clean blocklists before readability
22451 verfification.
22452
22453 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22454
22455 * docs/grub.texi (Installation): Document embedding zone. Remove
22456 obsolete grub-install example.
22457
22458 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22459
22460 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22461 Set-but-not-used variable ifdef'ed.
22462 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22463 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22464 variable removed.
22465 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22466 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22467 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22468 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22469 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22470 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22471 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22472 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22473 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22474 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22475 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22476 Likewise.
22477
22478 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22479
22480 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22481 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22482 enum value.
22483
22484 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22485
22486 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22487 synonym to _S5_. Needed for some DSDTs.
22488
22489 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22490
22491 Userspace ACPI parser debugging.
22492
22493 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22494 headers and add relevant defines. Don't include standard headers.
22495 (main) [GRUB_DSDT_TEST]: New function.
22496 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22497 Don't declare functions.
22498
22499 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22500
22501 Remove dead grub_efi_mm_fini.
22502
22503 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22504 (ALLOCATED_PAGES_SIZE): Likewise.
22505 (MAX_ALLOCATED_PAGES): Likewise.
22506 (allocated_pages): Likewise.
22507 (grub_efi_allocate_pages): Don't record allocated pages.
22508 (grub_efi_free_pages): Likewise.
22509 (grub_efi_mm_init): Likewise.
22510 (grub_efi_mm_fini): Removed.
22511
22512 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22513
22514 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22515 (grub_efi_mm_init): Take into account the memory map size increase.
22516
22517 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22518
22519 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22520 (serial_hw_put): Wait based on real time rather than port reads. Don't
22521 roken ports.
22522 * include/grub/serial.h (grub_serial_port): New field broken.
22523
22524 2010-10-16 Robert Millan <rmh@gnu.org>
22525
22526 * grub-core/kern/emu/misc.c
22527 (grub_make_system_path_relative_to_its_root): Fix premature return
22528 when processing non-root ZFS filesystems.
22529 Reported by Sergio Talens-Oliag.
22530
22531 2010-10-15 Robert Millan <rmh@gnu.org>
22532
22533 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22534 guarantee compressed ones are processed first.
22535
22536 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22537
22538 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22539 grub_efiemu_autocore.
22540
22541 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22542
22543 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22544 rather than 0x1b.
22545 (grub_console_getkey): Use correct jae opcode rather than ja.
22546
22547 2010-10-12 Robert Millan <rmh@gnu.org>
22548
22549 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22550 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22551 variable. All references updated.
22552
22553 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22554
22555 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22556
22557 Correctly distinguish mdraid flavours.
22558
22559 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22560 (insert_array): New argument raid.
22561 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22562 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22563 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22564
22565 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22566
22567 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22568 handling of special keys.
22569
22570 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22571
22572 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22573 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22574
22575 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22576
22577 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22578 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22579 users updated.
22580 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22581 Use right endpoint when querying descriptor.
22582
22583 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22584
22585 Clear out 0x80 color bit on EFI.
22586 Tested by: decoder
22587 Reported by: decoder and meta tech.
22588
22589 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22590 (grub_console_setcolorstate): Clear out 0x80 bit.
22591 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22592 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22593 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22594
22595 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22596
22597 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22598 Set to "auto".
22599
22600 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22603 mo_file after freeing.
22604
22605 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22608
22609 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22610
22611 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22612 flags.
22613
22614 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22615
22616 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22617 usage.
22618
22619 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22620
22621 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22622
22623 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22624 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22625 and terminfo.h when needed.
22626 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22627 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22628 (terminfo): Enable only on terminfokernel.
22629 (extcmd): Likewise.
22630 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22631 * include/grub/lib/arg.h: Likewise.
22632 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22633 incorrect usage of ->.
22634
22635 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22636
22637 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22638 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22639
22640 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22641
22642 Fix coreboot compilation.
22643
22644 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22645 Take VBE info into account even if only text is supported.
22646 (fill_vbe_info): Take into account the case when only VGA text
22647 is supported.
22648 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22649 on coreboot, multiboot and qemu.
22650
22651 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22652
22653 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22654 debug messages.
22655 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22656
22657 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22658
22659 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22660 parameters.
22661
22662 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22663
22664 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22665 if they were BSD-style.
22666
22667 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22668
22669 * grub-core/boot/i386/pc/lnxboot.S: Replace
22670 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22671 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22672
22673 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22674
22675 Write embedding zone using Reed-Solomon.
22676
22677 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22678 * grub-core/Makefile.am (rs_decoder.S): New target.
22679 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22680 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22681 (multiboot): Move to RS part.
22682 (post_reed_solomon): New label.
22683 (grub_boot_drive): Move to non-RS part since it's modified in memory
22684 on boot.
22685 Include rs_decoder.S.
22686 * grub-core/lib/reed_solomon.c: New file.
22687 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22688 New definition.
22689 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22690 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22691 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22692 * include/grub/partition.h (grub_partition_map): Change prototype of
22693 embed to allow returning additional sectors.
22694 * include/grub/reed_solomon.h: New file.
22695 * util/grub-setup.c (setup): Handle Reed-Solomon.
22696
22697 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22698
22699 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22700 i386 and x86-64 definedness tests.
22701
22702 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22703
22704 Fix generation of kernel_syms.lst
22705
22706 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22707 ASM_PREFIX
22708
22709 2010-09-26 Robert Millan <rmh@gnu.org>
22710
22711 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22712
22713 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22714 the pool is an array of devices, iterate through it and return the
22715 first device that passes a stat() test (instead of blindly returning
22716 the first one).
22717
22718 2010-09-26 Robert Millan <rmh@gnu.org>
22719
22720 Build fixes for GNU/kFreeBSD.
22721
22722 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22723 to programs that require ZFS conversion.
22724 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22725 kernels that don't have FLOPPY_MAJOR.
22726
22727 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22728
22729 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22730
22731 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22732
22733 Fix grub-emu build.
22734
22735 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22736 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22737 mdraid09 and mdraid1x.
22738
22739 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22740
22741 Re-enable grub-extras.
22742
22743 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22744 avoid confusing Automake. Run autogen only twice, once for the top
22745 level and once for grub-core. Add Makefile.util.def and
22746 Makefile.core.def from extra modules to the appropriate autogen
22747 invocations. If Makefile.common exists in an extra module, include
22748 it in both Makefile.util.am and grub-core/Makefile.core.am;
22749 similarly, include any Makefile.util.common file in Makefile.util.am
22750 and any Makefile.core.common file in grub-core/Makefile.core.am.
22751 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22752 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22753 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22754 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22755
22756 * gentpl.py (gvar_add): Turn GVARS into a set.
22757 (global_variable_initializers): Sort global variables on output.
22758 (vars_init): New function.
22759 (first_time): Likewise.
22760 (library): Ensure that non-global variable initialisations are
22761 emitted before the first time we emit code for a library block.
22762 Append to variables rather than setting them. Only emit
22763 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22764 each conditional path.
22765 (program): installdir() emits an Autogen macro, so must be passed to
22766 var_add rather than gvar_add.
22767 (data): Likewise.
22768 (script): Likewise.
22769 (rules): New function, centralising handling for different target
22770 types. Set up Guile association lists for first_time and vars_init,
22771 and send most output to a diversion so that variable initialisations
22772 can be emitted first.
22773 (module_rules): Use new rules function.
22774 (kernel_rules): Likewise.
22775 (image_rules): Likewise.
22776 (library_rules): Likewise.
22777 (program_rules): Likewise.
22778 (script_rules): Likewise.
22779 (data_rules): Likewise.
22780
22781 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22782
22783 * .bzrignore: Add contrib and grub-core/contrib. Remove
22784 grub-core/Makefile.gcry.am.
22785
22786 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22787
22788 * grub-core/lib/LzFind.c: Add missing include.
22789 * grub-core/lib/LzmaEnc.c: Likewise.
22790 * grub-core/script/lexer.c: Likewise.
22791 * grub-core/script/yylex.l: Likewise.
22792 * util/grub-macho2img.c: Likewise.
22793 * util/grub-menulst2cfg.c: Likewise.
22794 * util/grub-mklayout.c: Likewise.
22795 * util/grub-mkpasswd-pbkdf2.c
22796 * util/grub-mkrelpath.c: Likewise.
22797 * util/resolve.c: Likewise.
22798
22799 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22800
22801 * Makefile.util.def (example_unit_test): Add
22802 grub-core/gnulib/libgnu.a.
22803
22804 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22805
22806 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22807
22808 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22809
22810 Support xz compression on yeeloong.
22811
22812 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22813 * configure.ac: Check for LZMA.
22814 * grub-core/Makefile.core.def (xz_decompress): New target.
22815 (none_decompress): Likewise.
22816 * grub-core/boot/decompressor/minilib.c: New file.
22817 * grub-core/boot/decompressor/none.c: Likewise.
22818 * grub-core/boot/decompressor/xz.c: Likewise.
22819 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22820 * grub-core/kern/mips/cache_flush.S: Likewise.
22821 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22822 * grub-core/kern/mips/startup.S: Move first stage to ...
22823 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22824 nomacro.
22825 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22826 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22827 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22828 Allocate statically.
22829 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22830 Allocate statically or use scratch. Don't check CRC32.
22831 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22832 Allocate statically. Don't check CRC32.
22833 * include/grub/decompressor.h: New file.
22834 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22835 Removed.
22836 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22837 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22838 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22839 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22840 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22841 * util/grub-mkimage.c (grub_compression_t): New type.
22842 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22843 (image_target_desc): New field default_compression.
22844 (image_targets): Adjust yeeloong targets.
22845 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22846 (compress_kernel): New parameter comp.
22847 (generate_image): Likewise. Handle new compression case.
22848 (options): New option --compression
22849 (help): Likewise.
22850 (main): Handle new option.
22851
22852 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22853
22854 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22855
22856 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22857
22858 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22859 typo in __i386__ conditional.
22860
22861 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22862
22863 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22864 include.
22865
22866 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22867
22868 Implement EFI and ACPI multiboot2 extensions.
22869
22870 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22871 new tags as supported.
22872 (acpiv2_size): New function.
22873 (grub_multiboot_get_mbi_size): Take new tags into account.
22874 (grub_multiboot_make_mbi): Add new tags.
22875 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22876
22877 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22878
22879 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22880 Added missing configuration of USB device.
22881
22882 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22883
22884 * grub-core/normal/menu_entry.c (run): Make sure we always return
22885 a value.
22886
22887 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22888
22889 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22890 NumberOfPages is UINT64 according to the UEFI specification, not
22891 UINTN. Fix printf format.
22892
22893 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22894
22895 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22896 `err' to grub_usb_err_t.
22897 Reported and tested by: KESHAV P.R.
22898
22899 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22900
22901 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22902 tpart non-const, so that we can assign to it. (Since this is a
22903 typedef, the constness refers to the pointer rather than what it
22904 points to.)
22905
22906 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22907
22908 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22909 $(top_srcdir)/grub-core/gnulib as well as
22910 $(top_builddir)/grub-core/gnulib.
22911 Reported by: KESHAV P.R.
22912
22913 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22914
22915 * util/grub-install.in: Fix the bootloader ID option to be
22916 consistently --bootloader-id, not --bootloader_id.
22917 Reported by: KESHAV P.R.
22918
22919 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22920
22921 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22922 check hash checksum." consistently translatable.
22923
22924 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22925
22926 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22927 $(top_builddir).
22928
22929 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22930
22931 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22932 (GRUB_MOD_INIT): Register sha1sum command.
22933 (GRUB_MOD_FINI): Unregister sha1sum command.
22934
22935 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22936
22937 Keep boot and grub directory names in sync with utils scripts
22938
22939 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22940 * config.h.in: Add previous macros.
22941 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22942 * util/grub-install.in: Use $bootdir and $grubdir variables.
22943
22944 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22945
22946 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22947 convert partition names to disk names if the new `convert' parameter
22948 is set.
22949 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22950 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22951 disk in its own right. This can happen with Xen disk images.
22952
22953 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22954
22955 * util/grub-editenv.c: Update strings to avoid warnings when generating
22956 grub.pot file.
22957 * util/grub-setup.c: Likewise.
22958
22959 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22960
22961 * configure.ac: Change version to 1.99~beta0.
22962
22963 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22964
22965 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22966 Add BADRAM.
22967 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22968 Likewise.
22969 * include/multiboot.h: Resynced with specification.
22970 * include/multiboot2.h: Likewise.
22971
22972 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22973
22974 Fix po directory handling.
22975
22976 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22977 * grub-core/gnulib/Makefile.am: Import gettext module.
22978 * m4/gnulib-cache.m4: Likewise.
22979 * m4/gnulib-comp.m4: Likewise.
22980 * m4/gettext.m4: New file, from gnulib.
22981 * m4/glibc2.m4: Likewise.
22982 * m4/iconv.m4: Likewise.
22983 * m4/intdiv0.m4: Likewise.
22984 * m4/intl.m4: Likewise.
22985 * m4/intldir.m4: Likewise.
22986 * m4/intlmacosx.m4: Likewise.
22987 * m4/intmax.m4: Likewise.
22988 * m4/inttypes-pri.m4: Likewise.
22989 * m4/lcmessage.m4: Likewise.
22990 * m4/lib-ld.m4: Likewise.
22991 * m4/lib-link.m4: Likewise.
22992 * m4/lib-prefix.m4: Likewise.
22993 * m4/lock.m4: Likewise.
22994 * m4/nls.m4: Likewise.
22995 * m4/po.m4: Likewise.
22996 * m4/printf-posix.m4: Likewise.
22997 * m4/progtest.m4: Likewise.
22998 * m4/threadlib.m4: Likewise.
22999 * m4/uintmax_t.m4: Likewise.
23000 * m4/visibility.m4: Likewise.
23001 * po/Makefile.am: Remove.
23002 * po/Makefile.in.in: New file, from gettext.
23003 ($(DOMAIN).pot-update): Support POTFILES-shell.
23004 * po/Makevars: New file.
23005 * po/POTFILES-shell: Rename to ...
23006 * po/POTFILES-shell.in: ... this. Update.
23007 * po/POTFILES: Rename to ...
23008 * po/POTFILES.in: ... this. Update.
23009 * po/Rules-quot: New file, from gettext.
23010 * po/boldquot.sed: Likewise.
23011 * po/en@boldquot.header: Likewise.
23012 * po/en@quot.header: Likewise.
23013 * po/insert-header.sin: Likewise.
23014 * po/quot.sed: Likewise.
23015 * po/remove-potcdate.sin: Likewise.
23016
23017 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23018
23019 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23020
23021 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23022
23023 * util/grub.d/20_linux_xen.in: Use submenus.
23024
23025 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23026
23027 Support submenus.
23028
23029 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23030 parameter submenu. All users updated.
23031 * grub-core/normal/main.c (free_menu): Rename to ...
23032 (grub_normal_free_menu): ... this. Made global.
23033 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23034 if requested.
23035 * grub-core/normal/menu_entry.c (screen): New field submenu.
23036 (make_screen): Set submenu.
23037 (run): Open new context if requested.
23038 * include/grub/menu.h (grub_menu_entry): New field submenu.
23039 * include/grub/normal.h (grub_normal_free_menu): New proto.
23040
23041 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23042
23043 Menu entries extractor.
23044
23045 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23046 variants.
23047 (GRUB_MOD_INIT): Register new variants.
23048 (GRUB_MOD_FINI): Unregister new variants.
23049 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23050 into grub_cmd_legacy_source.
23051 (grub_cmd_legacy_source): Implement extractor variants.
23052 (GRUB_MOD_INIT): Register new variants.
23053 (GRUB_MOD_FINI): Unregister new variants.
23054 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23055 as an extractor.
23056 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23057 search as an extractor.
23058 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23059 test as an extractor.
23060 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23061 as an extractor.
23062 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23063 (grub_env_new_context): New function.
23064 (grub_env_context_open): Likewise.
23065 (grub_env_extractor_open): Likewise.
23066 (grub_env_extractor_close): Likewise.
23067 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23068 grub_extractor_level.
23069 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23070 * include/grub/env.h (grub_env_extractor_open): New proto.
23071 (grub_env_extractor_close): Likewise.
23072 * include/grub/normal.h (grub_extractor_level): New external variable.
23073
23074 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23075
23076 Make cutmem accept a region specification.
23077 Suggested by: Samuel Thibault
23078
23079 * grub-core/mmap/mmap.c (parsemem): New function.
23080 (grub_cmd_cutmem): Handle new arguments.
23081
23082 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23083
23084 New command cutmem.
23085
23086 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23087 (GRUB_MOD_INIT): Register new command.
23088 (GRUB_MOD_FINI): Unregister new command.
23089
23090 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23091
23092 Support some annoying BSD and Minix subpartitions.
23093
23094 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23095 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23096 Properly handle concatenation.
23097 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23098 * grub-core/normal/completion.c (iterate_partition): Likewise.
23099 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23100 contain partition. All users updated.
23101 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23102 struct.
23103 (grub_openbsdlabel_partition_map): Likewise.
23104 (bsdlabel_partition_map_iterate): Rename to ..
23105 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23106 (bsdlabel_partition_map_iterate): New function.
23107 (netopenbsdlabel_partition_map_iterate): Likewise.
23108 (netbsdlabel_partition_map_iterate): Likewise.
23109 (openbsdlabel_partition_map_iterate): Likewise.
23110 (GRUB_MOD_INIT): Register new partmaps.
23111 (GRUB_MOD_FINI): Unregister new partmaps.
23112 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23113 (grub_partition_msdos_iterate): ... this. All users updated.
23114 Don't support embedding other than in a minix partition.
23115 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23116 proto.
23117 * include/grub/partition.h (grub_partition): New field msdostype.
23118 * util/grub-install.in: Handle openbsd and netbsd types being in
23119 part_bsd module.
23120
23121 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23122
23123 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23124
23125 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23126 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23127 (mdraid09): ... this.
23128 (mdraid1x): New module.
23129 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23130 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23131
23132 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23133
23134 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23135 vsprintf.
23136
23137 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23138
23139 * grub-core/commands/efi/lsefimmap.c: Correct header.
23140 * NEWS: Update.
23141
23142 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23143
23144 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23145 as printf format strings; the translations might contain '%' which
23146 could cause a crash.
23147 (main): Likewise.
23148 * util/grub-fstest.c (argp_parser): Likewise.
23149 * util/grub-setup.c (argp_parser): Likewise.
23150 (main): Likewise.
23151
23152 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23153
23154 Use argp in grub-fstest.
23155
23156 * util/grub-fstest.c: Don't include getopt.h.
23157 Include argp.h.
23158 (root): New variable.
23159 (args_count): Likewise.
23160 (nparm): Likewise.
23161 (num_disks): Likewise.
23162 (images): Likewise.
23163 (cmd): Likewise.
23164 (debug_str): Likewise.
23165 (args): Likewise.
23166 (options): Transformed to argp.
23167 (usage): Removed.
23168 (main): Split argument parsing into ...
23169 (argp_parser): ... this. Changed to argp format.
23170 (argp): New variable.
23171 (main): Use argp_parse.
23172
23173 2010-09-20 Tristan Gingold <gingold@free.fr>
23174 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23175 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23176
23177 * grub-core/commands/efi/lsefimmap.c: New file.
23178 * grub-core/Makefile.core.def (lsefimmap): New module.
23179 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23180
23181 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23182
23183 Pause the execution (10s max) if any errors are displayed so the user
23184 has a chance to see them.
23185
23186 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23187 (grub_print_error): Increment grub_err_printed_errors.
23188 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23189 execution if any errors were displayed.
23190 (show_menu): Remove old code for pause.
23191 * grub-core/normal/menu_entry.c (run): Likewise.
23192 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23193 users updated.
23194 (grub_normal_get_char_counter): Likewise.
23195 * include/grub/err.h (grub_err_printed_errors): New external variable.
23196 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23197
23198 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23199
23200 Support multiboot VBE info.
23201
23202 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23203 Take VBE info into account.
23204 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23205 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23206 Call fill_vbe_info when appropriate.
23207 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23208 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23209 as supported.
23210 (grub_multiboot_get_mbi_size): Take new tags into account.
23211 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23212 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23213 Call fill_vbe_tag when appropriate.
23214 (grub_multiboot_make_mbi): Properly align tags.
23215 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23216 function.
23217 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23218 proto.
23219 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23220
23221 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23222
23223 Suport manual terminal geometry specification.
23224
23225 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23226 Save state in grub_ofconsole_terminfo_output.
23227 (grub_ofconsole_term): Use grub_terminfo_getwh.
23228 (grub_ofconsole_getwh): Removed.
23229 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23230 (grub_serial_term): Use grub_terminfo_getwh.
23231 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23232 (options): New struct.
23233 (OPTION_*): New enum.
23234 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23235 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23236 width and height.
23237 (grub_terminfo_getwh): New proto.
23238 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23239
23240 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23241
23242 Handle legacy "terminal" command.
23243
23244 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23245 and FLAG_TERMINAL.
23246 (legacy_commands): Add terminal and title.
23247 (grub_legacy_parse): Handle terminal. Simplify title handling.
23248
23249 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23250
23251 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23252 parameters overflow.
23253
23254 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23255
23256 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23257 widthspec.h.
23258
23259 * docs/grub.texi (Shell-like scripting): Document `!'.
23260 (Network): Simplify using new i386-pc-pxe format. Mention
23261 grub-mknetdir.
23262
23263 * NEWS: Update.
23264
23265 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23266
23267 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23268 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23269 when needed.
23270
23271 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23272
23273 * grub-core/commands/efi/lsefisystab.c: Correct header.
23274 * grub-core/commands/efi/lssal.c: Likewise.
23275 * grub-core/commands/testload.c: Likewise.
23276
23277 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23278
23279 * util/grub-mkrescue.in: Add explicit root argument to --set to
23280 prevent the UUID being interpreted as an argument to --set (matches
23281 previous change to prepare_grub_to_access_device).
23282
23283 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23284
23285 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23286 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23287 the verbosity of later #ifs.
23288 (find_partition_start): Define this function on FreeBSD too.
23289 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23290 function.
23291 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23292 on FreeBSD.
23293
23294 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23295
23296 * util/grub-editenv.c: Use argp instead of getopt.
23297
23298 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23299
23300 * util/grub-setup.c: Use argp instead of getopt.
23301
23302 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23303
23304 Use gnulib-tool to create gnulib source files.
23305
23306 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23307 grub-core/gnulib directories
23308 * .bzignore: Add **/.deps and autogenerated gnulib files
23309 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23310 of gnulib macros, add grub-core/gnulib/Makefile
23311 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23312 include m4 directory to aclocal.
23313 * Makefile.util.def: Remove direct compilation of gnulib source files
23314 and use the new grub-core/gnulib/libgnu.a.
23315 * build-aux/config.rpath: move config.rpath from top directory to
23316 build-aux
23317 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23318 in gnulib headers
23319 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23320 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23321 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23322 header.
23323 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23324 string.
23325
23326 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23327
23328 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23329 grub-core/genmod.sh and grub-core/gensyminfo.sh
23330
23331 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23332
23333 Add a test for echo command options.
23334
23335 * tests/grub_cmd_echo.in: New test.
23336 * Makefile.util.def: Rules for new test.
23337
23338 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23339
23340 Remove crc.mod and move crc command to hashsum.mod.
23341 Remove lib/crc.c - users updated to use gcrypt implementation.
23342
23343 * grub-core/commands/crc.c: Removed.
23344 * grub-core/Makefile.core.def (crc): Module removed.
23345 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23346 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23347 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23348 * grub-core/lib/crc.c: Removed.
23349 * include/grub/lib/crc.h: Removed.
23350 * Makefile.util.def (crc): Remove lib/crc.c
23351 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23352 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23353 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23354 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23355 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23356 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23357
23358 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23359
23360 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23361
23362 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23363
23364 Split config.h for util and core.
23365
23366 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23367 (ADDR32): Likewise.
23368 (DATA32): Likewise.
23369 (BSS_START_SYMBOL): Likewise.
23370 (END_SYMBOL): Likewise.
23371 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23372 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23373 * config.h.in: New file.
23374 * configure.ac: Use config-util.h as config define file.
23375 Rename MACHINE into GRUB_MACHINE. All users updated.
23376 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23377 updated.
23378 (NESTED_FUNC_ATTR): Likewise.
23379 Substitue new variables.
23380 (COND_HAVE_ASM_USCORE): New conditional.
23381 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23382 (kernel_syms.lst): Use ASM_PREFIX.
23383 * grub-core/kern/emu/console.c: Include config-util.h.
23384 * grub-core/kern/emu/misc.c: Likewise.
23385 * grub-core/kern/emu/mm.c: Likewise.
23386 * include/grub/emu/misc.h: Likewise.
23387 * include/grub/libgcc.h: Likewise.
23388
23389 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23390
23391 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23392 constants usage.
23393 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23394 Fix GRUB_TERM_KEY_* constants usage.
23395 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23396
23397 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23398
23399 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23400 print pointer.
23401 * grub-core/bus/usb/uhci.c: Remove empty define.
23402 (grub_uhci_check_transfer): Add missing cast.
23403 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23404 print pointer.
23405 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23406 PRIuGRUB_SIZE.
23407 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23408
23409 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23410
23411 * grub-core/Makefile.core.def (legacycfg): Add
23412 lib/i386/pc/vesa_modes_table.c on emu.
23413
23414 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23415
23416 Reduce number of temporary files generated by build system.
23417
23418 * grub-core/gencmdlist.sh: Removed.
23419 * grub-core/genfslist.sh: Removed.
23420 * grub-core/genhandlerlist.sh: Removed.
23421 * grub-core/genmodsrc.sh: Removed.
23422 * grub-core/genpartmaplist.sh: Removed.
23423 * grub-core/genparttoollist.sh: Removed.
23424 * grub-core/gentermiinallist.sh: Removed.
23425 * grub-core/genvideolist.sh: Removed.
23426
23427 * grub-core/genmod.sh.in: New file.
23428 * grub-core/gensyminfo.sh.in: New file.
23429
23430 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23431 * conf/Makefile.extra-dist: Update with new files.
23432 * gentpl.py: Remove rules related to unnecessary temporary files.
23433 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23434 and und-* files.
23435 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23436 genmod.sh scripts.
23437 * grub-core/bus/usb/uhci.c: Remove empty #define.
23438 * grub-core/genmoddep.awk: Updated with new syminfo format.
23439 * util/bash-completion.d/Makefile.am: Add config.log to
23440 CLEANFILES.
23441
23442 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23443
23444 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23445
23446 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23447
23448 * util/grub-mkconfig.in: Check the config script for syntax errors
23449 before saving.
23450
23451 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23452 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23453
23454 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23455 platforms.
23456 * util/grub-install.in: Add EFI and IEEE1275 support.
23457 * util/i386/efi/grub-install.in: Removed.
23458 * util/ieee1275/grub-install.in: Likewise.
23459
23460 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23461
23462 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23463 (grub_cmd_cmosclean): Likewise.
23464 (GRUB_MOD_INIT): Register command cmosclean.
23465 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23466 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23467
23468 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23469 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23470 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23471
23472 Add keyboard layouts support.
23473
23474 * Makefile.util.def (grub-mklayout): New file.
23475 (grub-kbdcomp): New script.
23476 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23477 Add keyboard_layouts.h.
23478 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23479 commands/boot.c on yeeloong.
23480 (keylayouts): New module.
23481 * grub-core/bus/usb/ohci.c
23482 * grub-core/bus/usb/uhci.c
23483 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23484 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23485 (attach_root_port): Likewise.
23486 (poll_nonroot_hub): Likewise.
23487 (grub_usb_poll_devices): Likewise.
23488 (detach_device): Close transfer.
23489 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23490 function.
23491 (grub_usb_bulk_setup_readwrite): Likewise.
23492 (grub_usb_bulk_finish_readwrite): Likewise.
23493 * grub-core/commands/keylayouts.c: New file.
23494 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23495 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23496 aliases.
23497 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23498 support scancode 2.
23499 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23500 * include/grub/keyboard_layouts.h: New file.
23501 * util/grub-mklayout.c: New file.
23502 * util/grub-kbdcomp.in: Likewise.
23503
23504 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23505
23506 Unify memory types.
23507
23508 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23509 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23510 types.
23511 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23512 (grub_upper_mem): Likewise.
23513 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23514 * include/grub/memory.h (grub_memory_type_t): New enum.
23515 All users updated.
23516
23517 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23518
23519 * grub-core/Makefile.core.def (lsapm): New module.
23520 * grub-core/commands/i386/pc/lsapm.c: New file.
23521 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23522 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23523 Likewise.
23524 * include/grub/i386/pc/apm.h: New file.
23525 * include/multiboot.h (multiboot_apm_info): New struct.
23526
23527 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23528
23529 GRUB-legacy configuration file support.
23530
23531 * Makefile.util.def (grub-menulst2cfg): New util.
23532 * docs/man/grub-menulst2cfg.h2m: New file.
23533 * grub-core/Makefile.core.def (legacycfg): New module.
23534 * grub-core/commands/legacycfg.c: New file.
23535 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23536 (grub_normal_add_menu_entry): ... this.
23537 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23538 (grub_normal_set_password): ...this.
23539 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23540 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23541 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23542 * grub-core/lib/legacy_parse.c: New file.
23543 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23544 * include/grub/i386/pc/vesa_modes_table.h: New file.
23545 * include/grub/legacy_parse.h: Likewise.
23546 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23547 * util/grub-menulst2cfg.c: New file.
23548
23549 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23550
23551 * grub-core/kern/emu/hostdisk.c
23552 (convert_system_partition_to_system_disk): Initialise node.
23553
23554 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23555
23556 * grub-core/kern/emu/hostdisk.c
23557 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23558 leak.
23559 Reported and based on patch by: Modestas Vainius.
23560
23561 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23562
23563 Fix DM-RAID probing with recent versions of device-mapper udev
23564 rules.
23565
23566 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23567 canonicalise device paths under /dev/mapper/.
23568 (convert_system_partition_to_system_disk): Compare the
23569 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23570 path, since device nodes under /dev/mapper/ are often symlinks.
23571
23572 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23573
23574 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23575
23576 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23577
23578 * configure.ac: Avoid some annoying error messages if freetype-config
23579 program is not found.
23580
23581 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23582
23583 Support RAID on virtio devices, and others.
23584
23585 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23586 Rename to ...
23587 [__MINGW32__] (grub_find_device): ... this.
23588 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23589 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23590 reasonable default if dir is NULL.
23591 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23592 ...
23593 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23594 (grub_guess_root_device): Update callers.
23595 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23596
23597 * util/raid.c (grub_util_getdiskname): Remove.
23598 (grub_util_raid_getmembers): Use grub_find_device rather than
23599 grub_util_getdiskname.
23600
23601 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23602
23603 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23604 needing to be compiled with serial support.
23605 (ls): Indicate that multiple files are accepted.
23606 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23607 indicate that multiple files are accepted.
23608
23609 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23610
23611 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23612 libgrub_a_init.c, and util/bash-completion.d/grub.
23613
23614 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23615
23616 * util/grub-setup.c (setup): Fix incorrect container semantics.
23617
23618 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23619
23620 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23621 misusage.
23622 Reported by: J. Nick Terry
23623
23624 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23625
23626 Move embedding routines to partmap sources files.
23627
23628 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23629 [GRUB_UTIL]: New variable.
23630 (gpt_partition_map_iterate): Set part.parent.
23631 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23632 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23633 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23634 New function.
23635 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23636 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23637 (grub_partition_map) [GRUB_UTIL]: New field embed.
23638 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23639 (setup): Use ->embed.
23640
23641 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23642
23643 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23644 function.
23645 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23646 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23647
23648 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23649
23650 Add function to get completions from usage.
23651
23652 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23653 completions from usage. Use LC_ALL=C to get options properly.
23654
23655 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23656
23657 * grub-core/gnulib/basename-lgpl.c: Imported.
23658 * grub-core/gnulib/basename.c: Likewise.
23659 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23660 * grub-core/gnulib/dirname.c: Likewise.
23661 * grub-core/gnulib/dirname.h: Likewise.
23662 * grub-core/gnulib/stripslash.c: Likewise.
23663
23664 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23665
23666 * grub-core/gnulib/error.c: Resynced.
23667 * grub-core/gnulib/getopt.c: Likewise.
23668 * grub-core/gnulib/getopt_int.h: Likewise.
23669 * grub-core/gnulib/regex.h: Likewise.
23670 * grub-core/gnulib/regex_internal.c: Likewise.
23671 * grub-core/gnulib/regex_internal.h: Likewise.
23672
23673 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23674
23675 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23676 CRC calculations and validity checks.
23677 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23678 calculations.
23679
23680 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23681
23682 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23683
23684 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23685
23686 Fix incorrect echo options handling.
23687 Reported by: Yves Blusseau.
23688
23689 * include/grub/command.h (grub_command_flags_t): New flags
23690 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23691 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23692 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23693
23694 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23695
23696 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23697 users updated.
23698 (GRUB_COMMAND_FLAG_MENU): Likewise.
23699 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23700 (GRUB_COMMAND_FLAG_TITLE): Removed.
23701 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23702 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23703 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23704 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23705 (grub_command_flags_t): New enum. All users updated.
23706
23707 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23708
23709 Fix solaris compilation.
23710
23711 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23712 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23713 (grub-emu-list): Likewise.
23714
23715 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23716
23717 Remove deprecated root command.
23718
23719 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23720 updated.
23721
23722 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23723
23724 * util/i386/pc/grub-setup.c: Merge this ...
23725 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23726 * util/grub-setup.c: ... into this.
23727 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23728 New struct.
23729
23730 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23731
23732 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23733 possible.
23734
23735 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23736
23737 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23738 allocate p.
23739
23740 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23741
23742 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23743 explicit root argument to set to prevent UUID to be interpreted as
23744 argument to set.
23745
23746 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23747
23748 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23749
23750 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23751
23752 Don't export grub_gate_a20.
23753
23754 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23755 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23756 to ...
23757 (grub_gate_a20): ... this. All users updated.
23758 * include/grub/i386/pc/init.h: Removed. All users updated.
23759
23760 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23761
23762 Create euro.pf2 which supports most European languages.
23763
23764 * Makefile.am (grubdata_DATA): Add euro.pf2.
23765 (euro.pf2): New target.
23766 (CLEANFILES): Add euro.pf2.
23767
23768 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23769
23770 * configure.ac: Disable emu-usb by default to prevent inadvertent
23771 device takeover.
23772
23773 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23774
23775 Disable usbserial on grub-emu since our libusb code isn't good enough
23776 yet.
23777
23778 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23779 (usbserial_pl2303): Likewise.
23780 (usbserial_ftdi): Likewise.
23781
23782 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23783
23784 * include/grub/disk.h (grub_disk): Remove has_partitions.
23785 All users updated.
23786 * disk/loopback.c (grub_loopback): Remove has_partitions.
23787 All users updated.
23788 (options): Remove partitions. All users updated.
23789 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23790 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23791 actual partition table is found.
23792
23793 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23794
23795 Remove readability checks (too many false negatives).
23796
23797 * util/grub-install.in: Remove readability checks.
23798 * util/grub-mkconfig.in: Likewise.
23799 * util/grub.d/10_hurd.in: Likewise.
23800 * util/grub.d/10_kfreebsd.in: Likewise.
23801 * util/grub.d/10_linux.in: Likewise.
23802 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23803 way.
23804
23805 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23806
23807 Enable acpi shutdown on all ACPI platforms.
23808
23809 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23810 on coreboo, multiboot and EFI.
23811 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23812 (grub_acpi_halt): Likewise.
23813 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23814 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23815 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23816 * grub-core/lib/i386/halt.c (grub_halt)
23817 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23818
23819 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23820
23821 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23822 context.
23823
23824 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23825
23826 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23827 * grub-core/video/efi_uga.c: Likewise.
23828
23829 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23830
23831 Filter devaliases and never open same device twice.
23832
23833 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23834 (last_ihandle): Likewise.
23835 (ofdisk_hash_ent): New member shortest.
23836 (ofdisk_hash_add): Add canonical path too.
23837 (scan): New function.
23838 (grub_ofdisk_iterate): Iterate over hashed entries.
23839 (compute_dev_path): Don't add :0.
23840 (grub_ofdisk_open): Don't really open the disk.
23841 (grub_ofdisk_close): Avoid closing unrelated disk.
23842 (grub_ofdisk_read): Implement reopen logic.
23843 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23844 New function.
23845 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23846 New proto.
23847
23848 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23849
23850 Fix sparc64.
23851
23852 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23853 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23854 right address. Add sparc64_ieee1275_ldflags.
23855 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23856 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23857 to grub_host_to_target_addr
23858 (load_image): Likewise.
23859
23860 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23861
23862 * grub-core/normal/completion.c (complete_file): Handle device
23863 containing slash.
23864 Fix based on patch by Doug Nazar.
23865
23866 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23867
23868 grub-mknetdir script.
23869
23870 * Makefile.util.def (grub-mknetdir): New module.
23871 * tests/util/grub-shell.in: Support boot=net
23872 * util/grub-mknetdir.in: New file.
23873
23874 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23875
23876 videoinfo on non-vbe.
23877
23878 * grub-core/Makefile.core.def (vbeinfo): Removed.
23879 (vbetest): Removed.
23880 (videoinfo): New module.
23881 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23882 * grub-core/commands/i386/pc/vbetest.c: Removed.
23883 * grub-core/commands/videoinfo.c: New file.
23884 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23885 specification.
23886 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23887 as vbetest.
23888 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23889 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23890 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23891 mode_number. New parameter mode. All users updated.
23892 (grub_video_gop_iterate): New function.
23893 (grub_video_efi_gop): New member iterate.
23894 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23895 (grub_vbe_set_video_mode): Remove setting useless fields.
23896 (vbe2videoinfo): New function.
23897 (grub_video_vbe_iterate): Likewise.
23898 (grub_video_vbe_setup): Use vbe2videoinfo.
23899 (grub_video_vbe_print_adapter_specific_info): New function.
23900 (grub_video_vbe_adapter): New fields iterate and
23901 print_adapter_specific_info.
23902 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23903 All users updated.
23904 (grub_video_mode_info): New field mode_number.
23905 (grub_video_adapter): New fields iterate and
23906 print_adapter_specific_info.
23907
23908 2010-09-13 Tristan Gingold <gingold@free.fr>
23909 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23910 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23911
23912 * grub-core/commands/efi/lsefisystab.c: New file.
23913 * grub-core/commands/efi/lssal.c: Likewise.
23914 * grub-core/Makefile.core.def (lsacpi): New module.
23915 (lsefisystab): Likewise.
23916 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23917 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23918 (grub_efi_sal_system_table): New struct.
23919 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23920 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23921 (grub_efi_sal_system_table_platform_features): Likewise.
23922 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23923 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23924 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23925 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23926
23927 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23928
23929 Support explicit user claim that a device is BIOS-visible.
23930
23931 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23932 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23933 * grub-core/kern/emu/hostdisk.c
23934 (convert_system_partition_to_system_disk): Support mdX.
23935 (find_system_device): New parameter add. All users updated.
23936 (grub_util_biosdisk_is_present): New function.
23937 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23938 proto.
23939
23940 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23941
23942 Search hints support.
23943
23944 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23945 All users updated.
23946
23947 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23948
23949 Bash completion script for util commands
23950
23951 * Makefile.am: Add util/bash-completion.d directory
23952 * configure.ac: Likewise.
23953 * util/bash-completion.d/Makefile.am: New file.
23954 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23955
23956 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23957
23958 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23959 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23960 Reported by: Yves Blusseau.
23961
23962 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23963
23964 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23965 partition size and offset.
23966
23967 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23968
23969 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23970
23971 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23972
23973 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23974
23975 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23976
23977 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23978 (grub_xvasprintf): Likewise.
23979
23980 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23981
23982 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23983
23984 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23985
23986 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23987 args ending with NULL.
23988
23989 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23990
23991 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23992 pointer.
23993
23994 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23995
23996 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23997
23998 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23999
24000 Shutdown using ACPI.
24001
24002 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24003 * grub-core/commands/acpihalt.c: New file.
24004 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24005 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24006 (grub_acpi_halt): New proto.
24007 (GRUB_ACPI_SLP_EN): New const.
24008 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24009 (GRUB_ACPI_OPCODE_*): New enum.
24010 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24011
24012 2010-09-11 Tristan Gingold <gingold@free.fr>
24013 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24014 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24015
24016 * commands/lsacpi.c: New file.
24017 * grub-core/Makefile.core.def (lsacpi): New module.
24018 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24019 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24020 (grub_acpi_madt_entry_header): New struct.
24021 (grub_acpi_madt): Likewise.
24022 (grub_acpi_madt_entry_interrupt_override): Likewise.
24023 (grub_acpi_madt_entry_sapic): Likewise.
24024 (grub_acpi_madt_entry_lsapic): Likewise.
24025 (grub_acpi_madt_entry_platform_int_source): Likewise.
24026 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24027 (PRIuGRUB_UINT32_T): Likewise.
24028 (PRIxGRUB_UINT64_T): Likewise.
24029
24030 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24031
24032 Implement loading palette on ieee1275_fb.
24033
24034 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24035 (have_setcolors): Likewise.
24036 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24037 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24038 (grub_video_ieee1275_set_palette): Implement.
24039
24040 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24041 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24042
24043 * util/grub-install.in (grub_partition): New variable.
24044 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24045 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24046 Fixes a bug reported by Yves Blusseau.
24047
24048 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24049
24050 Fix emu on mipsel.
24051
24052 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24053 =grub_cpu_flush_cache on all mips and not only yeeloong.
24054 * configure.ac (COND_mips): New conditional.
24055 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24056 platforms.
24057 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24058 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24059 [GRUB_LINKER_HAVE_INIT]: New function.
24060 (grub_emu_post_init): Likewise.
24061 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24062 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24063 * include/grub/cache.h (_mips): Include mips/cache.h.
24064 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24065 LVM and RAID prototypes.
24066 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24067 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24068 function.
24069
24070 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24071
24072 * util/grub-install.in: Don't try to verify core.img until after
24073 running grub-mkimage to create it.
24074
24075 2010-09-10 Robert Millan <rmh@gnu.org>
24076
24077 * util/grub.d/10_hurd.in: Add misc readability checks.
24078 * util/grub.d/10_kfreebsd.in: Likewise.
24079 * util/grub.d/10_linux.in: Likewise.
24080
24081 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24082
24083 * util/grub-install.in: ${imgext} won't be defined here until the
24084 install branch is merged. For the meantime, only verify core.img on
24085 i386-pc and sparc64-ieee1275 platforms.
24086
24087 2010-09-10 Robert Millan <rmh@gnu.org>
24088
24089 Solaris support in grub_find_zpool_from_dir(). Thanks
24090 Seth Goldberg for referring to getextmntent() facility.
24091
24092 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24093 `sys/mkdev.h'.
24094 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24095 `<sys/mnttab.h>'.
24096 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24097 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24098 method for finding zpool name.
24099
24100 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24101
24102 grub-fstest needs the host and hostfs modules while other utilities
24103 actively require those modules to be absent, so grub-fstest needs
24104 its own initialisation and finalisation code.
24105
24106 * Makefile.am (grub_fstest.pp): New target.
24107 (grub_fstest_init.lst): Likewise.
24108 (grub_fstest_init.c): Likewise.
24109 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24110
24111 2010-09-10 Robert Millan <rmh@gnu.org>
24112
24113 * configure.ac: Check for `struct statfs.f_fstypename' and
24114 `struct statfs.f_mntfromname'.
24115
24116 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24117 kFreeBSD-specific code.
24118
24119 2010-09-10 Robert Millan <rmh@gnu.org>
24120
24121 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24122 on ZFS. Now non-main filesystems are supported as / too.
24123
24124 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24125
24126 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24127 and grub-core/disk/host.c to ...
24128 (grub-fstest): ... here. Having the host disk implementation
24129 present confuses grub-probe and other utility programs.
24130
24131 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24132 when writing to a file, not when writing to stdout.
24133
24134 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24135
24136 * tests/partmap_test.in: New test for partitions.
24137 * Makefile.util.def: Rules for new test.
24138
24139 2010-09-09 Robert Millan <rmh@gnu.org>
24140
24141 * util/grub-probe.c (probe): Fix a pair of unhandled error
24142 conditions.
24143
24144 2010-09-09 Robert Millan <rmh@gnu.org>
24145
24146 Basic Btrfs support (detection and UUID).
24147
24148 * grub-core/fs/btrfs.c: New file.
24149 * Makefile.util.def (library): Register btrfs.c.
24150 * grub-core/Makefile.core.def: Likewise.
24151
24152 2010-09-08 Robert Millan <rmh@gnu.org>
24153
24154 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24155 with (optional) parameters to specify device and relative path.
24156 * util/grub-install.in: Use is_path_readable_by_grub() to
24157 verify readability of a few critical files.
24158 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24159 verify readability of grub.cfg.new.
24160
24161 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24162
24163 Split minix.mod into minix.mod and minix2.mod.
24164
24165 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24166 * grub-core/Makefile.core.def (minix2): New module.
24167 * grub-core/fs/minix.c: Use definitions instead of runtime version
24168 checking.
24169 * grub-core/fs/minix2.c: New file.
24170
24171 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24172
24173 Add new --boot-directory option to replace --root-directory
24174
24175 * util/grub-install.in: Add new --boot-directory option
24176 * util/grub-reboot.in: Likewise.
24177 * util/grub-set-default.in: Likewise.
24178
24179 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24180
24181 * util/grub-mkconfig.in: Use new variable.
24182
24183 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24184
24185 * configure.ac: Define some useful variables.
24186
24187 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24188
24189 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24190 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24191 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24192 Use terminfo and don't use cursor-on/cursor-off unless it's known
24193 to work.
24194 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24195 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24196
24197 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24198
24199 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24200 starts with "(,", fill the drive containing the loaded image in
24201 between those two characters, but expect that a full partition
24202 specification including partition map names will follow.
24203
24204 2010-09-08 Robert Millan <rmh@gnu.org>
24205
24206 * configure.ac: Remove `--enable-grub-fstest' option.
24207 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24208
24209 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24210 `grub-fstest' instead of `grub-probe' for readability verification.
24211 * util/grub-probe.c (probe): Remove readability verification kludge.
24212
24213 2010-09-08 Robert Millan <rmh@gnu.org>
24214
24215 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24216 initializing `GRUB_FS'.
24217
24218 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24219
24220 Not command (!) support to GRUB script.
24221
24222 * tests/grub_script_not.in: New test.
24223 * Makefile.util.def: Rules for new test.
24224
24225 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24226 ! command as a special case.
24227 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24228
24229 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24230
24231 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24232 grub_free.
24233
24234 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24235
24236 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24237
24238 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24239
24240 * docs/grub.texi (Shell-like scripting): Documentation for break,
24241 continue, shift and return commands.
24242
24243 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24244
24245 Rename CD-ROM to cd on BIOS.
24246
24247 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24248 "cd".
24249 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24250
24251 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24252
24253 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24254 * util/grub-probe.c (main): Likewise.
24255 * util/i386/pc/grub-setup.c (main): Likewise.
24256 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24257 Reported and debugged by: alexxy
24258
24259 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24260
24261 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24262 diagnostic info.
24263
24264 2010-09-05 Jo Shields <directhex@apebox.org>
24265
24266 * util/grub.d/30_os-prober.in: Add missing classes.
24267
24268 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24269
24270 * docs/grub.texi (Theme file format): Document new position format.
24271
24272 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24273
24274 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24275 a table. Use @code instead of @verbatim.
24276
24277 2010-09-05 Colin D Bennett <colin@gibibit.com>
24278
24279 Gfxmenu documentation.
24280
24281 * docs/grub.texi (Theme file format): New chapter.
24282
24283 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24284
24285 * grub-core/Makefile.core.def (xzio): New module.
24286 * grub-core/io/xzio.c: New file.
24287 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24288 * grub-core/lib/xzembed/xz_config.h: Likewise.
24289 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24290 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24291 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24292 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24293 * grub-core/lib/xzembed/xz_private.h: Likewise.
24294 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24295 * include/grub/file.h (grub_file_filter_id): New compression filter
24296 GRUB_FILE_FILTER_XZIO.
24297
24298 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24299
24300 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24301 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24302 size.
24303
24304 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24305
24306 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24307 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24308
24309 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24310
24311 Uncompressed checksum support.
24312
24313 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24314 (check_list): New parameter uncompress.
24315 (grub_cmd_hashsum): Handle --uncompress.
24316
24317 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24318
24319 Reintroduce testload.
24320
24321 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24322 from here ...
24323 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24324 (GRUB_MOD_INIT): New function.
24325 (GRUB_MOD_FINI): Likewise.
24326 * grub-core/Makefile.core.def (testload): New module.
24327
24328 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24329
24330 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24331 (uint8_t): New type.
24332 (uint16_t): Likewise.
24333 (uint32_t): Likewise.
24334 (uint64_t): Likewise.
24335
24336 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24337
24338 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24339
24340 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24341
24342 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24343 Made static.
24344 (grub_gzfile_open): Removed. All users updated.
24345 (GRUB_MOD_INIT): New function.
24346 (GRUB_MOD_FINI): Likewise.
24347 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24348 (grub_file_filters_enabled): Likewise.
24349 (grub_file_open): Handle filters.
24350 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24351 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24352 * include/grub/file.h (grub_file_filter_id_t): New type.
24353 (grub_file_filter_t): Likewise.
24354 (grub_file_filters_all): New extern variable.
24355 (grub_file_filters_enabled): Likewise.
24356 (grub_file_filter_register): New inline function.
24357 (grub_file_filter_unregister): Likewise.
24358 (grub_file_filter_disable): Likewise.
24359 (grub_file_filter_disable_compression): Likewise.
24360 * include/grub/gzio.h: Removed.
24361
24362 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24363
24364 Filename expansion support for wildcards in GRUB script.
24365
24366 * tests/grub_script_expansion.in: New test.
24367 * Makefile.util.def: Rule for new test.
24368
24369 * grub-core/commands/wildcard.c: New file, implements filename
24370 expansion support for GRUB script.
24371 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24372 * grub-core/script/argv.c: Cosmetic changes.
24373 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24374 Refactored to perform wildcard expansion on arguments.
24375 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24376 struct.
24377
24378 * tests/util/grub-shell.in: Fix quoting for read input.
24379
24380 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24381
24382 Support for updating environment variables with matched substrings
24383 of regexp.
24384
24385 * tests/grub_cmd_regexp.in: New test.
24386 * Makefile.util.def: Rule for new test.
24387
24388 * grub-core/commands/regexp.c: New option -s to update environment
24389 variables with regexp matches.
24390
24391 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24392
24393 * include/grub/file.h (grub_file): New member not_easly_seekable.
24394 (grub_file_seekable): New inline function.
24395 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24396 easily seekable.
24397 (grub_gzio_open): Set not_easly_seekable.
24398 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24399 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24400
24401 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24402
24403 Support for options to appear multiple times on cmdline.
24404
24405 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24406 * grub-core/commands/extcmd.c: Support for repeatable option.
24407 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24408 repeatable option support.
24409
24410 Refactor menuentry into a regular command.
24411
24412 * grub-core/commands/menuentry.c: New file, menuentry command
24413 implementation.
24414 * grub-core/Makefile.core.def: Rule update for normal.mod.
24415 * grub-core/normal/main.c: Moved menuentry creation to
24416 grub-core/commands/menuentry.c.
24417 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24418 (grub_menu_execute_entry_real): Removed.
24419 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24420 function.
24421 (grub_script_execute_menuentry): Removed.
24422 * grub-core/script/parser.y (menuentry): Removed.
24423 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24424 * grub-core/script/yylex.l (menuentry): Removed.
24425 * include/grub/menu.h (grub_menu_init): New prototype.
24426 (grub_menu_fini): New prototype.
24427 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24428 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24429 (grub_script_execute_sourcecode): New prototype.
24430
24431 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24432
24433 "return" command for GRUB script functions.
24434
24435 * tests/grub_script_return.in: New test.
24436 * Makefile.util.def: Rules for new test.
24437
24438 * grub-core/script/execute.c (grub_script_return): New function.
24439 * grub-core/script/main.c: Register/unregister return commaond.
24440 * include/grub/script_sh.h (grub_script_return): New prototype.
24441
24442 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24443
24444 "setparams" command to update positional parameters.
24445
24446 * tests/grub_script_setparams.in: New test.
24447 * Makefile.util.def: Rules for new test.
24448
24449 * grub-core/script/argv.c (grub_script_argv_make): New function.
24450 * grub-core/script/execute.c (replace_scope): New function.
24451 (grub_script_setparams): New function.
24452 * grub-core/script/lexer.c: Remove unused variables.
24453 * grub-core/script/main.c: Register/unregister setparams command.
24454 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24455 (grub_script_setparams): New prototype.
24456
24457 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24458
24459 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24460 grub_free order.
24461
24462 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24463
24464 Support for passing block of commands as an argument to extcmds.
24465
24466 * Makefile.util.def: Rules for new test.
24467 * tests/grub_script_blockarg.in: New test.
24468 * grub-core/tests/test_blockarg.c: New file, block argument
24469 command used in the test.
24470
24471 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24472 (grub_register_extcmd_prio): New function prototype.
24473 (grub_extcmd_dispatcher): New function prototype.
24474 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24475 type.
24476 * include/grub/script_sh.h (struct grub_script): New members
24477 `children', `next_siblings' and `refcnt' for block arguments and
24478 reference counting.
24479 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24480 (grub_script_arg): New member `script' for block argument.
24481 (grub_script_argv): New member `script' for block argument.
24482 (grub_parser_param): New member `scripts' for block argument.
24483 (grub_script_mem_free): New extern function prototype.
24484 (grub_script_ref): New function prototype.
24485 (grub_script_unref): New function prototype.
24486
24487 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24488 extcmd form to support block arguments.
24489 * grub-core/script/argv.c: Block arguments support.
24490 * grub-core/script/execute.c: Likewise.
24491 * grub-core/script/lexer.c: Likewise.
24492 * grub-core/script/main.c: Likewise.
24493 * grub-core/script/script.c: Likewise.
24494 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24495 non-terminals.
24496
24497 * grub-core/commands/acpi.c: Update extcmd implementations with
24498 grub_extcmd_context_t.
24499 * grub-core/commands/cat.c: Likewise.
24500 * grub-core/commands/echo.c: Likewise.
24501 * grub-core/commands/extcmd.c: Likewise.
24502 * grub-core/commands/hashsum.c: Likewise.
24503 * grub-core/commands/hdparm.c: Likewise.
24504 * grub-core/commands/help.c: Likewise.
24505 * grub-core/commands/hexdump.c: Likewise.
24506 * grub-core/commands/i386/cpuid.c: Likewise.
24507 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24508 * grub-core/commands/i386/pc/halt.c: Likewise.
24509 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24510 * grub-core/commands/iorw.c: Likewise.
24511 * grub-core/commands/keystatus.c: Likewise.
24512 * grub-core/commands/loadenv.c: Likewise.
24513 * grub-core/commands/ls.c: Likewise.
24514 * grub-core/commands/lspci.c: Likewise.
24515 * grub-core/commands/memrw.c: Likewise.
24516 * grub-core/commands/probe.c: Likewise.
24517 * grub-core/commands/search_wrap.c: Likewise.
24518 * grub-core/commands/setpci.c: Likewise.
24519 * grub-core/commands/sleep.c: Likewise.
24520 * grub-core/disk/loopback.c: Likewise.
24521 * grub-core/hello/hello.c: Likewise.
24522 * grub-core/loader/i386/bsd.c: Likewise.
24523 * grub-core/loader/xnu.c: Likewise.
24524 * grub-core/term/gfxterm.c: Likewise.
24525 * grub-core/term/serial.c: Likewise.
24526 * grub-core/tests/lib/functional_test.c: Likewise.
24527
24528 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24529
24530 Multi-line quoted strings support.
24531
24532 * grub-core/script/lexer.c (append_newline): Removed.
24533 (grub_script_lexer_yywrap): Refactored.
24534 (grub_script_lexer_init): Refactored.
24535 * grub-core/script/yylex.l (yywrap): New function.
24536 (grub_lexer_resplit): New function.
24537 (grub_lexer_unput): New function.
24538 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24539 and resplit.
24540 * tests/grub_script_echo1.in: Added few more testcases.
24541
24542 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24543
24544 * grub-core/kern/misc.c: Don't add abort alias in utils.
24545 Reported by: echoline.
24546
24547 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24548
24549 Add missing files into "make dist" tarball for other platforms.
24550
24551 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24552 * conf/Makefile.common (dist_noinst_DATA): New variable.
24553 * conf/Makefile.extra-dist: Added missing make dist files.
24554 * grub-core/Makefile.core.def: Likewise.
24555
24556 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24557
24558 Compress grub_prefix.
24559
24560 * grub-core/boot/i386/pc/lnxboot.S: Use
24561 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24562 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24563 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24564 GRUB_MACHINE_PREFIX_END. All users updated.
24565 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24566 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24567 + 0x40.
24568 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24569 * util/grub-mkimage.c (image_target_desc): Change data_end to
24570 prefix_end. All users updated.
24571
24572 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24573
24574 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24575 value.
24576 (grub_openbsd_boot): Likewise.
24577 (grub_netbsd_boot): Likewise.
24578 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24579 (grub_xnu_boot): Likewise.
24580
24581 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24582
24583 * configure.ac: Clean LIBS variable after tests.
24584
24585 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24586
24587 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24588
24589 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24590
24591 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24592 echo if libdevmapper will be used.
24593
24594 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24595
24596 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24597 constant for the same file.
24598
24599 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24600
24601 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24602
24603 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24604
24605 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24606 grub-core/*.pp.
24607
24608 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24609
24610 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24611 required by the boot protocol.
24612
24613 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24614 ebp and edi members.
24615 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24616 state.ebp and state.edi.
24617 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24618 %ebp and %edi according to grub_relocator32_ebp and
24619 grub_relocator32_edi respectively.
24620 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24621 and state.edi.
24622
24623 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24624
24625 Add i386-pc-pxe image target.
24626
24627 * util/grub-mkimage.c (image_target_desc): New enum value
24628 IMAGE_I386_PC_PXE.
24629 (image_targets): New target i386-pc-pxe.
24630 (generate_image): Handle i386-pc-pxe image.
24631
24632 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24633
24634 Fix grub_pxe_scan.
24635
24636 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24637 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24638 All users updated.
24639 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24640 (grub_pxe_pxenv): Correct type.
24641
24642 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24643
24644 * NEWS: Document most of the important changes since 1.98.
24645
24646 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24647
24648 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24649 generated manual page) a little.
24650
24651 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24652
24653 * docs/grub.texi: Add myself as an author.
24654
24655 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24656
24657 * Makefile.util.def (libgrub.a): Add missing sunpc.
24658 Reported by: Seth Goldberg.
24659
24660 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24661
24662 Interrupt wrapping and code simplifications.
24663
24664 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24665 x86_noieee1275 which are functionaly equivalent in this case.
24666 (grub-install): Make source on each platform explicit. Enable on
24667 all noemu.
24668 * gentpl.py (x86_efi_pc): Removed group.
24669 (x86_noefi): Likewise.
24670 (i386_noefi): Likewise.
24671 (x86_noieee1275): Likewise.
24672 (i386_noieee1275): Likewise.
24673 (i386_noefi_noieee1275): Likewise.
24674 (i386_pc_qemu_coreboot): Likewise.
24675 (i386_coreboot_multiboot): Likewise.
24676 (i386_pc_coreboot_multiboot_qemu): Likewise.
24677 (x86_noefi_mips): Likewise.
24678 (noieee1275): Likewise.
24679 (ieee1275_mips): Likewise.
24680 (noemu_noieee1275): Likewise.
24681 (cmos): New group.
24682 (usb): Likewise.
24683 (videoinkernel): Likewise.
24684 (videomodules): Likewise.
24685 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24686 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24687 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24688 include/grub/loader.h, include/grub/msdos_partition.h,
24689 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24690 include/grub/machine/console.h, include/grub/machine/vga.h,
24691 include/grub/machine/vbe.h, include/grub/machine/init.h,
24692 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24693 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24694 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24695 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24696 * grub-core/Makefile.core.def (kernel): Explicit the source for
24697 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24698 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24699 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24700 Use videoinkernel tag.
24701 (usb): Enable on all usb.
24702 (usbserial_common): Likewise.
24703 (usbserial_pl2303): Likewise.
24704 (usbserial_ftdi): Likewise.
24705 (uhci): Enable on all x86.
24706 (ohci): Enable on all pci.
24707 (cmostest): Enable on all CMOS.
24708 (acpi): Include commands/acpi.c on all platforms.
24709 (halt): Add relevant lib/*/halt.c.
24710 (hdparm): Enable on all pci.
24711 (lspci): Likewise.
24712 (usbtest): Enable on all usb.
24713 (ata): Enable on all pci.
24714 (ata_pthru): Likewise.
24715 (usbms): Enable on all usb.
24716 (usb_keyboard): Likewise.
24717 (font): Use tag videomodules.
24718 (bufio): Likewise.
24719 (datetime): Use tag cmos. Enable on all noemu.
24720 (mmap): Use tags common and x86.
24721 (gfxterm): Use tag videomodules.
24722 (bitmap): Likewise.
24723 (bitmap_scale): Likewise.
24724 (video_fb): Likewise.
24725 (video): Likewise.
24726 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24727 adjust padding accordingly. All users updated.
24728 (grub_ohci_transaction): Fix bad format specification.
24729 (GRUB_MOD_INIT): Add asserts for struct size.
24730 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24731 (grub_alloc_td): Likewise.
24732 (grub_free_queue): Likewise.
24733 (grub_uhci_transfer): Likewise.
24734 (grub_uhci_transaction): Fix bad format specification.
24735 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24736 (grub_usb_bulk_readwrite): Likewise.
24737 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24738 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24739 Made static.
24740 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24741 Made static.
24742 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24743 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24744 Transformed into C.
24745 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24746 Moved from here ...
24747 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24748 ... here. Transformed into C. Made static.
24749 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24750 Moved from here ...
24751 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24752 ... here. Transformed into C. Made static.
24753 * grub-core/kern/i386/pc/startup.S
24754 (grub_biosdisk_check_int13_extensions): Moved from here ...
24755 * grub-core/disk/i386/pc/biosdisk.c
24756 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24757 Made static.
24758 * grub-core/kern/i386/pc/startup.S
24759 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24760 * grub-core/disk/i386/pc/biosdisk.c
24761 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24762 Transformed into C. Made static.
24763 * grub-core/kern/i386/pc/startup.S
24764 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24765 * grub-core/disk/i386/pc/biosdisk.c
24766 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24767 Transformed into C. Made static.
24768 * grub-core/kern/i386/pc/startup.S
24769 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24770 * grub-core/disk/i386/pc/biosdisk.c
24771 (grub_biosdisk_get_diskinfo_standard): ... here.
24772 Transformed into C. Made static.
24773 * grub-core/kern/i386/pc/startup.S
24774 (grub_biosdisk_get_num_floppies): Moved from here ...
24775 * grub-core/disk/i386/pc/biosdisk.c
24776 (grub_biosdisk_get_num_floppies): ... here.
24777 Transformed into C. Made static.
24778 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24779 New function.
24780 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24781 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24782 Transformed into C. Made static.
24783 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24784 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24785 Transformed into C. Made static.
24786 * grub-core/kern/i386/ieee1275/init.c: Removed.
24787 * grub-core/kern/i386/misc.S: Likewise.
24788 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24789 Splitted from here ...
24790 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24791 Transformed into C. Made static. All users updated.
24792 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24793 Transformed into C. Made static. All users updated.
24794 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24795 Moved from here...
24796 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24797 Transformed into C. Made static. All users updated.
24798 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24799 Moved from here...
24800 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24801 Transformed into C. Made static. All users updated.
24802 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24803 Removed (replaced by C version).
24804 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24805 Moved from here...
24806 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24807 Transformed into C. Made static.
24808 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24809 Moved from here...
24810 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24811 ... here. Transformed into C.
24812 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24813 Moved from here...
24814 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24815 ... here. Transformed into C.
24816 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24817 Moved from here...
24818 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24819 ... here. Transformed into C. Made static.
24820 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24821 Moved from here...
24822 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24823 ... here. Transformed into C.
24824 * grub-core/kern/i386/pc/startup.S
24825 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24826 * grub-core/video/i386/pc/vbe.c
24827 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24828 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24829 Moved from here...
24830 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24831 ... here. Transformed into C.
24832 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24833 Moved from here...
24834 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24835 ... here. Transformed into C.
24836 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24837 Moved from here...
24838 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24839 ... here. Transformed into C.
24840 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24841 Moved from here...
24842 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24843 ... here. Transformed into C.
24844 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24845 Moved from here...
24846 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24847 ... here. Transformed into C. Made static.
24848 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24849 Moved from here...
24850 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24851 ... here. Transformed into C. Made static.
24852 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24853 Moved from here...
24854 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24855 ... here. Transformed into C. Made static.
24856 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24857 pxe_rm_entry as third argument.
24858 (grub_bios_interrupt): New function.
24859 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24860 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24861 of calling grub_stop.
24862 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24863 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24864 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24865 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24866 * grub-core/lib/i386/halt.c: Moved from here ...
24867 * grub-core/lib/i386/halt.c: ... here.
24868 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24869 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24870 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24871 grub_stop_floppy.
24872 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24873 * include/grub/i386/coreboot/init.h: Removed.
24874 * include/grub/i386/multiboot/init.h: Likewise.
24875 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24876 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24877 * include/grub/i386/pc/int.h: New file.
24878 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24879 (grub_pxe_scan): Removed.
24880 (grub_pxe_call): Update prototype.
24881 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24882 prototypes.
24883 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24884 * include/grub/i386/qemu/init.h: Removed.
24885 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24886 noreturn.
24887 (grub_halt): Likewise.
24888 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24889 (grub_reboot): Likewise.
24890 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24891 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24892 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24893
24894 2010-08-30 Robert Millan <rmh@gnu.org>
24895
24896 * NEWS: Document addition of ZFS support in `grub-install' and
24897 `grub-mkconfig'.
24898
24899 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24900
24901 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24902 dprintf output.
24903
24904 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24905
24906 Remove leftover embedding of font objects.
24907
24908 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24909 * util/grub-install.in (font): Removed.
24910 * util/grub-mkimage.c (generate_image): Remove font support. All users
24911 updated.
24912
24913 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24914
24915 Remove leftover embedding of font objects.
24916
24917 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24918 * util/grub-install.in (font): Removed.
24919 * util/grub-mkimage.c (generate_image): Remove font support. All users
24920 updated.
24921
24922 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24923
24924 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24925 Reported by: Ian Turner
24926
24927 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24928
24929 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24930 timeout to avoid indefinite boot stalling.
24931
24932 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24933
24934 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24935 (grub_env_write_color_highlight): Likewise.
24936
24937 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24938
24939 * grub-core/normal/term.c (print_more): Return to normal and not
24940 to standard state after printing "---MORE---".
24941
24942 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24943
24944 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24945 Mask out the bit 0x80 since it has other meaning that specifiing color.
24946
24947 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24948
24949 New relocator. Allows for more kernel support and more straightforward
24950 loader writing.
24951
24952 * Makefile.am (BOOTTARGET): New variable.
24953 (QEMU32): Likewise.
24954 (linux.init.x86_64): New target.
24955 (linux.init.i386): Likewise.
24956 (multiboot.elf): Likewise.
24957 (kfreebsd.elf): Likewise.
24958 (kfreebsd.aout): Likewise.
24959 (pc-chainloader.elf): Likewise.
24960 (pc-chainloader.bin): Likewise.
24961 (ntldr.elf): Likewise.
24962 (ntldr.bin): Likewise.
24963 (multiboot2.elf): Likewise.
24964 (kfreebsd.init.x86_64): Likewise.
24965 (kfreebsd.init.i386): Likewise.
24966 (knetbsd.init.i386): Likewise.
24967 (kopenbsd.init.i386): Likewise.
24968 (knetbsd.init.x86_64): Likewise.
24969 (kopenbsd.init.x86_64): Likewise.
24970 (linux-initramfs.i386): Likewise.
24971 (linux-initramfs.x86_64): Likewise.
24972 (kfreebsd-mfsroot.i386.img): Likewise.
24973 (knetbsd.image.i386): Likewise.
24974 (kopenbsd.image.i386): Likewise.
24975 (kopenbsd.image.x86_64): Likewise.
24976 (knetbsd.miniroot-image.i386.img): Likewise.
24977 (kfreebsd-mfsroot.x86_64.img): Likewise.
24978 (knetbsd.image.x86_64): Likewise.
24979 (knetbsd.miniroot-image.x86_64.img): Likewise.
24980 (kfreebsd-mfsroot.i386.gz): Likewise.
24981 (bootcheck-kfreebsd-i386): Likewise.
24982 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24983 (bootcheck-kfreebsd-x86_64): Likewise.
24984 (knetbsd.miniroot-image.i386.gz): Likewise.
24985 (bootcheck-knetbsd-i386): Likewise.
24986 (bootcheck-kopenbsd-i386): Likewise.
24987 (bootcheck-kopenbsd-x86_64): Likewise.
24988 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24989 (bootcheck-knetbsd-x86_64): Likewise.
24990 (bootcheck-linux-i386): Likewise.
24991 (bootcheck-linux-x86_64): Likewise.
24992 (bootcheck-linux16-i386): Likewise.
24993 (bootcheck-linux16-x86_64): Likewise.
24994 (bootcheck-multiboot): Likewise.
24995 (bootcheck-multiboot2): Likewise.
24996 (bootcheck-kfreebsd-aout): Likewise.
24997 (bootcheck-pc-chainloader): Likewise.
24998 (bootcheck-ntldr): Likewise.
24999 (CLEANFILES): Add new targets.
25000 (BOOTCHECKS): New variable.
25001 (.PHONY): Add bootchecks.
25002 (SUCCESSFUL_BOOT_STRING): New variable.
25003 (BOOTCHECK_TIMEOUT): Likewise.
25004 (bootcheck): New target
25005 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25006 * configure.ac: Correct efiemu excuse.
25007 * docs/grub.texi (Supported kernels): New chapter.
25008 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25009 include/grub/mm_private.h. Simplify inclusion of
25010 include/grub/boot.h, include/grub/loader.h
25011 and include/grub/msdos_partition.h
25012 (KERNEL_HEADER_FILES) [i386_coreboot]:
25013 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25014 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25015 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25016 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25017 include/grub/machine/loader.h.
25018 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25019 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25020 extra_dist.
25021 (pci.mod): Enable on i386-multiboot.
25022 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25023 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25024 i386-qemu.
25025 (relocator.mod): Rewritten.
25026 (aout.mod): Enable on all x86.
25027 (bsd.mod): Likewise.
25028 (ntldr.mod): New module.
25029 (linux.mod): Use loader/i386/linux.c on all x86.
25030 (xnu.mod): Enable on all x86.
25031 (vga_text.mod): disable on EFI and QEMU.
25032 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25033 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25034 * grub-core/efiemu/loadcore.c: Likewise.
25035 * grub-core/efiemu/main.c: Likewise.
25036 (grub_efiemu_exit_boot_services): Removed.
25037 (grub_efiemu_finish_boot_services): Likewise.
25038 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25039 function.
25040 * grub-core/efiemu/i386/nocfgtables.c: New file.
25041 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25042 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25043 (grub_efi_finish_boot_services): Moved from here ...
25044 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25045 Fille finish memory map and related data.
25046 (finish_mmap_buf): New variable.
25047 (grub_efi_uintn_t finish_mmap_size): Likewise.
25048 (grub_efi_uintn_t finish_key): Likewise.
25049 (grub_efi_uintn_t finish_desc_size): Likewise.
25050 (grub_efi_uint32_t finish_desc_version): Likewise.
25051 (grub_efi_is_finished): Likewise.
25052 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25053 finished.
25054 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25055 (grub_elf64_phdr_iterate): Likewise.
25056 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25057 (grub_os_area_size): Likewise.
25058 (grub_machine_init): Don't reserve os area.
25059 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25060 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25061 * grub-core/kern/i386/loader.S: Removed.
25062 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25063 (grub_os_area_size): Likewise.
25064 (grub_machine_init): Don't reserve os area.
25065 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25066 Don't call grub_dl_unload_all.
25067 Don't include loader.S.
25068 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25069 Declare the memory after _end as available.
25070 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25071 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25072 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25073 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25074 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25075 * include/grub/mm_private.h (grub_mm_header): ... here.
25076 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25077 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25078 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25079 (grub_mm_region): ..here. Removed addr. Added pre_size.
25080 All users updated.
25081 * grub-core/kern/mm.c (base): Renamed to ...
25082 (grub_mm_base): ... this. Made global.
25083 (grub_real_malloc): Alloc from end of region.
25084 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25085 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25086 * grub-core/kern/powerpc/cache_flush.S: ... here.
25087 * grub-core/lib/efi/relocator.c: New file.
25088 * grub-core/lib/i386/relocator.c: Rewritten.
25089 * grub-core/lib/i386/relocator16.S: New file.
25090 * grub-core/lib/i386/relocator32.S: Likewise.
25091 * grub-core/lib/i386/relocator64.S: Likewise.
25092 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25093 * grub-core/lib/i386/relocator_common.S: New file.
25094 * grub-core/lib/ieee1275/relocator.c: Likewise.
25095 * grub-core/lib/mips/relocator.c: Rewritten.
25096 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25097 stylistic adjustments.
25098 * grub-core/lib/powerpc/relocator.c: New file.
25099 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25100 * grub-core/lib/relocator.c: Rewritten.
25101 * grub-core/lib/x86_64/relocator_asm.S: New file.
25102 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25103 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25104 (bsd_tag): New struct.
25105 (tags): New variable.
25106 (tags_last): Likewise.
25107 (netbsd_module): New struct.
25108 (netbsd_mods): New variable.
25109 (netbsd_mods_last): Likewise.
25110 (openbsd_opts): New parameter "serial".
25111 (OPENBSD_SERIAL_ARG): New definition.
25112 (netbsd_opts): New parameter "serial".
25113 (NETBSD_SERIAL_ARG): New definition.
25114 (grub_freebsd_add_meta): Reorganised into ...
25115 (grub_bsd_add_meta): ...this. All users updated.
25116 (grub_freebsd_add_mmap): Reorganised into ...
25117 (generate_e820_mmap): ...this...
25118 (grub_bsd_add_mmap): ...and this. All users updated.
25119 (grub_freebsd_list_modules): Use tags.
25120 (grub_netbsd_add_meta_module): New function.
25121 (grub_netbsd_list_modules): Likewise.
25122 (grub_freebsd_boot): Use relocator and finish EFI.
25123 (grub_openbsd_boot): Likewise.
25124 (grub_netbsd_setup_video): New function.
25125 (grub_netbsd_add_modules): Likewise.
25126 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25127 and finish EFI.
25128 (grub_bsd_unload): Unload tags.
25129 (grub_bsd_load_aout): Use relocator.
25130 (grub_bsd_elf32_size_hook): New function.
25131 (grub_bsd_elf32_hook): Use relocator.
25132 (grub_bsd_elf64_size_hook): New function.
25133 (grub_bsd_elf64_hook): Use relocator.
25134 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25135 (grub_bsd_load): Zero-out openbsd_ramdisk.
25136 (grub_bsd_load): Use relocator.
25137 (grub_cmd_openbsd): Support serial.
25138 (grub_cmd_netbsd): Support modules.
25139 (grub_cmd_freebsd_module): Use relocator.
25140 (grub_netbsd_module_load): New function.
25141 (grub_cmd_netbsd_module): Likewise.
25142 (grub_cmd_openbsd_ramdisk): Likewise.
25143 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25144 kopenbsd_ramdisk.
25145 (GRUB_MOD_FINI): Unregister new commands.
25146 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25147 (grub_freebsd_load_elfmodule_obj): Use relocator.
25148 (grub_freebsd_load_elfmodule): Likewise.
25149 (grub_freebsd_load_elf_meta): Likewise.
25150 (grub_netbsd_load_elf_meta): New function.
25151 (grub_openbsd_find_ramdisk): Likewise.
25152 * grub-core/loader/i386/bsd_helper.S: Removed.
25153 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25154 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25155 * grub-core/loader/i386/efi/linux.c: Likewise.
25156 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25157 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25158 (DEFAULT_VIDEO_MODE): Likewise.
25159 (real_mode_target): New variable.
25160 (prot_mode_target): Likewise.
25161 (initrd_mem_target): Likewise.
25162 (relocator): Likewise.
25163 (efi_mmap_buf): Likewise.
25164 (efi_mmap_size): Likewise.
25165 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25166 (free_pages): Use relocator.
25167 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25168 (grub_linux_setup_video): Return error.
25169 (grub_linux_trampoline_start): Removed.
25170 (grub_linux_trampoline_end): Likewise.
25171 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25172 andd video parameters depending on firmware.
25173 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25174 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25175 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25176 (grub_cmd_initrd): Use relocator.
25177 * grub-core/loader/i386/linux_trampoline.S: Removed.
25178 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25179 (elf_sec_entsize): Likewise.
25180 (elf_sec_shstrndx): Likewise.
25181 (elf_sections): Likewise.
25182 (grub_multiboot_load): Use relocator.
25183 (grub_multiboot_get_mbi_size): Account for sections.
25184 (grub_multiboot_make_mbi): Use relocator and support sections.
25185 (grub_multiboot_add_elfsyms): New function.
25186 (grub_multiboot_free_mbi): Free sections.
25187 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25188 (grub_linux_real_target): Likewise.
25189 (grub_linux_real_chunk): Likewise.
25190 (grub_linux16_prot_size): Likewise.
25191 (grub_linux16_boot): Use relocator.
25192 (grub_linux_unload): Unload relocator.
25193 (grub_cmd_linux): Use relocator.
25194 (grub_cmd_initrd): Likewise.
25195 * grub-core/loader/i386/pc/ntldr.c: New file.
25196 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25197 Don't try to guess CPU frequency.
25198 (grub_xnu_set_video): Stretch bitmap.
25199 (grub_xnu_boot): Use relocator.
25200 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25201 (grub_linux_unload): Free relocator.
25202 (grub_linux_load32): Use relocator.
25203 (grub_linux_load64): Likewise.
25204 (grub_cmd_initrd): Likewise.
25205 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25206 (grub_multiboot_unload): Unload relocator.
25207 (grub_cmd_multiboot): Use relocator.
25208 (grub_cmd_module): Likewise.
25209 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25210 Use relocator and support sections.
25211 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25212 (elf_sec_entsize): Likewise.
25213 (elf_sec_shstrndx): Likewise.
25214 (elf_sections): Likewise.
25215 (grub_multiboot_load): Use relocator.
25216 (grub_multiboot_get_mbi_size): Account for sections.
25217 (grub_multiboot_make_mbi): Use relocator and support sections.
25218 (grub_multiboot_add_elfsyms): New function.
25219 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25220 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25221 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25222 Prototype changed. All users updated.
25223 (grub_xnu_align_heap): Simplified.
25224 (grub_xnu_writetree_toheap): Likewise.
25225 (grub_xnu_unload): Unload relocator.
25226 (grub_cmd_xnu_kernel): Use relocator.
25227 (grub_cmd_xnu_kernel64): Likewise.
25228 (grub_xnu_register_memory): Simplified.
25229 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25230 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25231 EFI is finished.
25232 (grub_console_checkkey): Likewise.
25233 (grub_console_getkey): Likewise.
25234 (grub_console_getwh): Likewise.
25235 (grub_console_getxy): Likewise.
25236 (grub_console_gotoxy): Likewise.
25237 (grub_console_cls): Likewise.
25238 (grub_console_setcolorstate): Likewise.
25239 (grub_console_setcursor): Likewise.
25240 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25241 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25242 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25243 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25244 * grub-core/tests/boot/kernel-8086.S: Likewise.
25245 * grub-core/tests/boot/kernel-i386.S: Likewise.
25246 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25247 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25248 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25249 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25250 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25251 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25252 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25253 * grub-core/tests/boot/linux.cfg: Likewise.
25254 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25255 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25256 * grub-core/tests/boot/linux16.cfg: Likewise.
25257 * grub-core/tests/boot/multiboot.cfg: Likewise.
25258 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25259 * grub-core/tests/boot/ntldr.cfg: Likewise.
25260 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25261 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25262 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25263 New definition.
25264 * include/grub/dl.h (grub_dl_unload_all): Removed.
25265 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25266 (grub_efi_finish_boot_services): Change prototype.
25267 (grub_efi_is_finished): New variable.
25268 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25269 Changed prototype.
25270 (grub_efiemu_finish_boot_services): Removed.
25271 (grub_machine_efiemu_init_tables): New prototype.
25272 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25273 (grub_elf64_phdr_iterate): Likewise.
25274 * include/grub/i386/bsd.h: Include relocator.h.
25275 (freebsd_tag_header): New struct.
25276 (grub_openbsd_bios_mmap): Removed.
25277 (grub_unix_real_boot): Removed.
25278 (grub_freebsd_load_elfmodule32): Changed prototype.
25279 (grub_freebsd_load_elfmodule_obj64): Likewise.
25280 (grub_freebsd_load_elf_meta32): Likewise.
25281 (grub_freebsd_load_elf_meta64): Likewise.
25282 (grub_freebsd_add_meta): Removed.
25283 (grub_netbsd_load_elf_meta32): New prototype.
25284 (grub_netbsd_load_elf_meta64): Likewise.
25285 (grub_bsd_add_meta): Likewise.
25286 (grub_openbsd_ramdisk_descriptor): New struct.
25287 (grub_openbsd_find_ramdisk32): New prototype.
25288 (grub_openbsd_find_ramdisk64): Likewise.
25289 * include/grub/i386/coreboot/loader.h: Removed.
25290 * include/grub/i386/efi/loader.h: Likewise.
25291 * include/grub/i386/ieee1275/loader.h: Likewise.
25292 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25293 to grub_uint32_t.
25294 * include/grub/i386/loader.h: Removed.
25295 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25296 value.
25297 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25298 (grub_phys_addr_t): New type.
25299 (grub_vtop): New inline function.
25300 (grub_map_memory): Likewise.
25301 (grub_unmap_memory): Likewise.
25302 * include/grub/i386/multiboot/loader.h: Removed.
25303 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25304 (NETBSD_BTINFO_CONSOLE): New definition.
25305 (NETBSD_BTINFO_SYMTAB): Likewise.
25306 (NETBSD_BTINFO_MODULES): Likewise.
25307 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25308 (grub_netbsd_bootinfo): New struct.
25309 (grub_netbsd_btinfo_common): Use explicit bitsize.
25310 (grub_netbsd_btinfo_mmap_entry): Removed.
25311 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25312 (grub_netbsd_btinfo_bootdisk): New struct.
25313 (grub_netbsd_btinfo_symtab): Likewise.
25314 (grub_netbsd_btinfo_serial): Likewise.
25315 (grub_netbsd_btinfo_modules): Likewise.
25316 (grub_netbsd_btinfo_framebuf): Likewise.
25317 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25318 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25319 Likewise.
25320 (grub_openbsd_bootargs): Use explicit bitsize.
25321 (grub_openbsd_bootarg_console): New struct.
25322 (GRUB_OPENBSD_COM_MAJOR): New definition.
25323 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25324 * include/grub/i386/pc/efiemu.h: Removed.
25325 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25326 * include/grub/i386/qemu/loader.h: Removed.
25327 * include/grub/i386/relocator.h: Rewritten.
25328 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25329 * include/grub/mips/memory.h: New file.
25330 * include/grub/mips/multiboot.h: Rewritten.
25331 * include/grub/mips/relocator.h: Rewritten.
25332 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25333 (grub_vtop): New function.
25334 (grub_map_memory): Likewise.
25335 (grub_unmap_memory): Likewise.
25336 * include/grub/misc.h (ALIGN_DOWN): New definition.
25337 * include/grub/mm.h (grub_mm_check_real): New proto.
25338 (GRUB_MM_CHECK): New definition.
25339 * include/grub/mm_private.h: New file.
25340 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25341 (grub_multiboot_get_mbi_size): Removed.
25342 (grub_multiboot_make_mbi): Change prottype.
25343 (grub_multiboot_set_accepts_video): New proto.
25344 (grub_multiboot_add_elfsyms): Likewise.
25345 (grub_multiboot_payload_eip): New variable.
25346 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25347 New prototype.
25348 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25349 New definition.
25350 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25351 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25352 * include/grub/powerpc/ieee1275/loader.h: Removed.
25353 * include/grub/powerpc/memory.h: New file.
25354 * include/grub/powerpc/relocator.h: Likewise.
25355 * include/grub/relocator.h: Likewise.
25356 * include/grub/relocator_private.h: Likewise.
25357 * include/grub/sparc64/ieee1275/loader.h: Removed.
25358 * include/grub/x86_64/memory.h: New file.
25359 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25360 (grub_xnu_heap_malloc): Likewise.
25361 (grub_xnu_heap_real_start): Removed.
25362 (grub_xnu_heap_start): Likewise.
25363 (grub_xnu_relocator): New variable.
25364 (grub_xnu_heap_target_start): Likewise.
25365 * tests/util/grub-shell.in: Support non-pc.
25366 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25367
25368 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25369
25370 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25371 on malloc error.
25372 (grub_bidi_logical_to_visual): Check that malloc succeded.
25373 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25374 puts.
25375 (grub_xputs_normal): Likewise.
25376
25377 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25378
25379 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25380 extra_dist.
25381
25382 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25383
25384 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25385
25386 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25387
25388 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25389
25390 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25391
25392 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25393 dprintf.
25394
25395 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25396
25397 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25398
25399 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25400
25401 * grub-core/normal/term.c (print_more): Fix a memory leak.
25402 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25403 (grub_xputs_normal): Likewise.
25404
25405 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25406
25407 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25408 the begining of the string
25409
25410 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25411
25412 * grub-core/script/script.c (grub_script_parse): Free parsed on
25413 failure.
25414
25415 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25416
25417 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25418 on failure.
25419
25420 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25421
25422 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25423 return.
25424
25425 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25426
25427 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25428 (scroll_up): Fix a memory leak.
25429
25430 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25431
25432 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25433 errors.
25434
25435 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25436
25437 Handle USB pendrives exposed as floppies.
25438
25439 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25440 floppy.
25441 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25442 Check for partitions on all devices.
25443
25444 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25445
25446 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25447 (readkey): Likewise.
25448
25449 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25450
25451 Multiple variable names support to "export" command.
25452
25453 * normal/context.c (grub_cmd_export): "export" command supports
25454 multiple variable names.
25455
25456 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25457
25458 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25459 --target=drive output to Mach device name.
25460
25461 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25462
25463 New Automake based build system for GRUB.
25464
25465 * ABOUT-NLS: New file.
25466 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25467 in Makefile.util.def file.
25468 * Makefile.util.def: New file. Autogen build definitions file for
25469 GRUB host utils.
25470 * conf/Makefile.common: New file. Common variables for GRUB host
25471 utils and target modules.
25472 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25473 * docs/Makefile.am: New file. Automake file for docs.
25474 * gentpl.py: New file. Python script to generate Autogen
25475 template.
25476 * grub-core/Makefile.am: New file. GRUB target modules' rules
25477 that doesn't fit in Makefile.core.def file.
25478 * grub-core/Makefile.core.def: New file. Autogen build
25479 definitions file for GRUB target modules.
25480 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25481 specific setjmp.S file.
25482 * po/Makefile.am: New file.
25483
25484 * .bzrignore: New ignores.
25485 * INSTALL: New requirements, without Ruby.
25486 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25487 * autogen.sh: Updated to invoke autogen as necessary.
25488 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25489 and defines for Automake conditionals.
25490 * geninit.sh: Refactoring.
25491
25492 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25493 necessary.
25494 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25495 New prototype.
25496
25497 * include/grub/test.h: Fix functional test modules' naming.
25498 * grub-core/tests/example_functional_test.c: Fix test module name.
25499
25500 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25501 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25502 * util/grub-editenv.c: Likewise.
25503 * util/grub-fstest.c: Likewise.
25504 * util/grub-mkdevicemap.c: Likewise.
25505 * util/grub-mkfont.c: Likewise.
25506 * util/grub-mkimage.c: Likewise.
25507 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25508 * util/grub-probe.c: Likewise.
25509 * util/grub-script-check.c: Likewise.
25510 * util/i386/pc/grub-setup.c: Likewise.
25511 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25512
25513 * tests/util/grub-shell.in: Fix override directory path.
25514 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25515 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25516
25517 * util/lvm.c: Update #includes.
25518 * util/raid.c: Likewise.
25519 * util/resolve.c: Likewise.
25520 * grub-core/bus/emu/pci.c: Likewise.
25521 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25522 * grub-core/lib/posix_wrap/string.h: Likewise.
25523 * grub-core/kern/emu/main.c: Likewise.
25524
25525 * grub-core/gensymlist.sh: New file. Script for generating kernel
25526 symbols file.
25527 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25528
25529 * grub-core/gentrigtables.c: Fix unused variable warnings.
25530
25531 * Makefile.in: Removed.
25532 * conf/any-emu.rmk: Removed.
25533 * conf/common.rmk: Removed.
25534 * conf/i386-coreboot.rmk: Removed.
25535 * conf/i386-efi.rmk: Removed.
25536 * conf/i386-ieee1275.rmk: Removed.
25537 * conf/i386-multiboot.rmk: Removed.
25538 * conf/i386-pc.rmk: Removed.
25539 * conf/i386-qemu.rmk: Removed.
25540 * conf/i386.rmk: Removed.
25541 * conf/mips-yeeloong.rmk: Removed.
25542 * conf/mips.rmk: Removed.
25543 * conf/powerpc-ieee1275.rmk: Removed.
25544 * conf/sparc64-ieee1275.rmk: Removed.
25545 * conf/tests.rmk: Removed.
25546 * conf/x86-efi.rmk: Removed.
25547 * conf/x86_64-efi.rmk: Removed.
25548 * gendistlist.sh: Removed.
25549 * geninitheader.sh: Removed.
25550 * genkernsyms.sh.in: Removed.
25551 * genmk.rb: Removed.
25552 * gensymlist.sh.in: Removed.
25553 * mkinstalldirs: Removed.
25554 * boot: Moved ...
25555 * grub-core/boot: ... to here.
25556 * bus: Moved ...
25557 * grub-core/bus: ... to here.
25558 * commands: Moved ...
25559 * grub-core/commands: ... to here.
25560 * disk: Moved ...
25561 * grub-core/disk: ... to here.
25562 * efiemu: Moved ...
25563 * grub-core/efiemu: ... to here.
25564 * font: Moved ...
25565 * grub-core/font: ... to here.
25566 * fs: Moved ...
25567 * grub-core/fs: ... to here.
25568 * gencmdlist.sh: Moved ...
25569 * grub-core/gencmdlist.sh: ... to here.
25570 * genemuinit.sh: Moved ...
25571 * grub-core/genemuinit.sh: ... to here.
25572 * genemuinitheader.sh: Moved ...
25573 * grub-core/genemuinitheader.sh: ... to here.
25574 * genfslist.sh: Moved ...
25575 * grub-core/genfslist.sh: ... to here.
25576 * genhandlerlist.sh: Moved ...
25577 * grub-core/genhandlerlist.sh: ... to here.
25578 * genmoddep.awk: Moved ...
25579 * grub-core/genmoddep.awk: ... to here.
25580 * genmodsrc.sh: Moved ...
25581 * grub-core/genmodsrc.sh: ... to here.
25582 * genpartmaplist.sh: Moved ...
25583 * grub-core/genpartmaplist.sh: ... to here.
25584 * genparttoollist.sh: Moved ...
25585 * grub-core/genparttoollist.sh: ... to here.
25586 * genterminallist.sh: Moved ...
25587 * grub-core/genterminallist.sh: ... to here.
25588 * gentrigtables.c: Moved ...
25589 * grub-core/gentrigtables.c: ... to here.
25590 * genvideolist.sh: Moved ...
25591 * grub-core/genvideolist.sh: ... to here.
25592 * gettext: Moved ...
25593 * grub-core/gettext: ... to here.
25594 * gfxmenu: Moved ...
25595 * grub-core/gfxmenu: ... to here.
25596 * gnulib: Moved ...
25597 * grub-core/gnulib: ... to here.
25598 * hello: Moved ...
25599 * grub-core/hello: ... to here.
25600 * hook: Moved ...
25601 * grub-core/hook: ... to here.
25602 * io: Moved ...
25603 * grub-core/io: ... to here.
25604 * kern: Moved ...
25605 * grub-core/kern: ... to here.
25606 * lib: Moved ...
25607 * grub-core/lib: ... to here.
25608 * loader: Moved ...
25609 * grub-core/loader: ... to here.
25610 * mmap: Moved ...
25611 * grub-core/mmap: ... to here.
25612 * normal: Moved ...
25613 * grub-core/normal: ... to here.
25614 * partmap: Moved ...
25615 * grub-core/partmap: ... to here.
25616 * parttool: Moved ...
25617 * grub-core/parttool: ... to here.
25618 * script: Moved ...
25619 * grub-core/script: ... to here.
25620 * term: Moved ...
25621 * grub-core/term: ... to here
25622 * tests/example_functional_test.c: Moved ...
25623 * grub-core/tests/example_functional_test.c: ... to here.
25624 * tests/lib/functional_test.c: Moved ...
25625 * grub-core/tests/lib/functional_test.c: ... to here.
25626 * tests/lib/test.c: Moved ...
25627 * grub-core/tests/lib/test.c: ... to here.
25628 * video: Moved ...
25629 * grub-core/video: ... to here.
25630
25631 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25632
25633 Replace --enable-grub-emu-modules with grub-emu-lite.
25634
25635 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25636 cache.S.
25637
25638 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25639 * kern/emu/full.c: New file. For grub-emu specific initialization.
25640 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25641 * kern/emu/main.c: Call initialization function grub_emu_init.
25642
25643 * Makefile.in: Include grub-emu-lite in install.
25644 * commands/parttool.c: Use grub_no_autoload to differentiate
25645 between grub-emu and grub-emu-lite.
25646 * include/grub/misc.h: New variable grub_no_autoload.
25647
25648 * conf/any-emu.rmk: New rules for grub-emu-lite.
25649 * configure.ac: Remove --enable-grub-emu-modules.
25650 * genmk.rb: Cleanup unnecessary rules.
25651 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25652
25653 * normal/main.c: Don't load list files on grub-emu-lite.
25654 * util/misc.c (grub_arch_sync_caches): Removed.
25655
25656 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25657
25658 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25659 grub-mkimage rather than grub-mkelfimage.
25660 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25661
25662 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25663
25664 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25665 a key after CapsLock or NumLock. It's just a qemu bug.
25666
25667 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25668
25669 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25670 needed by libusb wrapper.
25671
25672 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25673
25674 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25675
25676 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25677
25678 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25679 --nounzip is passed.
25680
25681 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25682
25683 USB hotunplugging and USB serial support.
25684
25685 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25686 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25687 (grub_uhci_transfer): Respect timeout and set *actual.
25688 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25689 non-standard length.
25690 (grub_usb_device_attach): Autoload modules.
25691 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25692 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25693 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25694 users updated.
25695 (grub_usb_add_hub): Fill nports and children.
25696 (attach_root_port): Receive hub instead of controller.
25697 All users updated. Fill hub->devices.
25698 (grub_usb_root_hub): Allocate hub->devices.
25699 (detach_device): New function.
25700 (poll_nonroot_hub): Fill children and detach devices.
25701 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25702 actual arguments. All users updated.
25703 (grub_usb_bulk_read_extended): New function.
25704 * bus/usb/serial/common.c: New file.
25705 * bus/usb/serial/ftdi.c: Likewise.
25706 * bus/usb/serial/pl2303.c: Likewise.
25707 * commands/terminal.c (handle_command): Support wildcard.
25708 * commands/usbtest.c: Output "Unknown" instead of empty string.
25709 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25710 (usbserial_common_mod_SOURCES): New variable.
25711 (usbserial_common_mod_CFLAGS): Likewise.
25712 (usbserial_common_mod_LDFLAGS): Likewise.
25713 (pkglib_MODULES): Add usbserial_pl2303.mod.
25714 (usbserial_pl2303_mod_SOURCES): New variable.
25715 (usbserial_pl2303_mod_CFLAGS): Likewise.
25716 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25717 (pkglib_MODULES): Add usbserial_ftdi.mod.
25718 (usbserial_ftdi_mod_SOURCES): New variable.
25719 (usbserial_ftdi_mod_CFLAGS): Likewise.
25720 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25721 (pkglib_MODULES): Add serial.mod.
25722 (serial_mod_SOURCES): New variable.
25723 (serial_mod_CFLAGS): Likewise.
25724 (serial_mod_LDFLAGS): Likewise.
25725 * conf/i386-pc.rmk: Likewise.
25726 * conf/mips-yeeloong.rmk: Likewise.
25727 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25728 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25729 * disk/usbms.c (first_available_slot): New variable.
25730 (grub_usbms_attach): Don't reuse free slots due to potential cache
25731 problems.
25732 * include/grub/serial.h: Moved to ..
25733 * include/grub/ns8250.h: ...this.
25734 * include/grub/serial.h: New file.
25735 * include/grub/term.h (grub_term_poll_usb): New variable.
25736 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25737 readkey. All users updated.
25738 (grub_terminfo_output_state): Pass term to put.
25739 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25740 (grub_usb_controller_dev): Add timeout and actual arguments to
25741 transfer. All users updated.
25742 (grub_usb_interface): New field detach_data.
25743 (grub_usb_device): New fields children and nports.
25744 (grub_usb_ep_type_t): New type.
25745 (grub_usb_get_ep_type): New function.
25746 (grub_usb_bulk_read_extended): Likewise.
25747 * include/grub/usbdesc.h (grub_usb_desc): New type.
25748 * include/grub/usbserial.h: New file.
25749 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25750 * kern/term.c (grub_term_poll_usb): New variable.
25751 (grub_getkey): Call grub_term_poll_usb if set.
25752 (grub_checkkey): Likewise.
25753 (grub_getkeystatus): Likewise.
25754 * term/serial.c: Moved controller-specific parts to ...
25755 * term/ns8250.c: ... here.
25756 * term/serial.c: Mostly rewritten.
25757 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25758 according to spec.
25759
25760 2010-08-20 Robert Millan <rmh@gnu.org>
25761
25762 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25763 a separate module and maybe other interesting combinations.
25764
25765 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25766 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25767 (kfreebsd_entry): Add generic filesystem module load routine.
25768 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25769
25770 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25771
25772 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25773 "numcenter" (I misunderstood the purpose of this entry).
25774 * docs/grub.texi (sendkey): Likewise.
25775
25776 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25777
25778 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25779 status flag options; simply omitting the option is equivalent and
25780 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25781 (keysym_table): Rename "num5numlock" to "numlock".
25782 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25783 can uniformly say that only the last of multiple `sendkey'
25784 invocations has any effect.
25785 * docs/grub.texi (sendkey): New section.
25786
25787 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25788
25789 * commands/i386/pc/sendkey.c (options): Fix three typos.
25790
25791 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25792
25793 Implement sendkey support.
25794
25795 * commands/i386/pc/sendkey.c: New file.
25796 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25797 (sendkey_mod_SOURCES): New variable.
25798 (sendkey_mod_CFLAGS): Likewise.
25799 (sendkey_mod_LDFLAGS): Likewise.
25800
25801 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25802
25803 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25804 fix warnings from Autoconf.
25805
25806 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25807
25808 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25809 to avoid false positives with some assemblers that output things
25810 like "someprefix_func" as part of their output.
25811
25812 2010-08-15 Robert Millan <rmh@gnu.org>
25813
25814 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25815 errors.
25816 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25817 grub_get_libzfs_handle() errors.
25818
25819 2010-08-14 Robert Millan <rmh@gnu.org>
25820
25821 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25822 filesystem is not ZFS.
25823
25824 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25825
25826 Fix for misspelled color names defaulting to black/black (bug
25827 reported by Doug Nazar)
25828
25829 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25830 status to prototype.
25831 * normal/color.c (grub_parse_color_name_pair): Return failure
25832 status.
25833 (grub_env_write_color_normal): Ignore bad color names.
25834 (grub_env_write_color_highlight): Likewise.
25835 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25836
25837 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25838
25839 "shift" command support to GRUB script.
25840
25841 * include/grub/script_sh.h (grub_script_shift): New prototype.
25842 * script/execute.c (grub_script_shift): New function.
25843 * script/main.c (grub_script_init): Register shift command.
25844 (grub_script_fini): Unregister shift command.
25845 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25846
25847 * tests/grub_script_shift.in: New testcase.
25848 * conf/tests.rmk: Rules for new testcase.
25849
25850 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25851
25852 "continue" command support to GRUB script.
25853
25854 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25855 (grub_script_break): Continue support.
25856 * script/main.c (grub_script_init): Register continue command.
25857 (grub_script_fini): Unregister continue command.
25858
25859 * tests/grub_script_continue.in: New testcase.
25860 * conf/tests.rmk: Rules for new testcase.
25861
25862 2010-08-12 BVK Chaitanya <bvk@dbook>
25863
25864 "break" command support to GRUB script.
25865
25866 * conf/common.rmk: Rule updates to grub-script-check.
25867 * include/grub/misc.h (grub_min): New function.
25868 * include/grub/script_sh.h (grub_script_init): New prototype.
25869 (grub_script_fini): New prototype.
25870 (grub_script_break): New prototype.
25871 * script/main.c (grub_script_init): New function.
25872 (grub_script_fini): New function.
25873 * script/execute.c (grub_script_break): New function.
25874 * normal/main.c: Calls to grub_script_{init,fini}.
25875 * util/grub-script-check.c (grub_script_break): New function.
25876
25877 * tests/grub_script_break.in: New testcase.
25878 * conf/tests.rmk: Rules for new test case.
25879
25880 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25881
25882 Function parameters support to GRUB script.
25883
25884 * script/yylex.l (VARIABLE): Regular expression update.
25885 * script/function.c (grub_script_function_call): Moved ...
25886 * script/execute.c (grub_script_function_call): ... to here.
25887 (grub_script_execute_arglist_to_argv): Removed.
25888 (grub_script_arglist_to_argv): New function.
25889 * script/argv.c: New file.
25890 (grub_script_argv_free): New function.
25891 (grub_script_argv_next): Likewise.
25892 (grub_script_argv_append): Likewise.
25893 (grub_script_argv_split_append): Likewise.
25894 * include/grub/script_sh.h (grub_script_argv): New struct.
25895 (grub_script_argv_free): New function.
25896 (grub_script_argv_next): Likewise.
25897 (grub_script_argv_append): Likewise.
25898 (grub_script_argv_split_append): Likewise.
25899
25900 * conf/common.rmk (normal.mod): New source script/argv.c.
25901
25902 * tests/grub_script_echo1.in: More tests.
25903 * tests/grub_script_vars1.in: Likewise.
25904 * tests/grub_script_functions.in: New test case.
25905 * conf/tests.rmk: Rules for new testcase.
25906
25907 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25908
25909 Remove grub_script_cmdblock struct.
25910
25911 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25912 * script/parser.y: Likewise.
25913 * script/execute.c: Rename cmdblock suffix to cmdlist.
25914 * script/script.c: Likewise.
25915 * util/grub-script-check.c: Likewise.
25916
25917 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25918
25919 * .bzrignore: add grub-macho2img
25920
25921 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25922
25923 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25924
25925 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25926
25927 Remove the dump of sm712 initialisation sequence.
25928
25929 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25930 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25931 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25932 (GRUB_VGA_CR_*): Added many registers.
25933 (GRUB_VGA_SR_*): Likewise.
25934 (GRUB_VGA_GR_*): Likewise.
25935 (grub_vga_write_arx): New function.
25936 (grub_video_hw_config): New struct.
25937 (grub_vga_set_geometry): New function.
25938 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25939 GRUB_PCI_CLASS_SUBCLASS_VGA.
25940 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25941 * video/sm712.c (grub_sm712_write_reg): New function
25942 (grub_sm712_read_reg): Likewise.
25943 (grub_sm712_sr_write): Likewise.
25944 (grub_sm712_gr_write): Likewise.
25945 (grub_sm712_cr_write): Likewise.
25946 (grub_sm712_write_arx): Likewise.
25947 (grub_sm712_cr_shadow_write): Likewise.
25948 (grub_sm712_write_dda_lookup): Likewise.
25949 (grub_video_sm712_setup): Initialise the video rather then
25950 blindly replay the dump.
25951 (main) [TEST]: Add a routine to be able to compile as standalone for
25952 tests.
25953 * video/sm712_init.c (sm712_init): Removed.
25954 (sm712_sr_seq1): New array.
25955 (sm712_sr_seq2): Likewise.
25956
25957 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25958
25959 * include/grub/vga.h: Add missing grub/pci.h include.
25960
25961 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25962
25963 * util/grub-macho2img.c (main): fix typo
25964
25965 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25966
25967 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25968 (grub_vga_gr_read): Likewise.
25969 (grub_vga_cr_write): Likewise.
25970 (grub_vga_cr_read): Likewise.
25971 (grub_vga_sr_write): Likewise.
25972 (grub_vga_sr_read): Likewise.
25973 (grub_vga_palette_read): Likewise.
25974 (grub_vga_palette_write): Likewise.
25975 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25976 (grub_sm712_sr_read): New function.
25977 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25978 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25979
25980 2010-08-09 Robert Millan <rmh@gnu.org>
25981
25982 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25983 out unused variables on non-ZFS build.
25984
25985 2010-08-08 Robert Millan <rmh@gnu.org>
25986
25987 Fix path generation for sub-filesystems in ZFS.
25988
25989 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25990 missing slash.
25991
25992 2010-08-08 Robert Millan <rmh@gnu.org>
25993
25994 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25995
25996 2010-08-08 Robert Millan <rmh@gnu.org>
25997
25998 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25999 exist, issue a proper error message (rely on `ls' for translated
26000 strings).
26001
26002 2010-08-08 Robert Millan <rmh@gnu.org>
26003
26004 Fix grub-probe invocation.
26005
26006 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26007
26008 2010-08-04 Robert Millan <rmh@gnu.org>
26009
26010 * configure.ac: Remove checks for getfsstat() and getmntany().
26011 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26012 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26013 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26014 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26015 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26016 function.
26017 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26018 via find_mount_point_from_dir() and getfsstat() / getmntany().
26019
26020 2010-08-04 Robert Millan <rmh@gnu.org>
26021
26022 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26023 (grub_find_zpool_from_mount_point): Merge into ...
26024 (grub_find_zpool_from_dir): ... this.
26025 * kern/emu/misc.c: Likewise.
26026
26027 * kern/emu/misc.c
26028 (grub_make_system_path_relative_to_its_root): Replace
26029 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26030 with grub_find_zpool_from_dir().
26031 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26032
26033 2010-08-04 Robert Millan <rmh@gnu.org>
26034
26035 Support OpenSolaris in ZFS device resolution.
26036
26037 * configure.ac: Check for getmntany().
26038 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26039 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26040 support.
26041
26042 2010-08-03 Robert Millan <rmh@gnu.org>
26043
26044 Fix grub-emu build.
26045
26046 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26047 * include/grub/emu/misc.h: ... here.
26048
26049 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26050 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26051
26052 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26053 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26054 (grub_get_libzfs_handle): Move to ...
26055 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26056 (grub_get_libzfs_handle): ... here.
26057
26058 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26059
26060 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26061 as command name case.
26062
26063 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26064
26065 * disk/raid.c (insert_array): Select unique numbers for named arrays
26066 as well, for use as keys in the disk cache.
26067
26068 2010-08-01 Robert Millan <rmh@gnu.org>
26069
26070 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26071 kFreeBSD device name, except on ZFS where the filesystem label is
26072 used.
26073 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26074 `/boot/zfs/zpool.cache'.
26075 Set mountfrom kernel variable using ${kfreebsd_device}.
26076
26077 2010-08-01 Robert Millan <rmh@gnu.org>
26078
26079 Make it even harder to use uninitialized `libzfs_handle' (and
26080 make the interface a bit simpler).
26081
26082 * include/grub/util/misc.h (grub_util_init_libzfs)
26083 (libzfs_handle): Remove.
26084 (grub_get_libzfs_handle): New prototype.
26085
26086 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26087 attribute.
26088 (grub_util_init_libzfs): Remove.
26089 (grub_get_libzfs_handle): New function.
26090
26091 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26092 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26093 accessing `libzfs_handle' directly.
26094
26095 2010-08-01 Robert Millan <rmh@gnu.org>
26096
26097 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26098 (grub_find_zpool_from_mount_point): New function prototypes.
26099
26100 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26101 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26102
26103 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26104 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26105 `static' attribute.
26106
26107 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26108 finding zpool from mount point into ...
26109 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26110
26111 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26112 requested path is part of a ZFS pool, use
26113 grub_find_zpool_from_mount_point() to detect its filesystem name,
26114 and generate a path with `/fsname@path' syntax.
26115
26116 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26117
26118 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26119 (void) rather than () so that this is a proper prototype.
26120
26121 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26122
26123 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26124
26125 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26126
26127 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26128 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26129
26130 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26131
26132 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26133
26134 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26135
26136 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26137
26138 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26139
26140 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26141 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26142 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26143 disable gfxpayload.
26144 (Shell-like scripting): Add real content.
26145 (Serial terminal): Suggest `terminal_input serial; terminal_output
26146 serial' rather than putting the two commands on separate lines,
26147 since console input will be inoperative after the first command.
26148 (menuentry): Document --class, --users, and --hotkey options.
26149 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26150 Vladimir Serbinenko).
26151
26152 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26153 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26154
26155 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26156
26157 2010-08-01 Robert Millan <rmh@gnu.org>
26158
26159 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26160 (grub_find_zpool_from_mount_point): New function prototypes.
26161
26162 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26163 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26164
26165 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26166 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26167 `static' attribute.
26168
26169 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26170 finding zpool from mount point into ...
26171 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26172
26173 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26174 requested path is part of a ZFS pool, use
26175 grub_find_zpool_from_mount_point() to detect its filesystem name,
26176 and generate a path with `/fsname@path' syntax.
26177
26178 2010-08-01 Robert Millan <rmh@gnu.org>
26179
26180 Prevent accidental use of uninitialized libzfs_handle.
26181
26182 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26183 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26184 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26185
26186 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26187
26188 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26189 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26190
26191 2010-08-01 Robert Millan <rmh@gnu.org>
26192
26193 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26194
26195 2010-07-31 Robert Millan <rmh@gnu.org>
26196
26197 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26198
26199 2010-07-31 Robert Millan <rmh@gnu.org>
26200
26201 * kern/emu/misc.c: Add missing license header.
26202
26203 2010-07-31 Robert Millan <rmh@gnu.org>
26204
26205 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26206
26207 * include/grub/util/libnvpair.h: Include `<config.h>'.
26208 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26209 declaring libnvpair prototypes ourselves.
26210 * include/grub/util/libzfs.h: Include `<config.h>'.
26211 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26212 declaring libzfs prototypes ourselves.
26213
26214 (libzfs_handle): Moved to ...
26215 * include/grub/util/misc.h (libzfs_handle): ... here.
26216 Include `<grub/util/libzfs.h>'.
26217
26218 2010-07-30 Robert Millan <rmh@gnu.org>
26219
26220 * include/grub/emu/misc.h: Add missing license header.
26221
26222 2010-07-30 Robert Millan <rmh@gnu.org>
26223
26224 Enable `grub-probe -t device' resolution on ZFS.
26225
26226 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26227 * include/grub/util/libnvpair.h: New file.
26228 * include/grub/util/libzfs.h: New file.
26229
26230 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26231 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26232 `<grub/util/libnvpair.h>'.
26233 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26234
26235 (find_mount_point_from_dir): New static function.
26236 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26237 function.
26238 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26239 find_root_device_from_libzfs() before ressorting to find_root_device().
26240
26241 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26242 prototype.
26243 * util/misc.c: Include `<grub/util/libzfs.h>'.
26244 (grub_util_init_libzfs): New function.
26245 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26246 [HAVE_LIBZFS] (fini_libzfs): New static function.
26247 (grub_util_init_libzfs): New function.
26248 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26249
26250 2010-07-30 Robert Millan <rmh@gnu.org>
26251
26252 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26253 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26254 `warn_unused_result' attribute.
26255 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26256 (grub_xasprintf, grub_xvasprintf): Likewise.
26257 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26258
26259 2010-07-29 Robert Millan <rmh@gnu.org>
26260
26261 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26262 (probe): Handle `PRINT_FS_LABEL'.
26263 (main): Handle `-t fs_label'.
26264
26265 2010-07-29 Robert Millan <rmh@gnu.org>
26266
26267 * configure.ac: Remove grub-mkisofs checks.
26268
26269 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26270
26271 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26272 Reported by: Lennart Sorensen.
26273
26274 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26275
26276 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26277 prior to terminal_input/terminal_output separation. It's been over 1.5
26278 years and those versions weren't widely deployed.
26279
26280 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26281
26282 * disk/raid.c (insert_array): Don't count named arrays when looking
26283 for unused array numbers.
26284 Reported and tested by: Michael Guntsche.
26285
26286 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26287
26288 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26289 implementation of this so that grub-emu links again, with a note
26290 that this should support hotplugging in the future.
26291
26292 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26293
26294 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26295
26296 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26297
26298 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26299 handle on failure.
26300 (grub_loopback_close): Remove empty function.
26301 (grub_loopback_dev): Remove close method.
26302
26303 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26304
26305 Disable EFI cursor when the EFI console becomes inactive.
26306
26307 * term/efi/console.c (grub_efi_console_init): New function.
26308 (grub_efi_console_fini): New function.
26309 (grub_console_term_output): Register init and fini methods.
26310
26311 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26312
26313 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26314 sh script.
26315
26316 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26317
26318 * disk/loopback.c (grub_loopback): Replace filename with file.
26319 (delete_loopback): Handle new semantics.
26320 (grub_cmd_loopback): Likewise.
26321 (grub_loopback_iterate): Likewise.
26322 (grub_loopback_close): Likewise.
26323
26324 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26325
26326 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26327 with -p "".
26328 Reported by: Tito Keitel.
26329
26330 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26331
26332 * docs/grub.texi (Naming convention): Document new naming convention.
26333
26334 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26335 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26336
26337 Generate device.map in something closer to the old ordering.
26338
26339 * util/deviceiter.c (struct device): New declaration.
26340 (compare_file_names): Rename to ...
26341 (compare_devices): ... this. Sort by kernel name in preference to
26342 the stable by-id name, but keep the latter as a fallback comparison.
26343 Update header comment.
26344 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26345 of `struct device' rather than of plain file names.
26346
26347 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26348
26349 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26350 on i386.
26351
26352 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26353
26354 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26355 hardcoding size.
26356 (setv1table): Likewise.
26357
26358 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26359
26360 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26361 removing the homehost if present.
26362 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26363 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26364 removing the homehost if present.
26365 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26366 if possible.
26367 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26368
26369 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26370 parameter. Set its pointer target to 0.
26371 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26372 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26373 `data_offset' value from the superblock for 1.x metadata.
26374 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26375 data on the device.
26376 (insert_array): Record the start sector of data on the device.
26377 (grub_raid_register): Pass start_sector parameters to
26378 grub_raid_list->detect and insert_array.
26379 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26380 member.
26381 (struct grub_raid): Add start_sector parameter to `detect'.
26382
26383 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26384 __attribute__ ((packed)), leaving a comment.
26385 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26386 (grub_mdraid_detect_09): ... here and ...
26387 (grub_mdraid_detect_1x): ... here.
26388
26389 2010-07-20 Peter Henn <peter.henn@web.de>
26390
26391 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26392 chunk size and disk size, which are already given as sector counts
26393 as distinct from the 0.90 units. Fetch the correct device number
26394 from the role table instead of using the table index.
26395
26396 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26397
26398 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26399 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26400 (WriteMostly1): New macro.
26401 Set array->name to NULL for metadata format 0.90. Add support for
26402 metadata 1.x. Fix some comments.
26403 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26404 few comments.
26405 * util/getroot.c (grub_util_get_grub_dev): Add support for
26406 /dev/md/name style devices.
26407
26408 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26409
26410 * .bzrignore: Ignore 20_linux_xen.
26411
26412 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26413
26414 * util/import_unicode.py: Remove unnecessary imports.
26415
26416 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26417
26418 Hotplugging and USB hub support.
26419
26420 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26421 (grub_ohci): Likewise.
26422 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26423 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26424 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26425 (GRUB_OHCI_CTRL_EDS): Likewise.
26426 (GRUB_OHCI_BULK_EDS): Likewise.
26427 (GRUB_OHCI_TDS): Likewise.
26428 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26429 (grub_ohci_ed_phys2virt): New function.
26430 (grub_ohci_virt_to_phys): Likewise.
26431 (grub_ohci_td_phys2virt): Likewise.
26432 (grub_ohci_td_virt2phys): Likewise.
26433 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26434 attachment.
26435 (grub_ohci_find_ed): New function.
26436 (grub_ohci_alloc_td): Likewise.
26437 (grub_ohci_free_td): Likewise.
26438 (grub_ohci_free_tds): Likewise.
26439 (grub_ohci_transfer): Use previously allocated memory.
26440 (grub_ohci_portstatus): Reset status changed bit.
26441 (grub_ohci_detect_dev): Supply status changed.
26442 (grub_ohci_fini_hw): Free memory.
26443 (grub_ohci_restore_hw): Reallocate memory.
26444 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26445 Reset status change.
26446 (grub_uhci_detect_dev): Supply status_change.
26447 * bus/usb/usb.c (attach_hooks): New var.
26448 (grub_usb_device_attach): New function.
26449 (grub_usb_register_attach_hook_class): Likewise.
26450 (grub_usb_unregister_attach_hook_class): Likewise.
26451 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26452 (grub_usb_add_hub): Reset connection changed bit.
26453 (attach_root_port): New function.
26454 (grub_usb_root_hub): Likewise.
26455 (poll_nonroot_hub): Likewise.
26456 (grub_usb_poll_devices): Likewise.
26457 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26458 * disk/usbms.c (grub_usbms_open): Use device hooks.
26459 (grub_usbms_iterate) :Poll devices.
26460 (grub_usbms_finddevs): Split into ...
26461 (grub_usbms_attach): ... this ...
26462 (grub_usbms_attach): ... and this.
26463 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26464 in detect_dev.
26465 (grub_usb_interface): New fields attached and detach_hook.
26466 (grub_usb_attach_hook_class): New type.
26467 (grub_usb_attach_desc): New struct.
26468 (grub_usb_register_attach_hook_class): New function.
26469 (grub_usb_unregister_attach_hook_class): Likewise.
26470 (grub_usb_poll_devices): Likewise.
26471 (grub_usb_device_attach): Likewise.
26472 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26473 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26474
26475 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26476
26477 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26478 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26479 delta determination style. Works with most NetBSD partitions too.
26480
26481 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26482
26483 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26484 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26485
26486 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26487
26488 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26489
26490 2010-07-14 Anton Blanchard <anton@samba.org>
26491
26492 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26493 ET_DYN files.
26494
26495 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26496
26497 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26498
26499 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26500
26501 * kern/partition.c (grub_partition_check_containment): New function to
26502 check that a partition is physically contained in a parent. Since
26503 offsets are relative (and non-negative), this reduces to checking that
26504 the partition ends before its parent.
26505 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26506 (grub_partition_iterate): Likewise.
26507 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26508 comments.
26509 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26510 partitions that start before their parent, and add debug printfs.
26511
26512 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26513
26514 * Makefile.in (.SUFFIX): Spell correctly, as ...
26515 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26516 bare module name without `.mod', e.g. `test') tried to invoke a
26517 Modula-2 compiler.
26518
26519 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26520
26521 * README: Point to the Info manual.
26522
26523 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26524
26525 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26526 2nd superblock position from partition size.
26527
26528 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26529
26530 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26531 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26532 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26533 outputs.
26534
26535 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26536
26537 Restructure SCSI .id handling.
26538 Reported and tested by: Aleš Nesrsta.
26539
26540 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26541 (grub_atapi_dev): Changed .name to "ata". New field .id.
26542 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26543 (grub_usbms_dev): New field .id.
26544 * disk/scsi.c (grub_scsi_iterate): Generate name.
26545 (grub_scsi_open): Parse name.
26546 * include/grub/scsi.h (grub_make_scsi_id): New function.
26547 (grub_scsi_dev): Change iterate and open to number instead of naming
26548 busses. All users updated.
26549 (grub_scsi): Remove name. Add .bus.
26550
26551 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26552
26553 * commands/help.c (grub_cmd_help): Fix a typo.
26554
26555 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26556
26557 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26558 Reported and tested by: Colin Watson.
26559
26560 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26561
26562 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26563 in this context.
26564
26565 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26566
26567 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26568
26569 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26570
26571 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26572 indentation.
26573
26574 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26575
26576 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26577 and disk/raid6_recover.c.
26578 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26579 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26580
26581 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26582
26583 * term/gfxterm.c (repaint_schedulded): Rename to ...
26584 (repaint_scheduled): ... this. Update all callers.
26585 (repaint_was_schedulded): Rename to ...
26586 (repaint_was_scheduled): ... this. Update all callers.
26587
26588 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26589
26590 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26591 which we expect to be handled by upper layers.
26592
26593 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26594
26595 * bus/usb/usbhub.c: #include time.h header.
26596
26597 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26598
26599 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26600 entry_name also for entries without stat blocks (e.g. ".."); fixes
26601 corruption of the first entry in a directory.
26602
26603 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26604
26605 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26606 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26607 doesn't work otherwise.
26608
26609 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26610
26611 * docs/grub.texi (Features): Update list of supported file systems.
26612 (GNU/Linux): Update for GRUB 2.
26613 (Serial terminal): Remove mention of --disable-serial, which was a
26614 GRUB Legacy configure option. Update instructions to use
26615 `terminal_input' and `terminal_output' rather than `terminal'.
26616 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26617 configuration' and `Installing GRUB using grub-install'.
26618 (Menu entry editor): Update for GRUB 2.
26619 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26620 Document new -a, -u, and -v options.
26621 (initrd): New section.
26622 (initrd16): New section.
26623 (linux): New section.
26624 (linux16): New section.
26625 (search): The `var' argument to `--set' is optional.
26626 (GRUB only offers a rescue shell): Go into a little more detail on
26627 drive ordering.
26628
26629 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26630
26631 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26632
26633 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26634
26635 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26636 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26637
26638 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26639
26640 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26641 install_prefix, in line with install_dos_part and install_bsd_part.
26642 Add new prefix variable, which is copied to install_prefix after
26643 comparing core.img in memory with the one read from disk in the
26644 no-embedding case, and use that rather than overwriting
26645 install_prefix immediately when installing to a partition.
26646 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26647 Bicakci.
26648
26649 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26650
26651 * configure.ac: Avoid == in test command, it's not portable.
26652 * util/grub.d/30_os-prober.in: Likewise.
26653
26654 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26655
26656 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26657
26658 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26659
26660 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26661 multiple (top-level) partmaps.
26662
26663 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26664
26665 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26666 Reported by: Tino Keitel.
26667
26668 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26669
26670 Bidi and diacritics support.
26671
26672 * Makefile.in (widthspec.bin): New target.
26673 (widthspec.h): Likewise.
26674 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26675 * autogen.sh: Generate unidata.c.
26676 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26677 * commands/ls.c (grub_ls_list_devices): Likewise.
26678 (grub_ls_list_files): Likewise.
26679 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26680 (grub_mini_cmd_lsmod): Likewise.
26681 * commands/read.c: Likewise.
26682 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26683 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26684 * lib/arg.c (grub_arg_show_help): Likewise.
26685 * lib/crypto.c (grub_password_get): Likewise.
26686 * normal/auth.c (grub_username_get): Likewise.
26687 * normal/misc.c (grub_normal_print_device_info): Likewise.
26688 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26689 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26690 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26691 (normal/charset.c_DEPENDENCIES): New variable.
26692 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26693 (pkglib_MODULES): Remove charset.mod.
26694 (charset_mod_SOURCES): Removed.
26695 (charset_mod_CFLAGS): Likewise.
26696 (charset_mod_LDFLAGS): Likewise.
26697 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26698 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26699 and term/tparm.c.
26700 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26701 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26702 (kernel_img_HEADERS): Add terminfo.h.
26703 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26704 Fill ->font. Reverse ascii bitmaps.
26705 (grub_font_get_xheight): New function.
26706 * font/font.c (grub_font_get_string_width): Moved from here ...
26707 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26708 * font/font.c (grub_font_draw_string): Moved from here ...
26709 * gfxmenu/font.c (grub_font_draw_string): ... here.
26710 * font/font.c (grub_font_dup_glyph): New function.
26711 (grub_font_blit_glyph): Likewise.
26712 (grub_font_blit_glyph_mirror): Likewise.
26713 (blit_comb): Likewise.
26714 (grub_font_construct_dry_run): Likewise.
26715 (grub_font_get_constructed_device_width): Likewise.
26716 (grub_font_construct_glyph): Likewise.
26717 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26718 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26719 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26720 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26721 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26722 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26723 (grub_font_get_xheight): New proto.
26724 (grub_font_get_constructed_device_width): Likewise.
26725 (grub_font_construct_glyph): Likewise.
26726 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26727 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26728 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26729 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26730 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26731 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26732 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26733 (grub_console_getcharwidth): Likewise.
26734 * include/grub/misc.h (grub_xputs): New proto.
26735 (grub_puts): Inlined.
26736 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26737 (grub_normal_get_line_counter): Removed.
26738 (grub_install_newline_hook): Likewise.
26739 (grub_normal_get_char_counter): New proto.
26740 (grub_normal_reset_more): Likewise.
26741 (grub_xputs_normal): Likewise.
26742 * include/grub/powerpc/ieee1275/console.h: Removed.
26743 * include/grub/sparc64/ieee1275/console.h: Likewise.
26744 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26745 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26746 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26747 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26748 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26749 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26750 (grub_term_input): Pass reference to self. All users updated.
26751 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26752 Pass reference to self. New fields normal_color, highlight_color and
26753 data. All users updated.
26754 (grub_putchar): Removed.
26755 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26756 (grub_unicode_estimate_width): New function.
26757 (grub_term_getcharwidth): Add defaults.
26758 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26759 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26760 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26761 (grub_cls): Remove EXPORT_FUNC.
26762 (grub_setcolorstate): Inline.
26763 (grub_newline_hook): Removed.
26764 * include/grub/terminfo.h: Rewritten. All users updated.
26765 * include/grub/unicode.h: New file.
26766 * include/grub/video.h (grub_video_signed_rect): New type.
26767 * kern/emu/console.c (grub_console_highlight_color): Removed.
26768 (grub_console_normal_color): Likewise.
26769 (grub_console_standard_color): Made static.
26770 (grub_ncurses_putchar): Remove mapping.
26771 (grub_ncurses_getcharwidth): Removed.
26772 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26773 (grub_ncurses_setcolor): Removed.
26774 (grub_ncurses_getcolor): Likewise.
26775 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26776 (grub_console_putchar): ... this.
26777 (grub_console_putchar): Handle argument difference.
26778 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26779 console_init_early and console_init_lately.
26780 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26781 * kern/misc.c (grub_puts): Removed.
26782 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26783 (grub_vsnprintf_real): Remove str = NULL support.
26784 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26785 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26786 * kern/term.c (grub_putcode): Renamed to ...
26787 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26788 (grub_putchar): Removed.
26789 (grub_xputs_dumb): New function.
26790 (grub_xputs): New variable.
26791 * lib/charset.c: Move from here ...
26792 * normal/charset.c: ... to here.
26793 (grub_ucs4_to_utf8): New function.
26794 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26795 (join_types): New variable.
26796 (unpack_join): New function.
26797 (bidi_types): New variable.
26798 (unpack_bidi): New function.
26799 (get_bidi_type): Likewise.
26800 (get_join_type): Likewise.
26801 (is_mirrored): Likewise.
26802 (grub_unicode_get_comb_type): Likewise.
26803 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26804 (is_type_after): Likewise.
26805 (grub_unicode_aglomerate_comb): Likewise.
26806 (bidi_line_wrap): Likewise.
26807 (grub_bidi_line_logical_to_visual): Likewise.
26808 (grub_bidi_logical_to_visual): Likewise.
26809 (grub_unicode_mirror_code): Likewise.
26810 (grub_unicode_shape_code): Likewise.
26811 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26812 Don't use grub_putchar.
26813 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26814 (grub_normal_reader_init): Likewise.
26815 (grub_xputs_saved): New variable.
26816 (GRUB_MOD_INIT): Set grub_xputs.
26817 (GRUB_MOD_FINI): Restore grub_xputs.
26818 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26819 (menu_init): Avoid printing gfxmenu error.
26820 (show_menu): Use grub_normal_get_char_counter.
26821 * normal/menu_entry.c (update_screen): Fix out-of-array.
26822 (complete): Avoid NULL dereferencing.
26823 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26824 * normal/menu_text.c (print_spaces): Removed.
26825 (grub_print_ucs4): Likewise.
26826 (grub_print_message_indented): Use grub_print_ucs4.
26827 (print_message): Use grub_putcode.
26828 (print_entry): Hanlde diacritics.
26829 * normal/term.c (term_state): New type.
26830 (grub_more_lines): Removed.
26831 (term_states): New variable.
26832 (grub_normal_line_counter): Renamed to ..
26833 (grub_normal_char_counter): ...this. All users updated.
26834 (grub_normal_get_line_counter): Renamed to ...
26835 (grub_normal_get_char_counter): ... this.
26836 (grub_normal_reset_more): New function.
26837 (process_newline): Removed.
26838 (print_more): New function.
26839 (grub_install_newline_hook): Removed.
26840 (map_code): New function.
26841 (grub_puts_terminal): Use grub_print_ucs4.
26842 (putglyph): New function.
26843 (putcode_real): Likewise.
26844 (grub_putcode): Use putcode_real.
26845 (get_maxwidth): New function.
26846 (get_startwidth): Likewise.
26847 (print_ucs4_terminal): Likewise.
26848 (find_term_state): Likewise.
26849 (put_glyphs_terminal): Likewise.
26850 (print_backlog): Likewise.
26851 (print_ucs4_real): Likewise.
26852 (grub_print_ucs4): Likewise.
26853 (grub_xputs_normal): Likewise.
26854 * term/efi/console.c (grub_console_putchar): Output diacritics.
26855 (grub_console_getcharwidth): Removed.
26856 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26857 * term/gfxterm.c (clear_char): Free chars.
26858 (scroll_up): Avoid leaking memory.
26859 (grub_gfxterm_putchar): Support diacritics.
26860 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26861 * term/i386/pc/console.c (grub_console_term_output): Declare as
26862 GRUB_TERM_CODE_TYPE_VGA.
26863 * term/i386/pc/vga.c (grub_vga_term): Declare as
26864 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26865 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26866 GRUB_TERM_CODE_TYPE_VGA.
26867 * term/i386/vga_common.c (map_char): Removed.
26868 (grub_console_putchar): Likewise.
26869 (grub_console_getcharwidth): Likewise.
26870 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26871 (colors): Reordered to match terminfo.
26872 (grub_ofconsole_normal_color): Removed.
26873 (grub_ofconsole_writeesc): Likewise.
26874 (grub_ofconsole_highlight_color): Likewise.
26875 (grub_ofconsole_getcharwidth): Likewise.
26876 (grub_ofconsole_setcolorstate): Likewise.
26877 (grub_ofconsole_setcolor): Likewise.
26878 (grub_ofconsole_getcolor): Likewise.
26879 (grub_ofconsole_readkey): Renamed to ...
26880 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26881 key.
26882 (grub_ofconsole_checkkey): Removed.
26883 (grub_ofconsole_getkey): Likewise.
26884 (grub_ofconsole_getxy): Likewise.
26885 (grub_ofconsole_gotoxy): Likewise.
26886 (grub_ofconsole_cls): Likewise.
26887 (grub_ofconsole_refresh): Likewise.
26888 (grub_ofconsole_terminfo_input): New struct.
26889 (grub_ofconsole_terminfo_output): Likewise.
26890 (grub_ofconsole_term_input): Use terminfo.
26891 (grub_ofconsole_term_output): Likewise.
26892 (grub_console_init): Split into ...
26893 (grub_console_init_early): ...this and ...
26894 (grub_console_init_lately): ...this. Use terminfo.
26895 (grub_ofconsole_putchar): Renamed to ...
26896 (put): ... this. Remove mapping.
26897 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26898 * term/serial.c: Simplify using terminfo.
26899 (xpos): Removed.
26900 (ypos): Likewise.
26901 (keep_track): Likewise.
26902 (registered): Likewise.
26903 (input_buf): Likewise.
26904 (npending): Likewise.
26905 (serial_translate_key_sequence): Likewise.
26906 (fill_input_buf): Likewise.
26907 (grub_serial_checkkey): Likewise.
26908 (grub_serial_getkey): Likewise.
26909 (grub_serial_getxy): Likewise.
26910 (grub_serial_gotoxy): Likewise.
26911 (grub_serial_putchar): Likewise.
26912 (grub_serial_cls): Likewise.
26913 (grub_serial_setcolorstate): Likewise.
26914 (grub_serial_setcursor): Likewise.
26915 (serial_hw_init): Use serial_hw_fetch.
26916 (grub_serial_terminfo_input): New variable.
26917 (grub_serial_terminfo_output): Likewise.
26918 (grub_serial_term_input): Use terminfo.
26919 (grub_serial_term_output): Likewise.
26920 * term/terminfo.c (putstr): Use put.
26921 (grub_terminfo_all_free): New function
26922 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26923 (grub_terminfo_output_register): New function.
26924 (grub_terminfo_output_unregister): Likewise.
26925 (grub_terminfo_getxy): Likewise.
26926 (grub_terminfo_readkey): Likewise.
26927 (grub_terminfo_checkkey): Likewise.
26928 (grub_terminfo_getkey): Likewise.
26929 (grub_terminfo_input_init): Likewise.
26930 (print_terminfo): Likewise.
26931 (grub_cmd_terminfo): Handle encoding.
26932 (grub_terminfo_gotoxy): Track position.
26933 (grub_terminfo_cls): Likewise.
26934 (grub_terminfo_putchar): Likewise.
26935 (grub_terminfo_setcolorstate): Handle colors
26936 (grub_terminfo_cursor_on): This ...
26937 (grub_terminfo_cursor_off): ... and this merged into ...
26938 (grub_terminfo_setcursor): ... this.
26939 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26940 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26941 * unicode/BidiMirroring.txt: Likewise.
26942 * unicode/UnicodeData.txt: Likewise.
26943 * unicode/COPYING: Likewise.
26944 * util/grub-editenv.c (grub_putchar): Removed.
26945 (grub_xputs_real): New function.
26946 (grub_xputs): New variable.
26947 * util/grub-fstest.c (grub_putchar): Removed.
26948 (grub_xputs_real): New function.
26949 (grub_xputs): New variable.
26950 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26951 (grub_xputs_real): New function.
26952 (grub_xputs): New variable.
26953 * util/grub-probe.c (grub_putchar): Removed.
26954 (grub_xputs_real): New function.
26955 (grub_xputs): New variable.
26956 * util/grub-script-check.c (grub_putchar): Removed.
26957 (grub_xputs_real): New function.
26958 (grub_xputs): New variable.
26959 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26960 (grub_xputs_real): New function.
26961 (grub_xputs): New variable.
26962 * util/import_unicode.py: New file.
26963 * util/grub-mkfont.c (ft_errmsgs): New array.
26964 (grub_glyph_info): Make bitmap a pointer.
26965 (file_formats): New type WIDTH_SPEC.
26966 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26967 (options): Add width-spec.
26968 (help): Likewise.
26969 (add_char): Renamed to ...
26970 (add_glyph): ... this.
26971 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26972 (glyph_replace): New type.
26973 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26974 (add_char): New function.
26975 (add_subst): Likewise.
26976 (process_cursive): Likewise.
26977 (add_font): Handle GSUB.
26978 (write_font_width_spec): New function.
26979 (main): Sort glyphs.
26980 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26981 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26982 * kern/term.c (grub_cls): Moved from here...
26983 * normal/term.c (grub_cls): ... here.
26984
26985 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26986
26987 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26988 suitable for using within the format argument of printf when
26989 converting grub_size_t.
26990 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26991 "x" to convert grub_size_t arguments.
26992
26993 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26994
26995 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26996 too long captions.
26997 (list_get_minimal_size): Take selection box into account.
26998
26999 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27000
27001 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27002 NULL font.
27003
27004 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27005
27006 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27007 devices when iterating over /dev/disk/by-id; they will be handled
27008 later if appropriate, which they aren't always (e.g. LVM).
27009
27010 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27011
27012 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27013 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27014 fails.
27015 (grub_halt): Likewise.
27016 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27017 reset-all fails.
27018 (grub_halt): Don't return, even if all of shut-down, power-off, and
27019 poweroff fail.
27020
27021 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27022
27023 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27024 arguments, not three.
27025
27026 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27027
27028 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27029 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27030 LVM-on-RAID is handled correctly.
27031
27032 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27033
27034 * docs/grub.texi (Changes from GRUB Legacy): New section.
27035 (Future): Fix typo.
27036
27037 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27038
27039 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27040 grub.d/README accidentally ends up executable for one reason or
27041 another. Ignore it.
27042
27043 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27044
27045 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27046 (gpt_partition_map_iterate): Support non-512B sectors.
27047
27048 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27049
27050 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27051 Tested by: Seth Goldberg.
27052
27053 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27054
27055 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27056 Properly align mbi.
27057 Reported by: Seth Goldberg.
27058
27059 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27060
27061 * util/grub-mkrescue.in: Avoid module duplication.
27062
27063 2010-07-01 Sean Finney <seanius@seanius.net>
27064
27065 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27066
27067 2010-07-01 Sean Finney <seanius@seanius.net>
27068
27069 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27070
27071 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27072
27073 * disk/lvm.c (grub_lvm_checkvalue): New function.
27074 (grub_lvm_check_flag): Likewise.
27075
27076 2010-07-01 Robert Millan <rmh@gnu.org>
27077
27078 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27079 Support 'p' as partition separator on kernel of FreeBSD (used
27080 with GPT labels).
27081 (grub_util_biosdisk_get_grub_dev): Likewise.
27082
27083 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27084
27085 Yeeloong firmware port.
27086
27087 * boot/mips/yeeloong/fwstart.S: New file.
27088 * bus/cs5536.c (gpiodump): New const.
27089 (set_io_space): New function.
27090 (set_iod): Likewise.
27091 (set_p2d): Likewise.
27092 (grub_cs5536_init_geode): Likewise.
27093 * commands/mips/yeeloong/lsspd.c: New file.
27094 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27095 (serial_mod_SOURCES): New variable.
27096 (serial_mod_CFLAGS): Likewise.
27097 (serial_mod_LDFLAGS): Likewise.
27098 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27099 term/terminfo.c and term/tparm.c.
27100 (pkglib_IMAGES): Add fwstart.img.
27101 (fwstart_img_SOURCES): New variable.
27102 (fwstart_img_CFLAGS): Likewise.
27103 (fwstart_img_ASFLAGS): Likewise.
27104 (fwstart_img_LDFLAGS): Likewise.
27105 (fwstart_img_FORMAT): Likewise.
27106 (pkglib_MODULES): Add lsspd.mod.
27107 (lsspd_mod_SOURCES): New variable.
27108 (lsspd_mod_CFLAGS): Likewise.
27109 (lsspd_mod_LDFLAGS): Likewise.
27110 (pkglib_MODULES): Add halt.mod.
27111 (halt_mod_SOURCES): New variable.
27112 (halt_mod_CFLAGS): Likewise.
27113 (halt_mod_LDFLAGS): Likewise.
27114 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27115 (serial_mod_SOURCES): Removed.
27116 (serial_mod_CFLAGS): Likewise.
27117 (serial_mod_LDFLAGS): Likewise.
27118 * disk/ata.c (check_device): New function.
27119 (grub_ata_device_initialize): Use check_device.
27120 (grub_ata_iterate): Recheck devices.
27121 (grub_ata_open): Likewise.
27122 (grub_atapi_iterate): Likewise.
27123 (grub_atapi_open): Likewise.
27124 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27125 (GRUB_ATA_CH1_PORT1): Likewise.
27126 (GRUB_ATA_CH0_PORT2): Likewise.
27127 (GRUB_ATA_CH1_PORT2): Likewise.
27128 * include/grub/mips/loongson.h: New file.
27129 * include/grub/mips/yeeloong/ec.h: Likewise.
27130 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27131 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27132 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27133 * include/grub/misc.h (grub_halt): Declare as noreturn.
27134 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27135 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27136 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27137 (UART_ENABLE_DTRRTS): Likewise.
27138 (UART_ENABLE_MODEM): Removed.
27139 (UART_ENABLE_OUT2): New const.
27140 * include/grub/term.h (grub_term_register_input_active): New function.
27141 (grub_term_register_output_active): Likewise.
27142 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27143 argument.
27144 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27145 (init_pci): New function.
27146 (grub_machine_init): Execute platform init when firmware. Init serial.
27147 (grub_halt): Implement.
27148 (grub_exit): Likewise.
27149 (grub_reboot): Likewise.
27150 * term/serial.c (serial_hw_init): Update macros.
27151 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27152 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27153 (image_targets): New target mipsel-yeeloong-flash.
27154 (generate_image): Support IMAGE_YEELOONG_FLASH.
27155 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27156 (grub_video_sm712_setup): Init card.
27157 (grub_video_sm712_set_palette): Removed.
27158 * video/sm712_init.c: New file.
27159
27160 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27161
27162 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27163 PATH when running help2man and then run it on the unadorned
27164 executable names, rather than passing $(builddir)/* paths to
27165 help2man. This avoids the build directory ending up in generated
27166 manual pages.
27167
27168 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27169
27170 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27171 to avoid accidents when debugging with 'sh -x'.
27172 * util/grub-mkrescue.in: Likewise.
27173 * util/grub.d/00_header.in: Likewise.
27174 * util/grub.d/10_hurd.in: Likewise.
27175 * util/grub.d/10_kfreebsd.in: Likewise.
27176 * util/grub.d/10_linux.in: Likewise.
27177 * util/grub.d/10_netbsd.in: Likewise.
27178 * util/grub.d/10_windows.in: Likewise.
27179 * util/grub.d/20_linux_xen.in: Likewise.
27180 * util/grub.d/30_os-prober.in: Likewise.
27181 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27182
27183 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27184
27185 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27186 last character in the buffer.
27187 Reported by: Vladimir Serbinenko.
27188
27189 2010-06-29 Robert Millan <rmh@gnu.org>
27190
27191 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27192 (Command-line and menu entry commands): Document `badram' command.
27193
27194 2010-06-28 Robert Millan <rmh@gnu.org>
27195
27196 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27197 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27198 command using ${GRUB_BADRAM} as parameter.
27199
27200 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27201
27202 * docs/grub.texi (Device map): New section.
27203 (Themes): New section (stub).
27204 * Makefile.in (docs/grub.info): The info documentation now builds
27205 without errors. Make sure it stays that way.
27206
27207 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27208
27209 Use normal parser for menu entries.
27210 Reported by: Thomas Frauendorfer
27211
27212 * include/grub/parser.h (grub_parser_execute): Don't export.
27213 * normal/menu.c (grub_menu_execute_entry_real): New function.
27214 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27215
27216 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27217
27218 * docs/grub.texi (Embedded configuration): New section (replacing
27219 old "Preset Menu" stub).
27220 (Images): New section.
27221 (configfile): Note that any menu entries defined in `file' are shown
27222 immediately.
27223
27224 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27225
27226 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27227
27228 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27229
27230 * util/grub-install.in: Add --debug-image= option.
27231
27232 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27233
27234 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27235 possible on Linux.
27236
27237 * util/deviceiter.c (check_device): Rename to ...
27238 (check_device_readable_unique): ... this. Update all callers.
27239 Maintain and check a list of which devices (by canonicalized name)
27240 have already been seen.
27241 (clear_seen_devices): New function.
27242 (compare_file_names) [__linux__]: New function.
27243 (grub_util_iterate_devices): Clear the list of seen devices on exit
27244 and (just in case) on entry.
27245 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27246 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27247 seen-devices list, superseded by general code in check_device.
27248
27249 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27250
27251 * commands/cat.c (options): New variable.
27252 (grub_cmd_cat): Parse options. If the --dos option is given, print
27253 DOS-style "\r\n" line endings as simple newlines (Debian bug
27254 #586358).
27255 (GRUB_MOD_INIT): Use extcmd.
27256 (GRUB_MOD_FINI): Likewise.
27257 * docs/grub.texi (cat): Document --dos.
27258
27259 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27260
27261 XEN with Linux grub-mkconfig support.
27262
27263 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27264 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27265 GRUB_CMDLINE_XEN_DEFAULT.
27266 * util/grub.d/20_linux_xen.in: New file.
27267
27268 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27269
27270 Initialise VGA video on qemu ourselves.
27271
27272 * boot/i386/qemu/boot.S: Don't call 0xc000.
27273 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27274 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27275 (kernel_img_HEADERS): Add pci.h.
27276 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27277 * configure.ac: Force unifont on qemu and yeeloong.
27278 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27279 (grub_vga_palette_write): Use correct register.
27280 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27281 Call grub_qemu_init_cirrus.
27282 * kern/i386/qemu/init.c: New file.
27283 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27284
27285 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27286
27287 2010-06-26 Pavel Roskin <proski@gnu.org>
27288
27289 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27290 13.
27291
27292 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27293
27294 * docs/grub.texi (Simple configuration): Explain that
27295 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27296 set to `true' to disable their respective recovery entries, not
27297 merely set.
27298
27299 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27300
27301 Make the `source' command slightly faster.
27302
27303 * normal/main.c (grub_normal_execute): Don't re-read list files when
27304 nested.
27305
27306 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27307
27308 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27309 field position and mask size to red fields from mode_info, not
27310 green.
27311 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27312 Remove redundant tag->common.framebuffer_type assignment.
27313 Reported by: Seth Goldberg.
27314
27315 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27316
27317 Sync up other versions of the Linux loader with Robert Millan's
27318 change of 2010-01-09, "Make loader output a bit more user-friendly".
27319
27320 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27321 grub_dprintf().
27322 (grub_cmd_linux): Likewise.
27323 (grub_cmd_initrd): Likewise.
27324 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27325 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27326
27327 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27328
27329 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27330 larger than MEMORY_MAP_SIZE.
27331
27332 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27333
27334 Fix parallel build.
27335
27336 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27337 dependency.
27338 * script/parser.y: #include grub_script.tab.h header.
27339
27340 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27341
27342 Support >3GiB and <16MiB RAM in i386-qemu.
27343
27344 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27345 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27346 (grub_lower_mem): Removed.
27347 (grub_upper_mem): Likewise.
27348 (mem_size): Made static.
27349 (above_4g): New variable.
27350 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27351 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27352 support.
27353
27354 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27355
27356 Cirrus 5446 and Bochs video cards support.
27357
27358 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27359 video_bochs.mod
27360 (video_cirrus_mod_SOURCES): New variable.
27361 (video_cirrus_mod_CFLAGS): Likewise.
27362 (video_cirrus_mod_LDFLAGS): Likewise.
27363 (video_bochs_mod_SOURCES): Likewise.
27364 (video_bochs_mod_CFLAGS): Likewise.
27365 (video_bochs_mod_LDFLAGS): Likewise.
27366 * include/grub/vga.h: New file.
27367 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27368 (grub_video_fb_set_page_t): New type.
27369 (grub_video_fb_setup): New prototype.
27370 (grub_video_fb_swap_buffers): Likewise.
27371 (grub_video_fb_get_info_and_fini): Likewise.
27372 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27373 (CRTC_DATA_PORT): Likewise.
27374 (CRTC_CURSOR): Likewise.
27375 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27376 (CRTC_CURSOR_ADDR_LOW): Likewise.
27377 (CRTC_CURSOR_DISABLE): Likewise.
27378 (update_cursor): Use grub_vga_cr_write.
27379 (grub_vga_text_setcursor): Likewise.
27380 * video/bochs.c: New file.
27381 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27382 (palette): Likewise.
27383 (palette_size): Likewise.
27384 (framebuffer): New variable.
27385 (grub_video_fb_init): Use 'framebuffer'.
27386 (grub_video_fb_fini): Likewise.
27387 (grub_video_fb_get_info): Likewise.
27388 (grub_video_fb_get_palette): Likewise.
27389 (grub_video_fb_set_palette): Likewise.
27390 (grub_video_fb_set_viewport): Likewise.
27391 (grub_video_fb_get_viewport): Likewise.
27392 (grub_video_fb_map_color): Likewise.
27393 (grub_video_fb_map_rgb): Likewise.
27394 (grub_video_fb_map_rgba): Likewise.
27395 (grub_video_fb_unmap_color): Likewise.
27396 (grub_video_fb_unmap_color_int): Likewise.
27397 (grub_video_fb_fill_rect): Likewise.
27398 (grub_video_fb_blit_bitmap): Likewise.
27399 (grub_video_fb_blit_render_target): Likewise.
27400 (grub_video_fb_scroll): Likewise.
27401 (grub_video_fb_create_render_target): Likewise.
27402 (grub_video_fb_doublebuf_blit_init): Likewise.
27403 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27404 (doublebuf_pageflipping_update_screen): New function.
27405 (doublebuf_pageflipping_init): Likewise.
27406 (grub_video_fb_setup): Likewise.
27407 (grub_video_fb_swap_buffers): Likewise.
27408 (grub_video_fb_get_info_and_fini): Likewise.
27409 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27410 All users updated.
27411 (doublebuf_pageflipping_commit): Restructured into ...
27412 (doublebuf_pageflipping_set_page): ... this.
27413 (doublebuf_pageflipping_update_screen): Removed.
27414 (doublebuf_pageflipping_init): Likewise.
27415 (double_buffering_init): Likewise.
27416 (grub_video_vbe_setup): Use grub_video_fb_setup.
27417 (grub_video_vbe_swap_buffers): Removed.
27418 (grub_video_vbe_set_active_render_target): Likewise.
27419 (grub_video_vbe_get_active_render_target): Likewise.
27420 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27421 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27422 grub_video_fb_set_active_render_target and
27423 grub_video_fb_get_active_render_target.
27424 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27425 (SEQUENCER_DATA_PORT): Likewise.
27426 (MAP_MASK_REGISTER): Likewise.
27427 (CRTC_ADDR_PORT): Likewise.
27428 (CRTC_DATA_PORT): Likewise.
27429 (START_ADDR_HIGH_REGISTER): Likewise.
27430 (START_ADDR_LOW_REGISTER): Likewise.
27431 (GRAPHICS_ADDR_PORT): Likewise.
27432 (GRAPHICS_DATA_PORT): Likewise.
27433 (READ_MAP_REGISTER): Likewise.
27434 (INPUT_STATUS1_REGISTER): Likewise.
27435 (INPUT_STATUS1_VERTR_BIT): Likewise.
27436 (get_map_mask): Use grub_vga_sr_read.
27437 (set_map_mask): Use grub_vga_sr_write.
27438 (set_read_map): Use grub_vga_gr_write.
27439 (set_start_address): Use grub_vga_cr_write.
27440 * video/sm712.c (framebuffer): Remove leftover fields.
27441
27442 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27443
27444 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27445 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27446 instead. Replace the gfxterm backend check with a check that
27447 ${GRUB_PREFIX}/video.lst is non-empty.
27448 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27449 again.
27450 (load_video): New generated function. Call it before loading
27451 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27452 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27453 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27454 * docs/grub.texi (Simple configuration): Document
27455 GRUB_VIDEO_BACKEND.
27456
27457 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27458
27459 Use video functions in linux and xnu loaders.
27460
27461 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27462 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27463 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27464 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27465 loader/i386/pc/linux.c.
27466 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27467 (find_line_len): Removed.
27468 (find_framebuf): Likewise.
27469 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27470 * loader/i386/efi/xnu.c: Removed.
27471 * loader/i386/pc/xnu.c: Moved from here...
27472 * loader/i386/xnu.c: ...here.
27473
27474 Enable priorities in video drivers.
27475
27476 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27477 (grub_video_adapter): New field prio.
27478 (grub_video_register): Respect prio when inserting.
27479 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27480 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27481 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27482 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27483 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27484 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27485 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27486
27487 Fix SDL driver ID.
27488
27489 * include/grub/video.h (grub_video_driver_id_t): New value
27490 GRUB_VIDEO_DRIVER_SDL.
27491 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27492
27493 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27494
27495 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27496 argument to printf.
27497 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27498
27499 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27500
27501 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27502 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27503
27504 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27505
27506 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27507 directly, and recommend grub-install instead.
27508 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27509
27510 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27511
27512 Fix i386-pc prefix handling with nested partitions (Debian bug
27513 #585068). Note that the case where the core image is booted using
27514 multiboot and relocated from its original location still requires
27515 more work.
27516
27517 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27518 with "(,", fill the boot drive in between those two characters, but
27519 expect that a full partition specification including partition map
27520 names will follow.
27521 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27522 specified, write a prefix without the drive name but including a
27523 full partition specification.
27524
27525 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27526
27527 * util/grub-mkconfig.in: Ignore non-option arguments, for
27528 compatibility with older versions (before 2010-06-12) which did the
27529 same. In particular, this makes it easier to ship an update-grub
27530 wrapper which is compatible with that used with GRUB Legacy (Debian
27531 bug #586056).
27532
27533 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27534
27535 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27536 for manual page generation.
27537
27538 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27539
27540 * po/POTFILES: Remove leftover commands/handler.c.
27541
27542 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27543
27544 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27545 left this script non-functional.
27546
27547 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27548
27549 * docs/man/grub-emu.h2m: New file.
27550
27551 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27552
27553 * docs/grub.texi (Commands): Document reduced command set in rescue
27554 mode.
27555 (cpuid): New section.
27556
27557 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27558
27559 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27560 new partition naming style.
27561 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27562
27563 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27564
27565 Add "-o grub.iso" like cmdline options support.
27566
27567 * util/grub-install.in: Improve cmdline option parsing.
27568 * util/grub-mkconfig.in: Likewise.
27569 * util/grub-mkrescue.in: Likewise.
27570 * util/grub-reboot.in: Likewise.
27571 * util/grub-set-default.in: Likewise.
27572 * util/i386/efi/grub-install.in: Likewise.
27573 * util/ieee1275/grub-install.in: Likewise.
27574 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27575
27576 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27577
27578 * .bzrignore: Ignore 41_custom.
27579
27580 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27581
27582 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27583
27584 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27585
27586 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27587 prototype declarations.
27588
27589 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27590 generating fs, partmap, and video lists.
27591 * include/grub/fs.h (grub_fs_register): Omit prototype if
27592 GRUB_LST_GENERATOR is defined.
27593 * include/grub/partition.h (grub_partition_map_register): Likewise.
27594 * include/grub/video.h (grub_video_register): Likewise.
27595
27596 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27597
27598 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27599
27600 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27601
27602 * util/grub-mkrescue.in: Support --xorriso argument.
27603
27604 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27605
27606 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27607 Suggested by: Thomas Schmitt.
27608
27609 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27610
27611 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27612 Suggested by: Thomas Schmitt.
27613
27614 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27615
27616 custom.cfg support.
27617
27618 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27619 * util/grub.d/41_custom.in: New file.
27620
27621 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27622
27623 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27624 been merged back into normal.
27625
27626 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27627
27628 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27629 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27630
27631 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27632
27633 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27634 when generating manual pages.
27635 * docs/man/grub-bin2h.h2m: New file.
27636 * docs/man/grub-editenv.h2m: New file.
27637 * docs/man/grub-fstest.h2m: New file.
27638 * docs/man/grub-install.h2m: New file.
27639 * docs/man/grub-macho2img.h2m: New file.
27640 * docs/man/grub-mkconfig.h2m: New file.
27641 * docs/man/grub-mkdevicemap.h2m: New file.
27642 * docs/man/grub-mkfont.h2m: New file.
27643 * docs/man/grub-mkimage.h2m: New file.
27644 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27645 * docs/man/grub-mkrelpath.h2m: New file.
27646 * docs/man/grub-mkrescue.h2m: New file.
27647 * docs/man/grub-ofpathname.h2m: New file.
27648 * docs/man/grub-pe2elf.h2m: New file.
27649 * docs/man/grub-probe.h2m: New file.
27650 * docs/man/grub-reboot.h2m: New file.
27651 * docs/man/grub-script-check.h2m: New file.
27652 * docs/man/grub-set-default.h2m: New file.
27653 * docs/man/grub-setup.h2m: New file.
27654
27655 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27656
27657 Use FOR_* macros instead of *_iterate whenever possible.
27658
27659 * commands/handler.c: Removed.
27660 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27661 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27662 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27663 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27664 (grub_probe_SOURCES): Remove kern/parser.c.
27665 (util/grub-script-check.c_DEPENDENCIES): Removed.
27666 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27667 and grub_script_check_init.c.
27668 (grub_script_check_init.lst): Removed.
27669 (grub_script_check_init.h): Likewise.
27670 (grub_script_check_init.c): Likewise.
27671 (pkglib_MODULES): Remove handler.mod and sh.mod.
27672 (handler_mod_SOURCES): Removed.
27673 (handler_mod_CFLAGS): Likewise.
27674 (handler_mod_LDFLAGS): Likewise.
27675 (normal_mod_SOURCES): Remove normal/handler.c.
27676 Add script/main.c, script/script.c, script/execute.c,
27677 script/function.c, script/lexer.c, grub_script.tab.c
27678 and grub_script.yy.c.
27679 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27680 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27681 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27682 (grub_setup_SOURCES): Remove kern/parser.c.
27683 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27684 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27685 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27686 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27687 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27688 (grub_setup_SOURCES): Remove kern/parser.c.
27689 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27690 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27691 * include/grub/command.h (grub_command_iterate): Removed.
27692 (FOR_COMMANDS): New macro.
27693 * include/grub/dl.h (grub_dl): New member next.
27694 (grub_dl_iterate): Removed.
27695 (grub_dl_head): New variable declaration.
27696 (FOR_DL_MODULES): New macro.
27697 * include/grub/fs.h: Include list.h.
27698 (grub_fs): Make next first element.
27699 (grub_fs_list): New variable declaration.
27700 (grub_fs_register): Make inline.
27701 (grub_fs_unregister): Likewise.
27702 (grub_fs_iterate): Removed.
27703 (FOR_FILESYSTEMS): New macro.
27704 * include/grub/handler.h: Removed.
27705 * include/grub/list.h (grub_list_hook_t): Removed.
27706 (grub_list_test_t): Likewise.
27707 (grub_list_pop): Likewise.
27708 (grub_list_iterate): Likewise.
27709 (grub_list_insert): Likewise.
27710 (FOR_LIST_ELEMENTS): New macro.
27711 * include/grub/parser.h (grub_parser_class): Removed.
27712 (grub_parser_register): Likewise.
27713 (grub_parser_unregister): Likewise.
27714 (grub_parser_get_current): Likewise.
27715 (grub_parser_set_current): Likewise.
27716 (grub_register_rescue_parser): Likewise.
27717 (grub_rescue_parse_line): New function.
27718 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27719 * include/grub/script_sh.h (grub_script_function_list): New variable
27720 declaration.
27721 (FOR_SCRIPT_FUNCTIONS): New macro.
27722 (grub_script_function_iterate): Removed.
27723 (grub_normal_parse_line): New prototype.
27724 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27725 (FOR_DISABLED_TERM_INPUTS): Likewise.
27726 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27727 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27728 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27729 element.
27730 (grub_video_register): Inline.
27731 (grub_video_unregister): Likewise.
27732 (grub_video_adapter_list): New variable declaration.
27733 (grub_video_iterate): Removed.
27734 (FOR_VIDEO_ADAPTERS): New macro.
27735 * kern/dl.c (grub_dl_list): Removed. All users updated.
27736 (grub_dl_iterate): Removed.
27737 * kern/fs.c (grub_fs_list): Make global.
27738 (grub_fs_register): Removed.
27739 (grub_fs_unregister): Likewise.
27740 (grub_fs_iterate): Likewise.
27741 * kern/handler.c: Removed.
27742 * kern/list.c (grub_list_pop): Removed.
27743 (grub_list_iterate): Likewise.
27744 (grub_list_insert): Likewise.
27745 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27746 (grub_prio_list_insert): Don't use grub_list_insert.
27747 * kern/main.c (grub_register_rescue_parser): Don't call
27748 grub_register_rescue_parser.
27749 * kern/parser.c (grub_parser_class): Removed.
27750 (grub_parser_execute): Use grub_rescue_parse_line.
27751 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27752 (grub_rescue_parser): Removed.
27753 (grub_register_rescue_parser): Likewise.
27754 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27755 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27756 (grub_auth_check_authentication): Likewise.
27757 * normal/completion.c (iterate_command): Removed.
27758 (grub_normal_do_completion): Use FOR_COMMANDS.
27759 * normal/handler.c: Removed.
27760 * normal/main.c (read_config_file): Remove parser changing.
27761 (grub_normal_execute): Don't call read_handler_list.
27762 (grub_normal_read_line_real): Statically allocate prompt.
27763 (grub_cmdline_run): Use grub_normal_parse_line.
27764 (GRUB_MOD_FINI): Don't call free_handler_list.
27765 * normal/menu_entry.c (run): Likewise.
27766 * script/function.c (grub_script_function_list): Make global.
27767 (grub_script_function_iterate): Removed.
27768 * script/main.c (grub_normal_parse_line): Make global.
27769 (grub_sh_parser): Removed.
27770 (GRUB_MOD_INIT): Likewise.
27771 (GRUB_MOD_FINI): Likewise.
27772 * tests/lib/functional_test.c (grub_functional_test): Use
27773 FOR_LIST_ELEMENTS.
27774 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27775 (grub_test_run): Use FOR_LIST_ELEMENTS.
27776 * tests/lib/unit_test.c (main): Likewise.
27777 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27778 grub_list_pop.
27779 * util/grub-fstest.c (grub_term_input_class): Removed.
27780 (grub_term_output_class): Likewise.
27781 * util/grub-probe.c: Likewise.
27782 * util/i386/pc/grub-setup.c: Likewise.
27783 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27784 * util/grub-script-check.c (main): Don't call grub_init_all and
27785 grub_fini_all.
27786 * video/video.c (grub_video_adapter_list): Make global.
27787 (grub_video_register): Removed.
27788 (grub_video_unregister): Likewise.
27789 (grub_video_iterate): Likewise.
27790
27791 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27792
27793 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27794 reported by Henrique Ferreiro.
27795
27796 2010-06-09 Robert Millan <rmh@gnu.org>
27797
27798 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27799 ones, when both are available.
27800
27801 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27802
27803 Make --version uniform and avoid hard-coded program name.
27804
27805 * util/grub-mkimage.c (main): Use `program_name' instead of
27806 hard-coded string.
27807 * util/i386/pc/grub-setup.c (main): Likewise.
27808 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27809 * util/grub-install.in: Save the basename of $0 in $self, and use the
27810 latter in informational messages. Use the same format for --version
27811 as the binary programs.
27812 * util/grub-mkconfig.in: Likewise.
27813 * util/grub-mkrescue.in: Likewise.
27814 * util/grub-reboot.in: Likewise.
27815 * util/grub-set-default.in: Likewise.
27816 * util/i386/efi/grub-install.in: Likewise.
27817 * util/ieee1275/grub-install.in: Likewise.
27818 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27819
27820 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27821
27822 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27823 embedding area. Use <= instead of == when checking for non-emptiness.
27824
27825 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27826
27827 * configure.ac: Add `.' to the directories searched for unifont.
27828
27829 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27830
27831 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27832 grub_script.yy.h.
27833
27834 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27835
27836 * docs/grub.texi (History): Expand to cover GRUB 2.
27837 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27838 commands, not `terminal'.
27839 (serial): Likewise.
27840 (terminal_input): New section.
27841 (terminal_output): New section.
27842 (uppermem): New section (stub).
27843 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27844
27845 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27846
27847 * docs/grub.texi (Security): Menu entries are unrestricted by
27848 default, not restricted to superusers as I had previously thought.
27849 Reword to account for this.
27850
27851 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27852
27853 * kern/emu/misc.c (device_mapper_null_log): New function.
27854 (grub_device_mapper_supported): New function.
27855 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27856 prototype.
27857 * kern/emu/hostdisk.c (find_partition_start): Check whether
27858 device-mapper is supported before trying to use it.
27859 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27860
27861 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27862
27863 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27864 (File name syntax): Likewise.
27865 (help): --all is no longer supported in GRUB 2. Be more precise
27866 about pattern matching.
27867
27868 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27869
27870 * normal/completion.c (grub_normal_do_completion): When completing
27871 arguments to "set" and the current word contains an equals sign,
27872 skip to after the equals sign before starting completion.
27873
27874 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27875
27876 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27877
27878 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27879
27880 * docs/grub.texi (Network): New section.
27881 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27882 `(nd)' as in GRUB Legacy.
27883 (pxe_unload): New section.
27884
27885 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27886
27887 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27888 in the rescue shell, so recommend using `set' instead. Thanks,
27889 Jordan Uggla.
27890
27891 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27892
27893 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27894 (password): New section.
27895 (password_pbkdf2): New section.
27896 (search): New section.
27897 (Security): New section.
27898 (Troubleshooting): New section, currently very incomplete.
27899 (Invoking grub-mkpasswd-pbkdf2): New section.
27900 (Internals): New section, currently very incomplete.
27901
27902 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27903
27904 * util/grub.d/00_header.in: Add some more quoting (of
27905 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27906 work again.
27907 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27908
27909 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27910
27911 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27912 to `count', fixing variable shadowing that broke the -c option.
27913
27914 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27915
27916 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27917 in case they contain spaces.
27918
27919 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27920
27921 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27922 "part_" to partmap module names, in line with grub-install.
27923 Reported by: Jindřich Makovička (Debian bug #584426).
27924
27925 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27926
27927 * util/grub-mkimage.c: Make target-related error messages slightly
27928 more helpful; -O talks about "format". Explicitly point to the use
27929 of -O if no target is specified.
27930 Reported by: Didier Raboud (Debian bug #584415).
27931
27932 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27933
27934 * INSTALL: Document several build requirements for optional features
27935 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27936
27937 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27938
27939 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27940 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27941 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27942
27943 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27944
27945 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27946 Thanks to Jordan Uggla for spotting this.
27947
27948 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27949
27950 Finally make USB usable.
27951
27952 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27953 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27954 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27955 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27956 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27957 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27958 (GRUB_OHCI_FSMPS): Likewise.
27959 (GRUB_OHCI_PERIODIC_START): Likewise.
27960 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27961 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27962 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27963 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27964 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27965 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27966 (grub_ohci_transaction): Likewise.
27967 (grub_ohci_transfer): Improve condition detection algorithms.
27968 Handle toggle property. Program the transactions correctly.
27969 Improve error handling. Various important fixups.
27970 (grub_ohci_portstatus): Put register writes in right order.
27971 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27972 (grub_uhci_transfer): Don't show "failed" message on success.
27973 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27974 array.
27975 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27976 determine its size.
27977 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27978 before initialization is completed. Use IN direction for empty
27979 transfers. Use last_trans and compute toggle.
27980 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27981 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27982 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27983 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27984 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27985 (grub_usb_device): Increase toggle to 256.
27986 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27987 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27988 GRUB_USBMS_SUBCLASS_SFF8070.
27989 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27990 (grub_scsi_inquiry): New member page and alloc_length.
27991 (grub_scsi_request_sense): New structure.
27992 (grub_scsi_request_sense_data): Likewise.
27993 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27994 control.
27995 * disk/scsi.c (grub_scsi_request_sense): New function.
27996 (grub_scsi_test_unit_ready): Likewise.
27997 (grub_scsi_inquiry): Fill new fields.
27998 (grub_scsi_read_capacity): Likewise.
27999 (grub_scsi_read10): Add request sense at the end.
28000 (grub_scsi_read12): Likewise.
28001 (grub_scsi_write10): Likewise.
28002 (grub_scsi_write12): Likewise.
28003 (grub_scsi_open): Add Test Unit Ready.
28004 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28005 Support additional subclasses. Con't clear halt yet. Activate the
28006 proper config. Calculate LUNs correctly.
28007 (grub_usbms_transfer): Various important fixups.
28008
28009 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28010
28011 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28012 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28013 (grub_ohci_fini_hw): New function.
28014 (grub_ohci_restore_hw): Likewise.
28015 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28016 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28017 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28018
28019 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28020
28021 Dedicated DMA allocations.
28022
28023 * bus/pci.c (grub_memalign_dma32): New function
28024 (grub_dma_free): Likewise.
28025 (grub_dma_get_virt): Likewise.
28026 (grub_dma_get_phys): Likewise.
28027 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28028 (grub_ohci_pci_iter): Use dma32_alloc.
28029 (grub_ohci_transfer): Likewise.
28030 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28031 (grub_usb_bulk_readwrite): Likewise.
28032 * include/grub/pci.h: Add declarations.
28033
28034 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28035
28036 CS5536 support.
28037
28038 * bus/cs5536.c: New file.
28039 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28040 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28041 (cs5536_mod_SOURCES): New variable.
28042 (cs5536_mod_CFLAGS): Likewise.
28043 (cs5536_mod_LDFLAGS): Likewise.
28044 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28045 machine/pci.h.
28046 (kernel_img_SOURCES): Add bus/cs5536.c.
28047 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28048 usb_keyboard.mod.
28049 (usb_mod_SOURCES): New variable.
28050 (usb_mod_CFLAGS): New variable.
28051 (usb_mod_LDFLAGS): New variable.
28052 (usbtest_mod_SOURCES): New variable.
28053 (usbtest_mod_CFLAGS): New variable.
28054 (usbtest_mod_LDFLAGS): New variable.
28055 (ohci_mod_SOURCES): New variable.
28056 (ohci_mod_CFLAGS): New variable.
28057 (ohci_mod_LDFLAGS): New variable.
28058 (usbms_mod_SOURCES): New variable.
28059 (usbms_mod_CFLAGS): New variable.
28060 (usbms_mod_LDFLAGS): New variable.
28061 (usb_keyboard_mod_SOURCES): New variable.
28062 (usb_keyboard_mod_CFLAGS): New variable.
28063 (usb_keyboard_mod_LDFLAGS): New variable.
28064 * include/grub/smbus.h: New file.
28065 * include/grub/cs5536.h: New file.
28066
28067 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28068
28069 * util/grub.d/00_header.in: Add safety check to make sure that
28070 ${locale_dir} exists before trying to probe it.
28071
28072 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28073
28074 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28075 per the GNU Coding Standards; this is now too obscure to be worth
28076 documenting.
28077 (QNX): Likewise.
28078 (chainloader): Remove cross-reference to `SCO UnixWare'.
28079
28080 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28081
28082 * docs/grub.texi (Chain-loading): New section.
28083 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28084 adjusted for GRUB 2.
28085 (SCO UnixWare): Likewise.
28086 (QNX): Likewise.
28087 (chainloader): Add reference to `Block list syntax'.
28088 (drivemap): New section.
28089 (parttool): New section.
28090
28091 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28092
28093 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28094 the grub shell'.
28095 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28096 (Installing GRUB using grub-install): Remove reference to the grub
28097 shell; mention `grub-mkimage' and `grub-setup' instead.
28098 (Invoking grub-install): Likewise.
28099 (Interface): Add reference to `Menu entry editor'.
28100 (serial): Remove `--device' option.
28101
28102 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28103
28104 * docs/grub.texi (Configuration): New section, documenting
28105 configuration file generation using grub-mkconfig. I've left a slot
28106 for documenting the full shell scripting format but have not yet
28107 started on writing that up.
28108 (Invoking grub-mkconfig): New section.
28109
28110 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28111
28112 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28113 (GNU GRUB manual): Likewise.
28114 (General commands): Update description of `terminfo' for GRUB 2.
28115
28116 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28117
28118 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28119 (GRUB_MOD_INIT): Fix capitalisation.
28120 * docs/grub.texi (Command-line and menu entry commands): Document
28121 gettext and gptsync commands.
28122
28123 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28124
28125 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28126 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28127
28128 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28129
28130 Add btrfs probing support, currently only in the single-device case.
28131
28132 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28133 function.
28134 (grub_guess_root_device): Call find_root_device_from_mountinfo
28135 before looking in /dev.
28136
28137 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28138
28139 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28140 GRUB_DISK_SIZE_UNKNOWN.
28141 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28142
28143 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28144
28145 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28146 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28147 corrupted or not synced properly.
28148
28149 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28150
28151 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28152 Reported by: Seth Goldberg.
28153
28154 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28155
28156 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28157 addition of dest.
28158 Reported by: Seth Goldberg.
28159
28160 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28161
28162 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28163 Reported by: Seth Goldberg.
28164
28165 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28166
28167 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28168 64-bit address as signed on MIPS.
28169
28170 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28171
28172 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28173 to the empty string.
28174
28175 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28176
28177 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28178
28179 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28180 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28181 * kern/misc.c (__enable_execute_stack): Disable on
28182 GRUB_MACHINE_EMU.
28183
28184 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28185
28186 Make grub-probe work with symbolic links under /dev/mapper as well
28187 as with real block devices. The Linux world seems to be (at best)
28188 in transition here, and GRUB shouldn't get caught in the middle.
28189
28190 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28191 /dev/mapper.
28192
28193 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28194
28195 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28196 input files (in which case exit zero).
28197
28198 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28199
28200 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28201 return NULL for various reasons even if it has a maximum-length
28202 buffer: for example, there might be a symlink loop, or the path
28203 might exceed PATH_MAX. If this happens, return NULL.
28204
28205 2010-05-27 Robert Millan <rmh@gnu.org>
28206
28207 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28208 partmap module to handle cross-partmap setups.
28209 Reported by Orestes Mas. Gràcies!
28210
28211 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28212
28213 * util/grub-mkrescue.in: Initialise override_dir rather than
28214 assuming that it's unset or empty in the environment.
28215
28216 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28217
28218 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28219 variable index into p_index to suppress a warning with -Wshadow.
28220
28221 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28222
28223 * INSTALL: Added flex >= 2.5.35 requirement.
28224
28225 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28226
28227 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28228
28229 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28230
28231 cmostest support.
28232
28233 * commands/i386/cmostest.c: New file.
28234 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28235 (cmostest_mod_SOURCES): New variable.
28236 (cmostest_mod_CFLAGS): Likewise.
28237 (cmostest_mod_LDFLAGS): Likewise.
28238 * conf/i386-pc.rmk: Likewise.
28239 * docs/grub.texi (Vendor power-on keys): New section.
28240 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28241 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28242 and GRUB_BUTTON_CMOS_ADDRESS.
28243 * util/grub.d/00_header.in: Handle powering-on by separate button.
28244
28245 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28246
28247 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28248 Removed drawing_scrollbar argument. All users updated
28249 Fixes #29792.
28250 Reported by Jo Shields
28251
28252 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28253
28254 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28255 buffer since gfxterm handles double repaint.
28256
28257 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28258
28259 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28260 * term/gfxterm.c (real_scroll): Likewise.
28261
28262 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28263
28264 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28265 before calling BIOS.
28266
28267 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28268
28269 * include/grub/i18n.h: Always enable grub_gettext.
28270
28271 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28272
28273 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28274 partition naming style.
28275
28276 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28277
28278 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28279 not the first option.
28280
28281 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28282
28283 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28284
28285 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28286
28287 * util/misc.c: Move inclusion of <limits.h> to ...
28288 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28289
28290 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28291
28292 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28293 Fix merge error in NetBSD code.
28294 (find_partition_start) [__NetBSD__]: Likewise.
28295
28296 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28297
28298 Fix grub-mkrescue usage unit testing.
28299
28300 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28301
28302 2010-05-18 Christian Franke <franke@computer.org>
28303
28304 * util/grub.d/10_windows.in: Use path names instead of
28305 drive letters to prevent warning from Cygwin 1.7.
28306 Add drivemap command to menuentry if needed.
28307
28308 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28309
28310 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28311 gnumach and gnumach.gz.
28312
28313 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28314
28315 * include/grub/i18n.h (gettext): Inline instead of using #define.
28316 (grub_gettext): Likewise.
28317 (_): Likewise.
28318
28319 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28320
28321 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28322 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28323 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28324 (main): Add a slash after pkglibdirroot.
28325
28326 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28327
28328 * util/grub-install.in: Add missing "in" keyword.
28329
28330 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28331
28332 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28333 Reported by: Seth Goldberg.
28334
28335 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28336
28337 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28338
28339 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28340
28341 * configure.ac: Check for Linux device-mapper support.
28342
28343 * util/hostdisk.c (device_is_mapped): New function.
28344 (find_partition_start): New function, partly broken out from
28345 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28346 device-mapper support added.
28347 (linux_find_partition): Use find_partition_start.
28348 (convert_system_partition_to_system_disk): Add `st' argument.
28349 Support Linux /dev/mapper/* devices if device-mapper support is
28350 available; only DM-RAID devices are understood at present.
28351 (find_system_device): Add `st' argument. Pass it to
28352 convert_system_partition_to_system_disk.
28353 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28354 find_system_device and convert_system_partition_to_system_disk. Use
28355 find_partition_start.
28356
28357 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28358 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28359 * util/deviceiter.c [__linux__]: Define MINOR.
28360 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28361 * util/mkdevicemap.c (grub_putchar): New function.
28362 (grub_getkey): New function.
28363 (grub_refresh): New function.
28364 (main): Set debug=all if -v -v is used.
28365
28366 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28367
28368 Fix build with non-GNU libcs.
28369
28370 * util/misc.c (canonicalize_file_name): Move to ...
28371 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28372 grub_make_system_path_relative_to_its_root.
28373
28374 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28375
28376 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28377 we handle finding grub-mkimage. Default to finding grub-mkimage in
28378 ${bindir} with program_transform_name applied, and provide a
28379 --grub-mkimage option to override this.
28380
28381 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28382
28383 Remove grub-mkisofs.
28384
28385 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28386 (grub_mkisofs_SOURCES): Removed.
28387 (grub_mkisofs_CFLAGS): Removed.
28388 * util/mkisofs/defaults.h: Removed.
28389 * util/mkisofs/eltorito.c: Likewise.
28390 * util/mkisofs/exclude.h: Likewise.
28391 * util/mkisofs/hash.c: Likewise.
28392 * util/mkisofs/include/: Likewise.
28393 * util/mkisofs/include/fctldefs.h: Likewise.
28394 * util/mkisofs/include/mconfig.h: Likewise.
28395 * util/mkisofs/include/prototyp.h: Likewise.
28396 * util/mkisofs/include/statdefs.h: Likewise.
28397 * util/mkisofs/iso9660.h: Likewise.
28398 * util/mkisofs/joliet.c: Likewise.
28399 * util/mkisofs/match.c: Likewise.
28400 * util/mkisofs/match.h: Likewise.
28401 * util/mkisofs/mkisofs.c: Likewise.
28402 * util/mkisofs/mkisofs.h: Likewise.
28403 * util/mkisofs/msdos_partition.h: Likewise.
28404 * util/mkisofs/multi.c: Likewise.
28405 * util/mkisofs/name.c: Likewise.
28406 * util/mkisofs/rock.c: Likewise.
28407 * util/mkisofs/tree.c: Likewise.
28408 * util/mkisofs/write.c: Likewise.
28409
28410 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28411
28412 Unify grub-mkimage accross platforms.
28413
28414 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28415 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28416 (grub_mkelfimage_SOURCES): Removed.
28417 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28418 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28419 (bin_UTILITIES): Add grub-mkimage.
28420 (grub_mkimage_SOURCES): New variable.
28421 (kernel_img_HEADERS): Remove machine/kernel.h.
28422 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28423 (pkglib_PROGRAMS): Add kernel.img.
28424 (kernel_img_HEADERS): Add machine/kernel.h.
28425 (kernel_img_FORMAT): Removed.
28426 (bin_UTILITIES): Remove grub-mkimage.
28427 (grub_mkimage_SOURCES): Removed.
28428 (grub_mkimage_CFLAGS): Likewise.
28429 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28430 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28431 (pkglib_PROGRAMS): Add kernel.img.
28432 (bin_UTILITIES): Remove grub-mkimage.
28433 (grub_mkimage_SOURCES): Removed.
28434 (grub_mkimage_CFLAGS): Likewise.
28435 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28436 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28437 (pkglib_PROGRAMS): Add kernel.img.
28438 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28439 (pkglib_PROGRAMS): Add kernel.img.
28440 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28441 (grub_mkimage_SOURCES): Removed.
28442 (grub_mkimage_CFLAGS): Likewise.
28443 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28444 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28445 (pkglib_PROGRAMS): Add kernel.img.
28446 (bin_UTILITIES): Remove grub-mkimage.
28447 (grub_mkimage_SOURCES): Removed.
28448 (grub_mkimage_CFLAGS): Likewise.
28449 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28450 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28451 (grub_mkimage_SOURCES): Removed.
28452 (grub_mkimage_CFLAGS): Likewise.
28453 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28454 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28455 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28456 (grub_pe32_optional_header): ... this.
28457 (grub_pe64_optional_header): ... and this. All users updated.
28458 (GRUB_PE32_PE32_MAGIC): Split into ..
28459 (GRUB_PE32_PE32_MAGIC): .. this.
28460 (GRUB_PE32_PE64_MAGIC): .. and this.
28461 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28462 * include/grub/elf.h (PT_GNU_STACK): New definition.
28463 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28464 * include/grub/i386/efi/kernel.h: Likewise.
28465 * include/grub/i386/kernel.h: Likewise.
28466 * include/grub/i386/pc/kernel.h: Likewise.
28467 * include/grub/i386/qemu/boot.h: Likewise.
28468 * include/grub/mips/kernel.h: Likewise.
28469 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28470 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28471 * include/grub/powerpc/kernel.h: Likewise.
28472 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28473 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28474 * include/grub/sparc64/kernel.h: Likewise.
28475 * include/grub/x86_64/efi/kernel.h: Likewise.
28476 * include/grub/x86_64/kernel.h: Likewise.
28477 * include/grub/offsets.h: New file.
28478 * include/grub/kernel.h (grub_module_info): Split into ...
28479 (grub_module_info32): ... this.
28480 (grub_module_info64): ... and this.
28481 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28482 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28483 (grub_boot_blocklist): Moved from here ...
28484 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28485 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28486 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28487 * include/grub/types.h (grub_target_to_host16): Removed.
28488 (grub_target_to_host32): Likewise.
28489 (grub_target_to_host64): Likewise.
28490 (grub_host_to_target16): Likewise.
28491 (grub_host_to_target32): Likewise.
28492 (grub_host_to_target64): Likewise.
28493 (grub_host_to_target_addr): Likewise.
28494
28495 Support grub-mkrescue for efi, coreboot and qemu.
28496
28497 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28498 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28499 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28500 * util/grub-mkrawimage.c: Moved from here ...
28501 * util/grub-mkimage.c: ... here. All users updated.
28502 (ALIGN_ADDR): Use image_target.
28503 (TARGET_NO_FIELD): New const.
28504 (image_target_desc): New type.
28505 (image_targets): New array.
28506 (grub_target_to_host64): Use image_target.
28507 (grub_target_to_host32): Likewise.
28508 (grub_target_to_host16): Likewise.
28509 (grub_host_to_target64): Likewise.
28510 (grub_host_to_target32): Likewise.
28511 (grub_host_to_target16): Likewise.
28512 (grub_host_to_target_addr): Likewise.
28513 (generate_image): Handle multiimage.
28514 (main): Require -O parameter. All users updated.
28515 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28516 util/efi/grub-mkimage.c
28517 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28518 New option --rom-directory.
28519 Use xorriso.
28520 * util/i386/efi/grub-mkimage.c: Removed.
28521 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28522 (grub_target_to_host32): Likewise.
28523 (grub_target_to_host64): Likewise.
28524 (grub_host_to_target16): Likewise.
28525 (grub_host_to_target32): Likewise.
28526 (grub_host_to_target64): Likewise.
28527 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28528 (grub_target_to_host32): Likewise.
28529 (grub_target_to_host64): Likewise.
28530 (grub_host_to_target16): Likewise.
28531 (grub_host_to_target32): Likewise.
28532 (grub_host_to_target64): Likewise.
28533
28534 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28535
28536 Source tree is reorganized for emu build.
28537
28538 * include/grub/util/console.h: Move from here...
28539 * include/grub/emu/console.h: ...to here.
28540 * include/grub/util/getroot.h: Move from here...
28541 * include/grub/emu/getroot.h: ...to here.
28542 * include/grub/util/hostdisk.h: Move from here...
28543 * include/grub/emu/hostdisk.h: ...to here.
28544 * util/console.c: Move from here...
28545 * kern/emu/console.c: ...to here.
28546 * util/getroot.c: Move from here...
28547 * kern/emu/getroot.c: ...to here.
28548 * util/grub-emu.c: Move from here...
28549 * kern/emu/main.c: ...to here.
28550 * util/hostdisk.c: Move from here...
28551 * kern/emu/hostdisk.c: ...to here.
28552 * util/hostfs.c: Move from here...
28553 * kern/emu/hostfs.c: ...to here.
28554 * util/mm.c: Move from here...
28555 * kern/emu/mm.c: ...to here.
28556 * util/pci.c: Move from here...
28557 * bus/emu/pci.c: ...to here.
28558 * util/sdl.c: Move from here...
28559 * video/emu/sdl.c: ...to here.
28560 * util/time.c: Move from here...
28561 * kern/emu/time.c: ...to here.
28562 * util/usb.c: Move from here...
28563 * bus/usb/emu/usb.c: ...to here.
28564
28565 * include/grub/emu/misc.h: New header for grub-emu functions.
28566 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28567
28568 * conf/any-emu.rmk: Rule updates for above renames.
28569 * conf/common.rmk: Likewise.
28570 * conf/i386-pc.rmk: Likewise.
28571 * conf/i386-qemu.rmk: Likewise.
28572 * conf/mips.rmk: Likewise.
28573 * conf/sparc64-ieee1275.rmk: Likewise.
28574 * conf/x86-efi.rmk: Likewise.
28575
28576 * disk/lvm.h: #include updates for above renames.
28577 * util/grub-mkrelpath.c: Likewise.
28578 * util/grub-probe.c: Likewise.
28579 * util/i386/pc/grub-setup.c: Likewise.
28580 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28581 * kern/emu/console.c: Likewise.
28582 * kern/emu/getroot.c: Likewise.
28583 * kern/emu/hostdisk.c: Likewise.
28584 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28585
28586 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28587 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28588 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28589 * util/misc.c: Remove grub-emu functions.
28590
28591 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28592
28593 Fix gfxmenu crash.
28594 Reported by: Thorsten Grützmacher.
28595
28596 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28597 timeout hook.
28598 (circprog_set_property): Register and unregister timeout hook.
28599 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28600 (label_destroy): Free template. and unregister hook.
28601 (label_set_state): New function.
28602 (label_set_property): Handle templates and hooks.
28603 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28604 timeout hook.
28605 (progress_bar_set_property): Register and unregister timeout hook.
28606 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28607 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28608 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28609 (update_timeout_visit): Removed.
28610 (update_timeouts): New function.
28611 (redraw_timeouts): Likewise.
28612 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28613 (grub_gfxmenu_clear_timeout): Likewise.
28614 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28615 (grub_gfxmenu_timeout_notify): Likewise.
28616 (grub_gfxmenu_timeout_notifications): New external variable.
28617 (grub_gfxmenu_timeout_register): New function.
28618 (grub_gfxmenu_timeout_unregister): Likewise.
28619
28620 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28621
28622 Transform (broken) vga terminal into (working) vga video driver.
28623
28624 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28625 video/i386/pc/vga.c.
28626 * include/grub/video.h (grub_video_driver_id):
28627 Add GRUB_VIDEO_DRIVER_VGA.
28628 * term/i386/pc/vga.c: Renamed to ...
28629 * video/i386/pc/vga.c: ...this
28630 (DEBUG_VGA): Removed.
28631 (CHAR_WIDTH): Likewise.
28632 (CHAR_HEIGHT): Likewise.
28633 (TEXT_WIDTH): Likewise.
28634 (TEXT_HEIGHT): Likewise.
28635 (DEFAULT_FG_COLOR): Likewise.
28636 (DEFAULT_BG_COLOR): Likewise.
28637 (colored_char): Likewise.
28638 (xpos): Likewise.
28639 (ypos): Likewise.
28640 (cursor_state): Likewise.
28641 (fg_color): Likewise.
28642 (bg_color): Likewise.
28643 (text_buf): Likewise.
28644 (page): Likewise.
28645 (font): Likewise.
28646 (framebuffer): New variable.
28647 (set_read_map): Disabled.
28648 (setup): New variable.
28649 (is_target): Likewise.
28650 (grub_vga_mod_init): Likewise.
28651 (grub_vga_mod_fini): Likewise.
28652 (check_vga_mem): Likewise.
28653 (write_char): Likewise.
28654 (write_cursor): Likewise.
28655 (scroll_up): Likewise.
28656 (grub_vga_putchar): Likewise.
28657 (grub_vga_getcharwidth): Likewise.
28658 (grub_vga_getwh): Likewise.
28659 (grub_vga_getxy): Likewise.
28660 (grub_vga_gotoxy): Likewise.
28661 (grub_vga_cls): Likewise.
28662 (grub_vga_setcolorstate): Likewise.
28663 (grub_vga_setcursor): Likewise.
28664 (grub_video_vga_init): New function.
28665 (grub_video_vga_setup): Likewise.
28666 (grub_video_vga_fini): Likewise.
28667 (update_target): Likewise.
28668 (grub_video_vga_blit_bitmap): Likewise.
28669 (grub_video_vga_blit_render_target): Likewise.
28670 (grub_video_vga_set_active_render_target): Likewise.
28671 (grub_video_vga_get_active_render_target): Likewise.
28672 (grub_video_vga_swap_buffers): Likewise.
28673 (grub_video_vga_set_palette): Likewise.
28674 (grub_video_vga_get_info_and_fini): Likewise.
28675 (grub_vga_term): Removed.
28676 (grub_video_vga_adapter): New variable.
28677 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28678 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28679
28680 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28681
28682 * video/readers/jpeg.c: Indented.
28683
28684 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28685
28686 Various jpeg cleanups.
28687
28688 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28689 (grub_jpeg_decode_quan_table): Use sizeof.
28690 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28691
28692 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28693
28694 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28695 tables. Ignore non-last ac bit.
28696 (grub_jpeg_decode_quan_table): Likewise.
28697
28698 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28699
28700 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28701 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28702 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28703 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28704 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28705 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28706
28707 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28708
28709 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28710 error.
28711
28712 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28713
28714 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28715
28716 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28717
28718 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28719 condition.
28720
28721 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28722
28723 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28724 part.
28725
28726 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28727
28728 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28729 pointers.
28730
28731 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28732
28733 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28734
28735 2010-05-01 Christian Franke <franke@computer.org>
28736
28737 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28738 Remove broken Cygwin path conversion.
28739 * util/misc.c: [__CYGWIN__] Add include and define.
28740 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28741 for Cygwin 1.7.
28742 (make_system_path_relative_to_its_root): Simplify loop, replace early
28743 return by break.
28744 [__CYGWIN__] Add conversion to win32 path.
28745 Include "/" case in trailing slash removal.
28746
28747 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28748
28749 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28750 Reported by: Seth Goldberg
28751
28752 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28753
28754 * commands/help.c (grub_cmd_help): Fix a typo.
28755 Reported by: Seth Goldberg
28756
28757 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28758
28759 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28760 name and add N_.
28761 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28762 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28763 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28764 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28765 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28766 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28767 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28768 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28769 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28770 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28771 * normal/context.c (GRUB_MOD_INIT): Likewise.
28772 * normal/main.c (GRUB_MOD_INIT): Likewise.
28773 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28774 * term/serial.c (GRUB_MOD_INIT): Likewise.
28775 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28776
28777 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28778
28779 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28780 extra == 0.
28781
28782 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28783
28784 * commands/iorw.c: New file.
28785 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28786 (iorw_mod_SOURCES): New variable.
28787 (iorw_mod_CFLAGS): Likewise.
28788 (iorw_mod_LDFLAGS): Likewise.
28789
28790 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28791
28792 Hotkey support
28793
28794 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28795 * normal/main.c (hotkey_aliases): New variable.
28796 (grub_normal_add_menu_entry): Parse "--hotkey".
28797 * normal/menu_text.c (run_menu): Handle hotkeys.
28798
28799 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28800
28801 * kern/i386/coreboot/init.c (grub_machine_init): Call
28802 grub_machine_mmap_init on qemu.
28803
28804 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28805
28806 * boot/i386/qemu/boot.S: Add a missing .code16.
28807
28808 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28809
28810 Use LBIO on coreboot.
28811
28812 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28813 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28814 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28815 New declaration.
28816 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28817 grub_machine_mmap_init on coreboot.
28818 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28819 GRUB_LINUXBIOS_MEMBER_LINK.
28820 (grub_machine_mmap_iterate): Fix declaration.
28821 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28822
28823 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28824
28825 Split coreboot and multiboot ports.
28826
28827 * conf/i386-multiboot.rmk: New file.
28828 * configure.ac: Add multiboot port.
28829 * include/grub/i386/multiboot/boot.h: New file.
28830 * include/grub/i386/multiboot/console.h: Likewise.
28831 * include/grub/i386/multiboot/init.h: Likewise.
28832 * include/grub/i386/multiboot/kernel.h: Likewise.
28833 * include/grub/i386/multiboot/loader.h: Likewise.
28834 * include/grub/i386/multiboot/memory.h: Likewise.
28835 * include/grub/i386/multiboot/serial.h: Likewise.
28836 * include/grub/i386/multiboot/time.h: Likewise.
28837 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28838 * loader/multiboot.c: Likewise.
28839 * loader/multiboot_mbi2.c: Likewise.
28840 * util/grub-mkrescue.in: Generate multiboot rescue.
28841
28842 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28843
28844 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28845
28846 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28847
28848 Merge handling of input and output terminals. Fix a hang.
28849
28850 * commands/terminal.c (abstract_terminal): New struct.
28851 (handle_command): New function. Based on grub_cmd_terminal_input.
28852 (grub_cmd_terminal_input): Use handle_command.
28853 (grub_cmd_terminal_output): Use handle_command.
28854
28855 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28856
28857 Fix comment handling.
28858
28859 * tests/grub_script_comments.in: New testcase.
28860 * conf/tests.rmk: Rules for new testcase.
28861 * script/yylex.l: Updated flex rules.
28862
28863 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28864
28865 * docs/grub.texi (play): Document that zero pitches produce rests.
28866 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28867 if argc is 1.
28868
28869 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28870
28871 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28872 autogen issues.
28873
28874 2010-04-26 Christian Franke <franke@computer.org>
28875
28876 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28877 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28878 (grub_get_prefix): Remove function.
28879 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28880 make_system_path_relative_to_its_root ().
28881 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28882
28883 2010-04-24 Christian Franke <franke@computer.org>
28884
28885 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28886 (kernel_img_LDFLAGS): Remove -static-libgcc.
28887
28888 2010-04-24 Christian Franke <franke@computer.org>
28889
28890 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28891 and CHECK_END_SYMBOL if grub-emu is built.
28892 Unset TARGET_OBJ2ELF if grub-emu is built
28893 without module support.
28894
28895 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28896
28897 Nilfs2 support.
28898
28899 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28900 (grub_fstest_SOURCES): Likewise.
28901 (pkglib_MODULES): Add nilfs2.mod.
28902 (nilfs2_mod_SOURCES): New variable.
28903 (nilfs2_mod_CFLAGS): Likewise.
28904 (nilfs2_mod_LDFLAGS): Likewise.
28905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28906 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28907 * fs/nilfs2.c: New file.
28908
28909 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28910
28911 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28912 is not supported.
28913
28914 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28915
28916 Add grub-mkconfig support for NetBSD.
28917
28918 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28919 * util/grub-mkconfig.in: export new NetBSD specific variables.
28920 * po/POTFILES-shell: added 10_netbsd.in.
28921 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28922
28923 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28924
28925 Fix emu build with grub-emu-pci and grub-emu-modules.
28926
28927 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28928 functions.
28929 * include/grub/libpciaccess.h: New file.
28930 * conf/any-emu.rmk: Update kernel headers for emu build.
28931
28932 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28933
28934 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28935
28936 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28937
28938 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28939
28940 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28941
28942 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28943 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28944 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28945 util/ieee1275/ofpath.c.
28946 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28947 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28948 * include/grub/sparc64/ieee1275/boot.h
28949 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28950 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28951 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28952 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28953 const char *.
28954 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28955 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28956 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28957 install.
28958
28959 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28960
28961 * util/grub-mkconfig.in: Corrected two == equality tests.
28962 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28963 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28964 expect a number appended to it.
28965 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28966 expects a number appended to it.
28967
28968 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28971
28972 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28973
28974 * util/hostdisk.c (make_device_name): Change to new partition naming.
28975
28976 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28977
28978 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28979
28980 2010-04-17 Christian Franke <franke@computer.org>
28981
28982 * Makefile.in: Add missing localedir setting.
28983
28984 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28985
28986 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28987 mistake in r2156. Noticed by Anthony Fok.
28988
28989 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28990 @localedir@.
28991 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28992
28993 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28994
28995 Fix a spurious, uninitialized variable warning.
28996
28997 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28998 Initialize variable, shdr.
28999 (grub_freebsd_load_elfmodule): Likewise.
29000 (grub_freebsd_load_elf_meta): Likewise.
29001
29002 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29003
29004 Fix for escaped dollar in double quoted strings.
29005
29006 * script/yylex.l: Updated flex rules.
29007 * conf/tests.rmk: Rule for new testcase.
29008 * tests/grub_script_dollar.in: New testcase.
29009
29010 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29011 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29012
29013 Enclose all translated strings in grub.cfg in single quotes, and
29014 escape them appropriately (Ubuntu bug #552921).
29015
29016 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29017 * util/grub.d/10_hurd.in: Use it.
29018 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29019 * util/grub.d/10_linux.in (linux_entry): Likewise.
29020
29021 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29022
29023 Fix cygwin compilation.
29024
29025 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29026 * include/grub/misc.h (__register_frame_info)
29027 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29028 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29029 * kern/misc.c (__register_frame_info)
29030 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29031 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29032
29033 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29034
29035 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29036
29037 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29038
29039 Unify libgcc processing.
29040
29041 * Makefile.in (kernel_img_LDFLAGS): New variable.
29042 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29043 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29044 overwriting.
29045 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29046 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29047 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29048 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29049 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29050 overwriting. Remove -lgcc and -static-libgcc
29051 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29052 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29053 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29054 (kernel_img_LDFLAGS): Append instead of overwriting.
29055 Remove -lgcc and -static-libgcc
29056 * conf/sparc64-ieee1275.rmk: Likewise.
29057 * include/grub/powerpc/libgcc.h: Move to ...
29058 * include/grub/libgcc.h: .. this.
29059 * include/grub/libgcc.h: Don't export most of the function on x86.
29060 (__bswapsi2): New export.
29061 (__bswapdi2): Likewise.
29062 * include/grub/mips/libgcc.h: Removed.
29063 * include/grub/sparc64/libgcc.h: Likewise.
29064
29065 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29066
29067 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29068 disk_info_msg (conflicts with gettexting into languages with cases).
29069
29070 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29071
29072 Add grub-probe support for NetBSD.
29073
29074 * util/getroot.c (find_root_device): Convert block device to
29075 character device on NetBSD.
29076 * util/probe.c (probe): Require character device on NetBSD.
29077 * util/hostdisk.c: NetBSD specific headers.
29078 (configure_device_driver): new function to tune device driver
29079 parameters (currently only for NetBSD floppy driver).
29080 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29081 via disklabel ioctl).
29082 (open_device): call configure_device_driver on NetBSD.
29083 (convert_system_partition_to_system_disk): NetBSD specific code.
29084 (device_is_wholedisk): Likewise.
29085 (grub_util_biosdisk_get_grub_dev): Likewise.
29086 (make_device_name): Fixed a typo in bsd_part_str.
29087 * configure.ac: check for opendisk() and getrawpartition() on
29088 NetBSD and set LIBUTIL.
29089 * Makefile.in: add LIBUTIL to LIBS.
29090
29091 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29092
29093 Documentation fix.
29094
29095 * util/grub-script-check.c: Better help message.
29096
29097 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29098
29099 Fix FreeBSD build.
29100
29101 * configure.ac: Flex version check.
29102 * conf/common.rmk: Add -Wno-error to sh.mod.
29103 * script/yylex.l: Remove all #pragma.
29104
29105 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29106
29107 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29108 prototype.
29109 Reported by: Seth Goldberg.
29110
29111 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29112
29113 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29114 Rename "module" to "module2".
29115 Reported by: Seth Goldberg.
29116
29117 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29118
29119 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29120 EXPORT_FUNC.
29121 Reported by: Seth Goldberg.
29122
29123 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29124
29125 * lib/posix_wrap/locale.h: Add missing file.
29126 Reported by: Seth Goldberg.
29127
29128 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29129
29130 grub-emu module load support.
29131
29132 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29133 NO_DYNAMIC_MODULES switched to this.
29134 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29135 (CFLAGS): Likewise.
29136 * conf/any-emu.rmk: Generate symlist.
29137 (kernel_img_HEADERS): Add util/datetime.h.
29138 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29139 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29140 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29141 kern/$(target_cpu)/cache.S.
29142 * configure.ac (grub-emu-modules): New option.
29143 * genmk.rb: Handle multiple source lists.
29144 * include/grub/sdl.h: New file.
29145 * include/grub/libusb.h: Likewise.
29146 * util/grub-emu.c (main): Hanle (host) root.
29147 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29148 GRUB_ERR_UNKNOWN_DEVICE.
29149 * util/misc.c: Move mm functions to ...
29150 * util/mm.c: ... here. All users updated.
29151
29152 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29153
29154 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29155 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29156 missing files.
29157 (maintainer-clean): Remove libgcrypt-grub.
29158
29159 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29160
29161 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29162
29163 2010-04-09 EFI Coder <eficoder@hotmail.com>
29164
29165 * normal/menu_text.c (print_message): Clean up the message and show
29166 the Fn information when on EFI
29167 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29168
29169 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29170
29171 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29172 All users updated.
29173 * normal/crypto.c (read_crypto_list): Likewise.
29174 * normal/dyncmd.c (read_command_list): Likewise.
29175 * normal/term.c (read_terminal_list): Likewise.
29176 * normal/main.c (read_lists): Use explicit prefix.
29177 (read_lists_hook): Use read_lists.
29178 (grub_normal_execute): Likewise.
29179
29180 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29181
29182 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29183 Reported by: Thomas Schmitt.
29184 Add -no-emul-boot to grub-mkisofs parameters.
29185
29186 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29187
29188 * font/font.c: Indented.
29189
29190 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29191
29192 Elif support to GRUB script (by Deepak Vankadaru).
29193
29194 * tests/grub_script_if.in: New testcase.
29195 * conf/tests.rmk: Rule for new testcase.
29196 * script/parser.y: Grammar rules for elif.
29197
29198 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29199
29200 While and until loops support to GRUB script.
29201
29202 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29203 (grub_script_create_cmdwhile): New function prototype.
29204 (grub_script_execute_cmdwhile): New function prototype.
29205 * script/execute.c (grub_script_execute_cmdwhile): New function.
29206 * script/parser.y (command): New commands.
29207 (whilecmd): New grammar rule.
29208 (untilcmd): New grammar rule.
29209 * script/script.c (grub_script_create_cmdwhile): New function.
29210 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29211 function.
29212
29213 * tests/grub_script_while1.in: New testcase.
29214 * conf/tests.rmk: Rule for new testcase.
29215
29216 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29217
29218 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29219 as *.jpg.
29220
29221 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29222
29223 GRUB_BACKGROUND support.
29224
29225 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29226 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29227
29228 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29229
29230 Load fonts and modules for gfxmenu in grub-mkconfig.
29231 Idea by: Mario Vazquez
29232
29233 * util/grub.d/00_header.in: Load pf2 and image modules.
29234
29235 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29236
29237 grub-mkconfig multiple terminal support.
29238
29239 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29240 * util/grub.d/00_header.in: Likewise.
29241
29242 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29243
29244 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29245 we use cd $(srcdir).
29246
29247 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29248
29249 * util/grub.d/10_linux.in: Only use the first word of
29250 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29251 spaces in GRUB_DISTRIBUTOR.
29252 * util/grub.d/10_kfreebsd.in: Likewise.
29253 * util/grub.d/10_hurd.in: Likewise.
29254
29255 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29256
29257 Fix unit testing framework for Qemu 0.12.
29258
29259 * tests/util/grub-shell.in: Remove -serial stdio option.
29260
29261 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29262
29263 POSIX header file wrappers.
29264
29265 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29266 equivalents.
29267 * lib/posix_wrap/ctype.h: Likewise.
29268 * lib/posix_wrap/errno.h: Likewise.
29269 * lib/posix_wrap/langinfo.h: Likewise.
29270 * lib/posix_wrap/limits.h: Likewise.
29271 * lib/posix_wrap/localcharset.h: Likewise.
29272 * lib/posix_wrap/stdint.h: Likewise.
29273 * lib/posix_wrap/stdio.h: Likewise.
29274 * lib/posix_wrap/stdlib.h: Likewise.
29275 * lib/posix_wrap/string.h: Likewise.
29276 * lib/posix_wrap/sys/types.h: Likewise.
29277 * lib/posix_wrap/unistd.h: Likewise.
29278 * lib/posix_wrap/wchar.h: Likewise.
29279 * lib/posix_wrap/wctype.h: Likewise.
29280 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29281 (grub_script.yy.h): Likewise.
29282 * script/yylex.l: Remove POSIX emulation #defines.
29283 * Makefile.in (POSIX_CFLAGS): New variable.
29284 (GNULIB_UTIL_CFLAGS): Likewise.
29285
29286 Regexp support.
29287
29288 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29289 (regexp_mod_SOURCES): New variable.
29290 (regexp_mod_CFLAGS): Likewise.
29291 (regexp_mod_LDFLAGS): Likewise.
29292 * commands/regexp.c: New file.
29293 * gnulib/regcomp.c: New file. Imported from gnulib.
29294 * gnulib/regex.c: Likewise.
29295 * gnulib/regex_internal.c: Likewise.
29296 * gnulib/regex_internal.h: Likewise.
29297 * gnulib/regexec.c: Likewise.
29298 * gnulib/regex.h: Likewise.
29299
29300 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29301
29302 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29303 unsupported video mode types.
29304
29305 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29306
29307 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29308
29309 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29310
29311 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29312 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29313
29314 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29315
29316 Remove unused grub_vga_get_font.
29317
29318 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29319 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29320
29321 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29322
29323 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29324 * include/grub/misc.h: Likewise.
29325
29326 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29327
29328 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29329 for which failure is fatal.
29330
29331 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29332
29333 * util/grub-install.in: Use mkdir -p to create grub directory.
29334 * util/i386/efi/grub-install.in: Likewise.
29335 * util/ieee1275/grub-install.in: Likewise.
29336
29337 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29338
29339 * Makefile.in (LEX): new variable.
29340
29341 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29342
29343 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29344 `=' and added double quotes on operands of this equality test.
29345
29346 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29347
29348 * Makefile.in (uninstall): Remove a leftover debug echo.
29349 Reported by: Grégoire Sutre
29350
29351 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29352
29353 MIPS multiboot2 support.
29354
29355 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29356 (multiboot2_mod_SOURCES): New variable.
29357 (multiboot2_mod_CFLAGS): Likewise.
29358 (multiboot2_mod_LDFLAGS): Likewise.
29359 (multiboot2_mod_ASFLAGS): Likewise.
29360 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29361 definition.
29362 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29363 (MULTIBOOT_MBI_REGISTER): Likewise.
29364 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29365 (MULTIBOOT_ELF32_MACHINE): Likewise.
29366 (MULTIBOOT_ELF64_MACHINE): Likewise.
29367 * include/grub/mips/multiboot.h: New file.
29368 * include/grub/video.h (grub_video_driver_id): New type
29369 GRUB_VIDEO_DRIVER_SM712.
29370 (grub_video_get_info_and_fini): Export.
29371 (grub_video_get_palette): Likewise.
29372 (grub_video_get_driver_id): Likewise.
29373 * include/multiboot2.h: Resynced with spec.
29374 * loader/i386/multiboot.c: Moved from here ...
29375 * loader/multiboot.c: ... here. All users updated.
29376 (grub_multiboot_boot): Use platform-specific macros.
29377 * loader/i386/multiboot_elfxx.c: Moved from here ...
29378 * loader/multiboot_elfxx.c: ... here. All users updated.
29379 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29380 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29381 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29382
29383 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29384
29385 Import gnulib argp module.
29386
29387 * gnulib/argp-ba.c: New file.
29388 * gnulib/argp-eexst.c: Likewise.
29389 * gnulib/argp-fmtstream.c: Likewise.
29390 * gnulib/argp-fmtstream.h: Likewise.
29391 * gnulib/argp-fs-xinl.c: Likewise.
29392 * gnulib/argp-help.c: Likewise.
29393 * gnulib/argp-namefrob.h: Likewise.
29394 * gnulib/argp-parse.c: Likewise.
29395 * gnulib/argp-pin.c: Likewise.
29396 * gnulib/argp-pv.c: Likewise.
29397 * gnulib/argp-pvh.c: Likewise.
29398 * gnulib/argp-version-etc.c: Likewise.
29399 * gnulib/argp-version-etc.h: Likewise.
29400 * gnulib/argp-xinl.c: Likewise.
29401 * gnulib/argp.h: Likewise.
29402
29403 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29404
29405 * kern/device.c (grub_device_iterate): Clear errors after failed
29406 opening device.
29407
29408 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29409
29410 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29411 returned by firmware.
29412
29413 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29414
29415 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29416 compilation on coreboot and qemu
29417
29418 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29419
29420 * include/multiboot2.h: Resync with spec.
29421
29422 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29423
29424 Multiboot2 tag support
29425
29426 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29427 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29428 Remove loader/multiboot_loader.c.
29429 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29430 (grub_multiboot2_real_boot): Likewise.
29431 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29432 (grub_get_multiboot_mmap_count): New proto.
29433 (grub_fill_multiboot_mmap): Likewise.
29434 (grub_multiboot_set_video_mode): Likewise.
29435 (grub_multiboot_set_console): Likewise.
29436 (grub_multiboot_load): Likewise.
29437 (grub_multiboot_load_elf): Likewise.
29438 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29439 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29440 * include/multiboot.h: Resynced with specification.
29441 * include/multiboot2.h: Resynced with specification.
29442 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29443 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29444 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29445 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29446 users updated.
29447 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29448 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29449 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29450 Removed.
29451 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29452 Moved from here...
29453 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29454 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29455 Moved from here...
29456 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29457 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29458 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29459 All users updated.
29460 * loader/i386/multiboot_mbi2.c: New file.
29461
29462 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29463
29464 Resync with gnulib.
29465
29466 * Makefile.in (GNULIB_CFLAGS): New variable.
29467 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29468 (grub_script_check_CFLAGS): New variable.
29469 * gnulib/alloca.h: Resync with gnulib.
29470 * gnulib/error.c: Likewise.
29471 * gnulib/error.h: Likewise.
29472 * gnulib/fnmatch.c: Likewise.
29473 * gnulib/fnmatch_loop.c: Likewise.
29474 * gnulib/getdelim.c: Likewise.
29475 * gnulib/getline.c: Likewise.
29476 * gnulib/getopt.c: Likewise.
29477 * gnulib/getopt1.c: Likewise.
29478 * gnulib/getopt_int.h: Likewise.
29479 * gnulib/gettext.h: Likewise.
29480 * gnulib/progname.c: Likewise.
29481 * gnulib/progname.h: Likewise.
29482
29483 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29484
29485 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29486 which is the case with --disabled-nls.
29487
29488 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29489 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29490 * util/misc.c: Likewise.
29491 * util/mkisofs/mkisofs.c: Likewise.
29492 * util/mkisofs/mkisofs.h: Likewise.
29493
29494 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29495
29496 Simplify Apple CC support.
29497
29498 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29499 Add 0 byte at the end not to have a symbol with empty target.
29500 * mmap/i386/pc/mmap_helper.S: Likewise.
29501 * genmk.rb: Ignore errors 2030 and 2050.
29502 * kern/i386/pc/startup.S: Use LOCAL when possible.
29503
29504 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29505
29506 Testcase and the fix for final semicolon on cmdline.
29507
29508 * tests/grub_script_final_semicolon.in: New testcase.
29509 * conf/tests.rmk: Rules for the new testcase.
29510 * script/parser.y: Grammar fix.
29511
29512 2010-03-26 BVK Chaitanya <bvk@localhost>
29513
29514 Blank lines testcase for GRUB script.
29515
29516 * tests/grub_script_blanklines.in: New testcase.
29517 * conf/tests.rmk: Rules for the new testcase.
29518
29519 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29520
29521 Don't use __FILE__.
29522
29523 * genmk.rb: Add -DGRUB_FILE to all C targets.
29524 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29525 * include/grub/list.h: Likewise.
29526 * include/grub/misc.h: Likewise.
29527 * include/grub/mm.h: Likewise.
29528 * include/grub/test.h: Likewise.
29529 * kern/mm.c: Likewise.
29530 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29531
29532 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29533
29534 Sunpc partitions support.
29535
29536 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29537 (grub_fstest_SOURCES): Likewise.
29538 (pkglib_MODULES): Add part_sunpc.mod.
29539 (part_sunpc_mod_SOURCES): New variable.
29540 (part_sunpc_mod_CFLAGS): Likewise.
29541 (part_sunpc_mod_LDFLAGS): Likewise.
29542 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29543 * partmap/sunpc.c: New file.
29544
29545 2010-03-26 BVK Chaitanya <bvk@localhost>
29546
29547 For loop support to GRUB script.
29548
29549 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29550 (grub_script_create_cmdfor): New function prototype.
29551 (grub_script_execute_cmdfor): New function prototype.
29552 * script/execute.c (grub_script_execute_cmdfor): New function.
29553 * script/parser.y (command): New for command.
29554 (forcmd): New grammar rule.
29555 * script/script.c (grub_script_create_cmdfor): New function.
29556 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29557 function.
29558 * tests/grub_script_for1.in: New testcase.
29559 * conf/tests.rmk: Rules for new testcase.
29560
29561 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29562
29563 Nested partitions
29564
29565 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29566 'partition' is NULL, grub_partition_get_start already does that.
29567 * commands/loadenv.c (check_blocklists): Likewise.
29568 (write_blocklists): Likewise.
29569 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29570 (grub_fstest_SOURCES): Likewise.
29571 (pkglib_MODULES): Add part_bsd.mod.
29572 (part_bsd_mod_SOURCES): New variable.
29573 (part_bsd_mod_CFLAGS): Likewise.
29574 (part_bsd_mod_LDFLAGS): Likewise.
29575 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29576 (grub_emu_SOURCES): Likewise.
29577 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29578 * include/grub/bsdlabel.h: New file.
29579 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29580 'get_name'.
29581 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29582 (grub_partition_map_list): New variable.
29583 (grub_partition_map_register): Inline.
29584 (grub_partition_map_unregister): Likewise.
29585 (FOR_PARTITION_MAPS): New macro.
29586 (grub_partition_map_iterate): Removed.
29587 (grub_partition_get_start): Handle nested partitions.
29588 * include/grub/msdos_partition.h: Remove bsd-related entries.
29589 (grub_pc_partition): Remove.
29590 * kern/disk.c (grub_disk_close): Free partition data.
29591 (grub_disk_adjust_range): Handle nested partitions.
29592 * kern/partition.c (grub_partition_map_probe): New function.
29593 (grub_partition_probe): Parse name to number, handle subpartitions.
29594 (get_partmap): New function.
29595 (grub_partition_iterate): Handle subpartitions.
29596 (grub_partition_get_name): Likewise.
29597 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29598 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29599 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29600 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29601 Set 'number'.
29602 (acorn_partition_map_probe): Remove.
29603 (acorn_partition_map_get_name): Likewise.
29604 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29605 Set 'number'.
29606 Set 'index' to 0 since there can be only one partition entry per sector.
29607 (amiga_partition_map_probe): Remove.
29608 (amiga_partition_map_get_name): Likewise.
29609 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29610 Set 'number'.
29611 Set 'offset' and 'index' to real positions of partitions.
29612 (apple_partition_map_probe): Remove.
29613 (apple_partition_map_get_name): Likewise.
29614 * partmap/bsdlabel.c: New file.
29615 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29616 Set 'number'.
29617 Allocate 'data' so it can be correctly freed.
29618 Set 'index' to offset inside sector.
29619 (gpt_partition_map_probe): Remove.
29620 (gpt_partition_map_get_name): Likewise.
29621 * partmap/msdos.c (grub_partition_parse): Remove.
29622 (pc_partition_map_iterate): Don't force raw access.
29623 Set 'number'.
29624 Make 'ext_offset' a local variable.
29625 (pc_partition_map_probe): Remove.
29626 (pc_partition_map_get_name): Remove.
29627 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29628 Set 'number'.
29629 (sun_partition_map_probe): Remove.
29630 (sun_partition_map_get_name): Likewise.
29631 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29632 (grub_pcpart_type): Likewise.
29633 * util/hostdisk.c (open_device): Handle new numbering scheme.
29634 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29635 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29636 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29637 * util/grub-install.in: Insert all subpartition modules.
29638 * util/ieee1275/grub-install.in: Likewise.
29639
29640 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29641
29642 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29643 grammar.
29644
29645 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29646
29647 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29648
29649 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29650
29651 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29652 match where 'make install' puts them.
29653 * util/i386/efi/grub-install.in: Likewise.
29654
29655 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29656
29657 * .bzrignore: Add gentrigtables, grub-script-check,
29658 grub_script_check_init.c, grub_script_check_init.h, and
29659 trigtables.c.
29660
29661 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29662
29663 * kern/parser.c: Indented.
29664
29665 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29666
29667 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29668
29669 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29670
29671 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29672 alpha_mask_size == 0 case.
29673
29674 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29675
29676 GRUB shell lexer and parser improvements.
29677
29678 * conf/any-emu.rmk: Build rule updates.
29679 * conf/common.rmk: Likewise.
29680 * conf/i386-coreboot.rmk: Likewise.
29681 * conf/i386-efi.rmk: Likewise.
29682 * conf/i386-ieee1275.rmk: Likewise.
29683 * conf/i386-pc.rmk: Likewise.
29684 * conf/powerpc-ieee1275.rmk: Likewise.
29685 * conf/x86_64-efi.rmk: Likewise.
29686
29687 * configure.ac: Configure check for flex.
29688
29689 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29690 types.
29691 (grub_lexer_param): Struct member updates.
29692 (grub_parser_param): Likewise.
29693 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29694 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29695 (grub_script_lexer_init): Prototype update.
29696 (grub_script_lexer_record_start): Likewise.
29697 (grub_script_lexer_record_stop): Likewise.
29698 (grub_script_lexer_yywrap): New function prototype.
29699 (grub_script_lexer_fini): Likewise.
29700 (grub_script_execute_argument_to_string): Removed by...
29701 (grub_script_execute_argument_to_argv): ...better version.
29702
29703 * script/execute.c (ROUND_UPTO): New macro.
29704 (grub_script_execute_cmdline): Out of memory fixes.
29705 (grub_script_execute_menuentry): Likewise.
29706 (grub_script_execute_argument_to_string): Removed. Update all
29707 users by...
29708 (grub_script_execute_argument_to_argv): ...better version.
29709 * script/function.c (grub_script_function_create): Use
29710 grub_script_execute_argument_to_argv instead of
29711 grub_script_execute_argument_to_string.
29712
29713 * script/lexer.c (check_varstate): Removed.
29714 (check_textstate): Removed.
29715 (grub_script_lexer_record_start): Likewise.
29716 (grub_script_lexer_record_stop): Likewise.
29717 (recordchar): Replaced with...
29718 (grub_script_lexer_record): ...new function.
29719 (nextchar): Removed.
29720 (grub_script_lexer_init): Rewritten.
29721 (grub_script_yylex): Rewritten.
29722 (append_newline): New function.
29723 (grub_script_lexer_yywrap): New function.
29724 (grub_script_lexer_fini): New function.
29725 (grub_script_yyerror): Sets error flag.
29726
29727 * script/yylex.l: New file.
29728 (grub_lexer_yyfree): Wrapper for flex yyffre.
29729 (grub_lexer_yyalloc): Likewise.
29730 (grub_lexer_yyrealloc): Likewise.
29731 * script/parser.y: Refactored.
29732
29733 * script/script.c (grub_script_arg_add): Out of memory fixes.
29734 (grub_script_add_arglist): Likewise.
29735 (grub_script_create_cmdline): Likewise.
29736 (grub_script_create_cmdmenu): Likewise.
29737 (grub_script_add_cmd): Likewise.
29738 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29739 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29740 unnecessary code.
29741
29742 * tests/grub_script_echo1.in: New testcase.
29743 * tests/grub_script_vars1.in: New testcase.
29744 * tests/grub_script_echo_keywords.in: New testcase.
29745
29746 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29747
29748 Remove some redundancy in build system.
29749
29750 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29751 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29752 (TARGET_LDFLAGS): Add -nostdlib.
29753 (TARGET_IMG_LDFLAGS): Likewise.
29754 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29755 anything since mmap isn't available.
29756 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29757 Add util/time.c.
29758 (pkglib_MODULES): Remove reboot.mod.
29759 (reboot_mod_SOURCES): Removed.
29760 (reboot_mod_CFLAGS): Likewise.
29761 (reboot_mod_LDFLAGS): Likewise.
29762 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29763 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29764 (DEFSYMFILES): Add kernel_syms.lst.
29765 (kernel_img_HEADERS): Add common headers.
29766 (symlist.c): New target.
29767 (kernel_syms.lst): Likewise.
29768 (pkglib_MODULES): Add memdisk.mod.
29769 (memdisk_mod_SOURCES): New variable.
29770 (memdisk_mod_CFLAGS): Likewise.
29771 (memdisk_mod_LDFLAGS): Likewise.
29772 (pkglib_MODULES): Add reboot.mod.
29773 (reboot_mod_SOURCES): New variable.
29774 (reboot_mod_CFLAGS): Likewise.
29775 (reboot_mod_LDFLAGS): Likewise.
29776 (pkglib_MODULES): Add date.mod.
29777 (date_mod_SOURCES): New variable.
29778 (date_mod_CFLAGS): Likewise.
29779 (date_mod_LDFLAGS): Likewise.
29780 (pkglib_MODULES): Add datehook.mod.
29781 (datehook_mod_SOURCES): New variable.
29782 (datehook_mod_CFLAGS): Likewise.
29783 (datehook_mod_LDFLAGS): Likewise.
29784 (pkglib_MODULES): Add lsmmap.mod.
29785 (lsmmap_mod_SOURCES): New variable.
29786 (lsmmap_mod_CFLAGS): Likewise.
29787 (lsmmap_mod_LDFLAGS): Likewise.
29788 (pkglib_MODULES): Add boot.mod.
29789 (boot_mod_SOURCES): New variable.
29790 (boot_mod_CFLAGS): Likewise.
29791 (boot_mod_LDFLAGS): Likewise.
29792 * conf/i386-coreboot.rmk: Removed redundant parts.
29793 * conf/i386-ieee1275.rmk: Likewise.
29794 * conf/i386-pc.rmk: Likewise.
29795 * conf/mips-yeeloong.rmk: Likewise.
29796 * conf/mips.rmk: Likewise.
29797 * conf/powerpc-ieee1275.rmk: Likewise.
29798 * conf/sparc64-ieee1275.rmk: Likewise.
29799 * conf/x86_64-efi.rmk: Likewise.
29800 * conf/i386-coreboot.rmk: Moved qemu parts ..
29801 * conf/i386-qemu.rmk: ... here
29802 * conf/i386-efi.rmk: Moved common parts to...
29803 * conf/x86-efi.rmk: ... here.
29804 * conf/i386.rmk: Added modules common to all x86 variants.
29805 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29806 * disk/memdisk.c: Remove grub/machine/kernel.h.
29807 * gensymlist.sh.in: Include symbol.h.
29808 * hook/datehook.c: Correct module name.
29809 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29810 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29811 * include/grub/i386/efi/serial.h: New file.
29812 * include/grub/x86_64/efi/serial.h: Likewise.
29813 * util/time.c: Likewise.
29814 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29815
29816 2010-03-14 Colin King <colin.king@ubuntu.com>
29817 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29818
29819 Shrink the pre-partition-table part of boot.img by eight bytes.
29820
29821 * boot/i386/pc/boot.S (ERR): New macro.
29822 (chs_mode): Use ERR.
29823 (geometry_error): Likewise.
29824 (hd_probe_error): Remove. This is only used once, so we wrwite
29825 it inline instead.
29826 (read_error): Instead of printing read_error_string, just set up
29827 %si and fall through to ...
29828 (error_message): ... this new function, also used by ERR.
29829
29830 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29831
29832 Speed up consecutive hostdisk operations on the same device.
29833
29834 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29835 (grub_util_biosdisk_open): Initialise disk->data.
29836 (struct linux_partition_cache): New structure.
29837 (linux_find_partition): Cache partition start positions; these are
29838 expensive to compute on every read and write.
29839 (open_device): Cache open file descriptor in disk->data, so that we
29840 don't have to reopen it and flush the buffer cache for consecutive
29841 operations on the same device.
29842 (grub_util_biosdisk_close): New function.
29843 (grub_util_biosdisk_dev): Set `close' member.
29844
29845 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29846 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29847 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29848 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29849 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29850
29851 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29852
29853 Compile parts of grub-emu as modules.
29854
29855 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29856 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29857 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29858 (all-local): Add $(GRUB_EMU).
29859 (install-local): Install $(GRUB_EMU).
29860 (uninstall): Uninstall $(GRUB_EMU).
29861 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29862 * kern/dl.c: Likewise.
29863 * commands/sleep.c: Not include machine/time.h.
29864 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29865 (COMMON_CFLAGS): Likewise.
29866 (sbin_UTILITIES): Remove grub-emu.
29867 (grub_emu_SOURCES): Removed.
29868 (kernel_img_RELOCATABLE): New variable.
29869 (pkglib_PROGRAMS): Add kernel.img.
29870 (kernel_img_SOURCES): New variable
29871 (kernel_img_CFLAGS): Likewise.
29872 (kernel_img_LDFLAGS): Likewise.
29873 (TARGET_NO_STRIP): Likewise.
29874 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29875 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29876 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29877 (grub-emu): New target.
29878 (GRUB_EMU): New variable.
29879 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29880 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29881 * loader/xnu.c: Likewise.
29882 * include/grub/pci.h: Likewise.
29883 * genemuinit.sh: New file.
29884 * genemuinitheader.sh: Likewise.
29885 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29886 Support TARGET_NO_DYNAMIC_MODULES.
29887 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29888 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29889 * disk/loopback.c: Likewise.
29890 * font/font_cmd.c: Likewise.
29891 * partmap/acorn.c: Likewise.
29892 * partmap/amiga.c: Likewise.
29893 * partmap/apple.c: Likewise.
29894 * partmap/gpt.c: Likewise.
29895 * partmap/msdos.c: Likewise.
29896 * partmap/sun.c: Likewise.
29897 * parttool/msdospart.c: Likewise.
29898 * term/gfxterm.c: Likewise.
29899 * video/bitmap.c: Likewise.
29900 * video/readers/jpeg.c: Likewise.
29901 * video/readers/png.c: Likewise.
29902 * video/readers/tga.c: Likewise.
29903 * video/video.c: Likewise.
29904 * util/grub-emu.c (read_command_list): Removed.
29905 (main): Don't call util_init_nls.
29906 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29907 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29908
29909 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29910
29911 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29912 date.mod, datehook.mod.
29913 (datetime_mod_SOURCES): New variable.
29914 (datetime_mod_CFLAGS): Likewise.
29915 (datetime_mod_LDFLAGS): Likewise.
29916 (date_mod_SOURCES): Likewise.
29917 (date_mod_CFLAGS): Likewise.
29918 (date_mod_LDFLAGS): Likewise.
29919 (datehook_mod_SOURCES): Likewise.
29920 (datehook_mod_CFLAGS): Likewise.
29921 (datehook_mod_LDFLAGS): Likewise.
29922 * conf/sparc64-ieee1275.rmk: Likewise.
29923 * lib/ieee1275/datetime.c: New file.
29924
29925 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29926
29927 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29928 (ieee1275_fb_mod_SOURCES): New variable.
29929 (ieee1275_fb_mod_CFLAGS): Likewise.
29930 (ieee1275_fb_mod_LDFLAGS): Likewise.
29931 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29932 New proto.
29933 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29934 (HEAP_MAX_ADDR): Likewise.
29935 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29936 type.
29937 Correct stop condition.
29938 (grub_ieee1275_devices_iterate): New function.
29939 * video/ieee1275.c: New file.
29940
29941 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29942
29943 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29944
29945 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29946 as scratch.
29947 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29948 SCRATCH_PAD_DISKBOOT as scratch.
29949 (bootit): Pass Openfirmware pointer in %o4.
29950 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29951 of 0x200000.
29952 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29953 with util/grub-mkrawimage.c.
29954 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29955 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29956 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29957 (grub_aout_load) [GRUB_UTIL]: Likewise.
29958 * include/grub/kernel.h (grub_modules_get_end): New proto.
29959 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29960 (SCRATCH_PAD_BOOT): New definition.
29961 (SCRATCH_PAD_DISKBOOT): Likewise.
29962 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29963 * include/grub/sparc64/ieee1275/ieee1275.h
29964 (grub_ieee1275_original_stack): New variable
29965 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29966 New definition
29967 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29968 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29969 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29970 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29971 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29972 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29973 (grub_platform_image_format_t): New type.
29974 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29975 * kern/main.c (grub_modules_get_end)
29976 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29977 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29978 (codestart): Switch stacks.
29979 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29980 variable.
29981 (grub_heap_init): Use grub_modules_get_end.
29982 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29983 stack.
29984 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29985 (main): Likewise.
29986 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29987
29988 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29989
29990 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29991
29992 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29993
29994 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29995 bug #559005).
29996
29997 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29998
29999 * genmoddep.awk: Output all missing symbols and not only first.
30000
30001 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30002
30003 * NEWS: Put the date of 1.98 release.
30004
30005 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30006
30007 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30008 ft2build.h.
30009
30010 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30011
30012 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30013 completition in the middle of string.
30014
30015 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30016
30017 * util/grub-mkrescue.in: Use mktemp with explicit template.
30018
30019 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30020
30021 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30022
30023 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30024
30025 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30026 right pointer.
30027
30028 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30029
30030 Fix FreeBSD compilation.
30031
30032 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30033 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30034
30035 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30036
30037 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30038
30039 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30040
30041 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30042
30043 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30044
30045 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30046
30047 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30048
30049 Support relative image path in theme file.
30050
30051 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30052 (image_set_property): Handle theme_dir and relative path.
30053
30054 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30055
30056 * configure.ac: Alias amd64 to x86_64.
30057
30058 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30059
30060 * NEWS: mention multiboot on EFI.
30061
30062 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30063
30064 * kern/main.c (grub_load_modules): Handle errors from init functions of
30065 embeded modules.
30066
30067 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30068
30069 * normal/autofs.c (autoload_fs_module): Handle errors.
30070
30071 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30072
30073 Disable linux.mod on qemu-mips since it's not functional and leads
30074 to compilation failure.
30075
30076 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30077 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30078 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30079 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30080 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30081 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30082 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30083 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30084 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30085 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30086 Reported by: BVK Chaitanya
30087
30088 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30089
30090 * INSTALL: Add gettext as a dependency and add qemu to a new section
30091 "Prerequisites for make-check".
30092
30093 2010-03-04 Christian Franke <franke@computer.org>
30094
30095 * util/grub-pe2elf.c: Add missing include "progname.h".
30096
30097 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30098
30099 * normal/crypto.c (read_crypto_list): Fix a typo.
30100 Reported by: Seth Goldberg.
30101
30102 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30103
30104 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30105 Reported by: Seth Goldberg.
30106
30107 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30108
30109 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30110 ascii.bitmaps.
30111
30112 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30113
30114 * genmk.rb: Remove terminal*.lst in make clean.
30115 Reported by: Seth Goldberg.
30116
30117 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30118
30119 * util/i386/efi/grub-install.in: Copy gettext files.
30120
30121 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30122
30123 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30124
30125 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30126
30127 Wait for user entry basing on presence of output rather than on errors.
30128
30129 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30130 (grub_install_newline_hook): Likewise.
30131 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30132 * normal/menu.c (show_menu): Check line_counter to determine presence
30133 of output.
30134 * normal/term.c (grub_normal_line_counter): New variable.
30135 (grub_normal_get_line_counter): New function.
30136 (grub_install_newline_hook): Likewise.
30137
30138 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30139
30140 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30141
30142 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30143
30144 * configure.ac: Update version to 1.98.
30145
30146 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30147
30148 * util/grub.d/10_linux.in (linux_entry): Don't default to
30149 gfxpayload=keep if Linux doesn't support video handover.
30150
30151 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30152
30153 Don't compile video modules on yeeloong since video subsystem is part
30154 of kernel.
30155
30156 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30157 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30158 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30159 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30160 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30161 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30162 * include/grub/bitmap_scale.h: Likewise.
30163 * include/grub/bufio.h: Likewise.
30164 * include/grub/font.h: Likewise.
30165 * include/grub/gfxterm.h: Likewise.
30166 * include/grub/video.h: Likewise.
30167 * include/grub/vbe.h: Don't include video_fb.h.
30168 * video/i386/pc/vbe.c: Include video_fb.h.
30169 * commands/i386/pc/vbetest.c: Include video.h.
30170
30171 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30172
30173 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30174 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30175 default entry if GRUB_SAVEDEFAULT=true. This allows using
30176 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30177 saving a new default on every boot.
30178
30179 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30180
30181 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30182 * normal/term.c (read_terminal_list): Likewise.
30183 * normal/main.c (grub_normal_init_page): Likewise.
30184 (grub_normal_read_line_real): Likewise.
30185
30186 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30187
30188 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30189 memory leak.
30190 Reported by: Seth Goldberg.
30191
30192 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30193
30194 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30195 duplicate declaration of `start'.
30196
30197 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30198
30199 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30200 filename.
30201 Reported by: Georgy Buranov
30202
30203 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30204
30205 * util/grub-mkrawimage.c (usage): Change string formatting to
30206 improve gettext.
30207
30208 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30209
30210 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30211 backspace keys.
30212
30213 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30214
30215 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30216 Reported by: Michael Suchanek.
30217
30218 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30219
30220 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30221 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30222
30223 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30224
30225 Remove any reference to non-free fonts.
30226
30227 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30228 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30229 uses non-free components.
30230 * font/font.c (grub_font_get_name): Remove example name.
30231 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30232 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30233 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30234 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30235
30236 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30237
30238 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30239
30240 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30241
30242 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30243 Double divisor.
30244 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30245 features.
30246 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30247
30248 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30249
30250 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30251
30252 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30253
30254 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30255 * docs/grub.texi (Command-line and menu entry commands): Document play
30256 command.
30257
30258 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30259
30260 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30261 parse arguments as inline tempo and notes. Move code for playing notes
30262 to...
30263 (play): ... new function.
30264
30265 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30266
30267 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30268 grub_uint16_t instead of short.
30269 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30270 disk from little endian to cpu endianness.
30271
30272 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30273
30274 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30275 GRUB_TICKS_PER_SECOND instead of 120.
30276
30277 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30278
30279 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30280 escape sequence after \e.
30281
30282 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30283
30284 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30285 non-ASCII characters.
30286
30287 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30288
30289 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30290 set root in single quotes to prevent \, from being unescaped.
30291
30292 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30293
30294 Prevent unknown commands from stopping menuentry execution.
30295
30296 * script/execute.c (grub_script_execute_cmdline): Print error after
30297 unknown command.
30298
30299 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30300
30301 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30302 Reported by: Pavel Pisa.
30303
30304 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30305
30306 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30307
30308 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30309
30310 Merge grub_ieee1275_map_physical into grub_map and rename to
30311 grub_ieee1275_map
30312
30313 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30314 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30315 Remove.
30316 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30317 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30318 necessary.
30319 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30320
30321 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30322
30323 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30324 opening and not after.
30325
30326 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30327
30328 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30329 constants.
30330
30331 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30332
30333 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30334 (alloc_phys): Use ALIGN_UP instead of align_addr.
30335
30336 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30337
30338 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30339
30340 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30341
30342 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30343
30344 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30345
30346 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30347 verbose dprintf.
30348
30349 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30350
30351 Fix over-4GiB seek on sparc64.
30352
30353 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30354 Replace pos_i and pos_lo with pos. All users updated.
30355 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30356 New constant.
30357 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30358 Likewise.
30359 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30360 and pos_lo.
30361
30362 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30363
30364 * util/grub-mkrawimage.c (main): Call set_program_name.
30365
30366 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30367
30368 Properly align 64-bit targets.
30369
30370 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30371 (generate_image): Use ALIGN_ADDR.
30372
30373 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30374
30375 Properly create cross-endian images.
30376
30377 * include/grub/types.h (grub_host_to_target_addr): New macro
30378 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30379
30380 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30381
30382 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30383
30384 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30385
30386 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30387
30388 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30389 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30390 (grub_linux_boot): Divide by 64K when on VESA.
30391
30392 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30393
30394 Support GRUB_GFXPAYLOAD_LINUX.
30395
30396 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30397 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30398
30399 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30400
30401 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30402 to show messages instead of discarding them.
30403 Process errors after executing command and not before. Keep old method
30404 too as precaution.
30405
30406 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30407
30408 * configure.ac: Check for ft2build.h.
30409
30410 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30411
30412 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30413
30414 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30415
30416 * genkernsyms.sh.in: Use TARGET_CC.
30417
30418 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30419
30420 * NEWS: Update.
30421
30422 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30423
30424 * include/grub/multiboot2.h: Remove leftover file.
30425 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30426 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30427
30428 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30429
30430 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30431
30432 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30433
30434 Fix warnings in grub-emu when compiling with maximum warning options.
30435
30436 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30437 (grub_arch_modules_addr): Return 0 and not NULL.
30438 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30439 (xstrdup): Use newstr instead of dup.
30440 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30441 of disk to dsk to avoid shadowing.
30442 (find_free_slot): Fix prototype.
30443 * util/getroot.c (grub_util_is_dmraid): Make static.
30444 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30445 Add missing prototype.
30446 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30447
30448 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30449
30450 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30451 appropriately.
30452
30453 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30454
30455 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30456 code out.
30457
30458 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30459
30460 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30461 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30462 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30463 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30464 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30465 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30466
30467 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30468
30469 * include/grub/err.h (grub_err_printf): Don't export.
30470
30471 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30472
30473 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30474
30475 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30476
30477 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30478 * kern/misc.c (grub_gettext_dummy): Make static.
30479
30480 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30481
30482 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30483 by non-valid ones.
30484 * kern/term.c (grub_putchar): Likewise.
30485
30486 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30487
30488 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30489 buggy hook call and memory leak.
30490
30491 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30492
30493 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30494
30495 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30496
30497 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30498
30499 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30500
30501 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30502 modevar.
30503 Return grub_errno on allocation error.
30504
30505 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30506
30507 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30508
30509 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30510
30511 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30512 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30513
30514 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30515
30516 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30517 non-pxe disk.
30518 (grub_pxefs_open): Likewise.
30519
30520 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30521
30522 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30523 * util/grub.d/10_kfreebsd.in: Likewise.
30524 * util/grub.d/10_linux.in: Likewise.
30525
30526 2010-02-06 Colin D Bennett <colin@gibibit.com>
30527
30528 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30529 (gfxmenu_mod_SOURCES): New variable.
30530 (gfxmenu_mod_CFLAGS): Likewise.
30531 (gfxmenu_mod_LDFLAGS): Likewise.
30532 * include/grub/term.h (grub_term_set_current_output): Declare
30533 argument as const.
30534 * docs/gfxmenu-theme-example.txt: New file.
30535 * gfxmenu/gfxmenu.c: Likewise.
30536 * gfxmenu/gui_box.c: Likewise.
30537 * gfxmenu/gui_canvas.c: Likewise.
30538 * gfxmenu/gui_circular_progress.c: Likewise.
30539 * gfxmenu/gui_image.c: Likewise.
30540 * gfxmenu/gui_label.c: Likewise.
30541 * gfxmenu/gui_list.c: Likewise.
30542 * gfxmenu/gui_progress_bar.c: Likewise.
30543 * gfxmenu/gui_string_util.c: Likewise.
30544 * gfxmenu/gui_util.c: Likewise.
30545 * gfxmenu/icon_manager.c: Likewise.
30546 * gfxmenu/model.c: Likewise.
30547 * gfxmenu/named_colors.c: Likewise.
30548 * gfxmenu/theme_loader.c: Likewise.
30549 * gfxmenu/view.c: Likewise.
30550 * gfxmenu/widget-box.c: Likewise.
30551 * include/grub/gfxmenu_model.h: Likewise.
30552 * include/grub/gfxmenu_view.h: Likewise.
30553 * include/grub/gfxwidgets.h: Likewise.
30554 * include/grub/gui.h: Likewise.
30555 * include/grub/gui_string_util.h: Likewise.
30556 * include/grub/icon_manager.h: Likewise.
30557
30558 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30559
30560 Agglomerate scrolling in gfxterm.
30561
30562 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30563 (grub_virtual_screen_setup): Initialise 'total_screen'.
30564 (write_char): Split to ...
30565 (paint_char): ... this ...
30566 (write_char): ... and this.
30567 (paint_char): Handle delayed scrolling.
30568 (draw_cursor): Likewise.
30569 (scroll_up): Split to ...
30570 (real_scroll): ... this ...
30571 (scroll_up): ... and this.
30572 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30573 characters.
30574 (grub_gfxterm_refresh): Call real_scroll.
30575
30576 2010-02-06 Colin D Bennett <colin@gibibit.com>
30577
30578 * include/grub/misc.h (grub_iscntrl): New inline function.
30579 (grub_isalnum): Likewise.
30580 (grub_strtol): Likewise.
30581
30582 2010-02-06 Colin D Bennett <colin@gibibit.com>
30583
30584 * normal/menu_text.c (get_entry_number): Move from here ...
30585 * normal/menu.c (get_entry_number): ... moved here.
30586 * include/grub/menu.h (grub_menu_get_default_entry_index):
30587 New prototype.
30588 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30589 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30590 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30591 (grub_menu_viewer_should_return): Likewise.
30592 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30593 * normal/menu_text.c (run_menu): Enable menu switching.
30594 * normal/menu_viewer.c (should_return): New variable.
30595 (menu_viewer_changed): Likewise.
30596 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30597 (grub_menu_viewer_should_return): New function.
30598 (menuviewer_write_hook): Likewise.
30599 (grub_menu_viewer_init): Likewise.
30600
30601 2010-02-06 Colin D Bennet <colin@gibibit.com>
30602 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30603
30604 Support for gfxterm in a window.
30605
30606 * include/grub/gfxterm.h: New file.
30607 * include/grub/video.h (struct grub_video_rect): New declaration.
30608 (grub_video_rect_t): Likewise.
30609 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30610 (refcount): New variable.
30611 (render_target): Likewise.
30612 (window): Likewise.
30613 (repaint_callback): Likewise.
30614 (grub_virtual_screen_setup): Use 'render_target'.
30615 (init_window): New function.
30616 (grub_gfxterm_init_window): Likewise.
30617 (grub_gfxterm_init): Check reference counter.
30618 Use init_window.
30619 (destroy_window): New function.
30620 (grub_gfxterm_destroy_window): Likewise.
30621 (grub_gfxterm_fini): Check reference counter.
30622 Use destroy_window.
30623 (redraw_screen_rect): Restore viewport.
30624 Use 'render_target' and 'window'.
30625 Call 'repaint_callback'.
30626 (write_char): Use 'render_target'.
30627 (draw_cursor): Likewise.
30628 (scroll_up): Restore viewport.
30629 Use 'render_target' and 'window'.
30630 Call 'repaint_callback'.
30631 (grub_gfxterm_cls): Likewise.
30632 (grub_gfxterm_refresh): Use 'window'.
30633 (grub_gfxterm_set_repaint_callback): New function.
30634 (grub_gfxterm_background_image_cmd): Use 'window'.
30635 (grub_gfxterm_get_term): New function.
30636 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30637
30638 2010-02-06 Colin D Bennett <colin@gibibit.com>
30639
30640 Bitmap scaling support.
30641
30642 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30643 (bitmap_scale_mod_SOURCES): New variable.
30644 (bitmap_scale_mod_CFLAGS): Likewise.
30645 (bitmap_scale_mod_LDFLAGS): Likewise.
30646 * include/grub/bitmap_scale.h: New file.
30647 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30648 (background_image_cmd_options): New variable.
30649 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30650 (cmd): Rename and change type to ...
30651 (background_image_cmd_handle): ... this. All users updated.
30652 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30653 * video/bitmap_scale.c: New file.
30654
30655 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30656
30657 SDL support.
30658
30659 * Makefile.in (LIBSDL): New variable.
30660 (enable_grub_emu_sdl): Likewise.
30661 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30662 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30663 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30664 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30665 * util/sdl.c: New file.
30666
30667 2010-02-06 Colin D Bennett <colin@gibibit.com>
30668 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30669
30670 Double buffering support.
30671
30672 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30673 * include/grub/video.h: Update comment.
30674 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30675 New type.
30676 (grub_video_fb_doublebuf_blit_init): New prototype.
30677 * term/gfxterm.c (scroll_up): Support double buffering.
30678 (grub_gfxterm_refresh): Likewise.
30679 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30680 (grub_video_fb_doublebuf_blit_init): Likewise.
30681 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30682 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30683 'displayed_page', 'render_page' and 'update_screen'.
30684 (grub_video_vbe_fini): Free offscreen buffer.
30685 (doublebuf_pageflipping_commit): New function.
30686 (doublebuf_pageflipping_update_screen): Likewise.
30687 (doublebuf_pageflipping_init): Likewise.
30688 (double_buffering_init): Likewise.
30689 (grub_video_vbe_setup): Enable doublebuffering.
30690 (grub_video_vbe_swap_buffers): Implement.
30691 (grub_video_vbe_set_active_render_target): Handle double buffering.
30692 (grub_video_vbe_get_active_render_target): Likewise.
30693 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30694 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30695 (grub_video_vbe_enable_double_buffering): Likewise.
30696 (grub_video_vbe_swap_buffers): Use update_screen.
30697 (grub_video_set_mode): Use double buffering.
30698
30699 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30700
30701 * maintainance/gentrigtables.py: Remove.
30702 * lib/trig.c: Likewise.
30703
30704 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30705
30706 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30707 `trigtables.c'.
30708 (trigtables.c): New rule.
30709 (gentrigtables): Likewise.
30710 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30711
30712 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30713
30714 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30715 integer constants.
30716
30717 2010-02-06 Colin D Bennet <colin@gibibit.com>
30718
30719 Trigonometry support.
30720
30721 * include/grub/trig.h: New file.
30722 * lib/trig.c: Likewise.
30723 * maintainance/gentrigtables.py: Likewise.
30724 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30725 (trig_mod_SOURCES): New variable.
30726 (trig_mod_CFLAGS): Likewise.
30727 (trig_mod_LDFLAGS): Likewise.
30728
30729 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30730
30731 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30732 disk devices.
30733
30734 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30735
30736 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30737 error.
30738
30739 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30740
30741 * util/hostdisk.c (open_device): Don't use partition device when reading
30742 before the partition.
30743 (grub_util_biosdisk_read): Don't read from partition and before the
30744 partition in single operation.
30745 (grub_util_biosdisk_write): Don't write to partition and before the
30746 partition in single operation.
30747
30748 2010-02-03 Torsten Landschoff <torsten@debian.org>
30749
30750 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30751 last sectors.
30752
30753 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30754
30755 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30756 CDROM reads.
30757 (grub_biosdisk_write): Refuse to write to CDROM.
30758
30759 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30760
30761 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30762
30763 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30764
30765 * font/font.c (find_glyph): Check that bmp_idx is available before
30766 using it.
30767 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30768 with (font == NULL).
30769
30770 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30771
30772 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30773
30774 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30775
30776 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30777 * util/grub-script-check.c (getline): Fix empty lines case.
30778
30779 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30780
30781 * Makefile.in (check): Exit with fail status when one of the tests
30782 fails.
30783 * tests/example_functional_test.c (example_test): Fix reversed assert.
30784 * tests/example_unit_test.c (example_test): Likewise.
30785
30786 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30787
30788 * util/grub.d/10_linux.in: This script does not use any of the
30789 contents of gettext.sh, only the external command `gettext', so stop
30790 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30791 the same prefix as GRUB.)
30792 * util/grub.d/10_kfreebsd.in: Likewise.
30793
30794 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30795
30796 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30797 of the line.
30798
30799 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30800
30801 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30802 last sectors.
30803
30804 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30805
30806 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30807 having a 4KiB and not 32KiB buffer size.
30808
30809 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30810
30811 * util/hostfs.c: Include `<errno.h>'.
30812 (grub_hostfs_read): Handle errors from fseeko() and fread().
30813
30814 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30815
30816 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30817 loop when using read hooks on files whose size isn't sector-aligned.
30818
30819 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30820
30821 Remove unused parameter.
30822
30823 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30824 (grub_iso9660_open): Remove initialization of `data->length'.
30825
30826 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30827
30828 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30829 memleak conditions.
30830
30831 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30832
30833 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30834 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30835
30836 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30837
30838 * util/bin2h.c (usage): Fix warning (space after backslash).
30839
30840 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30841
30842 * font/font.c: Include `grub/fontformat.h.
30843 Remove font file format constants.
30844 (grub_font_load): Use the new macros.
30845 * include/grub/fontformat.h: New file.
30846 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30847 (write_font_pf2): Use the new macros.
30848
30849 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30850
30851 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30852 does.
30853
30854 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30855
30856 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30857
30858 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30859 (_start): Macroify `0x7F'.
30860
30861 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30862 (make_install_device): Use "(pxe)" as fallback prefix when booting
30863 via PXE.
30864
30865 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30866
30867 * configure.ac: Reset LIBS after check for libgcc symbols.
30868
30869 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30870
30871 * util/hostdisk.c (open_device): Add trailing newline to debug
30872 message.
30873
30874 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30875
30876 * configure.ac: Check for `limits.h'.
30877 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30878
30879 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30880
30881 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30882 capitalize error strings.
30883
30884 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30885
30886 * util/grub.d/10_hurd.in: Add a recovery mode.
30887
30888 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30889
30890 * configure.ac: Check for libgcc symbols with -nostdlib.
30891
30892 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30893
30894 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30895
30896 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30897
30898 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30899 stack since heap may be unavailable at that point.
30900 (grub_ofconsole_gotoxy): Likewise.
30901
30902 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30903
30904 * configure.ac: Check for _restgpr_14_x.
30905 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30906 and _savegpr_* prototypes.
30907
30908 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30909
30910 Use generic grub_reboot() for i386-efi.
30911
30912 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30913 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30914 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30915
30916 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30917
30918 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30919 presence of "prefix" variable as it breaks when normal.mod is
30920 embedded.
30921
30922 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30923
30924 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30925 stack since heap is unavailable at that point.
30926
30927 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30928
30929 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30930 (grub_freebsd_bootinfo): Rewritten.
30931 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30932
30933 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30934
30935 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30936
30937 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30938
30939 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30940 domain now.
30941
30942 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30943
30944 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30945 around for handling "/" to the correct fix. Fix a memory leak. Use
30946 xstrdup instead of strdup.
30947
30948 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30949
30950 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30951
30952 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30953
30954 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30955
30956 * font/font.c (struct grub_font): New member 'bmp_idx'.
30957 (font_init): Initialise 'bmp_idx'.
30958 (load_font_index): Fill 'bmp_idx'.
30959 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30960
30961 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30962
30963 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30964 unnecessary calls.
30965
30966 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30967
30968 Move context handling out of the kernel.
30969
30970 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30971 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30972 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30973 * conf/i386-efi.rmk: Likewise.
30974 * conf/i386-ieee1275.rmk: Likewise.
30975 * conf/i386-pc.rmk: Likewise.
30976 * conf/powerpc-ieee1275.rmk: Likewise.
30977 * conf/sparc64-ieee1275.rmk: Likewise.
30978 * conf/x86_64-efi.rmk: Likewise.
30979 * include/grub/env.h: Include grub/menu.h.
30980 (grub_env_var_type): Removed.
30981 (grub_env_var): Replaced field 'type' with 'global'.
30982 (grub_env_find): New prototype.
30983 (grub_env_context_open): Remove EXPORT_FUNC.
30984 (grub_env_context_close): Likewise.
30985 (grub_env_export): Likewise.
30986 (grub_env_set_data_slot): Removed.
30987 (grub_env_get_data_slot): Likewise.
30988 (grub_env_unset_data_slot): Likewise.
30989 (grub_env_unset_menu): New prototype.
30990 (grub_env_set_menu): Likewise.
30991 (grub_env_get_menu): Likewise.
30992 * include/grub/env_private.h: New file.
30993 * include/grub/normal.h (grub_context_init): New prototype.
30994 (grub_context_fini): Likewise.
30995 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30996 * normal/context.c (grub_cmd_export): ... to here.
30997 * kern/env.c: Include env_private.h.
30998 (HASHSZ): Moved to include/grub/env_private.h.
30999 (grub_env_context): Likewise.
31000 (grub_env_sorted_var): Likewise.
31001 (current_context): Renamed from this ...
31002 (grub_current_context): ...to this. 'static' removed. All users updated.
31003 (grub_env_find): Removed 'static'.
31004 (grub_env_context_open): Moved to normal/context.c.
31005 (grub_env_context_close): Likewise.
31006 (grub_env_export): Likewise.
31007 (mangle_data_slot_name): Removed.
31008 (grub_env_set_data_slot): Likewise.
31009 (grub_env_get_data_slot): Likewise.
31010 (grub_env_unset_data_slot): Likewise.
31011 * kern/main.c (grub_set_root_dev): Don't export root.
31012 It will be done later.
31013 (grub_main): Don't export prefix.
31014 It will be done later.
31015 * normal/context.c: New file.
31016 * normal/main.c (free_menu): Use grub_env_unset_menu.
31017 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31018 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31019 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31020 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31021
31022 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31023
31024 setpci support.
31025
31026 * commands/setpci.c: New file.
31027 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31028 (setpci_mod_SOURCES): New variable.
31029 (setpci_mod_CFLAGS): Likewise.
31030 (setpci_mod_LDFLAGS): Likewise.
31031
31032 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31033
31034 Byte-addressable PCI configuration space.
31035
31036 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31037 dword address.
31038 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31039 GRUB_PCI_REG_CACHELINE.
31040 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31041 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31042 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31043 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31044 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31045 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31046 grub_pci_make_address.
31047 (lock_rom_area): Likewise.
31048 * commands/lspci.c (grub_lspci_iter): Use macroses
31049 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31050 of grub_pci_make_address.
31051 * disk/ata.c (grub_ata_pciinit): Likewise.
31052 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31053 (GRUB_PCI_REG_VENDOR): Likewise.
31054 (GRUB_PCI_REG_DEVICE): Likewise.
31055 (GRUB_PCI_REG_COMMAND): Likewise.
31056 (GRUB_PCI_REG_STATUS): Likewise.
31057 (GRUB_PCI_REG_REVISION): Likewise.
31058 (GRUB_PCI_REG_CLASS): Likewise.
31059 (GRUB_PCI_REG_CACHELINE): Likewise.
31060 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31061 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31062 (GRUB_PCI_REG_BIST): Likewise.
31063 (GRUB_PCI_REG_ADDRESSES): Likewise.
31064 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31065 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31066 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31067 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31068 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31069 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31070 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31071 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31072 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31073 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31074 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31075 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31076 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31077 (GRUB_PCI_REG_MIN_GNT): Likewise.
31078 (GRUB_PCI_REG_MAX_LAT): Likewise.
31079 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31080 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31081 * video/efi_uga.c (find_framebuf): Likewise.
31082 * video/sm712.c (grub_video_sm712_setup): Likewise.
31083 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31084 space.
31085
31086 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31087
31088 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31089 can be reliably determined to be supported.
31090
31091 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31092
31093 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31094 that VESA is supported.
31095 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31096 supported.
31097
31098 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31099
31100 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31101
31102 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31103
31104 * util/misc.c (make_system_path_relative_to_its_root): Work around
31105 special-casing of "/", as previous incarnation of this routine did.
31106
31107 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31108
31109 Fix any-emu compilation.
31110
31111 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31112 * grub_bin2h_SOURCES: New variable.
31113
31114 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31115
31116 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31117
31118 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31119
31120 * util/grub.d/00_header.in: Fix handling of locale_dir.
31121
31122 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31123
31124 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31125 as possible unifont location (Gentoo).
31126 Reported by: Alexander Brüning
31127
31128 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31129
31130 Don't try to generate lists for kernel.img.
31131
31132 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31133 (pkglib_MODULES): Remove kernel.img.
31134 (kernel_img_EXPORTS): Removed.
31135 (kernel_img_RELOCATABLE): New variable.
31136 * conf/x86_64-efi.rmk: Likewise.
31137 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31138
31139 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31140
31141 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31142 grub_xasprintf or grub_snprintf.
31143 (grub_vsprintf): Likewise.
31144 (grub_snprintf): New proto.
31145 (grub_vsnprintf): Likewise.
31146 (grub_xasprintf): Likewise.
31147 (grub_xvasprintf): Likewise.
31148 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31149 (grub_sprintf): Removed.
31150 (grub_vsnprintf): New function.
31151 (grub_snprintf): Likewise.
31152 (grub_xvasprintf): Likewise.
31153 (grub_xasprintf): Likewise.
31154 (grub_vsprintf): Renamed to ...
31155 (grub_vsnprintf_real): ...this. New argument max_len.
31156
31157 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31158
31159 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31160 fix grub-script-check warning.
31161
31162 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31163
31164 * include/grub/font.h (grub_font_load): Fix prototype.
31165
31166 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31167
31168 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31169
31170 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31171
31172 * include/grub/x86_64/at_keyboard.h: New file.
31173
31174 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31175
31176 * loader/mips/linux.c: Include missing grub/i18n.h.
31177
31178 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31179
31180 * normal/menu.c (notify_execution_failure): Clarify error message.
31181
31182 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31183
31184 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31185 return value (and revert all return statements). Update users.
31186
31187 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31188
31189 * kern/device.c (grub_device_iterate): Allocate new part_ent
31190 structure based on sizeof (*p) rather than sizeof (p->next), to
31191 account for structure padding.
31192
31193 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31194 disk is NULL, which might happen for LVM physical volumes with no
31195 LVM signature.
31196
31197 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31198
31199 * loader/mips/linux.c (grub_cmd_initrd)
31200 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31201
31202 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31203
31204 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31205 (grub_video_video_init, grub_video_bitmap_init)
31206 (grub_font_manager_init, grub_term_gfxterm_init)
31207 (grub_at_keyboard_init): New extern declarations.
31208 (grub_machine_init): Initialize gfxterm and at_keyboard.
31209
31210 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31211
31212 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31213 `gfxterm.mod' into core image.
31214
31215 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31216 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31217 (kernel_img_FORMAT): Copy to ...
31218
31219 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31220 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31221 (kernel_img_FORMAT): ... here, and ...
31222
31223 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31224 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31225 (kernel_img_FORMAT): ... here.
31226
31227 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31228 and input (at_keyboard) terminals in kernel.
31229 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31230
31231 (pkglib_MODULES): Remove `pci.mod'.
31232 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31233 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31234 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31235 (at_keyboard_mod_LDFLAGS): Remove variables.
31236
31237 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31238
31239 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31240
31241 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31242
31243 * include/grub/mips/libgcc.h: Only export symbols for functions
31244 that libgcc provides.
31245
31246 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31247
31248 MIPS support.
31249
31250 * bus/bonito.c: New file.
31251 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31252 GRUB_PCI_NUM_DEVICES.
31253 * term/i386/pc/serial.c: Move to ...
31254 * term/serial.c: ... here. All users updated.
31255 * util/i386/pc/grub-mkimage.c: Move to ...
31256 * util/grub-mkrawimage.c: ... here. All users updated.
31257 * term/i386/pc/at_keyboard.c: Move to ...
31258 * term/at_keyboard.c: ... here. All users updated.
31259 * conf/mips-qemu-mips.rmk: New file.
31260 * conf/mips-yeeloong.rmk: Likewise.
31261 * conf/mips.rmk: Likewise.
31262 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31263 mipsel-qemu-mips.
31264 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31265 to port addresses.
31266 (grub_ata_pciinit): Support CS5536.
31267 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31268 * font/font_cmd.c (loadfont_command): Open file before passing it to
31269 grub_font_load.
31270 (pseudo_file_read): New function.
31271 (pseudo_file_close): Likewise.
31272 (pseudo_fs): New structure.
31273 (load_font_module): New function.
31274 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31275 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31276 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31277 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31278 * include/grub/i386/at_keyboard.h: Split into ...
31279 * include/grub/at_keyboard.h: ... this ...
31280 * include/grub/i386/at_keyboard.h: ... and this.
31281 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31282 New prototype.
31283 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31284 updated.
31285 (grub_elf64_size): Likewise.
31286 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31287 filename.
31288 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31289 * include/grub/i386/coreboot/serial.h: Rewritten.
31290 * include/grub/i386/ieee1275/serial.h: Include
31291 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31292 * include/grub/i386/pc/serial.h: Moved from here ...
31293 * include/grub/serial.h: ... to here. All users updated.
31294 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31295 (GRUB_PCI_NUM_BUS): Likewise.
31296 (GRUB_PCI_NUM_DEVICES): Likewise.
31297 (grub_pci_device_map_range): Add missing volatile keyword.
31298 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31299 * include/grub/mips/at_keyboard.h: New file.
31300 * include/grub/mips/cache.h: Likewise.
31301 * include/grub/mips/io.h: Likewise.
31302 * include/grub/mips/kernel.h: Likewise.
31303 * include/grub/mips/libgcc.h: Likewise.
31304 * include/grub/mips/pci.h: Likewise.
31305 * include/grub/mips/qemu-mips/boot.h: Likewise.
31306 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31307 * include/grub/mips/qemu-mips/loader.h: Likewise.
31308 * include/grub/mips/qemu-mips/memory.h: Likewise.
31309 * include/grub/mips/qemu-mips/serial.h: Likewise.
31310 * include/grub/mips/qemu-mips/time.h: Likewise.
31311 * include/grub/mips/relocator.h: Likewise.
31312 * include/grub/mips/time.h: Likewise.
31313 * include/grub/mips/types.h: Likewise.
31314 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31315 * include/grub/mips/yeeloong/boot.h: Likewise.
31316 * include/grub/mips/yeeloong/kernel.h: Likewise.
31317 * include/grub/mips/yeeloong/loader.h: Likewise.
31318 * include/grub/mips/yeeloong/memory.h: Likewise.
31319 * include/grub/mips/yeeloong/pci.h: Likewise.
31320 * include/grub/mips/yeeloong/serial.h: Likewise.
31321 * include/grub/mips/yeeloong/time.h: Likewise.
31322 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31323 * kern/elf.c (grub_elf32_size): New parameter. All users
31324 updated.
31325 (grub_elf64_size): Likewise.
31326 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31327 Load modules before saying "Welcome to GRUB!".
31328 Call grub_refresh after saying "Welcome to GRUB!".
31329 * kern/mips/cache.S: New file.
31330 * kern/mips/cache_flush.S: Likewise.
31331 * kern/mips/dl.c: Likewise.
31332 * kern/mips/init.c: Likewise.
31333 * kern/mips/qemu-mips/init.c: Likewise.
31334 * kern/mips/startup.S: Likewise.
31335 * kern/mips/yeeloong/init.c: Likewise.
31336 * kern/term.c (grub_putcode): Handle NULL terminal.
31337 (grub_getcharwidth): Likewise.
31338 (grub_getkey): Likewise.
31339 (grub_checkkey): Likewise.
31340 (grub_getkeystatus): Likewise.
31341 (grub_getxy): Likewise.
31342 (grub_getwh): Likewise.
31343 (grub_gotoxy): Likewise.
31344 (grub_cls): Likewise.
31345 (grub_setcolorstate): Likewise.
31346 (grub_setcolor): Likewise.
31347 (grub_getcolor): Likewise.
31348 (grub_refresh): Likewise.
31349 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31350 (write_jump): Add hatch nop.
31351 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31352 * lib/mips/setjmp.S: New file.
31353 * loader/mips/linux.c: Likewise.
31354 * term/i386/pc/at_keyboard.c: Move from here ...
31355 * term/at_keyboard.c: ... to here.
31356 * term/i386/pc/serial.c: Moved from here ...
31357 * term/serial.c: ... to here. All users updated.
31358 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31359 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31360 (serial_translate_key_sequence): Avoid deadlock.
31361 (grub_serial_getkey): Handle backspace.
31362 (grub_serial_putchar): Fix newline handling.
31363 * util/i386/pc/grub-mkimage.c: Move from here ...
31364 * util/grub-mkrawimage.c: ... to here. All users updated.
31365 (generate_image): New parameters 'font_path' and 'format'.
31366 Support embedding font.
31367 Use grub_host_to_target* instead of grub_cpu_to_le*.
31368 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31369 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31370 (options): New option "--font".
31371 (usage): Likewise.
31372 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31373 (main): Handle "--font".
31374 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31375 (grub_virtual_screen_setup): Set bg_color_display.
31376 (redraw_screen_rect): Use bg_color_display instead of incorrect
31377 bg_color.
31378 (grub_gfxterm_cls): Likewise.
31379 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31380 Support embedding config file.
31381 (add_segments): Likewise.
31382 (options): New option "--config".
31383 (main): Handle "--config".
31384 * video/sm712.c: New file.
31385
31386 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31387
31388 Fix parallel builds.
31389
31390 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31391 font.c depend on ascii.h).
31392
31393 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31394
31395 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31396
31397 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31398
31399 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31400 By default: disabled.
31401 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31402 parameter.
31403
31404 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31405
31406 * font/font.c: Update copyright years.
31407 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31408
31409 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31410
31411 * font/font.c: Include `ascii.h'.
31412 (ASCII_BITMAP_SIZE): New macro.
31413 (ascii_font_glyph): Define.
31414 (ascii_glyph_lookup): New function.
31415 (grub_font_get_string_width): Change comment. If glyph not found, use
31416 ascii_glyph_lookup.
31417 (grub_font_get_glyph_with_fallback): If glyph not available returns
31418 ascii_glyph_lookup.
31419 * util/grub-mkfont.c (file_formats): New enum.
31420 (options): Add `ascii-bitmaps' new option.
31421 (usage): Add `asii-bitmaps' new option.
31422 (write_font_ascii_bitmap): New function.
31423 (write_font): Rename to ...
31424 (write_font_p2): ... this. Remove print_glyphs call.
31425 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31426 used. Call print_glyphs.
31427 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31428
31429 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31430
31431 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31432 (grub_bin2h_SOURCES): New variable.
31433 * util/bin2h.c: New file.
31434
31435 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31436
31437 * include/multiboot.h: Resynced with spec.
31438 * include/multiboot2.h: Likewise.
31439 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31440 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31441
31442 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31443
31444 * include/grub/term.h (grub_term_register_input,
31445 grub_term_register_output): Check return of terminal init()
31446 routines, and abort if errors are raised.
31447
31448 * commands/terminal.c: Update copyright year.
31449
31450 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31451
31452 * commands/terminal.c (grub_cmd_terminal_input)
31453 (grub_cmd_terminal_output): Check return of terminal init()
31454 routines, and abort if errors are raised.
31455
31456 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31457
31458 * include/grub/i386/bsd.h: Fix include pathes.
31459
31460 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31461
31462 Add missing *BSD copyright headers.
31463
31464 * include/grub/aout.h: Add BSD licence.
31465 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31466 * include/grub/i386/freebsd_linker.h: ... here,
31467 * include/grub/i386/freebsd_reboot.h: ... here,
31468 * include/grub/i386/netbsd_bootinfo.h: ... here,
31469 * include/grub/i386/netbsd_reboot.h: ... here,
31470 * include/grub/i386/openbsd_bootarg.h: ... here,
31471 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31472 licence to each file.
31473
31474 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31475
31476 * acinclude.m4: Remove `nop' assembly instruction; it's not
31477 implemented by all architectures.
31478
31479 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31480
31481 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31482 ELILO. This is no longer necessary.
31483
31484 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31485
31486 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31487
31488 * util/grub-script-check.c: grub-script-check tool.
31489 * conf/common.rmk: Make rules for grub-script-check.
31490
31491 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31492
31493 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31494 spotting it back in 2008. Shame on me for forgetting he did.
31495
31496 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31497
31498 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31499
31500 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31501 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31502 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31503 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31504 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31505 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31506
31507 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31508
31509 * include/grub/test.h: Add license header.
31510 * tests/example_functional_test.c: Likewise.
31511 * tests/example_unit_test.c: Likewise.
31512 * tests/lib/functional_test.c: Likewise.
31513 * tests/lib/test.c: Likewise.
31514 * tests/lib/unit_test.c: Likewise.
31515
31516 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31517
31518 Use flag-based instead of hook-based video mode selection and "auto"
31519 keyword.
31520
31521 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31522 (grub_video_set_mode): Changed prototype. All users updated.
31523 (grub_video_check_mode_flag): New inline function.
31524 * video/video.c (parse_modespec): New function.
31525 (grub_video_set_mode): Parse flags and keywords.
31526
31527 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31528
31529 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31530 fprintf call.
31531
31532 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31533
31534 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31535
31536 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31537
31538 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31539 string.
31540 * util/grub-emu.c (usage): Likewise.
31541 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31542 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31543 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31544 * util/i386/pc/grub-setup.c (usage): Likewise.
31545
31546 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31547
31548 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31549 the message.
31550 (grub_util_info): Likewise.
31551 (grub_util_error): Likewise.
31552 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31553 and/or new lines in `grub_util_warna', `grub_util_info',
31554 `grub_util_error' calls.
31555 * util/getroot.c: Likewise.
31556 * util/grub-editenv.c: Likewise.
31557 * util/grub-emu.c: Likewise.
31558 * util/grub-fstest.c: Likewise.
31559 * util/grub-mkdevicemap.c: Likewise.
31560 * util/grub-mkfont.c: Likewise.
31561 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31562 * util/grub-mkrelpath.c: Likewise.
31563 * util/grub-pe2elf.c: Likewise.
31564 * util/grub-probe.c: Likewise.
31565 * util/hostdisk.c: Likewise.
31566 * util/i386/efi/grub-mkimage.c: Likewise.
31567 * util/i386/pc/grub-mkimage.c: Likewise.
31568 * util/i386/pc/grub-setup.c: Likewise.
31569 * util/ieee1275/ofpath.c: Likewise.
31570 * util/mkisofs/eltorito.c: Likewise.
31571 * util/mkisofs/rock.c: Likewise.
31572 * util/mkisofs/write.c: Likewise.
31573 * util/raid.c: Likewise.
31574 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31575 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31576
31577 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31578
31579 Enable multiboot on non-pc.
31580
31581 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31582 multiboot.mod and multiboot2.mod to ...
31583 * conf/i386.rmk (pkglib_MODULES): ... here.
31584 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31585 Moved to ...
31586 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31587 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31588 Moved to ...
31589 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31590 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31591 Moved to ...
31592 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31593 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31594 Moved to ...
31595 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31596 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31597 relocator.mod.
31598 (ata_mod_SOURCES): Removed.
31599 (ata_mod_CFLAGS): Likewise.
31600 (ata_mod_LDFLAGS): Likewise.
31601 (relocator_mod_SOURCES): Removed.
31602 (relocator_mod_CFLAGS): Likewise.
31603 (relocator_mod_ASFLAGS): Likewise.
31604 (relocator_mod_LDFLAGS): Likewise.
31605 Include i386.mk.
31606 * include/grub/x86_64/multiboot.h: New file.
31607 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31608 Terminate EFI.
31609
31610 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31611
31612 Video multiboot support.
31613
31614 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31615 New prototype.
31616 * include/multiboot.h: Resynced with multiboot specification.
31617 * include/multiboot2.h: Likewise.
31618 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31619 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31620 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31621 (HAS_VGA_TEXT): Likewise.
31622 (accepts_video): New variable.
31623 (grub_multiboot_set_accepts_video): New function.
31624 (grub_multiboot_get_mbi_size): Account for video structures.
31625 (set_video_mode): New function.
31626 (retrieve_video_parameters): Likewise.
31627 (grub_multiboot_make_mbi): Fill video fields.
31628
31629 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31630
31631 Video driver ids.
31632
31633 * include/grub/video.h (grub_video_driver_id): New type.
31634 (grub_video_adapter): New member 'id'. All users updated.
31635 (grub_video_get_driver_id): New proto.
31636 * video/video.c (grub_video_get_driver_id): New function.
31637
31638 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31639
31640 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31641 `var=val'.
31642
31643 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31644
31645 * normal/cmdline.c (print_completion): Gettextizze.
31646
31647 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31648
31649 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31650
31651 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31652
31653 * gettext/gettext.c (grub_gettext_translate): Push and pop
31654 grub_errno.
31655 (grub_gettext_delete_list): Change comment style.
31656 * kern/err.c (grub_error): Gettextizze.
31657 (grub_fatal): Gettextizze.
31658
31659 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31660
31661 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31662 (grub_linux16_real_boot): ... this.
31663 * kern/i386/loader.S: Likewise.
31664 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31665 (grub_linux16_boot): New function. Switches to text mode and calls
31666 grub_linux16_real_boot().
31667
31668 * loader/i386/bsd.c: Include `<grub/video.h>'.
31669 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31670 text mode before calling grub_unix_real_boot().
31671
31672 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31673 (grub_multiboot_boot): Switch to text mode before calling
31674 grub_relocator32_boot().
31675
31676 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31677 (grub_chainloader_boot): Switch to text mode before calling
31678 grub_chainloader_real_boot().
31679
31680 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31681 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31682
31683 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31684 non-empty value.
31685
31686 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31687 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31688
31689 * util/grub.d/00_header.in: Define a "savedefault" function for use
31690 in menu entries.
31691 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31692
31693 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31694 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31695
31696 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31697 saved_entry if boot_once is unset.
31698 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31699 previous saved entry (i.e. grub-reboot).
31700
31701 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31702
31703 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31704
31705 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31706
31707 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31708 `var=val'.
31709 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31710
31711 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31712
31713 * util/grub-reboot.in: Fix --version output.
31714 * util/grub-set-default.in: Likewise.
31715
31716 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31717
31718 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31719 blocks.
31720
31721 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31722
31723 * util/grub.d/00_header.in: Quote the value assigned to `default',
31724 in case it contains spaces.
31725
31726 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31727
31728 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31729 `save_default_entry' call from the macosx case to the linux case.
31730
31731 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31732 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31733
31734 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31735 in `chosen' environment variable.
31736 * normal/menu_text.c (get_entry_number): Check if the variable
31737 matches the title of a menu entry.
31738 (run_menu): Pass menu to get_entry_number.
31739
31740 * util/grub-reboot.in: New file.
31741 * util/grub-set-default.in: New file.
31742 * conf/common.rmk (grub-reboot): New utility.
31743 (grub-set-default): New utility.
31744
31745 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31746 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31747 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31748 move it to `saved_entry' for the next boot. Load environment on
31749 initialisation.
31750 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31751 * util/grub.d/10_hurd.in: Likewise.
31752 * util/grub.d/10_linux.in (linux_entry): Likewise.
31753 * util/grub.d/10_windows.in: Likewise.
31754 * util/grub.d/30_os-prober.in: Likewise.
31755
31756 * util/grub-install.in: Create environment block.
31757 * util/i386/efi/grub-install.in: Likewise.
31758 * util/ieee1275/grub-install.in: Likewise.
31759 * util/sparc64/ieee1275/grub-install.in: Likewise.
31760
31761 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31762
31763 Unit testing framework for GRUB.
31764
31765 * Makefile.in: Test framework build rules for 'make check'.
31766 * conf/tests.rmk: Build rules for individual tests and framework.
31767
31768 * include/grub/test.h: Header file for whitebox tests.
31769 * tests/lib/functional_test.c: Framework support for whitebox
31770 functional tests.
31771 * tests/lib/test.c: Common whitebox testing code for unit and
31772 functional tests.
31773 * tests/lib/unit_test.c: Framework support for whitebox unit
31774 tests.
31775
31776 * tests/util/grub-shell-tester.in: Support utility for grub-script
31777 tests.
31778 * tests/util/grub-shell.in: Utility to execute grub-script
31779 commands in a Qemu instance.
31780
31781 * tests/example_functional_test.c: Example whitebox functional
31782 test.
31783 * tests/example_grub_script_test.in: Example grub-script test.
31784 * tests/example_scripted_test.in: Example scripted test.
31785 * tests/example_unit_test.c: Example whitebox unit test.
31786
31787 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31788
31789 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31790 Add loader/i386/multiboot_mbi.c.
31791 (multiboot2_mod_SOURCES): Likewise.
31792 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31793 (multiboot2_mod_SOURCES): Likewise.
31794 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31795 (grub_multiboot_make_mbi): Likewise.
31796 (grub_multiboot_free_mbi): Likewise.
31797 (grub_multiboot_init_mbi): Likewise.
31798 (grub_multiboot_add_module): Likewise.
31799 (grub_multiboot_set_bootdev): Likewise.
31800 * loader/i386/multiboot.c (mbi): Removed.
31801 (mbi_dest): Likewise.
31802 (alloc_mbi): New variable.
31803 (grub_multiboot_payload_size): Removed. All users updated.
31804 (grub_multiboot_pure_size): New variable.
31805 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31806 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31807 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31808 (grub_fill_multiboot_mmap): Likewise.
31809 (grub_multiboot_get_bootdev): Likewise.
31810 (grub_multiboot): Use multiboot_mbi functions.
31811 * loader/i386/multiboot_mbi.c: New file.
31812
31813 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31814
31815 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31816 it would result in module crash.
31817
31818 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31819
31820 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31821 (grub_ofconsole_getwh): Split to ...
31822 (grub_ofconsole_getwh): ... this.
31823 (grub_ofconsole_dimensions): ...and this.
31824 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31825
31826 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31827
31828 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31829
31830 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31831
31832 * loader/i386/pc/multiboot2.c: Removed stalled file.
31833
31834 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31835
31836 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31837 Reported by: Grégoire Sutre
31838
31839 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31840
31841 * util/misc.c (canonicalize_file_name): New function.
31842 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31843 instead of realpath().
31844
31845 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31846
31847 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31848 and make it clearer that it's optional. Based on confusion
31849 witnessed on IRC.
31850
31851 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31852
31853 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31854 in premature implicit newline.
31855
31856 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31857
31858 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31859 which resulted in garbled command line at the end of screen.
31860
31861 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31862
31863 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31864 initialization with similar approach as with other Linux loaders.
31865
31866 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31867
31868 Fix i386-ieee1275 build.
31869
31870 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31871 and grub_term_height() for video_{width,height} initialization.
31872
31873 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31874
31875 Fix grub-emu build.
31876
31877 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31878
31879 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31880 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31881
31882 Support for multiple terminals.
31883
31884 * Makefile.in (pkglib_DATA): terminal.lst.
31885 (terminal.lst): New target.
31886 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31887 (GRUB_MOD_INIT(handler)): Likewise.
31888 (GRUB_MOD_FINI(handler)): Likewise.
31889 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31890 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31891 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31892 (grub_cmd_sleep): Use grub_term_save_pos.
31893 * commands/terminal.c: New file.
31894 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31895 commands/terminal.c and lib/charset.c.
31896 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31897 (pkglib_MODULES): Add terminal.mod.
31898 (terminal_mod_SOURCES): New variable.
31899 (terminal_mod_CFLAGS): Likewise.
31900 (terminal_mod_LDFLAGS): Likewise.
31901 * genhandlerlist.sh: Don't handle terminals.
31902 * genmk.rb: Generate terminal-*.lst.
31903 * genterminallist.sh: New file.
31904 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31905 (grub_is_valid_utf8): Likewise.
31906 (grub_utf8_to_ucs4_alloc): Likewise.
31907 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31908 (grub_menu_register_viewer): Changed argument.
31909 (grub_menu_try_text): New proto.
31910 (grub_gfxmenu_try_hook): New declaration.
31911 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31912 (grub_menu_init_page): Additional argument term.
31913 (grub_normal_init_page): Likewise.
31914 (grub_cmdline_get): Arguments simplified.
31915 (grub_utf8_to_ucs4_alloc): Removed.
31916 (grub_print_ucs4): Additional argument term.
31917 (grub_getstringwidth): Likewise.
31918 (grub_print_message_indented): Likewise.
31919 (grub_menu_text_register_instances): New proto.
31920 (grub_show_menu): Likewise.
31921 (read_terminal_list): Likewise.
31922 (grub_set_more): Likewise.
31923 * include/grub/parser.h: Include handler.h.
31924 * include/grub/reader.h: Rewritten.
31925 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31926 (GRUB_TERM_WIDTH): Changed to function.
31927 (GRUB_TERM_HEIGHT): Likewise.
31928 (GRUB_TERM_BORDER_WIDTH): Likewise.
31929 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31930 (GRUB_TERM_NUM_ENTRIES): Likewise.
31931 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31932 (GRUB_TERM_CURSOR_X): Likewise.
31933 (grub_term_input_class): Likewise.
31934 (grub_term_output_class): Likewise.
31935 (grub_term_outputs_disabled): New declaration.
31936 (grub_term_inputs_disabled): Likewise.
31937 (grub_term_outputs): Likewise.
31938 (grub_term_inputs): Likewise.
31939 (grub_term_register_input): Rewritten.
31940 (grub_term_register_output): Likewise.
31941 (grub_term_unregister_input): Likewise.
31942 (grub_term_unregister_output): Likewise.
31943 (FOR_ACTIVE_TERM_INPUTS): New macro.
31944 (FOR_DISABLED_TERM_INPUTS): Likewise.
31945 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31946 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31947 * include/grub/terminfo.h: Add oterm argument to all protypes.
31948 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31949 Use grub_rescue_run.
31950 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31951 All users updated.
31952 * kern/reader.c: Removed. All users updated.
31953 * kern/rescue_reader.c (grub_rescue_init): Removed.
31954 (grub_rescue_reader): Likewise.
31955 (grub_register_rescue_reader): Likewise.
31956 (grub_rescue_run): New function based on kern/reader.c.
31957 * kern/term.c: Adapted for multiterm.
31958 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31959 (grub_is_valid_utf8): Likewise.
31960 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31961 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31962 right terminal.
31963 * loader/i386/linux.c (grub_linux_boot): Likewise.
31964 * normal/auth.c (grub_username_get): New function.
31965 (grub_auth_check_authentication): Use grub_username_get.
31966 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31967 * normal/color.c: Adapt for multiterm.
31968 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31969 (grub_normal_init_page): Additional argument term.
31970 (read_lists): Call read_terminal_lists.
31971 (grub_enter_normal_mode): Call grub_cmdline_run.
31972 Handle grub_normal_exit_level.
31973 (grub_cmd_normal): Make reentrant.
31974 (grub_cmd_normal_exit): New function.
31975 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31976 * normal/menu.c: Adapt for multiterm.
31977 * normal/menu_entry.c: Likewise.
31978 * normal/menu_text.c: Likewise.
31979 * normal/menu_viewer.c: Removed. All users updated.
31980 * normal/term.c: New file.
31981 * util/console.c: Change order of includes to workaround a bug in
31982 ncurses headers.
31983 * term/terminfo.c: New argument oterm on all exported functions.
31984 All users updated.
31985 * util/grub-editenv.c (grub_term_input_class): Removed.
31986 (grub_term_output_class): Likewise.
31987
31988 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31989
31990 Make loader output a bit more user-friendly.
31991
31992 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31993 is being loaded. Likewise for the Hurd.
31994
31995 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31996 that kernel of FreeBSD ${version} is being loaded.
31997
31998 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31999 grub_dprintf().
32000 (grub_cmd_initrd): Likewise.
32001 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32002 that Linux ${version} is being loaded. Likewise for initrd.
32003
32004 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32005
32006 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32007
32008 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32009
32010 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32011 (GRUB_MOD_INIT): Gettextizze.
32012 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32013 (GRUB_MOD_INIT): Gettextizze.
32014 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32015 (grub_cmd_linux): Capitalise Linux.
32016 (GRUB_MOD_INIT): Gettextizze.
32017 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32018 (grub_cmd_linux): Capitalise Linux.
32019 (GRUB_MOD_INIT): Gettextizze.
32020 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32021 (grub_cmd_linux): Capitalise Linux.
32022 (GRUB_MOD_INIT): Gettextizze.
32023 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32024 (GRUB_MOD_INIT): Gettextizze.
32025 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32026 (grub_cmd_linux): Capitalise Linux.
32027 (GRUB_MOD_INIT): Gettextizze.
32028 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32029 (grub_cpu_xnu_init): Gettextizze.
32030 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32031 (GRUB_MOD_INIT): Gettextizze.
32032 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32033 (GRUB_MOD_INIT): Gettextizze.
32034 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32035 (grub_linux_load64): Capitalise Linux.
32036 (GRUB_MOD_INIT): Gettextizze.
32037 * loader/xnu.c: Include `<grub/i18n.h>'.
32038 (GRUB_MOD_INIT): Gettextizze.
32039 * po/POTFILES: Add `loader/efi/appleloader.c',
32040 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32041 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32042 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32043 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32044 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32045 and `loader/xnu.c'.
32046
32047 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32048
32049 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32050
32051 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32052
32053 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32054 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32055 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32056
32057 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32058
32059 Reset Multiboot 2 support. New loader implements the draft in
32060 /branches/multiboot2 and shares as much code as possible with the
32061 production Multiboot 1 implementation.
32062
32063 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32064 * loader/multiboot2.c: Likewise.
32065 * loader/i386/multiboot_helper.S: Likewise.
32066 * include/multiboot2.h: Replace with latest version from the draft
32067 in /branches/multiboot2.
32068
32069 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32070 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32071 and `loader/multiboot2.c'.
32072 (pkglib_MODULES): Add `multiboot2.mod'.
32073 (multiboot2_mod_SOURCES): New variable.
32074 (multiboot2_mod_LDFLAGS): Likewise.
32075 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32076
32077 * conf/i386-pc.rmk: Likewise.
32078
32079 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32080 (multiboot_mod_SOURCES): Remove variable.
32081 (multiboot_mod_LDFLAGS): Likewise.
32082 (multiboot_mod_CFLAGS): Likewise.
32083
32084 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32085 `<multiboot2.h>' instead of `<multiboot.h>'.
32086 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32087 (MULTIBOOT_HEADER_MAGIC): New macros.
32088
32089 * loader/multiboot_loader.c (module_version_status): Remove variable.
32090 (find_multi_boot2_header): Remove function.
32091 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32092 logic. Always check for the Multiboot version we're compiling for.
32093 (grub_cmd_module_loader): Likewise.
32094 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32095 command instead of `multiboot'.
32096
32097 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32098
32099 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32100 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32101 all users.
32102
32103 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32104 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32105
32106 Fix breakage introduced with previous commit.
32107
32108 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32109 commands.
32110 * normal/handler.c (read_handler_list): Revert part of previous commit
32111 affecting this file.
32112 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32113 (grub_normal_execute): ... here.
32114
32115 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32116
32117 Merge prefix-redefinition-fix branch.
32118
32119 * normal/autofs.c (read_fs_list): Make function capable of being
32120 run multiple times, gracefuly replacing the previous data
32121 structures.
32122 * normal/dyncmd.c (read_command_list): Likewise.
32123 * normal/handler.c (read_handler_list): Likewise.
32124 * normal/main.c (read_lists): New function. Calls all the
32125 list reading functions.
32126 (grub_normal_execute): Use read_lists() instead of calling all
32127 list reading functions explicitly. Register read_lists() as a
32128 variable hook attached to ${prefix}.
32129
32130 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32131
32132 Merge crypto branch.
32133
32134 * Makefile.in (pkglib_DATA): Add crypto.lst.
32135 (crypto.lst): New target.
32136 * commands/hashsum.c: New file.
32137 * commands/password.c (check_password): Use grub_crypto_memcmp.
32138 * commands/password_pbkdf2.c: New file.
32139 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32140 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32141 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32142 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32143 -I$(srcdir)/lib/libgcrypt_wrap.
32144 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32145 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32146 password_pbkdf2.mod.
32147 (crypto_mod_SOURCES): New variable.
32148 (crypto_mod_CFLAGS): Likewise.
32149 (crypto_mod_LDFLAGS): Likewise.
32150 (hashsum_mod_SOURCES): New variable.
32151 (hashsum_mod_CFLAGS): Likewise.
32152 (hashsum_mod_LDFLAGS): Likewise.
32153 (pbkdf2_mod_SOURCES): New variable.
32154 (pbkdf2_mod_CFLAGS): Likewise.
32155 (pbkdf2_mod_LDFLAGS): Likewise.
32156 (password_pbkdf2_mod_SOURCES): New variable.
32157 (password_pbkdf2_mod_CFLAGS): Likewise.
32158 (password_pbkdf2_mod_LDFLAGS): Likewise.
32159 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32160 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32161 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32162 Include conf/gcry.rmk.
32163 * include/grub/auth.h: Rewritten.
32164 * include/grub/crypto.h: New file.
32165 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32166 * include/grub/normal.h (read_crypto_list): New prototype.
32167 * lib/crypto.c: New file.
32168 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32169 * lib/pbkdf2.c: Likewise.
32170 * normal/auth.c (grub_auth_strcmp): Removed.
32171 (grub_iswordseparator): Likewise.
32172 (grub_auth_strword): Likewise.
32173 (is_authenticated): Use grub_strword.
32174 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32175 and grub_strword. Pass entered password to authentication callback.
32176 * normal/crypto.c: New file.
32177 * normal/main.c: Call read_crypto_list.
32178 * util/grub-mkpasswd-pbkdf2.c: New file.
32179 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32180
32181 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32182
32183 Fix descent and ascent calculation.
32184
32185 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32186 (options): New option "asce".
32187 (usage): Likewise.
32188 (add_char): Ignore invalid glyphs for descent calculation.
32189 Calculate ascent from actual content.
32190 (print_glyphs): Use 'asce'.
32191 (write_font): Likewise. Allow ascent override.
32192 (main): Handle "asce" option.
32193
32194 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32195
32196 * kern/err.c: Include `<grub/i18n.h>'.
32197 (grub_print_error): Add full stop. Gettextizze.
32198 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32199 (grub_bsd_load_elf): Capitalise ELF.
32200 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32201 (grub_cmd_freebsd_module): Likewise.
32202 (grub_cmd_freebsd_module_elf): Likewise.
32203 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32204
32205 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32206
32207 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32208 * commands/search_file.c (HELP_MESSAGE): New macro.
32209 * commands/search_label.c (HELP_MESSAGE): Likewise.
32210 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32211 * po/POTFILES: Add `commands/search_file.c',
32212 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32213 `commands/search.c'.
32214
32215 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32216
32217 * config.rpath: Update from Gnulib.
32218
32219 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32220
32221 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32222
32223 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32224
32225 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32226
32227 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32228
32229 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32230 arguments to fread so that we get a return value in bytes, rather
32231 than something that will normally be rounded down to 0.
32232 Adjust error handling to avoid producing garbage when size_t is not
32233 the same size as long long.
32234
32235 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32236
32237 * util/mkisofs/write.c (padblock_write): Check return value of
32238 fread.
32239
32240 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32241
32242 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32243 floppy images now.
32244
32245 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32246
32247 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32248
32249 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32250 instead of manual alignment.
32251 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32252 verbose). Avoid attempts to read past end of the device
32253 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32254 but GRUB_DISK_CACHE_SIZE may exceed that).
32255
32256 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32257
32258 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32259 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32260 it to upper layer.
32261
32262 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32263
32264 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32265 New constant.
32266 (grub_efi_piwg_device_path): New structure
32267 (grub_efi_piwg_device_path_t): New type.
32268 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32269 (devpath_1): Transform to a structure. All users updated.
32270 (devpath_2): Likewise.
32271 (devpath_3): Likewise.
32272 (devpath_4): Likewise.
32273 (devpath_5): Likewise.
32274
32275 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32276
32277 * loader/efi/appleloader.c: Restored. Update all users.
32278
32279 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32280
32281 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32282
32283 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32284 (struct boot_blocklist): Move from here ...
32285 * include/grub/i386/pc/boot.h [ASM_FILE]
32286 (struct grub_boot_blocklist): ... to here. Update all users.
32287 (setup): Only initialize `start' member of `first_block'
32288 structure. Add assert() calls to verify the other members.
32289
32290 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32291 (generate_image): Fix broken blocklist length initialization.
32292 Add assert() call to verify blocklist `segment' field.
32293
32294 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32295
32296 * loader/efi/appleloader.c: Remove. Update all users.
32297
32298 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32299
32300 * boot/i386/pc/boot.S: Update copyright year.
32301 * boot/i386/pc/cdboot.S: Likewise.
32302 * boot/i386/pc/diskboot.S: Likewise.
32303 * boot/i386/pc/lnxboot.S: Likewise.
32304 * boot/i386/pc/pxeboot.S: Likewise.
32305 * bus/pci.c: Likewise.
32306 * commands/cmp.c: Likewise.
32307 * commands/help.c: Likewise.
32308 * commands/hexdump.c: Likewise.
32309 * commands/i386/pc/halt.c: Likewise.
32310 * commands/i386/pc/play.c: Likewise.
32311 * commands/i386/pc/vbeinfo.c: Likewise.
32312 * commands/ls.c: Likewise.
32313 * commands/test.c: Likewise.
32314 * disk/dmraid_nvidia.c: Likewise.
32315 * disk/i386/pc/biosdisk.c: Likewise.
32316 * disk/ieee1275/nand.c: Likewise.
32317 * disk/ieee1275/ofdisk.c: Likewise.
32318 * disk/lvm.c: Likewise.
32319 * disk/raid.c: Likewise.
32320 * disk/raid6_recover.c: Likewise.
32321 * disk/scsi.c: Likewise.
32322 * fs/affs.c: Likewise.
32323 * fs/cpio.c: Likewise.
32324 * fs/ext2.c: Likewise.
32325 * fs/hfs.c: Likewise.
32326 * fs/iso9660.c: Likewise.
32327 * fs/ntfs.c: Likewise.
32328 * fs/sfs.c: Likewise.
32329 * fs/udf.c: Likewise.
32330 * fs/ufs.c: Likewise.
32331 * fs/xfs.c: Likewise.
32332 * gencmdlist.sh: Likewise.
32333 * genmk.rb: Likewise.
32334 * include/grub/disk.h: Likewise.
32335 * include/grub/efi/api.h: Likewise.
32336 * include/grub/efi/efi.h: Likewise.
32337 * include/grub/efi/pe32.h: Likewise.
32338 * include/grub/elf.h: Likewise.
32339 * include/grub/fs.h: Likewise.
32340 * include/grub/i386/at_keyboard.h: Likewise.
32341 * include/grub/i386/pc/memory.h: Likewise.
32342 * include/grub/i386/pc/vbe.h: Likewise.
32343 * include/grub/i386/pci.h: Likewise.
32344 * include/grub/i386/tsc.h: Likewise.
32345 * include/grub/ieee1275/ieee1275.h: Likewise.
32346 * include/grub/ntfs.h: Likewise.
32347 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32348 * include/grub/sparc64/libgcc.h: Likewise.
32349 * include/grub/symbol.h: Likewise.
32350 * include/grub/types.h: Likewise.
32351 * include/multiboot2.h: Likewise.
32352 * io/gzio.c: Likewise.
32353 * kern/device.c: Likewise.
32354 * kern/disk.c: Likewise.
32355 * kern/efi/efi.c: Likewise.
32356 * kern/efi/mm.c: Likewise.
32357 * kern/elf.c: Likewise.
32358 * kern/file.c: Likewise.
32359 * kern/i386/dl.c: Likewise.
32360 * kern/i386/pc/init.c: Likewise.
32361 * kern/i386/pc/startup.S: Likewise.
32362 * kern/ieee1275/ieee1275.c: Likewise.
32363 * kern/ieee1275/init.c: Likewise.
32364 * kern/main.c: Likewise.
32365 * kern/mm.c: Likewise.
32366 * kern/powerpc/dl.c: Likewise.
32367 * kern/sparc64/dl.c: Likewise.
32368 * kern/x86_64/dl.c: Likewise.
32369 * lib/hexdump.c: Likewise.
32370 * loader/efi/appleloader.c: Likewise.
32371 * loader/i386/ieee1275/linux.c: Likewise.
32372 * loader/i386/pc/chainloader.c: Likewise.
32373 * loader/i386/pc/linux.c: Likewise.
32374 * loader/i386/pc/multiboot2.c: Likewise.
32375 * loader/ieee1275/multiboot2.c: Likewise.
32376 * loader/multiboot2.c: Likewise.
32377 * loader/multiboot_loader.c: Likewise.
32378 * loader/powerpc/ieee1275/linux.c: Likewise.
32379 * normal/completion.c: Likewise.
32380 * normal/menu_entry.c: Likewise.
32381 * partmap/apple.c: Likewise.
32382 * util/grub.d/10_hurd.in: Likewise.
32383 * util/hostfs.c: Likewise.
32384 * video/readers/png.c: Likewise.
32385
32386 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32387
32388 * include/grub/misc.h (GNUC_PREREQ): New macro.
32389 (ATTRIBUTE_ERROR): New macro.
32390 * include/grub/list.h (grub_bad_type_cast_real): Use
32391 ATTRIBUTE_ERROR.
32392
32393 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32394
32395 * normal/menu_text.c (print_message): Change messages.
32396
32397 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32398
32399 * normal/menu_entry.c (store_completion): Gettextizze.
32400
32401 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32402
32403 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32404
32405 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32406
32407 * po/POTFILES: Sort correctly.
32408
32409 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32410
32411 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32412 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32413 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32414 full stop.
32415 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32416 summary. Gettextizze the strings.
32417 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32418 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32419 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32420 full stop.
32421 (GRUB_MOD_INIT): Remove command name from summary.
32422 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32423 summary.
32424 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32425 * term/i386/pc/serial.c (options): Add full stops.
32426 (GRUB_MOD_INIT): Remove command name from the summary.
32427
32428 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32429
32430 * commands/acpi.c: Gettextizze help strings and/or options. Include
32431 `grub/i18n.h' if needed.
32432 * commands/blocklist.c: Likewise.
32433 * commands/boot.c: Likewise.
32434 * commands/cat.c: Likewise.
32435 * commands/cmp.c: Likewise.
32436 * commands/configfile.c: Likewise.
32437 * commands/crc.c: Likewise.
32438 * commands/date.c: Likewise.
32439 * commands/echo.c: Likewise.
32440 * commands/efi/fixvideo.c: Likewise.
32441 * commands/efi/loadbios.c: Likewise.
32442 * commands/gptsync.c: Likewise.
32443 * commands/halt.c: Likewise.
32444 * commands/handler.c: Likewise.
32445 * commands/hdparm.c: Likewise.
32446 * commands/hexdump.c: Likewise.
32447 * commands/i386/cpuid.c: Likewise.
32448 * commands/i386/pc/drivemap.c: Likewise.
32449 * commands/i386/pc/halt.c: Likewise.
32450 * commands/i386/pc/pxecmd.c: Likewise.
32451 * commands/i386/pc/vbeinfo.c: Likewise.
32452 * commands/i386/pc/vbetest.c: Likewise.
32453 * commands/ieee1275/suspend.c: Likewise.
32454 * commands/keystatus.c: Likewise.
32455 * commands/loadenv.c: Likewise.
32456 * commands/ls.c: Likewise.
32457 * commands/lsmmap.c: Likewise.
32458 * commands/lspci.c: Likewise.
32459 * commands/memrw.c: Likewise.
32460 * commands/minicmd.c: Likewise.
32461 * commands/parttool.c: Likewise.
32462 * commands/password.c: Likewise.
32463 * commands/probe.c: Likewise.
32464 * commands/read.c: Likewise.
32465 * commands/reboot.c: Likewise.
32466 * commands/search.c: Likewise.
32467 * commands/sleep.c: Likewise.
32468 * commands/test.c: Likewise.
32469 * commands/true.c: Likewise.
32470 * commands/usbtest.c: Likewise.
32471 * commands/videotest.c: Likewise.
32472 * commands/xnu_uuid.c: Likewise.
32473 * disk/loopback.c: Likewise.
32474 * hello/hello.c: Likewise.
32475 * loader/i386/bsd.c: Likewise.
32476 * term/i386/pc/serial.c: Likewise.
32477 * po/POTFILES: Add new files.
32478
32479 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32480
32481 * term/i386/pc/at_keyboard.c
32482 (keyboard_controller_wait_untill_ready): Rename to ...
32483 (keyboard_controller_wait_until_ready): ... this. Update all users.
32484
32485 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32486
32487 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32488 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32489 string using string width.
32490 * normal/menu_text.c (grub_print_message_indented): Use
32491 grub_print_spaces and not print_spaces.
32492 (print_timeout): Likewise.
32493 (print_spaces): Move to...
32494 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32495
32496 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32497
32498 Import from Gnulib.
32499
32500 * gnulib/getdelim.c: New file.
32501 * gnulib/getline.c: Likewise.
32502
32503 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32504
32505 * include/grub/list.h (grub_assert_fail): Removed.
32506 (grub_bad_type_cast_real): New function.
32507 (grub_bad_type_cast): New macro.
32508 (GRUB_AS_LIST): Use grub_bad_type_cast.
32509 (GRUB_AS_LIST_P): Likewise.
32510 (GRUB_AS_NAMED_LIST): Likewise.
32511 (GRUB_AS_NAMED_LIST_P): Likewise.
32512 (GRUB_AS_PRIO_LIST): Likewise.
32513 (GRUB_AS_PRIO_LIST_P): Likewise.
32514 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32515
32516 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32517
32518 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32519 Fix syntax error.
32520
32521 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32522
32523 * configure.ac: Check for TARGET_CFLAGS initialization before we
32524 initialize it ourselves (sigh).
32525 Move a few modifications to TARGET_CFLAGS to be unconditional
32526 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32527 eh_frame)
32528
32529 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32530 * term/i386/pc/at_keyboard.c
32531 (keyboard_controller_wait_untill_ready): Likewise.
32532 (keyboard_controller_led): Rename `led_status' paramter to avoid
32533 name conflict.
32534
32535 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32536
32537 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32538 quotes.
32539
32540 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32541
32542 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32543
32544 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32545
32546 * normal/menu_text.c (grub_print_message_indented): Prevent
32547 past-the-end-of-array dereference.
32548
32549 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32550
32551 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32552 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32553
32554 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32555
32556 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32557 * normal/main.c (grub_normal_read_line): Remove a space from the
32558 default prompt.
32559
32560 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32561
32562 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32563 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32564 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32565 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32566 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32567 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32568 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32569
32570 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32571
32572 * video/readers/jpeg.c (cmd): Declare.
32573 (grub_cmd_jpegtest): Use `grub_command_t' type.
32574 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32575 Assign to `cmd'.
32576 (GRUB_MOD_FINI): Use `cmd' to unregister.
32577 * video/readers/png.c (cmd): Declare.
32578 (grub_cmd_pngtest): Use `grub_command_t' type.
32579 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32580 Assign to `cmd'.
32581 (GRUB_MOD_FINI): Use `cmd' to unregister.
32582 * video/readers/tga.c (cmd): Declare.
32583 (grub_cmd_tgatest): Use `grub_command_t' type.
32584 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32585 Assign to `cmd'.
32586 (GRUB_MOD_FINI): Use `cmd' to unregister.
32587
32588 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32589
32590 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32591 stops.
32592 * kern/corecmd.c (grub_register_core_commands): Likewise.
32593 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32594 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32595 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32596 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32597 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32598 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32599 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32600 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32601 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32602 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32603 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32604 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32605 * normal/handler.c (insert_handler): Likewise.
32606 * normal/main.c (GRUB_MOD_INIT): Likewise.
32607 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32608
32609 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32610
32611 * commands/help.c (grub_cmd_help): Print the command name before the
32612 summary.
32613 (GRUB_MOD_INIT): Remove command name from the summary.
32614 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32615 string as summary.
32616 * lib/arg.c (find_long): Print the command name before the summary.
32617 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32618 summary.
32619 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32620 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32621 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32622 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32623 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32624 * commands/date.c (GRUB_MOD_INIT): Likewise.
32625 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32626 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32627 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32628 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32629 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32630 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32631 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32632 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32633 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32634 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32635 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32636 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32637 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32638 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32639 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32640 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32641 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32642 * commands/password.c (GRUB_MOD_INIT): Likewise.
32643 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32644 * commands/read.c (GRUB_MOD_INIT): Likewise.
32645 * commands/search.c (GRUB_MOD_INIT): Likewise.
32646 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32647 * commands/test.c (GRUB_MOD_INIT): Likewise.
32648 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32649 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32650 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32651 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32652 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32653 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32654 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32655 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32656 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32657 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32658 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32659 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32660 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32661 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32662
32663 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32664
32665 Use search command for preliminar UUID search.
32666
32667 * commands/search.c: Split into ...
32668 * commands/search_wrap.c: ...this
32669 * commands/search.c: ...and this.
32670 * commands/search_file.c: New file.
32671 * commands/search_label.c: New file.
32672 * commands/search_uuid.c: New file.
32673 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32674 Add commands/search_wrap.c, commands/search_file.c,
32675 commands/search_label.c and commands/search_uuid.c.
32676 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32677 (search_mod_SOURCES): Set to commands/search_wrap.c.
32678 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32679 search_label.mod.
32680 (search_fs_file_mod_SOURCES): New variable.
32681 (search_fs_file_mod_CFLAGS): Likewise.
32682 (search_fs_file_mod_LDFLAGS): Likewise.
32683 (search_label_mod_SOURCES): Likewise.
32684 (search_label_mod_CFLAGS): Likewise.
32685 (search_label_mod_LDFLAGS): Likewise.
32686 (search_fs_uuid_mod_SOURCES): New variable.
32687 (search_fs_uuid_mod_CFLAGS): Likewise.
32688 (search_fs_uuid_mod_LDFLAGS): Likewise.
32689 (fs_file_mod_SOURCES): Removed.
32690 (fs_file_mod_CFLAGS): Likewise.
32691 (fs_file_mod_LDFLAGS): Likewise.
32692 (fs_uuid_mod_SOURCES): Removed.
32693 (fs_uuid_mod_CFLAGS): Likewise.
32694 (fs_uuid_mod_LDFLAGS): Likewise.
32695 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32696 Set to util/grub-install.in.
32697 * disk/fs_file.c: Removed.
32698 * disk/fs_uuid.c: Likewise.
32699 * include/grub/search.h: New file.
32700 * util/grub-install.in: Handle sparc64.
32701 Create and use load.cfg.
32702 * util/sparc64/ieee1275/grub-install.in: Removed.
32703
32704 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32705
32706 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32707 Ignore return status if CF is cleared.
32708 (grub_biosdisk_get_diskinfo_standard): Likewise.
32709
32710 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32711
32712 * term/i386/pc/at_keyboard.c
32713 (keyboard_controller_wait_untill_ready): New function.
32714 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32715 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32716 for keyboard polling, rather than duplicate the same loop. This
32717 saves a few bytes in code size.
32718
32719 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32720
32721 Support for (pxe[:server[:gateway]]) syntax and
32722 use environment variable for PXE.
32723
32724 * commands/i386/pc/pxecmd.c (options): Removed.
32725 (print_ip): Removed.
32726 (grub_cmd_pxe): Removed
32727 (grub_cmd_pxe_unload): New function.
32728 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32729 (grub_pxe_your_ip): Made static.
32730 (grub_pxe_default_server_ip): Likewise.
32731 (grub_pxe_default_gateway_ip): Likewise.
32732 (grub_pxe_blksize): Likewise.
32733 (parse_ip): New function.
32734 (grub_pxe_open): Support server and gateway specification.
32735 (grub_pxe_close): Free disk->data.
32736 (grub_pxefs_open): Use disk->data.
32737 (grub_pxefs_read): Likewise.
32738 (grub_env_write_readonly): New function.
32739 (set_mac_env): Likewise.
32740 (set_env_limn_ro): Likewise.
32741 (parse_dhcp_vendor): Likewise.
32742 (grub_pxe_detect): Set the environment variables.
32743 (set_ip_env): New function.
32744 (write_ip_env): Likewise.
32745 (grub_env_write_pxe_default_server): Likewise.
32746 (grub_env_write_pxe_default_gateway): Likewise.
32747 (grub_env_write_pxe_blocksize): Likewise.
32748 (GRUB_MOD_INIT(pxe)): Set environment variables.
32749 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32750 (grub_pxe_mac_addr_t): ... this. All users updated.
32751 (grub_pxe_your_ip): Removed.
32752 (grub_pxe_server_ip): Likewise.
32753 (grub_pxe_gateway_ip): Likewise.
32754 (grub_pxe_blksize): Likewise.
32755
32756 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32757
32758 * commands/help.c: Include `<grub/i18n.h>'.
32759 (grub_cmd_help): Gettextizze.
32760 (GRUB_MOD_INIT): Likewise.
32761 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32762 (GRUB_MOD_INIT): Gettextizze.
32763 * commands/search.c: Include `<grub/i18n.h>'.
32764 (options): Gettextizze.
32765 (GRUB_MOD_INIT): Gettextizze.
32766 * lib/arg.c: Include `<grub/i18n.h>'.
32767 (help_options): Gettextizze.
32768 (find_long): Likewise.
32769 (grub_arg_show_help): Likewise.
32770 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32771 (read_command_list): Gettextizze.
32772 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32773 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32774
32775 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32776
32777 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32778 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32779 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32780 (led_status): New variable.
32781 (keyboard_controller_led): New function.
32782 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32783 update led status for caps lock, num lock and scroll lock.
32784
32785 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32786
32787 * util/hostdisk.c (open_device): Fix a comment.
32788
32789 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32790
32791 * util/grub-install.in (host_os): New variable.
32792 * util/i386/efi/grub-install.in (host_os): Likewise.
32793
32794 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32795
32796 * util/mkisofs/write.c (padblock_write): Abort when given an
32797 excedingly large embed image, instead of silently truncating it.
32798
32799 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32800
32801 * include/multiboot.h: Indentation fixes.
32802
32803 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32804
32805 * include/multiboot.h (struct multiboot_aout_symbol_table)
32806 (struct multiboot_elf_section_header_table): New structure
32807 declarations (stolen from GRUB Legacy).
32808 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32809 table information.
32810
32811 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32812 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32813 type aliases.
32814
32815 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32816
32817 * include/multiboot.h: Make comments src2texi-friendly.
32818
32819 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32820
32821 For consistency with [multiboot]/docs/boot.S.
32822
32823 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32824 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32825 (MULTIBOOT_MAGIC2): Rename from this ...
32826 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32827
32828 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32829
32830 * include/multiboot.h: Remove `<grub/types.h>'.
32831 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32832 types. Update all users.
32833
32834 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32835
32836 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32837 `couldn't' and `can not' by `cannot'.
32838 * commands/i386/pc/drivemap.c: Likewise.
32839 * disk/ata.c: Likewise.
32840 * disk/ieee1275/nand.c: Likewise.
32841 * fs/affs.c: Likewise.
32842 * fs/fat.c: Likewise.
32843 * fs/hfs.c: Likewise.
32844 * fs/hfsplus.c: Likewise.
32845 * fs/iso9660.c: Likewise.
32846 * fs/jfs.c: Likewise.
32847 * fs/minix.c: Likewise.
32848 * fs/reiserfs.c: Likewise.
32849 * fs/sfs.c: Likewise.
32850 * fs/udf.c: Likewise.
32851 * fs/ufs.c: Likewise.
32852 * fs/xfs.c: Likewise.
32853 * loader/powerpc/ieee1275/linux.c: Likewise.
32854 * loader/sparc64/ieee1275/linux.c: Likewise.
32855 * util/grub-probe.c: Likewise.
32856 * util/misc.c: Likewise.
32857
32858 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32859
32860 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32861 grub_errno calls.
32862 * commands/acpi.c: Likewise.
32863 * commands/blocklist.c: Likewise.
32864 * commands/efi/loadbios.c: Likewise.
32865 * commands/i386/pc/drivemap.c: Likewise.
32866 * commands/loadenv.c: Likewise.
32867 * commands/memrw.c: Likewise.
32868 * commands/password.c: Likewise.
32869 * commands/videotest.c: Likewise.
32870 * disk/ata.c: Likewise.
32871 * disk/ata_pthru.c: Likewise.
32872 * disk/dmraid_nvidia.c: Likewise.
32873 * disk/ieee1275/nand.c: Likewise.
32874 * disk/ieee1275/ofdisk.c: Likewise.
32875 * disk/loopback.c: Likewise.
32876 * disk/lvm.c: Likewise.
32877 * disk/mdraid_linux.c: Likewise.
32878 * disk/raid.c: Likewise.
32879 * disk/raid6_recover.c: Likewise.
32880 * disk/scsi.c: Likewise.
32881 * efiemu/main.c: Likewise.
32882 * efiemu/mm.c: Likewise.
32883 * efiemu/pnvram.c: Likewise.
32884 * efiemu/symbols.c: Likewise.
32885 * font/font.c: Likewise.
32886 * fs/cpio.c: Likewise.
32887 * fs/hfsplus.c: Likewise.
32888 * fs/iso9660.c: Likewise.
32889 * fs/jfs.c: Likewise.
32890 * fs/minix.c: Likewise.
32891 * fs/ntfs.c: Likewise.
32892 * fs/ntfscomp.c: Likewise.
32893 * fs/reiserfs.c: Likewise.
32894 * fs/ufs.c: Likewise.
32895 * fs/xfs.c: Likewise.
32896 * gettext/gettext.c: Likewise.
32897 * include/grub/auth.h: Likewise.
32898 * kern/elf.c: Likewise.
32899 * kern/file.c: Likewise.
32900 * kern/ieee1275/init.c: Likewise.
32901 * kern/ieee1275/mmap.c: Likewise.
32902 * kern/ieee1275/openfw.c: Likewise.
32903 * kern/powerpc/dl.c: Likewise.
32904 * kern/sparc64/dl.c: Likewise.
32905 * lib/arg.c: Likewise.
32906 * loader/i386/bsd.c: Likewise.
32907 * loader/i386/bsdXX.c: Likewise.
32908 * loader/i386/efi/linux.c: Likewise.
32909 * loader/i386/efi/xnu.c: Likewise.
32910 * loader/i386/ieee1275/linux.c: Likewise.
32911 * loader/i386/linux.c: Likewise.
32912 * loader/i386/multiboot.c: Likewise.
32913 * loader/i386/pc/linux.c: Likewise.
32914 * loader/i386/pc/multiboot2.c: Likewise.
32915 * loader/i386/xnu.c: Likewise.
32916 * loader/ieee1275/multiboot2.c: Likewise.
32917 * loader/macho.c: Likewise.
32918 * loader/machoXX.c: Likewise.
32919 * loader/multiboot2.c: Likewise.
32920 * loader/multiboot_loader.c: Likewise.
32921 * loader/powerpc/ieee1275/linux.c: Likewise.
32922 * loader/sparc64/ieee1275/linux.c: Likewise.
32923 * loader/xnu.c: Likewise.
32924 * loader/xnu_resume.c: Likewise.
32925 * mmap/i386/pc/mmap.c: Likewise.
32926 * normal/menu_viewer.c: Likewise.
32927 * partmap/acorn.c: Likewise.
32928 * partmap/amiga.c: Likewise.
32929 * partmap/apple.c: Likewise.
32930 * script/lexer.c: Likewise.
32931 * term/gfxterm.c: Likewise.
32932 * term/i386/pc/serial.c: Likewise.
32933 * term/i386/pc/vga.c: Likewise.
32934 * term/ieee1275/ofconsole.c: Likewise.
32935 * term/terminfo.c: Likewise.
32936 * video/bitmap.c: Likewise.
32937 * video/efi_gop.c: Likewise.
32938 * video/efi_uga.c: Likewise.
32939 * video/fb/video_fb.c: Likewise.
32940 * video/i386/pc/vbe.c: Likewise.
32941 * video/readers/tga.c: Likewise.
32942 * video/video.c: Likewise.
32943
32944 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32945
32946 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32947 * commands/lspci.c: Likewise.
32948 * commands/probe.c: Likewise.
32949 * commands/xnu_uuid.c: Likewise.
32950 * conf/i386-coreboot.rmk: Likewise.
32951 * conf/i386-efi.rmk: Likewise.
32952 * conf/i386-ieee1275.rmk: Likewise.
32953 * conf/i386-pc.rmk: Likewise.
32954 * conf/powerpc-ieee1275.rmk: Likewise.
32955 * conf/sparc64-ieee1275.rmk: Likewise.
32956 * conf/x86_64-efi.rmk: Likewise.
32957 * fs/i386/pc/pxe.c: Likewise.
32958 * gettext/gettext.c: Likewise.
32959 * include/grub/efi/graphics_output.h: Likewise.
32960 * include/grub/i386/pc/memory.h: Likewise.
32961 * kern/env.c: Likewise.
32962 * kern/i386/qemu/startup.S: Likewise.
32963 * lib/i386/pc/biosnum.c: Likewise.
32964 * lib/i386/relocator.c: Likewise.
32965 * lib/i386/relocator_asm.S: Likewise.
32966 * lib/relocator.c: Likewise.
32967 * loader/i386/bsd.c: Likewise.
32968 * loader/i386/multiboot.c: Likewise.
32969 * loader/i386/pc/chainloader.c: Likewise.
32970 * loader/i386/xnu.c: Likewise.
32971 * loader/xnu.c: Likewise.
32972 * normal/main.c: Likewise.
32973 * normal/menu_text.c: Likewise.
32974 * util/getroot.c: Likewise.
32975 * util/grub-mkconfig_lib.in: Likewise.
32976 * util/grub.d/00_header.in: Likewise.
32977 * util/i386/pc/grub-mkimage.c: Likewise.
32978 * util/mkisofs/eltorito.c: Likewise.
32979 * util/mkisofs/exclude.h: Likewise.
32980 * util/mkisofs/hash.c: Likewise.
32981 * util/mkisofs/iso9660.h: Likewise.
32982 * util/mkisofs/joliet.c: Likewise.
32983 * util/mkisofs/mkisofs.c: Likewise.
32984 * util/mkisofs/mkisofs.h: Likewise.
32985 * util/mkisofs/multi.c: Likewise.
32986 * util/mkisofs/name.c: Likewise.
32987 * util/mkisofs/rock.c: Likewise.
32988 * util/mkisofs/tree.c: Likewise.
32989 * util/mkisofs/write.c: Likewise.
32990 * video/efi_gop.c: Likewise.
32991
32992 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32993
32994 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32995 size counting.
32996
32997 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32998
32999 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33000 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33001
33002 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33003
33004 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33005 (GRUB_MOD_INIT(memrw)): Update help line.
33006
33007 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33008
33009 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33010 Use grub_extcmd_t. All users updated.
33011 (options): New variable.
33012 (grub_cmd_read): Restructure for readability. Support "-v" option.
33013 (grub_cmd_write): Restructure for readability.
33014
33015 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33016
33017 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33018
33019 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33020
33021 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33022 with the actual contents of the correspondending make variable.
33023 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33024 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33025 specifying `*.lst' and `efiemu??.o'
33026
33027 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33028
33029 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33030 after function name.
33031 Noticed by Rene Engelhard <rene@debian.org>.
33032
33033 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33034
33035 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33036 (options): New variable.
33037 (iospace): Likewise.
33038 (grub_lspci_iter): List IO spaces if "-i" was given.
33039 (grub_cmd_lspci): Parse options.
33040 (GRUB_MOD_INIT(lspci)): Use extcmd.
33041 (GRUB_MOD_FINI(lspci)): Likewise.
33042
33043 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33044
33045 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33046 `function' keyword.
33047 Patch by Tony Mancill <tmancill@debian.org>.
33048
33049 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33050
33051 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33052 (grub_uhci_portstatus): Likewise.
33053 (grub_uhci_portstatus): Add necessary delay.
33054 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33055
33056 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33057
33058 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33059 (GRUB_MOD_INIT): Likewise.
33060 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33061 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33062 * commands/echo.c (options): Fix capitalizations and/or full stops.
33063 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33064 (enable_rom_area): Likewise.
33065 (GRUB_MOD_INIT): Likewise.
33066 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33067 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33068 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33069 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33070 * commands/hexdump.c (options): Likewise.
33071 * commands/i386/cpuid.c (options): Likewise.
33072 (GRUB_MOD_INIT): Likewise.
33073 * commands/i386/pc/drivemap.c (options): Likewise.
33074 (GRUB_MOD_INIT): Likewise.
33075 * commands/i386/pc/halt (options): Likewise.
33076 (GRUB_MOD_INIT): Likewise.
33077 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33078 * commands/i386/pc/pxecmd.c (options): Likewise.
33079 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33080 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33081 * commands/keystatus.c (options): Likewise.
33082 (GRUB_MOD_INIT): Likewise.
33083 * commands/loadenv.c (options): Likewise.
33084 * commands/ls.c (options): Likewise.
33085 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33086 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33087 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33088 * commands/parttool.c (helpmsg): Likewise.
33089 * commands/probe.c (options): Likewise.
33090 * commands/read.c (GRUB_MOD_INIT): Likewise.
33091 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33092 * commands/search.c (options): Likewise.
33093 * commands/sleep.c (options): Likewise.
33094 * commands/test.c (GRUB_MOD_INIT): Likewise.
33095 * commands/true.c (GRUB_MOD_INIT): Likewise.
33096 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33097 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33098 * lib/arg.c (help_options): Likewise.
33099 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33100 `$(XGETTEXT)'.
33101 * po/POTFILES: Add `commands/loadenv.c'.
33102
33103 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33104
33105 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33106 instead of specifying them explicit.
33107
33108 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33109
33110 * NEWS: Add grub-probe support for GNU/Hurd.
33111
33112 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33113
33114 * NEWS: gettext was added after 1.97.
33115
33116 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33117
33118 * util/mkisofs/msdos_partition.h: New file (based on
33119 include/grub/msdos_partition.h).
33120 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33121 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33122 (ld_options, main): Recognize --protective-msdos-label.
33123 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33124 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33125 (padblock_write): If `use_protective_msdos_label' is set, patch a
33126 protective DOS-style label in the output image.
33127
33128 * util/grub-mkrescue.in: Use --protective-msdos-label.
33129
33130 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33131
33132 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33133 boot.
33134
33135 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33136
33137 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33138 variables.
33139 (ld_options, main): Recognize `--embedded-boot'.
33140 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33141 declarations.
33142 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33143 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33144 (padblock_write): Likewise. Rewrite to support embedded boot image.
33145
33146 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33147 for BIOS-based disk boot instead of only ElTorito.
33148
33149 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33150
33151 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33152 build (not needed for bootstrap).
33153
33154 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33155
33156 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33157 from i386-pc build (not needed for bootstrap).
33158 Rewrite a pair of strings.
33159
33160 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33161
33162 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33163
33164 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33165
33166 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33167
33168 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33169
33170 * kern/env.c (grub_env_context_open): Mark exported variable for
33171 reexport.
33172
33173 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33174
33175 * kern/env.c (grub_env_export): Create nonexistent variables before
33176 exporting.
33177
33178 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33179
33180 * include/grub/auth.h: Include `<grub/i18n.h>'.
33181 (GRUB_GET_PASSWORD): Gettextizze string.
33182 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33183 menu_text.c.
33184 (grub_utf8_to_ucs4_alloc): Fix indentation.
33185 (grub_print_ucs4): Likewise.
33186 (grub_getstringwidth): Likewise.
33187 (print_message_indented): New declaration.
33188 * normal/auth.c: Include `<grub/i18n.h>'.
33189 (grub_auth_check_authentication): Gettexttize string.
33190 * normal/cmdline.c: Include `<grub/i18n.h>'.
33191 (grub_cmdline_get): Gettextizze.
33192 * normal/color.c: Include `<grub/i18n.h>'.
33193 (grub_parse_color_name_pair): Gettexttize strings.
33194 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33195 string (use `print_message_indented').
33196 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33197 `include/grub/normal.h'.
33198 (print_message_indented): Renamed to ...
33199 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33200 used in normal/main.c).
33201 (print_message): Use `grub_print_message_indented' instead of
33202 `print_message_indented'.
33203 (print_timeout): Likewise.
33204 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33205 (grub_normal_print_device_info): Gettexttize strings.
33206 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33207
33208 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33209
33210 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33211 of arguments. Return number of tokens and not arguments. All users
33212 updated.
33213
33214 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33215
33216 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33217 non-MSDOS paritions.
33218
33219 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33220
33221 * include/grub/types.h (UNUSED): Removed since it conflicts with
33222 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33223 Reported by Grégoire Sutre.
33224
33225 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33226
33227 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33228 (grub_print_ucs4_alloc): Likewise.
33229 (grub_getstringwidth): Likewise.
33230 * normal/main.c (grub_normal_init_page): Gettextize version string.
33231 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33232 (getstringwidth): Renamed to ...
33233 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33234 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33235 (grub_print_ucs4): Remove `static' qualifer (now used in
33236 normal/main.c).
33237 * po/POTFILES: Add normal/main.c.
33238
33239 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33240
33241 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33242 (print_message_indented): Add `margin_left' and `margin_right'
33243 parameters.
33244 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33245 strings.
33246 (print_timeout): Use `print_message_indented' to print the message.
33247 Deletes `second_stage' parameter.
33248 (run_menu): Update `print_timeout' calls.
33249
33250 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33251
33252 Fix console palette on OpenFirmware.
33253
33254 * term/ieee1275/ofconsole.c (MAX): Removed.
33255 (colors): Redone based on VGA palette.
33256 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33257 colors are supported.
33258 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33259
33260 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33261
33262 Fix potential EfiEmu double prepare.
33263
33264 * efiemu/main.c (prepared): New variable
33265 (grub_efiemu_unload): Set prepare to '0'.
33266 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33267
33268 set_virtual_address_map support.
33269
33270 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33271 prototype.
33272 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33273 prototype.
33274 (grub_efiemu_crc32): Likewise.
33275 (grub_efiemu_crc64): Likewise.
33276 (grub_efiemu_set_virtual_address_map): Likewise.
33277 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33278 New definition.
33279 (grub_autoefi_set_virtual_address_map): Likewise.
33280 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33281 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33282 Restructure flow to accomodate it.
33283 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33284 (grub_efiemu_crc): Recompute CRC32.
33285 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33286 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33287 * efiemu/symbols.c (relocated_handle): New variable.
33288 (grub_efiemu_free_syms): Free relocated_handle.
33289 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33290 (grub_efiemu_write_sym_markers): New function.
33291 (grub_efiemu_set_virtual_address_map): Likewise.
33292
33293 Newer XNU parameters.
33294
33295 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33296 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33297 (grub_xnu_fill_devicetree): New prototype.
33298 (grub_xnu_heap_real_start): New variable.
33299 * loader/xnu.c (get_name_ptr): New function.
33300 (grub_xnu_load_driver): Fill namelen and name.
33301
33302 64-bit xnu support.
33303
33304 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33305 and 'loader/macho64.c'.
33306 * conf/i386-pc.rmk: Likewise.
33307 * conf/x86_64-efi.rmk: Likewise.
33308 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33309 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33310 * include/grub/macho.h (grub_macho_segment64): New structure.
33311 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33312 (grub_macho_size32): ... to this.
33313 (grub_macho32_get_entry_point): Renamed from ...
33314 (grub_macho_get_entry_point32): ... to this.
33315 (grub_macho_contains_macho64): New prototype.
33316 (grub_macho_size64): Likewise.
33317 (grub_macho_get_entry_point64): Likewise.
33318 (grub_macho32_load): Renamed from ...
33319 (grub_macho_load32): ... to this.
33320 (grub_macho32_filesize): Renamed from ...
33321 (grub_macho_filesize32): ... to this.
33322 (grub_macho32_readfile): Renamed from ...
33323 (grub_macho_readfile32): ... to this.
33324 (grub_macho_filesize64): New prototype.
33325 (grub_macho_readfile64): Likewise.
33326 (grub_macho_parse32): Likewise.
33327 (grub_macho_parse64): Likewise.
33328 * loader/macho.c: Split into ...
33329 * loader/machoXX.c: ... and this. Replace 32 with XX.
33330 * loader/macho32.c: New file.
33331 * loader/macho64.c: Likewise.
33332 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33333 (grub_cmd_xnu_kernel): Make 32-bit only.
33334 (grub_cmd_xnu_kernel64): New function.
33335 (grub_xnu_load_driver): Support Mach-O 64.
33336 (grub_cmd_xnu_mkext): Likewise.
33337 * util/grub.d/30_os-prober.in (osx_entry): New function.
33338 Generate entries for 64-bit boot too.
33339
33340 Eliminate ad-hoc tree format in XNU and EfiEmu.
33341
33342 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33343 * efiemu/pnvram.c: Rewritten to use environment variables.
33344 All users updated.
33345
33346 Inline utf16_to_utf8.
33347
33348 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33349 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33350 All users updated.
33351 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33352
33353 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33354 * commands/usbtest.c (grub_usb_get_string): ... move here.
33355 (usb_print_str): Fix error handling.
33356 * include/grub/usb.h (grub_usb_get_string): Remove.
33357
33358 UTF-8 to UTF-16 transformation.
33359
33360 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33361 (charset_mod_SOURCES): New variable.
33362 (charset_mod_CFLAGS): Likewise.
33363 (charset_mod_LDFLAGS): Likewise.
33364 * include/grub/utf.h: New file.
33365 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33366
33367 Support for device properties.
33368
33369 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33370 (grub_xnu_devprop_device_header): Likewise.
33371 (grub_xnu_devprop_device_descriptor): Likewise.
33372 (grub_xnu_devprop_add_device): New prototype.
33373 (grub_xnu_devprop_remove_device): Likewise.
33374 (grub_xnu_devprop_remove_property): Likewise.
33375 (grub_xnu_devprop_add_property_utf8): Likewise.
33376 (grub_xnu_devprop_add_property_utf16): Likewise.
33377 (grub_cpu_xnu_init): Likewise.
33378 (grub_cpu_xnu_fini): Likewise.
33379 (grub_cpu_xnu_unload): Likewise.
33380 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33381 (property_descriptor): Likewise.
33382 (devices): New variable.
33383 (grub_xnu_devprop_remove_property): New function.
33384 (grub_xnu_devprop_add_device): Likewise.
33385 (grub_xnu_devprop_remove_device): Likewise.
33386 (grub_xnu_devprop_add_property): Likewise.
33387 (grub_xnu_devprop_add_property_utf8): Likewise.
33388 (grub_xnu_devprop_add_property_utf16): Likewise.
33389 (hextoval): Likewise.
33390 (grub_cpu_xnu_fill_devprop): Likewise.
33391 (grub_cmd_devprop_load): Likewise.
33392 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33393 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33394 (cmd_devprop_load): New variable.
33395 (grub_cpu_xnu_init): New function.
33396 (grub_cpu_xnu_fini): Likewise.
33397 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33398 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33399 (grub_cmd_xnu_devtree): Likewise.
33400 (hextoval): New function.
33401 (unescape): Likewise.
33402 (grub_xnu_fill_devicetree): Likewise.
33403
33404 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33405 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33406
33407 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33408
33409 Workaround for broken ATI VBE.
33410
33411 * video/i386/pc/vbe.c (last_set_mode): New variable.
33412 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33413 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33414 (grub_video_vbe_setup): Don't check for reserved flag.
33415
33416 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33417
33418 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33419 the `find' command.
33420
33421 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33422
33423 UUID support for HFS.
33424
33425 * fs/hfs.c (grub_hfs_uuid): New function.
33426 (grub_hfs_fs): New value .uuid.
33427 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33428
33429 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33430
33431 Fix a segfault with parsing unknown long options.
33432
33433 * util/grub-mkrelpath.c (options): Zero terminate it.
33434
33435 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33436
33437 * include/grub/misc.h (grub_puts): New declaration.
33438 (grub_puts_): Likewise.
33439 * kern/misc.c (grub_puts): New definition.
33440 (grub_puts_): Likewise.
33441
33442 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33443
33444 * util/grub-probe.c (probe): Improve error message.
33445
33446 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33447
33448 * loader/i386/multiboot_elfxx.c
33449 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33450 initialization.
33451
33452 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33453
33454 Relocator framework
33455
33456 * loader/i386/xnu_helper.S: Removed. All users updated.
33457 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33458 (relocator_mod_SOURCES): New variable.
33459 (relocator_mod_CFLAGS): Likewise.
33460 (relocator_mod_LDFLAGS): Likewise.
33461 (relocator_mod_ASFLAGS): Likewise.
33462 * conf/x86_64.rmk: Likewise.
33463 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33464 (grub_multiboot_payload_entry_offset): Likewise.
33465 (grub_multiboot_forward_relocator): Likewise.
33466 (grub_multiboot_forward_relocator_end): Likewise.
33467 (grub_multiboot_backward_relocator): Likewise.
33468 (grub_multiboot_backward_relocator_end): Likewise.
33469 (grub_multiboot_payload_eip): New variable.
33470 (grub_multiboot_payload_orig): Likewise.
33471 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33472 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33473 * include/grub/i386/memory.h
33474 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33475 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33476 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33477 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33478 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33479 * include/grub/i386/relocator.h: New file.
33480 * include/grub/x86_64/relocator.h: Likewise.
33481 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33482 (XNU_RELOCATOR): New macro.
33483 (grub_xnu_launcher_start): Remove.
33484 (grub_xnu_launcher_end): Likewise.
33485 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33486 (grub_xnu_heap_real_start): Remove.
33487 (grub_xnu_heap_start): Change to void *. All users updated.
33488 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33489 * lib/i386/relocator.c: New file.
33490 * lib/i386/relocator_asm.S: Likewise.
33491 * lib/i386/relocator_backward.S: Likewise.
33492 * lib/mips/relocator.c: Likewise.
33493 * lib/mips/relocator_asm.S: Likewise.
33494 * lib/relocator.c: Likewise.
33495 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33496 (entry): Removed.
33497 (playground): Likewise.
33498 (grub_multiboot_payload_orig): New variable.
33499 (grub_multiboot_payload_dest): Likewise.
33500 (grub_multiboot_payload_size): Likewise.
33501 (grub_multiboot_payload_eip): Likewise.
33502 (grub_multiboot_payload_esp): Likewise.
33503 (grub_multiboot_boot): Use grub_relocator32_boot.
33504 (grub_multiboot_unload): Free relocators.
33505 (grub_multiboot): Setup stack. Use relocators.
33506 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33507 (grub_multiboot_load_elfXX): Use relocators.
33508 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33509 (grub_multiboot_payload_size): Likewise.
33510 (grub_multiboot_payload_dest): Likewise.
33511 (grub_multiboot_payload_entry_offset): Likewise.
33512 (grub_multiboot_forward_relocator): Likewise.
33513 (grub_multiboot_backward_relocator): Likewise.
33514 (grub_multiboot_real_boot): Likewise.
33515 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33516 (grub_xnu_entry_point): Likewise.
33517 (grub_xnu_arg1): Likewise.
33518 (grub_xnu_stack): Likewise.
33519 (grub_xnu_launch): Removed.
33520 (grub_xnu_boot_resume): New function.
33521 (grub_xnu_boot): Use relocators.
33522 * loader/i386/xnu_helper.S: Removed.
33523 * loader/xnu.c (grub_xnu_heap_start): New variable.
33524 (grub_xnu_heap_size): Likewise.
33525 (grub_xnu_heap_malloc): Use relocators.
33526 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33527
33528 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33529
33530 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33531 anything.
33532
33533 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33534
33535 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33536 GRUB_ERR_NONE before calling grub_env_set.
33537
33538 2009-12-12 Robert Millan <rmh@aybabtu.com>
33539
33540 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33541 * genmk.rb (video): New variable.
33542 (CLEANFILES, VIDEOFILES): Add #{video}.
33543 (#{video}): New target rule.
33544 * genvideolist.sh: New file.
33545 * Makefile.in (pkglib_DATA): Add video.lst.
33546 (video.lst): New target rule.
33547 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33548 `video.lst'.
33549 * util/grub.d/30_os-prober.in: Replace `vbe' with
33550 ${GRUB_VIDEO_BACKEND}.
33551
33552 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33553
33554 * THANKS: Add David Miller.
33555
33556 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33557
33558 libpciaccess support.
33559
33560 * Makefile.in (LIBPCIACCESS): New variable.
33561 (enable_grub_emu_pci): Likewise.
33562 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33563 util/pci.c and commands/lspci.c.
33564 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33565 * configure.ac (grub-emu-pci): New option.
33566 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33567 (grub_pci_device_unmap_range): Likewise.
33568 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33569 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33570 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33571 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33572 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33573 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33574 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33575 * include/grub/pciutils.h: New file.
33576 * util/pci.c: Likewise.
33577
33578 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33579
33580 * util/misc.c: Don't include <errno.h> twice.
33581
33582 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33583
33584 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33585 name in an error message.
33586 (grub_biosdisk_rw): Likewise.
33587
33588 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33589
33590 Eliminate NTFS 4Gib barrier.
33591
33592 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33593 (read_run_data): Likewise.
33594 (grub_ntfs_read_run_list): Likewise.
33595 (grub_ntfs_read_block): Likewise.
33596 (grub_ntfs_iterate_dir): Likewise.
33597 (read_mft): Likewise.
33598 (read_data): Likewise.
33599 Use COM_LOG_LEN.
33600 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33601 to avoid 64-bit division
33602 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33603 (grub_ntfs_rlst): Use grub_disk_addr_t.
33604
33605 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33606
33607 Eliminate grub-fstest 4Gib barrier.
33608
33609 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33610 (read_file): Fix error reporting.
33611
33612 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33613
33614 Eliminate hexdump 4Gib barrier.
33615
33616 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33617 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33618
33619 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33620
33621 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33622 Fixes amarsh bug.
33623
33624 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33625
33626 Remove miscellaneous files in distclean target.
33627
33628 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33629
33630 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33631
33632 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33633 if they're already set. This resolves the conflict between my
33634 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33635 fixing the --grub-probe option again.
33636 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33637 change on 2009-10-06, so that we now once again source
33638 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33639
33640 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33641
33642 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33643 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33644 `util/devicemap.c'.
33645
33646 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33647
33648 * include/grub/misc.h (grub_printf_): New declaration.
33649 * kern/misc.c (grub_printf_): New definition.
33650 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33651 instead of `grub_printf' and `_'.
33652 * normal/menu_entry.c (store_completion): Likewise.
33653 (run): Likewise.
33654 (grub_menu_entry_run): Likewise.
33655 * normal/menu_text.c (grub_wait_after_message): Likewise.
33656 (notify_booting): Likewise.
33657 (notify_fallback): Likewise.
33658 (notify_execution_failure): Likewise.
33659
33660 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33661
33662 * configure.ac: Check for vasprintf.
33663 * util/misc.c (asprintf): Move allocation from here ...
33664 (vasprintf): ... to here. New function.
33665 (xasprintf): New function.
33666 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33667 prototypes.
33668 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33669 * util/grub-mkfont.c (write_font): Likewise.
33670 * util/grub-probe.c (probe): Likewise.
33671 * util/hostdisk.c (make_device_name): Likewise.
33672
33673 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33674
33675 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33676 anything even prefixed with 'cdrom' as a cdrom.
33677
33678 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33679
33680 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33681 mount points.
33682
33683 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33684
33685 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33686 grub_gettext_msg_list.
33687 (grub_gettext_gettranslation_from_position): Return const char *
33688 and not char *.
33689 (grub_gettext_translate): Add the translated strings into a list,
33690 returns from the list if existing there.
33691 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33692 (grub_gettext_delete_list): Delete the list.
33693 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33694 lang environment variable is changed.
33695 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33696
33697 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33698
33699 Rename kernel.mod to kernel.img.
33700
33701 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33702 (kernel_mod_EXPORTS): Rename to ...
33703 (kernel_img_EXPORTS): ... this.
33704 (kernel_mod_SOURCES): Rename to ...
33705 (kernel_img_SOURCES): ... this.
33706 (kernel_mod_HEADERS): Rename to ...
33707 (kernel_img_HEADERS): ... this. All users updated.
33708 (kernel_mod_CFLAGS): Rename to ...
33709 (kernel_img_CFLAGS): ... this.
33710 (kernel_mod_ASFLAGS): Rename to ...
33711 (kernel_img_ASFLAGS): ... this.
33712 (kernel_mod_LDFLAGS): Rename to ...
33713 (kernel_img_LDFLAGS): ... this.
33714 * conf/x86_64-efi.rmk: Likewise.
33715 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33716 (read_kernel_image): ... this. All users updated.
33717 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33718
33719 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33720
33721 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33722 (print_spaces): New function.
33723 (grub_print_ucs4): New function.
33724 (getstringwidth): New function.
33725 (print_message_indented): New function.
33726 (print_message): Gettexttize strings using print_message_indented.
33727 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33728 width.
33729 (get_entry_number): Gettextize and uses dynamic terminal width.
33730 (notify_booting, notify_fallback, notify_execution_failure):
33731 Gettextize.
33732 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33733 string.
33734 (run): Likewise.
33735 (grub_menu_entry_run): Likewise.
33736 * PO/POTFILES: Add normal/menu_entry.c.
33737
33738 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33739
33740 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33741
33742 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33743
33744 * util/grub-install.in: Install gettext .mo files.
33745 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33746
33747 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33748
33749 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33750 grub_dprintf.
33751
33752 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33753
33754 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33755 non-firmware-dependant one in realmode.S takes precedence.
33756
33757 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33758
33759 * commands/halt.c: Replace misc arch-specific headers with
33760 `<grub/misc.h>'.
33761 * commands/reboot.c: Likewise.
33762 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33763 `<grub/misc.h>'.
33764 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33765 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33766 (kernel_img_SOURCES): ... to here.
33767
33768 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33769 * include/grub/i386/pc/init.h: Likewise.
33770 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33771 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33772
33773 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33774
33775 * include/grub/i386/halt.h: Remove.
33776 * include/grub/i386/reboot.h: Likewise.
33777
33778 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33779
33780 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33781
33782 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33783 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33784 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33785 "progname.h"
33786 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33787 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33788 (usage): Add missing comma in printf.
33789
33790 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33791
33792 Use the same reboot approach on i386 coreboot and qemu as we do on
33793 BIOS.
33794
33795 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33796 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33797 * kern/i386/reboot.c: Remove.
33798 * include/grub/i386/reboot.h (grub_reboot): Export function.
33799 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33800 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33801 0xf000:0xfff0 instead of 0xffff:0x0000.
33802 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33803 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33804
33805 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33806
33807 Fix $srcdir != $objdir build.
33808
33809 * Makefile.in (po/%.po): Rewrite as ...
33810 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33811
33812 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33813
33814 Fix GNU/Hurd grub-install crash.
33815 * util/grub-probe.c (probe): Try to access `path' only when it is not
33816 NULL.
33817
33818 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33819
33820 Correct module naming.
33821
33822 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33823 (GRUB_MOD_INIT(efi_uga)): ... to this
33824 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33825 (GRUB_MOD_FINI(efi_uga)): ... to this
33826 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33827 (GRUB_MOD_INIT(efi_gop)): ... to this
33828 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33829 (GRUB_MOD_FINI(efi_gop)): ... to this
33830
33831 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33832
33833 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33834 translatable.
33835 (usage): Translate `arg' strings using gettext().
33836 Thanks to Jordi Mallach for the suggestion.
33837
33838 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33839
33840 GOP support. Based on patch from Bean
33841 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33842
33843 * video/efi_gop.c: New file.
33844 * include/grub/efi/graphics_output.h: Likewise.
33845 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33846 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33847 variables.
33848 * conf/x86_64-efi.rmk: Likewise.
33849
33850 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33851
33852 Rename efi_fb to efi_uga.
33853
33854 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33855 'efi_uga.mod'.
33856 (efi_fb_mod_SOURCES): Rename this ...
33857 (efi_uga_mod_SOURCES): ... to this.
33858 (efi_fb_mod_CFLAGS): Rename this ...
33859 (efi_uga_mod_CFLAGS): ... to this.
33860 (efi_fb_mod_LDFLAGS): Rename this ...
33861 (efi_uga_mod_LDFLAGS): ... to this.
33862 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33863 'efi_uga.mod'.
33864 (efi_fb_mod_SOURCES): Rename this ...
33865 (efi_uga_mod_SOURCES): ... to this.
33866 (efi_fb_mod_CFLAGS): Rename this ...
33867 (efi_uga_mod_CFLAGS): ... to this.
33868 (efi_fb_mod_LDFLAGS): Rename this ...
33869 (efi_uga_mod_LDFLAGS): ... to this.
33870 * video/efi_fb.c: Move this ...
33871 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33872
33873 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33874
33875 * po/README: New file. Explain our PO file workflow.
33876
33877 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33878
33879 * po/ChangeLog: Remove. Move relevant entries back to ...
33880 * ChangeLog: ... here.
33881 * po/ca.po: Remove (now handled by TLP).
33882 * po/id.po: Likewise.
33883 * po/zh_CN.po: Likewise.
33884 * Makefile.in (LINGUAS): Initialize in a way that supports
33885 empty set.
33886
33887 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33888
33889 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33890 reliing on po/LINGUAS.
33891 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33892 (po/%.po): ... this.
33893
33894 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33895
33896 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33897 (main): Use `program_name' instead of nonexistent `progname'.
33898
33899 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33900
33901 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33902 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33903
33904 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33905
33906 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33907 commit.
33908 * conf/i386-efi.rmk: Likewise.
33909 * conf/i386-ieee1275.rmk: Likewise.
33910 * conf/powerpc-ieee1275.rmk: Likewise.
33911 * conf/sparc64-ieee1275.rmk: Likewise.
33912 * conf/x86_64-efi.rmk: Likewise.
33913
33914 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33915
33916 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33917
33918 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33919
33920 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33921
33922 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33923
33924 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33925 (grub_mkdevicemap_SOURCES): New variable.
33926 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33927 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33928 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33929 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33930 (grub_mkdevicemap_SOURCES): Remove.
33931 * conf/i386-efi.rmk: Likewise.
33932 * conf/i386-ieee1275.rmk: Likewise.
33933 * conf/i386-pc.rmk: Likewise.
33934 * conf/powerpc-ieee1275.rmk: Likewise.
33935 * conf/sparc64-ieee1275.rmk: Likewise.
33936 * conf/x86_64-efi.rmk: Likewise.
33937 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33938 (usage): Fix strings to use `program_name'.
33939 (main): Initialize gettext.
33940 * util/grub-editenv.c: Likewise.
33941 * util/grub-emu.c: Likewise.
33942 * util/grub-fstest.c: Likewise.
33943 * util/grub-mkdevicemap.c: Likewise.
33944 * util/grub-mkfont.c: Likewise.
33945 * util/grub-mkrelpath.c: Likewise.
33946 * util/grub-pe2elf.c: Likewise.
33947 * util/grub-probe.c: Likewise.
33948 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33949 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33950 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33951
33952 * util/misc.c: Include `"progname.h"'.
33953 (progname): Remove variable.
33954 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33955
33956 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33957
33958 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33959 printf and print a newline after the menuentry header line.
33960 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33961
33962 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33963
33964 autoconf >= 2.60 support $(localedir).
33965
33966 * INSTALL: Note that autoconf 2.60 is required.
33967 * configure.ac (AC_PREREQ): Bump to 2.60.
33968 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33969 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33970
33971 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33972
33973 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33974 aclocal is run.
33975
33976 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33977
33978 * normal/main.c (grub_normal_read_line): Fix off-by-one
33979 buffer overflow.
33980
33981 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33982
33983 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33984 "parser.grub" in grub_command_execute() call.
33985
33986 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33987
33988 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33989 * conf/i386-efi.rmk: Likewise.
33990 * conf/i386-ieee1275.rmk: Likewise.
33991 * conf/i386-pc.rmk: Likewise.
33992 * conf/powerpc-ieee1275.rmk: Likewise.
33993 * conf/sparc64-ieee1275.rmk: Likewise.
33994 * conf/x86_64-efi.rmk: Likewise.
33995 * gettext/gettex.c: Include <grub/i18n.h>.
33996 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33997 here ...
33998 * include/grub/i18n.h: ... to here
33999 * include/grub/i18n.h: ... to here.
34000 * kern/misc.c: Include <grub/i18n.h>
34001 (grub_gettext_dummy): Move above user.
34002
34003 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34004
34005 * util/Makefile.in (install-local): Convert a `for' into a normal
34006 shell expansion.
34007
34008 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34009
34010 * autogen.sh: Add automake call.
34011 * config.guess: Remove.
34012 * config.sub: Likewise.
34013 * install-sh: Likewise.
34014
34015 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34016
34017 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34018
34019 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34020
34021 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34022 function to a normal shell `for'.
34023
34024 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34025
34026 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34027
34028 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34029
34030 * util/grub-mkrelpath.c: New file.
34031 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34032 (grub_mkrelpath_SOURCES): New variable.
34033 * include/grub/util/misc.h: New function prototype.
34034 * util/misc.c (make_system_path_relative_to_its_root): New function.
34035
34036 * util/grub-mkconfig_lib.in (bindir): New variable.
34037 (grub_mkrelpath): Likewise.
34038 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34039
34040 * util/probe.c (probe): Make the file path relative to its root.
34041 Change a info message to use the GRUB path. Enable again the
34042 check if we can read the file with GRUB facilities.
34043
34044 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34045 to its root.
34046
34047 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34048
34049 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34050 platform.
34051
34052 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34053
34054 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34055 strncmp().
34056
34057 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34058
34059 * util/getroot.c (grub_util_is_dmraid): New function.
34060 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34061 devices as normal ones, not as LVM.
34062
34063 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34064
34065 * conf/common.rmk: Add grub-gettext_lib target and updates
34066 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34067 LDFLAGS.
34068 * gettext/gettext.c: New file. (Reads mo files).
34069 * include/grub/file.h (grub_file_pread): New prototype.
34070 * include/grub/i18n.h (_): New prototype.
34071 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34072 prototypes.
34073 * kern/misc.c (grub_gettext_dummy): New function.
34074 * normal/menu_text.c: Include <grub/i18n.h>.
34075 * normal/menu_text.c (print_timeout): Gettexttize string.
34076 * normal/menu_text.c (print_message): Gettexttize string.
34077 * po/POTFILES: Add `normal/menu_text.c'.
34078 * po/ca.po: Add new translations.
34079 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34080 gettext module and defines locale_dir and lang in grub.cfg.
34081 * NEWS: Add gettext support.
34082
34083 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34084
34085 * util/hostdisk.c: Include `<grub/i18n.h>'.
34086 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34087 (make_device_name): Rewrite using asprintf.
34088 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34089 (find_system_device): If a device is not found, generate one just
34090 by reusing the OS path name.
34091 (read_device_map): Make it permissible for device.map not to exist.
34092
34093 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34094
34095 * script/sh/execute.c: Move from here ...
34096 * script/execute.c: ... to here. Update all users.
34097 * script/sh/function.c: Move from here ...
34098 * script/function.c: ... to here. Update all users.
34099 * script/sh/lexer.c: Move from here ...
34100 * script/lexer.c: ... to here. Update all users.
34101 * script/sh/main.c: Move from here ...
34102 * script/main.c: ... to here. Update all users.
34103 * script/sh/parser.y: Move from here ...
34104 * script/parser.y: ... to here. Update all users.
34105 * script/sh/script.c: Move from here ...
34106 * script/script.c: ... to here. Update all users.
34107
34108 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34109
34110 * configure.ac: Detect all `emu' platforms. Define
34111 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34112 --enable-grub-emu logic. Disable include/grub/machine
34113 symlink on `emu' platforms.
34114
34115 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34116 * gensymlist.sh.in: Likewise.
34117
34118 * include/grub/i386/coreboot/machine.h: Remove file.
34119 * include/grub/i386/efi/machine.h: Likewise.
34120 * include/grub/i386/ieee1275/machine.h: Likewise.
34121 * include/grub/i386/pc/machine.h: Likewise.
34122 * include/grub/i386/qemu/machine.h: Likewise.
34123 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34124 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34125 * include/grub/x86_64/efi/machine.h: Likewise.
34126
34127 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34128 * commands/halt.c: Likewise.
34129 * commands/reboot.c: Likewise.
34130 * include/grub/autoefi.h: Likewise.
34131 * include/grub/i386/at_keyboard.h: Likewise.
34132 * include/grub/i386/kernel.h: Likewise.
34133 * include/grub/i386/loader.h: Likewise.
34134 * include/grub/i386/pc/memory.h: Likewise.
34135 * kern/dl.c: Likewise.
34136 * kern/i386/coreboot/init.c: Likewise.
34137 * loader/i386/bsd.c: Likewise.
34138 * loader/i386/linux.c: Likewise.
34139 * loader/multiboot_loader.c: Likewise.
34140 * term/i386/pc/serial.c: Likewise.
34141 * term/usb_keyboard.c: Likewise.
34142
34143 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34144 `<grub/machine/machine.h>'
34145 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34146 * util/misc.c: Remove `<grub/machine/machine.h>' and
34147 `<grub/machine/time.h>'.
34148
34149 * Makefile.in (enable_grub_emu): Remove variable.
34150 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34151
34152 * conf/any-emu.rmk: New file.
34153 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34154 (grub_emu_init.c): Move from here ...
34155 * conf/any-emu.rmk: ... to here.
34156
34157 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34158 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34159 * conf/any-emu.rmk: ... to here.
34160
34161 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34162
34163 * include/grub/parser.h (grub_parser_register): Document need
34164 of `name' parameter.
34165 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34166 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34167 "sh" to "grub".
34168
34169 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34170
34171 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34172 `$(XGETTEXT)'.
34173 * include/grub/i18n.h (N_): New macro.
34174 * util/mkisofs/mkisofs.h: Likewise.
34175 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34176 around N_().
34177 (usage): Use gettext() to translate help strings when printing them.
34178
34179 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34180
34181 Based on patch from Bean
34182 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34183
34184 * video/efi_fb.c: New file.
34185 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34186 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34187 variables.
34188 * conf/x86_64-efi.rmk: Likewise.
34189
34190 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34191
34192 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34193 * util/i386/pc/grub-setup.c: Likewise.
34194
34195 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34196
34197 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34198 <hurd/fs.h>
34199 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34200 file_get_storage_info to implement grub_guess_root_device.
34201
34202 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34203
34204 * Makefile.in (target): Use make's builtin $(shell) function
34205 instead of calling directly $(SHELL) to create the locale directories,
34206 inside the $(foreach) function.
34207
34208 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34209
34210 * util/grub-mkrescue.in: Print an error and usage if output option
34211 has not been given.
34212
34213 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34214
34215 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34216 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34217 root and /boot are on different devices.
34218
34219 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34220
34221 Fix build for srcdir != objdir.
34222
34223 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34224 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34225 $(srcdir).
34226 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34227 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34228 reference for input.
34229
34230 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34231
34232 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34233 or hardlinking it). Remove -J option, Joliet is not compatible with
34234 multiple source directories.
34235
34236 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34237 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34238
34239 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34240 (process_input_dir): New function. Process an arbitrary input
34241 directory.
34242 Misc adjustments to support both "override mode" and system-wide mode.
34243
34244 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34245
34246 * configure.ac (UNIFONT_BDF): Rename to ...
34247 (FONT_SOURCE): ... this. Update all users.
34248
34249 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34250
34251 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34252 to the list of unifont files to look for.
34253
34254 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34255
34256 Patch from Joe Auricchio <jauricchio@gmail.com>
34257 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34258 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34259 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34260
34261 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34262
34263 * Makefile.in (install-local): Add a missing backslash.
34264
34265 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34266
34267 * include/grub/x86_64/io.h: New file.
34268
34269 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34270
34271 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34272 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34273 Include `"progname.h"'.
34274 (main): Initialize gettext.
34275 * util/i386/pc/grub-setup.c: Gettexttize.
34276 * util/i386/pc/grub-mkimage.c: Likewise.
34277
34278 * Makefile.in (po/*.po): Redefine as ...
34279 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34280
34281 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34282
34283 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34284
34285 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34286 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34287 (program_name): Remove.
34288 (main): Initialize gettext support.
34289 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34290 Include `<libintl.h>'.
34291 (_): New macro.
34292
34293 * util/mkisofs/eltorito.c: Gettexttize.
34294 * util/mkisofs/joliet.c: Likewise.
34295 * util/mkisofs/mkisofs.c: Likewise.
34296 * util/mkisofs/multi.c: Likewise.
34297 * util/mkisofs/rock.c: Likewise.
34298 * util/mkisofs/tree.c: Likewise.
34299 * util/mkisofs/write.c: Likewise.
34300
34301 * po/POTFILES: Update with new files.
34302
34303 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34304
34305 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34306 * util/mkisofs/iso9660.h: Likewise.
34307 * util/mkisofs/joliet.c: Likewise.
34308 * util/mkisofs/mkisofs.c: Likewise.
34309 * util/mkisofs/mkisofs.h: Likewise.
34310 * util/mkisofs/rock.c: Likewise.
34311 * util/mkisofs/tree.c: Likewise.
34312 * util/mkisofs/write.c: Likewise.
34313
34314 * util/mkisofs/eltorito.c (rcsid): Remove.
34315 * util/mkisofs/hash.c: Likewise.
34316 * util/mkisofs/joliet.c: Likewise.
34317 * util/mkisofs/name.c: Likewise.
34318 * util/mkisofs/rock.c: Likewise.
34319 * util/mkisofs/tree.c: Likewise.
34320 * util/mkisofs/write.c: Likewise.
34321
34322 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34323
34324 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34325 instead of static allocation.
34326 * util/mkisofs/match.h: Likewise.
34327
34328 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34329
34330 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34331 and `util/grub.d/10_linux.in'.
34332 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34333 translatable Shell files.
34334
34335 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34336
34337 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34338
34339 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34340
34341 * INSTALL: Document Automake is needed for bootstrap.
34342 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34343 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34344 Add gettext initialization.
34345 (kfreebsd_entry): Make menuentry output translatable.
34346
34347 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34348
34349 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34350 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34351 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34352 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34353 (LINGUAS): Auto-generate using `po/LINGUAS'.
34354 * po/LINGUAS: New file.
34355
34356 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34357
34358 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34359 other things).
34360 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34361 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34362 bindtextdomain() calls for gettext initialization.
34363
34364 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34365
34366 * gnulib/progname.c: New file (imported from Gnulib).
34367 * gnulib/progname.h: Likewise.
34368 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34369 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34370 (usage): Replace `progname' with `program_name'.
34371 (main): Use set_program_name() for program name initialization.
34372
34373 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34374
34375 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34376 from here ...
34377 * Makefile.in (CPPFLAGS): ... to here.
34378
34379 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34380
34381 * aclocal.m4: Move from here ...
34382 * acinclude.m4: ... to here.
34383 * autogen.sh: Add call to `aclocal'.
34384 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34385
34386 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34387
34388 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34389 (LINGUAS): New variable.
34390 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34391 (install-local): Install MO files.
34392 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34393 * include/grub/i18n.h: New file.
34394 * po/POTFILES: New file.
34395 * po/ca.po: New file.
34396 * util/grub.d/10_linux.in (bindir): New variable.
34397 Add gettext initialization.
34398 (linux_entry): Make menuentry output translatable.
34399 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34400 (usage): Make --help output translatable.
34401 (main): Initialize gettext.
34402
34403 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34404
34405 * import_gcry.py: New file (written by Vladimir with minor
34406 adjustments).
34407 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34408 ciphers.
34409 * INSTALL: Document that Python is required for bootstrap.
34410
34411 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34412
34413 Import ciphers from libgcrypt 1.4.4.
34414
34415 * lib/libgcrypt/cipher/ChangeLog
34416 * lib/libgcrypt/cipher/ac.c
34417 * lib/libgcrypt/cipher/arcfour.c
34418 * lib/libgcrypt/cipher/bithelp.h
34419 * lib/libgcrypt/cipher/blowfish.c
34420 * lib/libgcrypt/cipher/camellia-glue.c
34421 * lib/libgcrypt/cipher/camellia.c
34422 * lib/libgcrypt/cipher/camellia.h
34423 * lib/libgcrypt/cipher/cast5.c
34424 * lib/libgcrypt/cipher/cipher.c
34425 * lib/libgcrypt/cipher/crc.c
34426 * lib/libgcrypt/cipher/des.c
34427 * lib/libgcrypt/cipher/dsa.c
34428 * lib/libgcrypt/cipher/ecc.c
34429 * lib/libgcrypt/cipher/elgamal.c
34430 * lib/libgcrypt/cipher/hash-common.c
34431 * lib/libgcrypt/cipher/hash-common.h
34432 * lib/libgcrypt/cipher/hmac-tests.c
34433 * lib/libgcrypt/cipher/md.c
34434 * lib/libgcrypt/cipher/md4.c
34435 * lib/libgcrypt/cipher/md5.c
34436 * lib/libgcrypt/cipher/primegen.c
34437 * lib/libgcrypt/cipher/pubkey.c
34438 * lib/libgcrypt/cipher/rfc2268.c
34439 * lib/libgcrypt/cipher/rijndael-tables.h
34440 * lib/libgcrypt/cipher/rijndael.c
34441 * lib/libgcrypt/cipher/rmd.h
34442 * lib/libgcrypt/cipher/rmd160.c
34443 * lib/libgcrypt/cipher/rsa.c
34444 * lib/libgcrypt/cipher/seed.c
34445 * lib/libgcrypt/cipher/serpent.c
34446 * lib/libgcrypt/cipher/sha1.c
34447 * lib/libgcrypt/cipher/sha256.c
34448 * lib/libgcrypt/cipher/sha512.c
34449 * lib/libgcrypt/cipher/tiger.c
34450 * lib/libgcrypt/cipher/twofish.c
34451 * lib/libgcrypt/cipher/whirlpool.c
34452
34453 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34454
34455 Fix build for systems without error().
34456
34457 * gnulib/error.c: New file (imported from Gnulib).
34458 * gnulib/error.h: Likewise.
34459 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34460 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34461 (this variable is now used by error()).
34462
34463 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34464
34465 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34466 instead of relying that char is signed.
34467
34468 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34469
34470 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34471 blocksize different from specified.
34472 (grub_pxefs_read): Likewise.
34473
34474 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34475
34476 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34477
34478 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34479 (grub_ata_readwrite): Likewise. Update 2 format strings.
34480 (grub_atapi_read): Likewise.
34481
34482 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34483 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34484 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34485 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34486 (ata_mod_LDFLAGS): Move from here ...
34487 * conf/i386.rmk: ... to here ...
34488 * conf/x86_64-efi.rmk: ... and here.
34489 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34490 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34491
34492 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34493
34494 Relicense multiboot.h, with RMS' blessing.
34495
34496 * include/multiboot.h: Change to X11 license.
34497
34498 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34499
34500 Support --version in grub-mkisofs.
34501
34502 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34503 (OPTION_VERSION): New macro.
34504 (ld_options): Recognize --version.
34505 (usage): Move `program_name' from here ...
34506 (program_name): ... to here. Add `static' qualifier.
34507 (main): Recognize `OPTION_VERSION'.
34508
34509 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34510
34511 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34512 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34513
34514 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34515
34516 Fix help2man generation for mkisofs.
34517
34518 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34519 (usage): Send output to stdout (rather than stderr).
34520
34521 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34522
34523 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34524 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34525 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34526 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34527 (bin_SCRIPTS): Add `grub-mkfloppy'.
34528 (grub_mkfloppy_SOURCES): New variable.
34529
34530 * util/grub-mkrescue.in: New file.
34531 * util/i386/pc/grub-mkfloppy.in: New file.
34532
34533 * util/i386/coreboot/grub-mkrescue.in: Remove.
34534 * util/i386/pc/grub-mkrescue.in: Remove.
34535
34536 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34537
34538 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34539 from here ...
34540 * include/multiboot.h (struct multiboot_header): ... to here. Update
34541 all users.
34542 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34543 from here ...
34544 * include/multiboot.h (struct multiboot_info): ... to here. Update
34545 all users.
34546 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34547 from here ...
34548 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34549 Update all users.
34550 * include/grub/multiboot.h (struct grub_mod_list): Move
34551 from here ...
34552 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34553 Update all users.
34554
34555 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34556
34557 * include/multiboot2.h (multiboot_word): Rename from this ...
34558 (multiboot2_word): ... to this. Update all users.
34559 (multiboot_header): Rename from this ...
34560 (multiboot2_header): ... to this. Update all users.
34561 (multiboot_tag_header): Rename from this ...
34562 (multiboot2_tag_header): ... to this. Update all users.
34563 (multiboot_tag_start): Rename from this ...
34564 (multiboot2_tag_start): ... to this. Update all users.
34565 (multiboot_tag_name): Rename from this ...
34566 (multiboot2_tag_name): ... to this. Update all users.
34567 (multiboot_tag_module): Rename from this ...
34568 (multiboot2_tag_module): ... to this. Update all users.
34569 (multiboot_tag_memory): Rename from this ...
34570 (multiboot2_tag_memory): ... to this. Update all users.
34571 (multiboot_tag_unused): Rename from this ...
34572 (multiboot2_tag_unused): ... to this. Update all users.
34573 (multiboot_tag_end): Rename from this ...
34574 (multiboot2_tag_end): ... to this. Update all users.
34575
34576 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34577
34578 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34579 this platform we should support Multiboot1 first.
34580
34581 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34582 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34583 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34584
34585 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34586
34587 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34588 of write calls (converting them to fwrite() if they aren't already).
34589 (get_torito_desc): Likewise.
34590 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34591
34592 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34593
34594 * util/i386/pc/grub-install.in: Move from here ...
34595 * util/grub-install.in: ... to here. Update all users.
34596
34597 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34598
34599 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34600
34601 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34602
34603 Support for El Torito without floppy emulation.
34604
34605 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34606 (init_boot_catalog): Improve error handling.
34607 (get_torito_desc): Don't use floppy emulation unless requested by
34608 user. Patch boot information table when requested via
34609 `-boot-info-table'.
34610 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34611 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34612 (use_boot_info_table): New variables.
34613 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34614 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34615 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34616 `--eltorito-emul-floppy'.
34617 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34618 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34619 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34620 (use_boot_info_table, get_731): New prototypes.
34621 * util/mkisofs/write.c (get_731): New function.
34622
34623 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34624
34625 Fix the generation of the man page.
34626
34627 * util/pc/i386/grub-install.in: Source
34628 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34629
34630 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34631
34632 Large file support for grub-mkisofs.
34633
34634 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34635 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34636 (session_start): Upgrade type to `uint64_t'. Update all users.
34637 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34638 (struct directory_entry): Upgrade type of `starting_block' and
34639 `size' to `uint64_t'. Update all users.
34640 (struct deferred): Remove unused structure.
34641 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34642 Update all users.
34643 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34644 file is larger than `UINT32_MAX'.
34645 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34646 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34647 return value.
34648 (struct deferred_write): Upgrade type of `extent' and `size' to
34649 `uint64_t'. Update all users.
34650 (last_extent_written): Upgrade type to `uint64_t'. Update all
34651 users.
34652 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34653 Update all users. Upgrade type of `remain' to `int64_t' and
34654 `use' to `size_t'. Use error() to handle fread() errors.
34655 (write_files): Rely on write_one_file() rather than calling
34656 xfwrite() directly.
34657
34658 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34659
34660 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34661
34662 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34663
34664 * util/mkisofs/fnmatch.c: Remove.
34665 * util/mkisofs/getopt1.c: Likewise.
34666 * util/mkisofs/getopt.c: Likewise.
34667 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34668 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34669 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34670 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34671 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34672
34673 * configure.ac: Detect `mingw32msvc' host_os.
34674 Check for lstat(), getuid() and getgid().
34675
34676 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34677 instances of `u_char' with `uint8_t'.
34678
34679 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34680 [!HAVE_GETUID] (getuid): New function (stub).
34681 [!HAVE_GETGID] (getgid): Likewise.
34682 [!HAVE_LSTAT] (lstat): Likewise.
34683 [!S_IROTH] (S_IROTH): New macro (dummy).
34684 [!S_IRGRP] (S_IRGRP): Likewise.
34685
34686 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34687
34688 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34689 conditional expression).
34690
34691 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34692
34693 Import from Gnulib.
34694
34695 * gnulib/fnmatch.c: New file.
34696 * gnulib/fnmatch.h: Likewise.
34697 * gnulib/fnmatch_loop.c: Likewise.
34698 * gnulib/getopt.c: Likewise.
34699 * gnulib/getopt.h: Likewise.
34700 * gnulib/getopt1.c: Likewise.
34701 * gnulib/getopt_int.h: Likewise.
34702 * gnulib/gettext.h: Likewise.
34703
34704 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34705
34706 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34707 * normal/handler.c (read_handler_list): Likewise.
34708
34709 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34710
34711 Misc cleanup.
34712
34713 * kern/command.c (grub_register_command_prio): Use
34714 grub_zalloc() instead of explicitly zeroing data.
34715 * kern/list.c: Include `<grub/mm.h>'.
34716 (grub_named_list_find): Replace `0' with `NULL'.
34717 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34718 (fs_module_list): Change type to `grub_named_list_t'. Update all
34719 users.
34720 * normal/dyncmd.c (read_command_list): Add space between function
34721 call and parenthesis.
34722 * normal/handler.c (read_handler_list): Likewise.
34723
34724 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34725
34726 * normal/auth.c (punishment_delay): Moved from here ...
34727 (grub_auth_strcmp): ... to here (inside function).
34728
34729 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34730
34731 * include/grub/list.h (struct grub_named_list): Remove `const'
34732 qualifier from `name'.
34733 (struct grub_prio_list): Likewise.
34734
34735 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34736
34737 * normal/auth.c: Include `<grub/time.h>'.
34738 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34739
34740 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34741
34742 * normal/auth.c (punishment_delay): New variable.
34743 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34744 (grub_auth_check_authentication): Punish failed login attempts with
34745 an incremental (2^N) delay.
34746
34747 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34748
34749 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34750 path with $(srcdir).
34751
34752 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34753
34754 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34755
34756 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34757
34758 * util/i386/coreboot/grub-mkrescue.in: New file.
34759 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34760 variables.
34761
34762 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34763 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34764 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34765 requirements.
34766 * util/mkisofs/defaults.h: New file.
34767 * util/mkisofs/eltorito.c: Likewise.
34768 * util/mkisofs/exclude.h: Likewise.
34769 * util/mkisofs/fnmatch.c: Likewise.
34770 * util/mkisofs/getopt.c: Likewise.
34771 * util/mkisofs/getopt1.c: Likewise.
34772 * util/mkisofs/hash.c: Likewise.
34773 * util/mkisofs/include/fctldefs.h: Likewise.
34774 * util/mkisofs/include/mconfig.h: Likewise.
34775 * util/mkisofs/include/prototyp.h: Likewise.
34776 * util/mkisofs/include/statdefs.h: Likewise.
34777 * util/mkisofs/iso9660.h: Likewise.
34778 * util/mkisofs/joliet.c: Likewise.
34779 * util/mkisofs/match.c: Likewise.
34780 * util/mkisofs/match.h: Likewise.
34781 * util/mkisofs/mkisofs.c: Likewise.
34782 * util/mkisofs/mkisofs.h: Likewise.
34783 * util/mkisofs/multi.c: Likewise.
34784 * util/mkisofs/name.c: Likewise.
34785 * util/mkisofs/rock.c: Likewise.
34786 * util/mkisofs/tree.c: Likewise.
34787 * util/mkisofs/write.c: Likewise.
34788
34789 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34790
34791 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34792 being insecure.
34793
34794 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34795
34796 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34797 `grub-mkimage' (and use $0 when possible).
34798
34799 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34800
34801 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34802 error message for excessively large memory map.
34803
34804 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34805
34806 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34807 executable bit.
34808
34809 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34810
34811 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34812 message for coreboot users.
34813
34814 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34815
34816 Fix build with GNU gold.
34817
34818 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34819 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34820 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34821 link addresses.
34822 * aclocal.m4: Likewise.
34823
34824 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34825
34826 * configure.ac (AC_PREREQ): Bump to 2.59d.
34827 * INSTALL: Make it more clear when Autoconf and Ruby are
34828 needed and when to run `./autogen.sh'.
34829
34830 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34831
34832 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34833 OSes.
34834
34835 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34836
34837 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34838
34839 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34840
34841 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34842 giving it to GNU Mach.
34843
34844 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34845
34846 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34847 GNU partition number to get internal GRUB partition number.
34848
34849 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34850
34851 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34852 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34853
34854 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34855
34856 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34857 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34858 case.
34859
34860 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34861
34862 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34863
34864 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34865
34866 Fix build problem.
34867
34868 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34869 `-isystem=$(srcdir)/include'.
34870
34871 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34872
34873 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34874 checked (grub-install doesn't currently rely on it).
34875
34876 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34877
34878 Revert SVN r2660.
34879
34880 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34881 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34882 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34883 * conf/i386-ieee1275.rmk: Likewise.
34884 * conf/i386-pc.rmk: Likewise.
34885 * conf/powerpc-ieee1275.rmk: Likewise.
34886 * conf/sparc64-ieee1275.rmk: Likewise.
34887 * conf/x86_64-efi.rmk: Likewise.
34888
34889 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34890
34891 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34892
34893 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34894
34895 * include/grub/misc.h: Stop checking for APPLE_CC.
34896
34897 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34898
34899 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34900 doesn't cause an infinite call loop.
34901
34902 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34903
34904 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34905 strings.
34906
34907 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34908
34909 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34910 variable.
34911 * Makefile.in: Likewise.
34912
34913 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34914
34915 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34916
34917 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34918
34919 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34920
34921 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34922
34923 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34924
34925 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34926
34927 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34928 from here ...
34929 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34930
34931 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34932
34933 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34934 in $(MAKEINFO) invocation. This makes it clear in output that
34935 errors are being ignored.
34936
34937 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34938
34939 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34940 from here ...
34941 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34942 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34943 * conf/i386-ieee1275.rmk: Likewise.
34944 * conf/i386-pc.rmk: Likewise.
34945 * conf/powerpc-ieee1275.rmk: Likewise.
34946 * conf/sparc64-ieee1275.rmk: Likewise.
34947 * conf/x86_64-efi.rmk: Likewise.
34948
34949 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34950
34951 * util/grub-editenv.c (main): If only a command is given, use
34952 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34953 (usage): FILENAME is now optional and has a default.
34954
34955 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34956
34957 Improve grub-mkconfig performance when there are several menu
34958 entries on a single filesystem.
34959
34960 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34961 prepare_grub_to_access_device.
34962 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34963 * util/grub.d/30_os-prober.in: Likewise.
34964
34965 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34966
34967 * util/grub.d/10_freebsd.in: Remove.
34968 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34969 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34970
34971 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34972
34973 * docs/grub.cfg: Fix example usage of *BSD loaders.
34974
34975 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34976
34977 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34978 grub_util_error() call.
34979
34980 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34981
34982 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34983 `reserved_first_sector' member.
34984 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34985 `reserved_first_sector' to 1.
34986 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34987 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34988 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34989 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34990 filesystems which begin at first sector.
34991 (options): New option --skip-fs-probe.
34992 (main): Handle --skip-fs-probe and pass it to setup().
34993
34994 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34995
34996 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34997 (memset): Fix function prototype.
34998
34999 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35000 2009-10-25 Vasily Averin <vvs@parallels.com>
35001
35002 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35003 `dirent.direntlen == 0'.
35004
35005 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35006
35007 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35008 `cpio'.
35009 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35010
35011 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35012
35013 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35014 `__trampoline_setup' and `__ucmpdi2'.
35015 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35016 that libgcc provides.
35017
35018 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35019
35020 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35021 * include/grub/sparc64/libgcc.h (memset): Likewise.
35022 * include/grub/misc.h (memset, memcmp): New function prototypes.
35023
35024 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35025
35026 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35027 `cpio'.
35028 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35029
35030 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35031
35032 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35033 * docs/grub.cfg: Compensate for recent change in multiboot
35034 loader (since 2009-08-14 it won't pass filename to payload).
35035 * util/grub.d/10_hurd.in: Likewise.
35036
35037 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35038
35039 * config.guess: Update to latest version from config git
35040 repository.
35041 * config.sub: Likewise.
35042
35043 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35044
35045 Fix build on sparc64.
35046
35047 * configure.ac: Perform checks for libgcc symbols before
35048 adding `-nostdlib' to LDFLAGS.
35049
35050 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35051
35052 Let user specify OpenBSD root device.
35053
35054 * loader/i386/bsd.c (openbsd_root): New variable.
35055 (openbsd_opts): New option 'root'.
35056 (OPENBSD_ROOT_ARG): New macro.
35057 (grub_openbsd_boot): Use 'openbsd_root'.
35058 (grub_cmd_openbsd): Fill 'openbsd_root'.
35059
35060 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35061
35062 * NEWS: Misc adjustments.
35063
35064 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35065
35066 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35067
35068 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35069
35070 * configure.ac: Bump version to 1.97.
35071
35072 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35073
35074 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35075 -mno-3dnow on x86 architectures. Some toolchains enable these
35076 features by default, but they rely on registers that aren't enabled
35077 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35078
35079 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35080
35081 Make entry text a bit more readable.
35082
35083 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35084
35085 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35086
35087 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35088
35089 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35090
35091 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35092 operations.
35093
35094 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35095
35096 * configure.ac: Add missing dollar.
35097
35098 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35099
35100 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35101
35102 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35103 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35104 exports.
35105 * include/grub/sparc64/libgcc.h: Likewise. Use
35106 preprocessor conditionals.
35107
35108 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35109
35110 * conf/common.rmk (grub-dumpbios): Remove rule.
35111 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35112 * util/grub-dumpbios.in: Remove file.
35113
35114 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35115
35116 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35117 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35118
35119 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35120 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35121 users.
35122
35123 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35124 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35125 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35126 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35127 users.
35128
35129 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35130
35131 * term/tparm.c: Switch to GPLv3.
35132
35133 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35134
35135 * include/grub/i386/cpuid.h: Add header protection.
35136
35137 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35138
35139 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35140
35141 * include/grub/i386/cpuid.h: New file.
35142 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35143 (has_longmode): Rename to ...
35144 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35145 `static' attribute.
35146 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35147 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35148 on a CPU that doesn't implement AMD64 instruction set.
35149
35150 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35151
35152 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35153 that version.texi is rebuilt on version number changes.
35154
35155 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35156
35157 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35158 Fixes bug #27602.
35159
35160 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35161
35162 * util/i386/pc/grub-install.in: Source
35163 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35164 that the --grub-probe option will work.
35165 * util/sparc64/ieee1275/grub-install.in: Likewise.
35166
35167 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35168
35169 * configure.ac: Bump version to 1.97~beta4.
35170
35171 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35172
35173 Resync grub-mkdevicemap in x86_64-efi.
35174
35175 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35176 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35177 `util/devicemap.c'.
35178
35179 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35180
35181 * util/grub-editenv.c (create_envblk_file): Write new block with a
35182 .new suffix and then rename it into place, to ensure atomic
35183 creation.
35184
35185 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35186
35187 Do not automatically install headers.
35188
35189 * Makefile.in (include_DATA): Remove. Update all users.
35190
35191 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35192
35193 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35194 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35195
35196 * util/osdetect.lua: Remove.
35197 * script/lua/lauxlib.c: Likewise.
35198 * script/lua/ldebug.c: Likewise.
35199 * script/lua/grub_main.c: Likewise.
35200 * script/lua/lauxlib.h: Likewise.
35201 * script/lua/ldebug.h: Likewise.
35202 * script/lua/ltablib.c: Likewise.
35203 * script/lua/liolib.c: Likewise.
35204 * script/lua/lstrlib.c: Likewise.
35205 * script/lua/lualib.h: Likewise.
35206 * script/lua/ldo.c: Likewise.
35207 * script/lua/ldump.c: Likewise.
35208 * script/lua/ldo.h: Likewise.
35209 * script/lua/loslib.c: Likewise.
35210 * script/lua/lundump.c: Likewise.
35211 * script/lua/grub_lib.c: Likewise.
35212 * script/lua/ldblib.c: Likewise.
35213 * script/lua/lundump.h: Likewise.
35214 * script/lua/lmem.c: Likewise.
35215 * script/lua/grub_lib.h: Likewise.
35216 * script/lua/lmathlib.c: Likewise.
35217 * script/lua/lstate.c: Likewise.
35218 * script/lua/ltm.c: Likewise.
35219 * script/lua/lvm.c: Likewise.
35220 * script/lua/lmem.h: Likewise.
35221 * script/lua/lstate.h: Likewise.
35222 * script/lua/ltm.h: Likewise.
35223 * script/lua/ltable.c: Likewise.
35224 * script/lua/lvm.h: Likewise.
35225 * script/lua/llex.c: Likewise.
35226 * script/lua/lgc.c: Likewise.
35227 * script/lua/grub_lua.h: Likewise.
35228 * script/lua/loadlib.c: Likewise.
35229 * script/lua/lfunc.c: Likewise.
35230 * script/lua/lopcodes.c: Likewise.
35231 * script/lua/lparser.c: Likewise.
35232 * script/lua/ltable.h: Likewise.
35233 * script/lua/llex.h: Likewise.
35234 * script/lua/lgc.h: Likewise.
35235 * script/lua/lfunc.h: Likewise.
35236 * script/lua/lbaselib.c: Likewise.
35237 * script/lua/lopcodes.h: Likewise.
35238 * script/lua/lparser.h: Likewise.
35239 * script/lua/lzio.c: Likewise.
35240 * script/lua/linit.c: Likewise.
35241 * script/lua/lobject.c: Likewise.
35242 * script/lua/llimits.h: Likewise.
35243 * script/lua/lstring.c: Likewise.
35244 * script/lua/lzio.h: Likewise.
35245 * script/lua/lapi.c: Likewise.
35246 * script/lua/lcode.c: Likewise.
35247 * script/lua/lua.h: Likewise.
35248 * script/lua/lobject.h: Likewise.
35249 * script/lua/lstring.h: Likewise.
35250 * script/lua/lapi.h: Likewise.
35251 * script/lua/lcode.h: Likewise.
35252 * script/lua/luaconf.h: Likewise.
35253
35254 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35255
35256 * docs/grub.texi (Command-line and menu entry commands): Document
35257 date and echo commands.
35258
35259 2009-09-24 Pavel Roskin <proski@gnu.org>
35260
35261 * include/grub/kernel.h (struct grub_module_header): Remove
35262 `grub_module_header_types'. Make `type' unsigned. Make `size'
35263 32-bit on all platforms.
35264 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35265 8-bit field. Use grub_host_to_target32() for `size'.
35266 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35267 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35268 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35269
35270 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35271
35272 Fix "lost keypress" bug in at_keyboard.
35273
35274 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35275 Checks for readyness of input buffer (without flushing it).
35276 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35277 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35278
35279 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35280
35281 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35282 size check within GRUB_MACHINE_PCBIOS section.
35283
35284 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35285
35286 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35287 return value.
35288 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35289 KEYBOARD_ISREADY check.
35290 (grub_at_keyboard_checkkey): Rename to ...
35291 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35292 Remove gratuitous cast.
35293
35294 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35295
35296 * configure.ac: Call AC_PROG_MKDIR_P.
35297 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35298 version.texi in $(builddir) rather than $(srcdir).
35299 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35300 to makeinfo's @include search path.
35301
35302 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35303
35304 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35305
35306 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35307
35308 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35309 for `*.dpkg-new'.
35310
35311 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35312
35313 Build info documentation. Some code borrowed from Automake.
35314
35315 * configure.ac: Check for makeinfo.
35316 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35317 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35318 docs/version.texi.
35319 (MOSTLYCLEANFILES): Add vti.tmp.
35320 (docs/version.texi, docs/stamp-vti): Update automatically.
35321 (docs/grub.info): Build info documentation. Use --force and ignore
35322 errors for now.
35323 (all-local): Add $(INFOS).
35324 (install-local): Install info files.
35325 (uninstall): Uninstall info files.
35326 * docs/version.texi: Remove from revision control. This file is
35327 automatically generated on build now.
35328 * gendistlist.sh: Add `*.info'.
35329
35330 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35331
35332 * kern/term.c: Fix indentation.
35333
35334 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35335
35336 * util/hostdisk.c: Fix a comment.
35337
35338 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35339
35340 Fix regression introduced in r2539.
35341
35342 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35343 to 0xA1.
35344
35345 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35346
35347 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35348 os-prober. Under normal operation, it does not print anything to
35349 stderr; if it does, we need to debug it, and throwing away stderr
35350 makes that excessively difficult.
35351
35352 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35353
35354 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35355
35356 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35357
35358 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35359 AC_LANG_PROGRAM from autoconf.
35360 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35361 prototypes (fixes warning).
35362
35363 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35364 `--disable-werror' was used.
35365
35366 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35367
35368 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35369 uninitialized `lastaddr'.
35370
35371 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35372
35373 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35374
35375 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35376
35377 * commands/test.c (get_fileinfo): Return immediately if
35378 grub_fs_probe fails.
35379
35380 2009-09-14 José Martínez <xosemp@gmail.com>
35381
35382 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35383
35384 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35385
35386 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35387 output.
35388
35389 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35390
35391 * configure.ac: Remove --enable-grub-pe2elf. Only build
35392 grub-pe2elf when needed by the build system itself.
35393 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35394
35395 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35396
35397 * configure.ac: Bump version to 1.97~beta3.
35398 * docs/version.texi: Likewise.
35399
35400 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35401
35402 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35403 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35404 from here ...
35405 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35406 (grub_linux_setup_video): ... to here (with some adjustments).
35407
35408 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35409
35410 Fix memory corruption issue (spotted by Colin Watson).
35411
35412 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35413 causing returned size to be stored in an incorrect memory location.
35414 Fix use of uninitialized value when storing the returned size.
35415
35416 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35417
35418 Change clean rules to properly remove files
35419
35420 * genmk.rb: add new clean rules
35421 * Makefile.in (clean): add the new targets
35422 (mostlyclean): likewise
35423
35424 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35425
35426 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35427 to grub_uint64_t.
35428 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35429 non-resident files.
35430
35431 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35432
35433 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35434 part of bug #27349.
35435
35436 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35437
35438 * util/grub-mkconfig.in: Make the created config mode 400 and
35439 print a warning if it fails.
35440
35441 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35442
35443 * util/grub.d/40_custom.in: Ask user to type custom entries below
35444 comment, rather than below 'exec tail' line.
35445
35446 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35447
35448 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35449 visible in grub.cfg.
35450
35451 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35452
35453 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35454 file.
35455
35456 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35457
35458 * docs/grub.cfg: Add an example menu entry for memtest86+.
35459
35460 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35461
35462 * config.guess: Update to latest version from config git.
35463 * config.sub: Likewise.
35464
35465 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35466
35467 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35468 unknown-command case. Fixes bug #27320.
35469
35470 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35471
35472 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35473 `help' if the command exists.
35474
35475 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35476
35477 * INSTALL: Require GCC 4.1.3 or later.
35478
35479 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35480
35481 * Makefile.in (RMKFILES): add i386-qemu.rmk
35482 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35483 $(srcdir)/stamp-h.in
35484
35485 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35486
35487 * util/grub-probe.c (probe): Comment out buggy codepath, which
35488 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35489 should be re-enabled after 1.97.
35490
35491 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35492
35493 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35494 find searches for.
35495
35496 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35497
35498 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35499 unnecessary calls to grub_error.
35500
35501 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35502
35503 * NEWS: Mention `keystatus' and Unicode fonts.
35504
35505 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35506
35507 * configure.ac: Bump version to 1.97~beta2.
35508 * docs/version.texi: Likewise.
35509
35510 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35511
35512 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35513 containing unwind information in some cases where it previously did
35514 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35515 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35516 discussion.
35517
35518 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35519
35520 Embedding loadenv module into grub-emu
35521
35522 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35523 commands/loadenv.c
35524 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35525 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35526 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35528 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35529 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35530
35531 2009-09-03 Magnus Granberg <zorry@ume.nu>
35532
35533 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35534 include -fPIE in the default specs.
35535 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35536 to TARGET_CFLAGS.
35537
35538 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35539
35540 * INSTALL: Note that GNU Bison 2.3 or later is required.
35541
35542 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35543
35544 * kern/i386/pc/startup.S: Fix typo.
35545
35546 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35547
35548 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35549 according to GCS.
35550
35551 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35552
35553 * docs/grub.texi (Naming convention): Describe one-based partition
35554 numbering.
35555 (Device syntax): Likewise.
35556 (File name syntax): Likewise.
35557 (Block list syntax): Likewise.
35558 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35559 menu.lst.
35560 (File name syntax): Likewise.
35561 (Command-line and menu entry commands): Document acpi, blocklist,
35562 crc, export, insmod, keystatus, ls, set, and unset commands.
35563
35564 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35565
35566 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35567 to avoid implying that only one of --shift, --ctrl, or --alt may be
35568 used.
35569
35570 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35571
35572 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35573 rather than comparing against S_IFREG, which will almost never work.
35574
35575 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35576
35577 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35578 (write_blocklists): Likewise.
35579
35580 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35581
35582 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35583 argument to grub_printf.
35584
35585 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35586
35587 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35588 non GNU test.
35589
35590 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35591
35592 * kern/file.c (grub_file_read): Spelling fix
35593
35594 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35595
35596 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35597 loading of headers in some cases.
35598
35599 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35600
35601 * configure.ac: Bump version to 1.97~beta1.
35602 * docs/version.texi: Likewise.
35603
35604 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35605
35606 * include/grub/i386/xnu.h: Add license header.
35607 include grub/err.h explicitly.
35608
35609 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35610
35611 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35612 to `ufs' in the vfs.root.mountfrom kernel parameter.
35613
35614 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35615
35616 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35617
35618 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35619 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35620
35621 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35622 `ARRAY_SIZE' macro.
35623
35624 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35625
35626 * kern/file.c (grub_file_read): Check offset.
35627 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35628 * fs/jfs.c (grub_jfs_read_file): Likewise.
35629 * fs/ntfs.c (grub_ntfs_read): Likewise.
35630 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35631 * fs/minix.c (grub_minix_read_file): Correct offset check.
35632 * fs/ufs.c (grub_ufs_read_file): Likewise.
35633
35634 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35635
35636 * term/i386/pc/console.c (bios_data_area): Cast
35637 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35638
35639 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35640
35641 1-bit optimised blitters.
35642
35643 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35644 prototype.
35645 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35646 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35647 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35648 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35649 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35650 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35651 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35652 function.
35653 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35654 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35655 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35656 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35657 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35658 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35659 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35660 when possible.
35661 * video/video.c (grub_video_get_blit_format): Return
35662 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35663
35664 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35665
35666 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35667 the first argument to grub_printf.
35668
35669 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35670 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35671
35672 Add `getkeystatus' terminal method. Add a new `keystatus' command
35673 to query it.
35674
35675 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35676 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35677 modifier key bitmasks.
35678 (struct grub_term_input): Add `getkeystatus' member.
35679 (grub_getkeystatus): Add prototype.
35680 * kern/term.c (grub_getkeystatus): New function.
35681
35682 * include/grub/i386/pc/memory.h
35683 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35684 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35685 Data Area layout.
35686 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35687 (grub_console_term_input): Set `getkeystatus' member.
35688 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35689 constants.
35690 (grub_usb_keyboard_getreport): Likewise.
35691 (grub_usb_keyboard_checkkey): Likewise.
35692 (grub_usb_keyboard_getkeystatus): New function.
35693 (grub_usb_keyboard_term): Set `getkeystatus' member.
35694
35695 * commands/keystatus.c: New file.
35696 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35697 (keystatus_mod_SOURCES): New variable.
35698 (keystatus_mod_CFLAGS): Likewise.
35699 (keystatus_mod_LDFLAGS): Likewise.
35700 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35701 commands/keystatus.c.
35702 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35703 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35704 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35706 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35707 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35708
35709 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35710
35711 Split befs.mod and afs.mod into *_be.mod and *.mod
35712
35713 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35714 (grub_fstest_SOURCES): Likewise.
35715 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35716 (afs_be_mod_SOURCES): New variable.
35717 (afs_be_mod_CFLAGS): Likewise.
35718 (afs_be_mod_LDFLAGS): Likewise.
35719 (befs_be_mod_SOURCES): Likewise.
35720 (befs_be_mod_CFLAGS): Likewise.
35721 (befs_be_mod_LDFLAGS): Likewise.
35722 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35723 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35724 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35725 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35726 (grub_emu_SOURCES): Likewise.
35727 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35728 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35729 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35730 * fs/afs_be.c: New file.
35731 * fs/befs_be.c: New file.
35732 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35733 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35734 (U16): Replaced with ...
35735 (grub_afs_to_cpu16): ...this. All users updated.
35736 (U32): Replaced with ...
35737 (grub_afs_to_cpu32): ...this. All users updated.
35738 (U64): Replaced with ...
35739 (grub_afs_to_cpu64): ...this. All users updated.
35740 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35741 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35742 (grub_afs_validate_sblock): Check only one endianness.
35743 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35744 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35745 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35746 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35747 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35748 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35749 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35750 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35751
35752 2009-08-26 Bean <bean123ch@gmail.com>
35753
35754 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35755 64-bit number.
35756 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35757 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35758 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35759
35760 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35761
35762 NetBSD memory map support.
35763
35764 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35765 (grub_netbsd_btinfo_mmap_header): New structure.
35766 (grub_netbsd_btinfo_mmap_entry): Likewise.
35767 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35768
35769 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35770
35771 Enable bsd.mod on coreboot.
35772
35773 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35774 (bsd_mod_SOURCES): New variable.
35775 (bsd_mod_CFLAGS): Likewise.
35776 (bsd_mod_LDFLAGS): Likewise.
35777 (bsd_mod_ASFLAGS): Likewise.
35778 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35779 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35780
35781 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35782
35783 Cleanup NetBSD root support.
35784
35785 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35786 grub_bsd_get_device.
35787 Fix typo.
35788
35789 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35790
35791 * util/grub.d/00_header.in: Move check for the video backend of
35792 gfxterm from here ...
35793 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35794 a suitable video backend.
35795
35796 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35797
35798 Fix breakage in grub-setup.
35799
35800 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35801 "msdos_partition_map".
35802
35803 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35804
35805 Fix breakage in normal/auth.c.
35806
35807 * normal/auth.c (grub_iswordseparator): New function.
35808
35809 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35810
35811 Authentication support.
35812
35813 * commands/password.c: New file.
35814 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35815 (password_mod_SOURCES): New variable.
35816 (password_mod_CFLAGS): Likewise.
35817 (password_mod_LDFLAGS): Likewise.
35818 (normal_mod_SOURCES): Add normal/auth.c.
35819 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35820 normal/auth.c.
35821 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35822 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35823 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35825 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35826 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35827 * include/grub/auth.h: New file.
35828 * include/grub/err.h (grub_err_t): New enum value
35829 GRUB_ERR_ACCESS_DENIED.
35830 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35831 'users'.
35832 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35833 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35834 users updated.
35835 * normal/auth.c: New file.
35836 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35837 (grub_cmdline_run): Don't allow to go to command line without
35838 authentication.
35839 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35840 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35841 menuentry without superuser rights.
35842 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35843 user isn't a superuser.
35844
35845 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35846
35847 Save space by inlining misc.c functions.
35848
35849 * kern/misc.c (grub_iswordseparator): Made static.
35850 * kern/misc.c (grub_strcat): Moved from here ...
35851 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35852 * kern/misc.c (grub_strncat): Moved from here ...
35853 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35854 * kern/misc.c (grub_strcasecmp): Moved from here ...
35855 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35856 * kern/misc.c (grub_strncasecmp): Moved from here ...
35857 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35858 * kern/misc.c (grub_isalpha): Moved from here ...
35859 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35860 * kern/misc.c (grub_isdigit): Moved from here ...
35861 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35862 * kern/misc.c (grub_isgraph): Moved from here ...
35863 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35864 * kern/misc.c (grub_tolower): Moved from here ...
35865 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35866
35867 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35868
35869 * script/sh/function.c (grub_script_function_find): Cut error message
35870 not to flood terminal.
35871 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35872 limit.
35873 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35874
35875 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35876
35877 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35878 `report' grub_uint8_t *.
35879 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35880 Use a 50-millisecond timeout rather than just repeating
35881 grub_usb_keyboard_getreport 50 times.
35882 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35883
35884 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35885
35886 Rename *_partition_map to part_*
35887
35888 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35889 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35890 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35891 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35892 All users updated.
35893 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35894 All users updated.
35895 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35896 * util/grub-probe.c (probe_partmap): Don't transform partition name
35897 to get module name.
35898
35899 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35900
35901 Fix OpenBSD and NetBSD support.
35902
35903 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35904 memory address conflict.
35905 (OPENBSD_MMAP_ACPI): New definition.
35906 (OPENBSD_MMAP_NVS): Likewise.
35907 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35908 and OPENBSD_MMAP_NVS.
35909 Add memory map terminator
35910 Explicit cast when calling grub_unix_real_boot.
35911 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35912
35913 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35914
35915 Let user specify NetBSD root device.
35916
35917 * loader/i386/bsd.c (netbsd_root): New variable.
35918 (netbsd_opts): New option 'root'.
35919 (NETBSD_ROOT_ARG): New macro.
35920 (grub_netbsd_boot): Use 'netbsd_root'.
35921 (grub_bsd_unload): Free 'netbsd_root'.
35922 (grub_cmd_netbsd): Fill 'netbsd_root'.
35923
35924 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35925
35926 Support for 64-bit NetBSD.
35927
35928 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35929 point when booting non-FreeBSD.
35930
35931 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35932
35933 Support --no-smp and --no-acpi for NetBSD.
35934
35935 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35936 (NETBSD_AB_NOACPI): Likewise.
35937 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35938 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35939
35940 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35941
35942 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35943 errors.
35944 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35945 errors. Call grub_error when needed.
35946
35947 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35948
35949 * commands/search.c (search_fs): Try searching without autoload first.
35950 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35951 filesystem module explicitly for faster booting.
35952
35953 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35954
35955 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35956
35957 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35958
35959 * util/grub.d/30_os-prober.in: Disable os-prober if
35960 `GRUB_DISABLE_OS_PROBER' was set to true.
35961
35962 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35963
35964 * partmap/pc.c: Rename to ...
35965 * partmap/msdos.c: ... this. Update all users.
35966 (grub_pc_partition_map): Rename to ...
35967 (grub_msdos_partition_map): ... this. Update all users.
35968
35969 * parttool/pcpart.c: Rename to ...
35970 * parttool/msdospart.c: ... this. Update all users.
35971
35972 * include/grub/pc_partition.h: Rename to ...
35973 * include/grub/msdos_partition.h: ... this. Update all users.
35974 (grub_pc_partition_bsd_entry): Rename to ...
35975 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35976 (grub_pc_partition_disk_label): Rename to ...
35977 (grub_msdos_partition_disk_label): ... this. Update all users.
35978 (grub_pc_partition_entry): Rename to ...
35979 (grub_msdos_partition_entry): ... this. Update all users.
35980 (grub_pc_partition_mbr): Rename to ...
35981 (grub_msdos_partition_mbr): ... this. Update all users.
35982 (grub_pc_partition): Rename to ...
35983 (grub_msdos_partition): ... this. Update all users.
35984 (grub_pc_partition_is_empty): Rename to ...
35985 (grub_msdos_partition_is_empty): ... this. Update all users.
35986 (grub_pc_partition_is_extended): Rename to ...
35987 (grub_msdos_partition_is_extended): ... this. Update all users.
35988 (grub_pc_partition_is_bsd): Rename to ...
35989 (grub_msdos_partition_is_bsd): ... this. Update all users.
35990
35991 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35992 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35993 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35994 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35995 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35996 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35997 (gpt_mod_LDFLAGS): Rename to ...
35998 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35999 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36000 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36001 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36002 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36003 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36004 (part_gpt_mod_LDFLAGS): ... this.
36005 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36006 `pcpart.mod' to `msdospart.mod'.
36007 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36008 to ...
36009 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36010 (msdospart_mod_LDFLAGS): ... this.
36011
36012 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36013
36014 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36015 (openbsd_opts): Likewise.
36016 (netbsd_opts): Likewise.
36017 (freebsd_flags): Added 0 terminator.
36018 (openbsd_flags): Likewise.
36019 (netbsd_flags): Likewise.
36020 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36021 (grub_cmd_freebsd): Transformed into extended command.
36022 (grub_cmd_openbsd): Likewise.
36023 (grub_cmd_netbsd): Likewise.
36024 (cmd_freebsd): Changed type to grub_extcmd_t.
36025 (cmd_openbsd): Likewise.
36026 (cmd_netbsd): Likewise.
36027 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36028 grub_cmd_openbsd as extended commands.
36029 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36030 cmd_netbsd and cmd_openbsd
36031
36032 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36033
36034 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36035
36036 2009-08-21 Pavel Roskin <proski@gnu.org>
36037
36038 * Makefile.in (install-local): When checking if a file is in the
36039 build directory, use "test -e" to detect symlinks.
36040
36041 * Makefile.in (install-local): Remove all files in
36042 $(DESTDIR)$(pkglibdir) before installing new files there.
36043
36044 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36045
36046 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36047 grub-mkelfimage.
36048
36049 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36050
36051 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36052 explicitly specified by the user.
36053
36054 2009-08-18 Pavel Roskin <proski@gnu.org>
36055
36056 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36057 grub_uint8_t pointer for data.
36058 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36059 Likewise.
36060 * video/fb/fbutil.c: Remove unnecessary casts.
36061
36062 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36063
36064 VBE cleanup.
36065
36066 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36067 (grub_vbe_set_video_mode): Save active mode info
36068 only after setting the mode.
36069 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36070 second argument.
36071
36072 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36073
36074 Rename variables for clarity.
36075
36076 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36077 (active_vbe_mode_info): ... this. All users updated.
36078 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36079 All users updated.
36080 (initial_mode): Rename to ...
36081 (initial_vbe_mode): ... this. All users updated.
36082 (mode_in_use): Rename to ..
36083 (vbe_mode_in_use): ... this. All users updated.
36084 (mode_list): Rename to ..
36085 (vbe_mode_list): ... this. All users updated.
36086 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36087 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36088 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36089 'mode_list_size' to 'vbe_mode_list_size'.
36090 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36091 'best_mode_info' to 'best_vbe_mode_info' and
36092 'best_mode' to 'best_vbe_mode'
36093
36094 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36095
36096 Remove duplicate grub_video_fb_get_video_ptr.
36097
36098 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36099 (grub_video_fb_get_video_ptr): ... this.
36100 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36101 * video/fb/fbutil.c: Add comment about addressing.
36102 (get_data_ptr): Rename to ...
36103 (grub_video_fb_get_video_ptr): ... this. All users updated.
36104 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36105
36106 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36107
36108 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36109 grub_dprintf() that was just added.
36110
36111 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36112
36113 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36114 (DEFAULT_VIDEO_MODE): Remove macros.
36115 (grub_linux_boot): Remove assumption that Linux has FB support,
36116 and use "text" as default video mode.
36117
36118 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36119
36120 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36121 grub_dprintf.
36122 * fs/fat.c (grub_fat_read_data): Likewise.
36123
36124 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36125
36126 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36127 payload.
36128 (grub_module): Likewise.
36129
36130 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36131
36132 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36133 mbi->cmdline but free playground.
36134
36135 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36136
36137 Handle group offset on UFS1.
36138
36139 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36140 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36141
36142 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36143
36144 Split ufs.mod into ufs1.mod and ufs2.mod.
36145
36146 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36147 (grub_fstest_SOURCES): Likewise.
36148 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36149 (ufs_mod_SOURCES): Remove.
36150 (ufs_mod_CFLAGS): Likewise.
36151 (ufs_mod_LDFLAGS): Likewise.
36152 (ufs1_mod_SOURCES): New variable.
36153 (ufs1_mod_CFLAGS): Likewise.
36154 (ufs1_mod_LDFLAGS): Likewise.
36155 (ufs2_mod_SOURCES): New variable.
36156 (ufs2_mod_CFLAGS): Likewise.
36157 (ufs2_mod_LDFLAGS): Likewise.
36158 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36159 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36160 Likewise.
36161 (grub_emu_SOURCES): Likewise.
36162 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36163 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36164 (grub_setup_SOURCES): Likewise.
36165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36166 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36167 (grub_setup_SOURCES): Likewise.
36168 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36169 Likewise.
36170 * fs/ufs2.c: New file.
36171 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36172
36173 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36174
36175 Framebuffer split.
36176
36177 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36178 subsystem at the end.
36179 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36180 (video_fb_mod_SOURCES): New variable.
36181 (video_fb_mod_CFLAGS): Likewise.
36182 (video_fb_mod_LDFLAGS): Likewise.
36183 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36184 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36185 * video/i386/pc/vbeblit.c: Moved from here ...
36186 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36187 * video/i386/pc/vbefill.c: Moved from here ...
36188 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36189 * video/i386/pc/vbeutil.c: Moved from here ...
36190 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36191 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36192 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36193 * include/grub/i386/pc/vbefill.h: Moved from here ...
36194 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36195 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36196 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36197 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36198 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36199 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36200 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36201 (grub_video_adapter): Added 'get_info_and_fini'.
36202 (grub_video_get_info_and_fini): New prototype.
36203 (grub_video_set_mode): make modestring const char *.
36204 * loader/i386/linux.c (grub_linux_setup_video): Use
36205 grub_video_get_info_and_fini.
36206 (grub_linux_boot): Move modesetting just before booting.
36207 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36208 grub_video_get_info_and_fini.
36209 * video/i386/pc/vbe.c: Moved framebuffer part ...
36210 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36211 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36212 grub_video_fbstd_colors and grub_video_fb_set_palette.
36213 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36214 grub_video_fb_init.
36215 (grub_video_vbe_fini): Use grub_video_fb_fini.
36216 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36217 render_target and use grub_video_fb_set_active_render_target and
36218 grub_video_fb_set_palette.
36219 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36220 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36221 (grub_video_vbe_adapter): Use framebuffer.
36222 * video/video.c (grub_video_get_info_and_fini): New function.
36223 (grub_video_set_mode): Make modestring const char *.
36224 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36225 values are already initialised.
36226
36227 2009-08-14 Pavel Roskin <proski@gnu.org>
36228
36229 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36230 ABS and APPLE_CC.
36231 * boot/i386/pc/diskboot.S: Likewise.
36232 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36233 sectors allow compilation on MacOSX.
36234 * conf/i386-pc.rmk: Enable unconditional compilation of
36235 lnxboot.img.
36236
36237 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36238
36239 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36240 * util/grub.d/00_header.in: Enter interruptible sleep if
36241 GRUB_HIDDEN_TIMEOUT is set.
36242
36243 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36244
36245 * include/grub/symbol.h: Add the LOCAL macro.
36246 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36247 starting with "L_".
36248
36249 2009-08-13 Pavel Roskin <proski@gnu.org>
36250
36251 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36252 any modern compilers we support.
36253
36254 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36255 Use local labels starting with "L_" so that Apple assembler
36256 knows they are local.
36257
36258 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36259
36260 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36261 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36262 (bsd_kernel_types): ... this enum.
36263
36264 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36265 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36266 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36267
36268 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36269 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36270 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36271 messages.
36272
36273 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36274
36275 * util/grub-dumpdevtree: Moved from here ...
36276 * util/i386/efi/grub-dumpdevtree: ... to here.
36277 (hexify): New function. Converts a string to its hex version.
36278 Generate hex versions of "efi" and "device-properties" by calling
36279 hexify() on the ASCII strings rather than by hardcoding numbers.
36280
36281 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36282
36283 * fs/jfs.c: Update copyright year.
36284
36285 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36286
36287 * util/grub.d/00_header.in: Fix a comment.
36288 * util/grub.d/10_linux.in: Likewise.
36289 * util/grub.d/10_windows.in: Likewise.
36290 * util/grub.d/10_hurd.in: Likewise.
36291
36292 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36293
36294 * util/grub-mkconfig.in: Allow the user to specify the used font
36295 with GRUB_FONT.
36296
36297 2009-08-08 Pavel Roskin <proski@gnu.org>
36298
36299 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36300 available, xfs.mod needs it now.
36301
36302 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36303 the "g" modifier in sed when the intention is to strip something
36304 once. This fixes comparison of kernels with multiple dashes.
36305
36306 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36307 on it. Add missing space before closing bracket. Fix
36308 misleading formatting.
36309
36310 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36311
36312 * docs/grub.texi: Major overhaul. Remove all sections that are
36313 specific to GRUB Legacy, or mostly composed of Legacy-specific
36314 information.
36315
36316 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36317
36318 * docs/version.texi: New file. Provides version information for
36319 grub.texi.
36320
36321 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36322
36323 * docs/grub.texi: Update CVS information to SVN.
36324 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36325
36326 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36327
36328 * util/grub-mkconfig.in: Remove a wrong `fi'.
36329
36330 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36331
36332 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36333 (grub_jfs_uuid): New function.
36334 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36335
36336 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36337
36338 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36339 of it to ...
36340 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36341 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36342
36343 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36344
36345 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36346 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36347 Update all users.
36348
36349 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36350 not just "vmlinu[zx]".
36351 Moved from here ...
36352 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36353 all users.
36354
36355 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36356 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36357 all users.
36358
36359 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36360
36361 * util/grub.d/10_freebsd.in: Use an absolute device path for
36362 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36363
36364 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36365
36366 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36367 handling of multiple abstraction modules.
36368
36369 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36370
36371 Fix a bug resulting in black screen when loading Linux using a
36372 packed video mode.
36373
36374 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36375 function.
36376
36377 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36378 (grub_vbe_bios_getset_dac_palette_width): New function.
36379 (grub_vbe_bios_get_dac_palette_width)
36380 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36381 grub_vbe_bios_getset_dac_palette_width()).
36382
36383 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36384 check for return status.
36385 (grub_vbe_get_video_mode_info): When getting information for a packed
36386 mode (<= 8 bpp), obtain DAC palette width using
36387 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36388 {red,green,blue}_mark_size.
36389
36390 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36391
36392 * commands/search.c (options): Fix help output to match actual code.
36393
36394 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36395
36396 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36397 of homegrown code.
36398
36399 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36400
36401 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36402 on XFS or ReiserFS.
36403
36404 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36405
36406 Support Apple partition map with sector size different from 512 bytes.
36407
36408 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36409 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36410 and 'apart.partmap_size'.
36411
36412 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36413 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36414
36415 Fix cpuid command.
36416
36417 * commands/i386/cpuid.c (options): New variable.
36418 (grub_cmd_cpuid): Return real error.
36419 (GRUB_MOD_INIT(cpuid)): Declare options.
36420
36421 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36422
36423 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36424 valid.
36425
36426 2009-07-31 Bean <bean123ch@gmail.com>
36427
36428 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36429 log2_inode.
36430 (grub_fshelp_node): Move inode field to the end.
36431 (grub_xfs_data): Remove inode field.
36432 (grub_xfs_inode_block): Calculate inode size using sblock.
36433 (grub_xfs_inode_offset): Likewise.
36434 (grub_xfs_read_inode): Calculate inode size using sblock.
36435 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36436 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36437 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36438 to match inode size.
36439 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36440 not accessible when data is null.
36441 (grub_xfs_open): Likewise.
36442
36443 2009-07-31 Bean <bean123ch@gmail.com>
36444
36445 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36446 Don't change pv->disk if it's already set.
36447
36448 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36449 (grub_raid_register): ... here.
36450 (grub_raid_rescan): Removed.
36451
36452 * include/grub/raid.h (grub_raid_rescan): Removed.
36453
36454 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36455 (fstest): Replace grub_raid_rescan with module fini function followed
36456 by init function.
36457
36458 * util/grub-probe.c: Add include file <grub/raid.h>.
36459 (probe_raid_level): New function.
36460 (probe): Detect abstraction by walking the disk device, support two
36461 level of abstraction (LVM on RAID) when detecting partition map.
36462
36463 2009-07-31 Pavel Roskin <proski@gnu.org>
36464
36465 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36466 to grub_zalloc(), it was erroneous.
36467 Reported by Bean <bean123ch@gmail.com>
36468
36469 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36470
36471 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36472 embedding zone, not only the first one.
36473
36474 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36475
36476 * term/gfxterm.c (clear_char): New function.
36477 (grub_virtual_screen_setup): Use clear_char.
36478 (scroll_up): Likewise.
36479 (grub_virtual_screen_cls): Likewise.
36480
36481 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36482
36483 * util/deviceiter.c (get_acceleraid_disk_name): New static
36484 function.
36485 (grub_util_iterate_devices): Handle Accelraid devices.
36486 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36487
36488 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36489
36490 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36491 separator for the suggested gfxpayload string (';' collides with the
36492 parser and needs escaping).
36493
36494 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36495
36496 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36497 Clear direction flag before jumping to OS.
36498 (grub_multiboot2_real_boot): Likewise.
36499
36500 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36501
36502 * util/i386/pc/grub-install: Fix parsing of --disk-module
36503 option.
36504
36505 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36506
36507 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36508 when embedding.
36509
36510 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36511
36512 * util/grub-mkconfig.in (package_version): New variable.
36513 Use it do display the version.
36514
36515 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36516
36517 * kern/file.c (grub_file_open): Revert to previous check with
36518 grub_errno.
36519
36520 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36521
36522 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36523 from help line. It's out of sync with code.
36524
36525 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36526
36527 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36528 entries on failed boot.
36529
36530 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36531
36532 * kern/file.c (grub_file_open): Fix an error check.
36533
36534 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36535
36536 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36537 partition map couldn't be identified.
36538
36539 2009-07-23 Pavel Roskin <proski@gnu.org>
36540
36541 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36542 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36543 case of little endian words becomes just an optimization.
36544 Respect const modifier.
36545 (md5_final): Use code that doesn't depend on endianness.
36546
36547 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36548 to avoid loss of upper bits if align is unsigned and shorter
36549 than addr.
36550
36551 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36552
36553 UUID support for UFS
36554
36555 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36556 (grub_ufs_uuid): New function.
36557 (grub_ufs_fs): add .uuid
36558
36559 2009-07-21 Pavel Roskin <proski@gnu.org>
36560
36561 * kern/dl.c (grub_dl_check_header): Make static.
36562
36563 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36564
36565 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36566 add drivemap for Vista. It breaks Windows 7.
36567
36568 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36569
36570 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36571 128 bytes
36572
36573 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36574
36575 Add BFS support
36576
36577 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36578 (grub_fstest_SOURCES): Likewise.
36579 (pkglib_MODULES): Add befs.mod.
36580 (befs_mod_SOURCES): New variable.
36581 (befs_mod_CFLAGS): Likewise.
36582 (befs_mod_LDFLAGS): Likewise.
36583 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36584 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36585 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36586 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36587 (grub_setup_SOURCES): Likewise.
36588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36589 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36590 (grub_setup_SOURCES): Likewise.
36591 * fs/befs.c: New file.
36592 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36593 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36594 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36595 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36596 (B_KEY_INDEX_ALIGN): New declaration.
36597 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36598 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36599 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36600 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36601 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36602 (grub_afs_mount) [MODE_BFS]: Likewise.
36603 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36604 (grub_afs_fs): Use GRUB_AFS_FSNAME
36605 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36606 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36607 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36608 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36609
36610 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36611
36612 * util/getroot.c (find_root_device): Add support for MacOSX.
36613 * util/hostdisk.c: Likewise.
36614
36615 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36616
36617 * font/font.c (find_glyph): Check whether a font is present to avoid
36618 segmentation fault.
36619
36620 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36621
36622 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36623
36624 2009-07-20 Pavel Roskin <proski@gnu.org>
36625
36626 * configure.ac: Trim excessively wordy excuses.
36627
36628 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36629
36630 Add symlink, mtime and label support to AtheFS.
36631
36632 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36633 (grub_afs_iterate_dir): Handle symlinks.
36634 (grub_afs_open): Use grub_afs_read_symlink.
36635 (grub_afs_dir): Likewise.
36636 Pass mtime.
36637 (grub_afs_label): New function.
36638 (grub_afs_fs): Add grub_afs_label.
36639 (grub_afs_read_symlink): New function.
36640
36641 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36642
36643 Fix AtheFS support.
36644
36645 * fs/afs.c: Fix comments style.
36646 (grub_afs_blockrun): Declare as packed.
36647 (grub_afs_datastream): Likewise.
36648 (grub_afs_bnode): Likewise.
36649 (grub_afs_btree): Likewise.
36650 (grub_afs_sblock): Likewise.
36651 Declare `name' as char.
36652 (grub_afs_inode): Declare as packed.
36653 Change void *vnode to grub_uint32_t unused.
36654 (grub_afs_iterate_dir): Check that key_size is positive.
36655 (grub_afs_mount): Don't read superblock twice.
36656 (grub_afs_dir): Don't free node in case of error,
36657 grub_fshelp_find_file already handles this.
36658 (grub_afs_open): Likewise.
36659
36660 2009-07-19 Pavel Roskin <proski@gnu.org>
36661
36662 * Makefile.in: Remove LIBLZO and enable_lzo.
36663 * conf/i386-pc.rmk: Remove lzo support.
36664 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36665 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36666 support.
36667 * kern/i386/pc/lzo1x.S: Remove.
36668 * kern/i386/pc/startup.S: Remove lzo support.
36669 * util/i386/pc/grub-mkimage.c: Likewise.
36670
36671 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36672
36673 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36674 * fs/xfs.c (grub_xfs_dir): Likewise.
36675 * fs/afs.c (grub_afs_dir): Likewise.
36676 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36677 (grub_iso9660_open): Likewise.
36678 * fs/jfs.c (grub_jfs_open): Likewise.
36679 * fs/ext2.c (grub_ext2_dir): Likewise.
36680 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36681 * script/sh/lexer.c (grub_script_yylex): Likewise.
36682
36683 2009-07-16 Pavel Roskin <proski@gnu.org>
36684
36685 * configure.ac: Never add "-c" to CFLAGS.
36686
36687 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36688
36689 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36690 grub_cv_cc_efiemu should be used.
36691
36692 * configure.ac: Typo fixes.
36693
36694 * kern/mm.c (grub_zalloc): New function.
36695 (grub_debug_zalloc): Likewise.
36696 * include/grub/mm.h: Declare grub_zalloc() and
36697 grub_debug_zalloc().
36698 * util/misc.c (grub_zalloc): New function.
36699 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36700 instead of grub_malloc(), remove unneeded initializations.
36701 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36702 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36703 * commands/parttool.c (grub_cmd_parttool): Likewise.
36704 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36705 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36706 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36707 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36708 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36709 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36710 (grub_cmd_efiemu_pnvram): Likewise.
36711 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36712 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36713 (grub_iso9660_iterate_dir): Likewise.
36714 * fs/jfs.c (grub_jfs_opendir): Likewise.
36715 * fs/ntfs.c (list_file): Likewise.
36716 (grub_ntfs_mount): Likewise.
36717 * kern/disk.c (grub_disk_open): Likewise.
36718 * kern/dl.c (grub_dl_load_core): Likewise.
36719 * kern/elf.c (grub_elf_file): Likewise.
36720 * kern/env.c (grub_env_context_open): Likewise.
36721 (grub_env_set): Likewise.
36722 (grub_env_set_data_slot): Likewise.
36723 * kern/file.c (grub_file_open): Likewise.
36724 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36725 * loader/i386/multiboot.c (grub_module): Likewise.
36726 * loader/xnu.c (grub_xnu_create_key): Likewise.
36727 (grub_xnu_create_value): Likewise.
36728 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36729 (read_config_file): Likewise.
36730 * normal/menu_entry.c (make_screen): Likewise.
36731 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36732 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36733 * script/sh/script.c (grub_script_parse): Likewise.
36734 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36735 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36736 * video/readers/png.c (grub_png_output_byte): Likewise.
36737 (grub_video_reader_png): Likewise.
36738
36739 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36740
36741 Enable all targets that can be built by default
36742
36743 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36744 grub-mkfont and grub-fstest if they can be built
36745
36746 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36747
36748 Fix hang and segmentation fault in grub-emu-usb
36749
36750 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36751 * util/usb.c (grub_libusb_devices): likewise
36752 (grub_libusb_init): rename to ...
36753 (GRUB_MOD_INIT (libusb)):...this
36754 (grub_libusb_fini): rename to ..
36755 (GRUB_MOD_FINI (libusb)):...this
36756 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36757 * include/grub/disk.h (grub_raid_init): removed, it's useless
36758 (grub_raid_fini): likewise
36759 (grub_lvm_init): likewise
36760 (grub_lvm_fini): likewise
36761 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36762 by grub_init_all
36763
36764 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36765
36766 Fix libusb
36767
36768 * Makefile.in (LIBUSB): new macro
36769 * genmk.rb (Utility/print_tail): new method
36770 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36771 (top level): call util.print_tail at the end.
36772
36773 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36774
36775 Make FreeBSD accept zpool.cache
36776
36777 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36778 type is /boot/zfs/zpool.cache
36779
36780 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36781
36782 Fix 64-bit efiemu
36783
36784 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36785 correct wrong typedef
36786 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36787
36788 2009-07-15 Pavel Roskin <proski@gnu.org>
36789
36790 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36791 * kern/disk.c (struct grub_disk_cache): Likewise.
36792
36793 * commands/probe.c (options): Typo fix.
36794
36795 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36796 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36797 accordingly.
36798 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36799
36800 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36801 the end of "Error" to make the message more readable.
36802
36803 * boot/i386/pc/boot.S (kernel_segment): Remove.
36804 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36805 for destination.
36806
36807 * boot/i386/pc/boot.S (boot_version): Remove.
36808 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36809 Remove.
36810
36811 * include/grub/i386/pc/boot.h: Sort all offsets.
36812 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36813 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36814 * boot/i386/pc/boot.S: Assert location of every offset listed in
36815 include/grub/i386/pc/boot.h.
36816
36817 2009-07-13 Pavel Roskin <proski@gnu.org>
36818
36819 * include/grub/i386/coreboot/machine.h: Rename
36820 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36821 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36822 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36823
36824 * kern/dl.c: Force native word size to suppress warnings when
36825 compiling grub-emu.
36826
36827 * kern/device.c (grub_device_iterate): Change struct part_ent to
36828 hold the name, not a pointer to it. Use one grub_malloc() per
36829 partition, not two. Free partition_name if grub_malloc() fails.
36830 Set ents to NULL only before grub_partition_iterate() is called.
36831
36832 2009-07-11 Bean <bean123ch@gmail.com>
36833
36834 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36835 childname.
36836
36837 2009-07-10 Bean <bean123ch@gmail.com>
36838 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36839
36840 * kern/ieee1275/openfw.c (grub_children_iterate)
36841 (grub_devalias_iterate): Fix size evaluation for property or path
36842 strings, which was broken since r2132.
36843
36844 2009-07-07 Pavel Roskin <proski@gnu.org>
36845
36846 * commands/search.c (search_file): Merge into ...
36847 (search_fs): ... this. Accept search type as argument.
36848 (grub_cmd_search): Pass search type to search_fs().
36849
36850 * include/grub/util/console.h: New file.
36851 * util/console.c: Use it instead of grub/machine/console.h.
36852 * util/grub-emu.c: Likewise.
36853
36854 * lib/arg.c (find_long_option): Remove.
36855 (find_long): Add `len' argument, make `s' const char *.
36856 (grub_arg_parse): Parse long options in place, not in a
36857 temporary buffer.
36858
36859 2009-07-06 Pavel Roskin <proski@gnu.org>
36860
36861 * commands/search.c (search_fs): Fix potential NULL pointer
36862 dereference.
36863
36864 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36865 function pointer.
36866
36867 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36868
36869 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36870 comparison.
36871
36872 2009-07-05 Pavel Roskin <proski@gnu.org>
36873
36874 * include/grub/i386/linux.h (struct linux_kernel_params):
36875 Restore padding3, it's still needed.
36876
36877 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36878 FreeBSD.
36879 * util/osdetect.lua: Likewise.
36880
36881 2009-07-05 Bean <bean123ch@gmail.com>
36882
36883 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36884
36885 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36886 (grub_lua_getenv): Likewise.
36887 (grub_lua_setenv): Likewise.
36888 (save_errno): New function.
36889 (push_result): Likewise.
36890 (grub_lua_enum_device): Likewise.
36891 (grub_lua_enum_file): Likewise.
36892 (grub_lua_file_open): Likewise.
36893 (grub_lua_file_close): Likewise.
36894 (grub_lua_file_seek): Likewise.
36895 (grub_lua_file_read): Likewise.
36896 (grub_lua_file_getline): Likewise.
36897 (grub_lua_file_getsize): Likewise.
36898 (grub_lua_file_getpos): Likewise.
36899 (grub_lua_file_eof): Likewise.
36900 (grub_lua_file_exist): Likewise.
36901 (grub_lua_add_menu): Likewise.
36902
36903 * script/lua/grub_lua.h (isupper): New inline function.
36904 (islower): Likewise.
36905 (ispunct): Likewise.
36906 (isxdigit): Likewise.
36907 (strcspn): Change to normal function.
36908 (strpbkr): New function declaration.
36909 (memchr): Likewise.
36910
36911 * script/lua/grub_main.c (scan_str): New function.
36912 (strcspn): Likewise.
36913 (strpbrk): Likewise.
36914 (memchr): Likewise.
36915
36916 * script/lua/linit.c (lualibs): Enable the string library.
36917
36918 * util/osdetect.lua: New file.
36919
36920 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36921
36922 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36923 `capabilities' member.
36924
36925 2009-07-02 Pavel Roskin <proski@gnu.org>
36926
36927 * genparttoollist.sh: Add missing newline at the end.
36928
36929 2009-07-01 Pavel Roskin <proski@gnu.org>
36930
36931 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36932
36933 * util/hostdisk.c (open_device): Remove `const' from
36934 `sysctl_size', as sysctlbyname() can change it (in this case it
36935 doesn't actually happen).
36936
36937 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36938 using signed long int constants.
36939
36940 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36941 constant to avoid a warning on FreeBSD.
36942
36943 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36944 where it's needed.
36945
36946 * Makefile.in: Install include/grub/machine symlink.
36947
36948 * Makefile.in: When installing symlinks, use "cp -fR", which
36949 works on FreeBSD and MacOSX.
36950 From Yves Blusseau <cl7m42e02@sneakemail.com>
36951
36952 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36953 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36954
36955 * util/misc.c: Move grub_reboot() and grub_halt() ...
36956 * util/grub-emu.c: ... here. Make main_env static.
36957 * include/grub/util/misc.h: Remove main_env.
36958
36959 * kern/mm.c: Use correct format to print size_t.
36960
36961 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36962 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36963 * kern/powerpc/dl.c: Likewise.
36964 * kern/sparc64/dl.c: Likewise.
36965 * kern/x86_64/dl.c: Likewise.
36966
36967 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36968
36969 Fix grub-emu build on sparc64-ieee1275.
36970
36971 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36973
36974 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36975
36976 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36977 (grub_reboot, grub_halt): New functions.
36978
36979 * util/i386/pc/misc.c: Delete. Update all users.
36980 * util/sparc64/ieee1275/misc.c: Likewise.
36981 * util/powerpc/ieee1275/misc.c: Likewise.
36982
36983 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36984
36985 * conf/i386.rmk (setjmp_mod_SOURCES)
36986 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36987 * conf/common.rmk (setjmp_mod_SOURCES)
36988 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36989 to use $(target_cpu).
36990 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36991 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36992 * conf/powerpc-ieee1275.rmk: Likewise.
36993 * conf/sparc64-ieee1275.rmk: Likewise.
36994
36995 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36996 $(target_cpu) for kern/$(target_cpu)/dl.c.
36997 * conf/i386-efi.rmk: Likewise.
36998 * conf/i386-ieee1275.rmk: Likewise.
36999 * conf/x86_64-efi.rmk: Likewise.
37000 * conf/i386-coreboot.rmk: Likewise.
37001 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37002 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37003 kern/$(target_cpu)/cache.S.
37004 * conf/sparc64-ieee1275.rmk: Likewise.
37005
37006 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37007
37008 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37009 type to `grub_uint8_t', and adjust `padding9' accordingly.
37010
37011 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37012
37013 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37014
37015 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37016 assembly in final jump, using register constraints.
37017
37018 (grub_linux_boot): For text mode, initialize `have_vga' using
37019 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37020
37021 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37022 right before the final jump.
37023
37024 Set `video_mode' to 0x3.
37025
37026 Document initialization of `video_page', `video_mode' and
37027 `video_ega_bx'.
37028
37029 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37030
37031 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37032 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37033 and set GRUB_LINUX_FLAG_QUIET appropriately.
37034
37035 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37036
37037 Fix build on Debian / sparc.
37038
37039 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37040
37041 2009-06-28 Pavel Roskin <proski@gnu.org>
37042
37043 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37044 fix a warning.
37045
37046 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37047
37048 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37049
37050 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37051 `err'.
37052
37053 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37054
37055 Revert r2338.
37056
37057 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37058 file can't be opened. grub_file_open() is already supposed to set
37059 grub_errno / grub_errmsg appropriately.
37060 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37061
37062 2009-06-27 Pavel Roskin <proski@gnu.org>
37063 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37064
37065 * include/grub/dl.h: Include grub/elf.h.
37066 (struct grub_dl): Add symtab field.
37067 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37068 GRUB_MODULES_MACHINE_READONLY.
37069 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37070 of the header for read-only modules.
37071 (grub_dl_unload): Free mod->symtab for read-only modules.
37072 * kern/i386/dl.c: Use mod->symtab.
37073 * kern/powerpc/dl.c: Likewise.
37074 * kern/sparc64/dl.c: Likewise.
37075 * kern/x86_64/dl.c: Likewise.
37076
37077 * conf/i386-qemu.rmk: New file.
37078 * kern/i386/qemu/startup.S: Likewise.
37079 * kern/i386/qemu/mmap.c: Likewise.
37080 * boot/i386/qemu/boot.S: Likewise.
37081 * include/grub/i386/qemu/time.h: Likewise.
37082 * include/grub/i386/qemu/serial.h: Likewise.
37083 * include/grub/i386/qemu/kernel.h: Likewise.
37084 * include/grub/i386/qemu/console.h: Likewise.
37085 * include/grub/i386/qemu/boot.h: Likewise.
37086 * include/grub/i386/qemu/init.h: Likewise.
37087 * include/grub/i386/qemu/machine.h: Likewise.
37088 * include/grub/i386/qemu/loader.h: Likewise.
37089 * include/grub/i386/qemu/memory.h: Likewise.
37090
37091 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37092 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37093 [qemu] (pkglib_IMAGES): Add `boot.img'.
37094 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37095 [qemu] (boot_img_FORMAT): New variables.
37096 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37097 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37098 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37099 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37100 [qemu] (kernel_img_FORMAT): New variables.
37101
37102 * configure.ac: Recognise `i386-qemu'.
37103
37104 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37105 (for no compression).
37106 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37107 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37108 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37109 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37110 ifdefs).
37111
37112 2009-06-27 Pavel Roskin <proski@gnu.org>
37113
37114 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37115 read.
37116 * efiemu/prepare32.c: Likewise.
37117 * efiemu/prepare64.c: Likewise.
37118
37119 2009-06-26 Pavel Roskin <proski@gnu.org>
37120
37121 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37122 * include/grub/elf.h: Define symbols without "32" or "64" based
37123 on GRUB_TARGET_WORDSIZE.
37124 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37125 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37126 ELF definitions.
37127 * efiemu/loadcore64.c: Likewise.
37128 * loader/i386/bsd32.c: Likewise.
37129 * loader/i386/bsd64.c: Likewise.
37130 * kern/dl.c: Remove own ELF definitions.
37131 * util/i386/efi/grub-mkimage.c: Likewise.
37132
37133 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37134
37135 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37136 segment 0x0 unconditionally, because the reference generated by
37137 GAS is an absolute address.
37138
37139 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37140
37141 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37142 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37143
37144 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37145
37146 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37147 indexes. Check for -f explicitly.
37148 (search_file): Improve error message.
37149 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37150
37151 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37152
37153 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37154 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37155
37156 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37157
37158 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37159 * conf/i386-ieee1275.rmk: Likewise.
37160 * conf/i386-coreboot.rmk: Likewise.
37161
37162 * kern/i386/pc/startup.S (grub_stop): Remove function.
37163 * kern/i386/ieee1275/startup.S: Likewise.
37164 * kern/i386/coreboot/startup.S: Likewise.
37165 * kern/i386/misc.S (grub_stop): New function.
37166
37167 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37168
37169 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37170 * kern/i386/realmode.S (real_to_prot): ... to here.
37171
37172 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37173
37174 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37175 with `kernel.img'.
37176 (kernel_elf_SOURCES): Rename to ...
37177 (kernel_img_SOURCES): ... this.
37178 (kernel_elf_HEADERS): Rename to ...
37179 (kernel_img_HEADERS): ... this. Update all users.
37180 (kernel_elf_ASFLAGS): Rename to ...
37181 (kernel_img_ASFLAGS): ... this.
37182 (kernel_elf_CFLAGS): Rename to ...
37183 (kernel_img_CFLAGS): ... this.
37184 (kernel_elf_LDFLAGS): Rename to ...
37185 (kernel_img_LDFLAGS): ... this.
37186 * conf/i386-coreboot.rmk: Likewise.
37187 * conf/powerpc-ieee1275.rmk: Likewise.
37188
37189 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37190 with "kernel.img".
37191
37192 2009-06-21 Pavel Roskin <proski@gnu.org>
37193
37194 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37195 to match nested functions.
37196 * loader/sparc64/ieee1275/linux.c: Likewise.
37197
37198 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37199
37200 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37201
37202 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37203 all i386 platforms.
37204
37205 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37206
37207 Fix asm file handling on ELF, and remove workarounds.
37208
37209 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37210 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37211 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37212 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37213
37214 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37215
37216 Load BSD ELF modules
37217
37218 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37219 and loader/i386/bsd64.c
37220 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37221 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37222 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37223 (grub_freebsd_load_elfmodule32): New declaration
37224 (grub_freebsd_load_elfmoduleobj64): Likewise
37225 (grub_freebsd_load_elf_meta32): Likewise
37226 (grub_freebsd_load_elf_meta64): Likewise
37227 (grub_freebsd_add_meta): Likewise
37228 (grub_freebsd_add_meta_module): Likewise
37229 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37230 (grub_freebsd_add_meta_module): Likewise and move module-specific
37231 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37232 (grub_cmd_freebsd): Add elf-kernel specific parts
37233 based on grub_freebsd_add_meta_module
37234 (grub_cmd_freebsd_module): Add type parsing moved from
37235 grub_freebsd_add_meta_module
37236 (grub_cmd_freebsd_module_elf): New function
37237 (cmd_freebsd_module_elf): New variable
37238 (GRUB_MOD_INIT): Register freebsd_module_elf
37239 * loader/i386/bsd32.c: New file
37240 * loader/i386/bsd64.c: Likewise
37241 * loader/i386/bsdXX.c: Likewise
37242 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37243 (grub_elf64_load): Likewise
37244 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37245 All users updated
37246 (grub_elf64_load_hook_t): Likewise
37247
37248 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37249
37250 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37251 variable.
37252 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37253 don't write a menu entry for recovery mode.
37254
37255 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37256
37257 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37258 after it's no longer needed.
37259
37260 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37261
37262 * include/grub/i386/loader.h (grub_linux_prot_size)
37263 (grub_linux_tmp_addr, grub_linux_real_addr)
37264 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37265 GRUB_MACHINE_PCBIOS.
37266 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37267 common grub_util_info() call to ...
37268 (generate_image): ... here.
37269 Fix use of uninitialized memory, comparison of signed with
37270 unsigned integers and memory leak.
37271 Remove bogus module address message.
37272
37273 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37274
37275 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37276 grub_raid_register
37277 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37278
37279 2009-06-19 Pavel Roskin <proski@gnu.org>
37280
37281 * configure.ac: Remove stray AC_MSG_CHECKING.
37282
37283 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37284
37285 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37286
37287 2009-06-18 Pavel Roskin <proski@gnu.org>
37288
37289 * conf/common.rmk: Add fs_file.mod.
37290 * disk/fs_file.c: New file.
37291 * include/grub/disk.h (enum grub_disk_dev_id): Add
37292 GRUB_DISK_DEVICE_FILE_ID.
37293
37294 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37295
37296 Fix build with Apple's toolchain. Part 2
37297
37298 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37299 a fake start
37300
37301 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37302
37303 Fix build with Apple's toolchain. Part 1
37304
37305 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37306 for long calls
37307 * configure.ac: remove a leftover AC_MSG_RESULT
37308 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37309 Apple's toolchain
37310
37311 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37312
37313 Fix warnings
37314
37315 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37316 (decomp_block): initialize ch
37317 use grub_memcpy instead of memcpy
37318
37319 2009-06-17 Pavel Roskin <proski@gnu.org>
37320
37321 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37322 version, use declarations needed to use vga_text as the startup
37323 console.
37324
37325 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37326 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37327 the kernel.
37328 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37329 and grub_at_keyboard_fini(), it's done on module load and
37330 unload.
37331
37332 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37333
37334 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37335 file can't be found.
37336 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37337
37338 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37339
37340 Fix newline handling
37341
37342 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37343 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37344 (grub_script_yylex): don't segfault on unterminated script
37345 newline terminates command and variable
37346
37347 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37348
37349 avoid double grub_adjust_range call. Bug reported by David Simner
37350
37351 * kern/disk.c (grub_disk_write): change to raw disk access before
37352 calling disk_read
37353
37354 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37355
37356 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37357 spaces, for the benefit of help2man.
37358 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37359
37360 2009-06-16 Pavel Roskin <proski@gnu.org>
37361
37362 * kern/i386/halt.c: Include grub/machine/init.h.
37363 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37364
37365 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37366
37367 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37368 drivemap menuentry.
37369
37370 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37371
37372 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37373 `echo' command.
37374
37375 2009-06-16 Pavel Roskin <proski@gnu.org>
37376
37377 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37378 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37379 save %dx, we only need %dl and we never change it.
37380 * boot/i386/pc/cdboot.S: Don't set the root drive.
37381 * boot/i386/pc/pxeboot.S: Likewise.
37382 * include/grub/i386/pc/boot.h: Remove
37383 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37384 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37385 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37386 * kern/i386/pc/init.c (make_install_device): Remove references
37387 to grub_root_drive.
37388 * kern/i386/pc/startup.S: Likewise.
37389 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37390
37391 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37392
37393 xnu_uuid command
37394
37395 * commands/xnu_uuid.c: new file
37396 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37397 (xnu_uuid_mod_SOURCES): new variable
37398 (xnu_uuid_mod_CFLAGS): likewise
37399 (xnu_uuid_mod_LDFLAGS): likewise
37400 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37401 * conf/i386-ieee1275.rmk: likewise
37402 * conf/i386-pc.rmk: likewise
37403 * conf/powerpc-ieee1275.rmk: likewise
37404 * conf/sparc64-ieee1275.rmk: likewise
37405 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37406
37407 2009-06-16 Pavel Roskin <proski@gnu.org>
37408
37409 * configure.ac: Avoid '==' in test command, it's not portable.
37410
37411 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37412
37413 Probe command
37414
37415 * commands/probe.c: new file
37416 * conf/common.rmk (pkglib_MODULES): add probe.mod
37417 (probe_mod_SOURCES): new variable
37418 (probe_mod_CFLAGS): likewise
37419 (probe_mod_LDFLAGS): likewise
37420 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37421 * conf/i386-ieee1275.rmk: likewise
37422 * conf/i386-pc.rmk: likewise
37423 * conf/powerpc-ieee1275.rmk: likewise
37424 * conf/sparc64-ieee1275.rmk: likewise
37425
37426 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37427
37428 Fix handling of string like \"hello\" and "a
37429 b"
37430
37431 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37432 (grub_script_yylex): fix parsing of quoting, escaping and newline
37433
37434 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37435
37436 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37437 handling
37438
37439 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37440
37441 * util/grub-mkconfig.in: Fix parsing of --output option.
37442
37443 2009-06-12 Pavel Roskin <proski@gnu.org>
37444
37445 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37446 genmk.rb don't need to be generated or installed.
37447
37448 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37449
37450 * commands/i386/pc/drivemap_int13h.S: add more comments
37451
37452 2009-06-11 Pavel Roskin <proski@gnu.org>
37453
37454 * Makefile.in (uninstall): Uninstall manuals.
37455
37456 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37457 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37458 and update-grub_lib in two places.
37459 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37460
37461 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37462 a compiler warning.
37463
37464 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37465 `entry_lo' to fix variable shadowing.
37466
37467 2009-06-11 Christian Franke <franke@computer.org>
37468
37469 * kern/misc.c (__enable_execute_stack): Add missing return type
37470 to prevent gcc warning.
37471
37472 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37473
37474 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37475
37476 2009-06-11 Pavel Roskin <proski@gnu.org>
37477
37478 * Makefile.in: Don't rely on any scripts being executable.
37479 Always use $(SHELL) to run shell scripts.
37480
37481 * configure.ac: Always define ___main if using -nostdlib. This
37482 fixes tests on Cygwin.
37483
37484 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37485
37486 UDF fix
37487
37488 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37489 is in bytes and not in blocks
37490
37491 2009-06-11 Pavel Roskin <proski@gnu.org>
37492
37493 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37494 warning.
37495
37496 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37497
37498 * util/grub.d/30_os-prober.in: Fix a comment. Source
37499 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37500 to set the root device. Place drivemap command in the generated
37501 chain entry.
37502
37503 2009-06-11 Pavel Roskin <proski@gnu.org>
37504
37505 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37506 have long been resolved.
37507
37508 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37509
37510 * util/grub.d/10_linux.in: Capitalise "Linux".
37511
37512 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37513
37514 2009-06-11 Pavel Roskin <proski@gnu.org>
37515
37516 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37517 fix a gcc warning and ensure that the function won't ever exit.
37518
37519 * kern/i386/ieee1275/init.c: Add missing prototype for
37520 grub_stop_floppy().
37521
37522 * loader/ieee1275/multiboot2.c [__i386__]: Include
37523 grub/cpu/multiboot.h.
37524
37525 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37526 casts to short - they are not portable and cause warnings. Fix
37527 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37528
37529 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37530
37531 Drivemap fixes
37532
37533 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37534 new function
37535 (grub_get_root_biosnumber_saved): new variable
37536 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37537 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37538 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37539 %dx after the call if necessary
37540 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37541 (boot_mod_SOURCES): remove
37542 (boot_mod_CFLAGS): remove
37543 (boot_mod_LDFLAGS): remove
37544 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37545 (boot_mod_SOURCES): new variable
37546 (boot_mod_CFLAGS): likewise
37547 (boot_mod_LDFLAGS): likewise
37548 * conf/i386-efi.rmk: likewise
37549 * conf/i386-ieee1275.rmk: likewise
37550 * conf/i386-pc.rmk: likewise
37551 * conf/powerpc-ieee1275.rmk: likewise
37552 * conf/sparc64-ieee1275.rmk: likewise
37553 * conf/x86_64-efi.rmk: likewise
37554 * include/grub/i386/pc/biosnum.h: new file
37555 * lib/i386/pc/biosnum.c: likewise
37556 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37557 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37558 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37559
37560 2009-06-10 Pavel Roskin <proski@gnu.org>
37561
37562 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37563 Use separate variables. Read only the file size at the end, but
37564 not the checksum that we don't use.
37565
37566 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37567 Adjust all callers.
37568
37569 * kern/ieee1275/openfw.c: Remove libc includes.
37570 * kern/ieee1275/cmain.c: Likewise.
37571 * include/grub/ieee1275/ieee1275.h: Likewise.
37572
37573 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37574 compiler warnings.
37575
37576 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37577
37578 * Makefile.in: Remove all trailing whitespace.
37579 * conf/i386-pc.rmk: Likewise.
37580 * conf/powerpc-ieee1275.rmk: Likewise.
37581 * conf/sparc64-ieee1275.rmk: Likewise.
37582 * docs/grub.texi: Likewise.
37583 * docs/texinfo.tex: Likewise.
37584 * disk/fs_uuid.c: Likewise.
37585 * disk/lvm.c: Likewise.
37586 * disk/scsi.c: Likewise.
37587 * disk/ata.c: Likewise.
37588 * disk/ieee1275/ofdisk.c: Likewise.
37589 * disk/i386/pc/biosdisk.c: Likewise.
37590 * disk/host.c: Likewise.
37591 * disk/raid.c: Likewise.
37592 * disk/efi/efidisk.c: Likewise.
37593 * disk/usbms.c: Likewise.
37594 * disk/memdisk.c: Likewise.
37595 * disk/loopback.c: Likewise.
37596 * kern/powerpc/dl.c: Likewise.
37597 * kern/device.c: Likewise.
37598 * kern/dl.c: Likewise.
37599 * kern/sparc64/dl.c: Likewise.
37600 * kern/ieee1275/ieee1275.c: Likewise.
37601 * kern/term.c: Likewise.
37602 * kern/fs.c: Likewise.
37603 * kern/i386/dl.c: Likewise.
37604 * kern/i386/pc/startup.S: Likewise.
37605 * kern/i386/pc/init.c: Likewise.
37606 * kern/i386/pc/mmap.c: Likewise.
37607 * kern/i386/pc/lzo1x.S: Likewise.
37608 * kern/i386/ieee1275/init.c: Likewise.
37609 * kern/i386/realmode.S: Likewise.
37610 * kern/i386/tsc.c: Likewise.
37611 * kern/partition.c: Likewise.
37612 * kern/corecmd.c: Likewise.
37613 * kern/file.c: Likewise.
37614 * kern/efi/efi.c: Likewise.
37615 * kern/efi/init.c: Likewise.
37616 * kern/efi/mm.c: Likewise.
37617 * kern/main.c: Likewise.
37618 * kern/err.c: Likewise.
37619 * kern/env.c: Likewise.
37620 * kern/disk.c: Likewise.
37621 * kern/generic/millisleep.c: Likewise.
37622 * kern/generic/rtc_get_time_ms.c: Likewise.
37623 * kern/misc.c: Likewise.
37624 * kern/parser.c: Likewise.
37625 * genmk.rb: Likewise.
37626 * configure.ac: Likewise.
37627 * boot/i386/pc/diskboot.S: Likewise.
37628 * boot/i386/pc/pxeboot.S: Likewise.
37629 * boot/i386/pc/boot.S: Likewise.
37630 * boot/i386/pc/lnxboot.S: Likewise.
37631 * boot/i386/pc/cdboot.S: Likewise.
37632 * parttool/pcpart.c: Likewise.
37633 * video/readers/tga.c: Likewise.
37634 * video/video.c: Likewise.
37635 * video/bitmap.c: Likewise.
37636 * lib/envblk.c: Likewise.
37637 * lib/i386/setjmp.S: Likewise.
37638 * fs/xfs.c: Likewise.
37639 * fs/afs.c: Likewise.
37640 * fs/fat.c: Likewise.
37641 * fs/ntfs.c: Likewise.
37642 * fs/udf.c: Likewise.
37643 * fs/affs.c: Likewise.
37644 * fs/iso9660.c: Likewise.
37645 * fs/hfs.c: Likewise.
37646 * fs/fshelp.c: Likewise.
37647 * fs/ext2.c: Likewise.
37648 * fs/jfs.c: Likewise.
37649 * fs/reiserfs.c: Likewise.
37650 * fs/hfsplus.c: Likewise.
37651 * fs/minix.c: Likewise.
37652 * fs/cpio.c: Likewise.
37653 * fs/sfs.c: Likewise.
37654 * fs/ufs.c: Likewise.
37655 * efiemu/prepare.c: Likewise.
37656 * efiemu/loadcore_common.c: Likewise.
37657 * efiemu/runtime/efiemu.sh: Likewise.
37658 * efiemu/runtime/efiemu.S: Likewise.
37659 * efiemu/runtime/efiemu.c: Likewise.
37660 * efiemu/pnvram.c: Likewise.
37661 * efiemu/main.c: Likewise.
37662 * efiemu/i386/pc/cfgtables.c: Likewise.
37663 * efiemu/i386/loadcore64.c: Likewise.
37664 * efiemu/i386/loadcore32.c: Likewise.
37665 * efiemu/loadcore.c: Likewise.
37666 * efiemu/symbols.c: Likewise.
37667 * efiemu/mm.c: Likewise.
37668 * include/grub/autoefi.h: Likewise.
37669 * include/grub/datetime.h: Likewise.
37670 * include/grub/term.h: Likewise.
37671 * include/grub/hfs.h: Likewise.
37672 * include/grub/lvm.h: Likewise.
37673 * include/grub/i386/tsc.h: Likewise.
37674 * include/grub/i386/linux.h: Likewise.
37675 * include/grub/i386/xnu.h: Likewise.
37676 * include/grub/i386/efiemu.h: Likewise.
37677 * include/grub/i386/pc/biosdisk.h: Likewise.
37678 * include/grub/i386/pc/memory.h: Likewise.
37679 * include/grub/i386/pc/vbe.h: Likewise.
37680 * include/grub/parttool.h: Likewise.
37681 * include/grub/video.h: Likewise.
37682 * include/grub/memory.h: Likewise.
37683 * include/grub/fs.h: Likewise.
37684 * include/grub/partition.h: Likewise.
37685 * include/grub/xnu.h: Likewise.
37686 * include/grub/efi/api.h: Likewise.
37687 * include/grub/efi/pe32.h: Likewise.
37688 * include/grub/efi/memory.h: Likewise.
37689 * include/grub/multiboot.h: Likewise.
37690 * include/grub/usbdesc.h: Likewise.
37691 * include/grub/multiboot2.h: Likewise.
37692 * include/grub/acpi.h: Likewise.
37693 * include/grub/efiemu/efiemu.h: Likewise.
37694 * include/grub/disk.h: Likewise.
37695 * include/grub/ieee1275/ieee1275.h: Likewise.
37696 * include/grub/net.h: Likewise.
37697 * include/grub/machoload.h: Likewise.
37698 * include/grub/macho.h: Likewise.
37699 * include/multiboot.h: Likewise.
37700 * genmoddep.awk: Likewise.
37701 * normal/main.c: Likewise.
37702 * normal/menu_entry.c: Likewise.
37703 * normal/menu_viewer.c: Likewise.
37704 * normal/completion.c: Likewise.
37705 * normal/cmdline.c: Likewise.
37706 * normal/misc.c: Likewise.
37707 * normal/datetime.c: Likewise.
37708 * bus/usb/usbtrans.c: Likewise.
37709 * bus/usb/ohci.c: Likewise.
37710 * bus/usb/uhci.c: Likewise.
37711 * bus/usb/usb.c: Likewise.
37712 * mmap/efi/mmap.c: Likewise.
37713 * mmap/i386/pc/mmap_helper.S: Likewise.
37714 * mmap/i386/pc/mmap.c: Likewise.
37715 * mmap/i386/mmap.c: Likewise.
37716 * mmap/i386/uppermem.c: Likewise.
37717 * mmap/mmap.c: Likewise.
37718 * commands/acpi.c: Likewise.
37719 * commands/echo.c: Likewise.
37720 * commands/blocklist.c: Likewise.
37721 * commands/loadenv.c: Likewise.
37722 * commands/usbtest.c: Likewise.
37723 * commands/boot.c: Likewise.
37724 * commands/parttool.c: Likewise.
37725 * commands/search.c: Likewise.
37726 * commands/cat.c: Likewise.
37727 * commands/i386/pc/play.c: Likewise.
37728 * commands/i386/pc/drivemap.c: Likewise.
37729 * commands/i386/pc/vbeinfo.c: Likewise.
37730 * commands/i386/pc/acpi.c: Likewise.
37731 * commands/i386/pc/vbetest.c: Likewise.
37732 * commands/ls.c: Likewise.
37733 * commands/cmp.c: Likewise.
37734 * commands/test.c: Likewise.
37735 * commands/efi/acpi.c: Likewise.
37736 * commands/gptsync.c: Likewise.
37737 * commands/help.c: Likewise.
37738 * partmap/amiga.c: Likewise.
37739 * partmap/apple.c: Likewise.
37740 * partmap/acorn.c: Likewise.
37741 * partmap/pc.c: Likewise.
37742 * partmap/sun.c: Likewise.
37743 * partmap/gpt.c: Likewise.
37744 * script/sh/lexer.c: Likewise.
37745 * script/sh/function.c: Likewise.
37746 * font/font.c: Likewise.
37747 * font/font_cmd.c: Likewise.
37748 * loader/powerpc/ieee1275/linux.c: Likewise.
37749 * loader/efi/chainloader.c: Likewise.
37750 * loader/multiboot_loader.c: Likewise.
37751 * loader/macho.c: Likewise.
37752 * loader/i386/multiboot.c: Likewise.
37753 * loader/i386/linux.c: Likewise.
37754 * loader/i386/pc/linux.c: Likewise.
37755 * loader/i386/pc/multiboot2.c: Likewise.
37756 * loader/i386/pc/chainloader.c: Likewise.
37757 * loader/i386/pc/xnu.c: Likewise.
37758 * loader/i386/bsd_trampoline.S: Likewise.
37759 * loader/i386/efi/linux.c: Likewise.
37760 * loader/i386/multiboot_elfxx.c: Likewise.
37761 * loader/i386/bsd_helper.S: Likewise.
37762 * loader/i386/bsd.c: Likewise.
37763 * loader/i386/linux_trampoline.S: Likewise.
37764 * loader/i386/xnu_helper.S: Likewise.
37765 * loader/i386/xnu.c: Likewise.
37766 * loader/i386/bsd_pagetable.c: Likewise.
37767 * loader/i386/multiboot_helper.S: Likewise.
37768 * loader/xnu.c: Likewise.
37769 * loader/xnu_resume.c: Likewise.
37770 * io/gzio.c: Likewise.
37771 * term/efi/console.c: Likewise.
37772 * term/terminfo.c: Likewise.
37773 * term/ieee1275/ofconsole.c: Likewise.
37774 * term/i386/pc/serial.c: Likewise.
37775 * term/i386/pc/vesafb.c: Likewise.
37776 * term/i386/pc/vga.c: Likewise.
37777 * term/usb_keyboard.c: Likewise.
37778 * term/gfxterm.c: Likewise.
37779 * aclocal.m4: Likewise.
37780 * util/lvm.c: Likewise.
37781 * util/grub.d/30_os-prober.in: Likewise.
37782 * util/grub.d/10_hurd.in: Likewise.
37783 * util/console.c: Likewise.
37784 * util/grub-macho2img.c: Likewise.
37785 * util/grub-probe.c: Likewise.
37786 * util/hostfs.c: Likewise.
37787 * util/i386/pc/grub-mkimage.c: Likewise.
37788 * util/i386/pc/grub-setup.c: Likewise.
37789 * util/i386/efi/grub-mkimage.c: Likewise.
37790 * util/grub-mkconfig.in: Likewise.
37791 * util/raid.c: Likewise.
37792 * util/resolve.c: Likewise.
37793 * util/grub-mkdevicemap.c: Likewise.
37794 * util/grub-emu.c: Likewise.
37795 * util/getroot.c: Likewise.
37796 * util/hostdisk.c: Likewise.
37797 * util/usb.c: Likewise.
37798 * util/grub-editenv.c: Likewise.
37799 * util/misc.c: Likewise.
37800
37801 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37802
37803 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37804 `genparttoollist.sh'.
37805 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37806 Add `*.sh' to the list find searches for and change `mdate.sh'
37807 to `mdate-sh'.
37808
37809 2009-06-10 Pavel Roskin <proski@gnu.org>
37810
37811 * include/grub/multiboot2.h: Provide compatibility defines for
37812 multiboot2.h.
37813 * include/multiboot2.h: Include stdint.h only if needed, using
37814 angle brackets.
37815 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37816 grub/multiboot2.h.
37817 * loader/ieee1275/multiboot2.c: Likewise.
37818 * loader/multiboot2.c: Likewise.
37819 * loader/multiboot_loader.c: Likewise.
37820
37821 * configure.ac: Use -nostdlib when probing for the target. It
37822 should not be required to have libc for the target.
37823
37824 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37825 they fail without libc headers for the target.
37826 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37827 exports.
37828 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37829 preprocessor conditionals.
37830
37831 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37832 build system doesn't need to be aware of the tar.c internals.
37833
37834 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37835
37836 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37837
37838 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37839
37840 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37841 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37842
37843 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37844
37845 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37846 aren't available if ata.mod gets used.
37847
37848 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37849
37850 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37851 initialising controller.
37852 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37853
37854 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37855
37856 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37857 to choose between ata and biosdisk module on i386-pc.
37858
37859 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37860
37861 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37862 Subclass and Programming Interface fields in terms of the 3 byte
37863 Class Code register.
37864 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37865
37866 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37867 interface is OHCI. Add grub_dprintf for symmetry with
37868 bus/usb/uhci.c.
37869 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37870 interface is UHCI. Add interf variable for programming
37871 interface. Print interface with class/subclass.
37872
37873 * bus/usb/ohci.c: Set interf with correct field.
37874
37875 * bus/usb/uhci.c: Remove unneeded doubled lines.
37876 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37877 Remove whitespace inside comment.
37878
37879 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37880
37881 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37882 as fallback an equivalent option without depth.
37883
37884 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37885
37886 Not fail if unable to retrieve C/H/S on LBA disks
37887
37888 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37889 if unable to retrieve C/H/S on LBA disks
37890
37891 2009-06-08 Pavel Roskin <proski@gnu.org>
37892
37893 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37894 about aliasing.
37895
37896 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37897
37898 * Makefile.in (uninstall): Remove all $lib_DATA files.
37899
37900 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37901
37902 Bugfix: install on partitionless device
37903
37904 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37905 is a whole disk
37906
37907 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37908
37909 * Makefile.in (uninstall): Remove all $include_DATA files.
37910
37911 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37912
37913 * commands/true.c: New file. Implement the true and false commands.
37914 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37915 (true_mod_SOURCES): New variable.
37916 (true_mod_CFLAGS): Likewise.
37917 (true_mod_LDFLAGS): Likewise.
37918
37919 2009-06-05 Colin D Bennett <colin@gibibit.com>
37920
37921 Optimized font character lookup using binary search instead of linear
37922 search. Fonts now are required to have the character index ordered by
37923 code point.
37924
37925 * font/font.c (load_font_index): Verify that fonts have ordered
37926 character indices.
37927 (find_glyph): Use binary search instead of linear search to find a
37928 character in a font.
37929
37930 2009-06-05 Michael Scherer <misc@mandriva.org>
37931
37932 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37933 uses case sensitive btree.
37934 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37935 only for case insensitive filesystems.
37936
37937 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37938
37939 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37940 * conf/common.rmk (search_mod_CFLAGS): likewise
37941
37942 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37943
37944 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37945 compensate a compiler bug
37946
37947 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37948
37949 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37950 instead of '\b'
37951
37952 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37953
37954 Definitions for creating asm symbols with Apple's CC
37955
37956 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37957 [APPLE_CC] (VARIABLE): likewise
37958
37959 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37960
37961 Disable lnxboot.img when compiled
37962 with Apple's CC
37963
37964 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37965 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37966 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37967 [! APPLE_CC] (CODE_LENG): skip
37968 [! APPLE_CC] (setup_sects): likewise
37969 [! APPLE_CC]: skip filling
37970
37971 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37972
37973 Address in trampolines based on 32-bit registers when compiled
37974 with Apple's CC
37975
37976 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37977 for addresses
37978 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37979
37980 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37981
37982 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37983
37984 * kern/misc.c [APPLE_CC] (memcpy): new function
37985 [APPLE_CC] (memmove): likewise
37986 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37987 (memcpy): define alias conditionally on !APPLE_CC
37988 (memset): likewise
37989 (abort): likewise
37990 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37991 APPLE_CC are defined
37992 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37993 (grub_assert_fail): make prototype conditional
37994
37995 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37996
37997 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37998
37999 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38000 grub-macho2img
38001 (CLEANFILES): add grub-macho2img
38002 (grub_macho2img_SOURCES): new variable
38003 * kern/i386/pc/startup.S (bss_start): new variable
38004 (bss_end): likewise
38005 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38006 * util/grub-macho2img.c: new file
38007
38008 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38009
38010 Use objconv when compiling with Apple's CC
38011
38012 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38013 (efiemu64.o): likewise
38014 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38015 when compiling with Apple's CC
38016 (efiemu64_s.o): likewise
38017 * configure.ac: check for objconv when compiling with Apple's CC
38018 * genmk.rb: use objconv for modules when compiled with Apple's CC
38019
38020 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38021
38022 Define segment as well as section when compiling with
38023 Apple's CC
38024
38025 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38026 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38027 (efiemu_convert_pointer): likewise
38028 (efiemu_set_virtual_address_map): likewise
38029 (efiemu_convert_pointer): likewise
38030 (efiemu_getcrc32): likewise
38031 (init_crc32_table): likewise
38032 (reflect): likewise
38033 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38034 (GRUB_MOD_DEP): likewise
38035
38036 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38037
38038 Allow a compilation without -mcmodel=large
38039
38040 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38041 when compiled without -mcmodel=large
38042 (filter_memory_map): remove memory post 4 GiB when compiled
38043 without -mcmodel=large
38044 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38045 TARGET_CFLAGS when -mcmodel=large isn't supported
38046
38047 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38048
38049 Remove nested functions in efiemu core
38050
38051 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38052
38053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38054
38055 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38056
38057 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38058 temporary storage
38059 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38060 using Apple's CC
38061 (grub_cpu_is_tsc_supported): likewise
38062 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38063
38064 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38065
38066 Absolute addressing through constant with Apple's cc
38067
38068 * kern/i386/pc/startup.S: Define necessary constants
38069 and address through it when using ABS with Apple's CC
38070 * boot/i386/pc/diskboot.S: likewise
38071 * boot/i386/pc/boot.S: likewise
38072 * boot/i386/pc/lnxboot.S: likewise
38073 * boot/i386/pc/cdboot.S: likewise
38074 * mmap/i386/pc/mmap_helper.S: likewise
38075 * commands/i386/pc/drivemap_int13h.S: likewise
38076
38077 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38078
38079 Check if compiler is apple cc
38080
38081 * Makefile.in (ASFLAGS): new variable
38082 (TARGET_ASFLAGS): likewise
38083 (TARGET_MODULE_FORMAT): likewise
38084 (TARGET_APPLE_CC): likewise
38085 (OBJCONV): likewise
38086 (TARGET_IMG_CFLAGS): likewise
38087 (TARGET_CPPFLAGS): add includedir
38088 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38089 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38090 Check for linker script only if compiler isn't Apple's CC
38091 (TARGET_MODULE_FORMAT): set
38092 (TARGET_APPLE_CC): likewise
38093 (TARGET_ASFLAGS): likewise
38094 (ASFLAGS): likewise
38095 Check for objcopy only if compiler isn't Apple's CC
38096 Check for BSS symbol only if compiler isn't Apple's CC
38097 * genmk.rb: adapt nm options if we use Apple's utils
38098 * aclocal.m4 (grub_apple_cc): new test
38099 (grub_apple_target_cc): likewise
38100
38101 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38102
38103 Simplify sed expressions and improve awk
38104
38105 * Makefile.in (install-local): simplify sed expression
38106 * gencmdlist.sh: likewise
38107 * genmoddep.awk: avoid adding module as a dependency of itself
38108
38109 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38110
38111 Add missing start symbols
38112
38113 * boot/i386/pc/boot.S: add start
38114 * boot/i386/pc/pxeboot.S: likewise
38115
38116 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38117
38118 Fix wrong assumptions with grub-mkimage on EFI
38119
38120 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38121 (relocate_addresses): consider both r_addend and value at offset
38122 (make_mods_section): zerofill modinfo and header
38123 (convert_elf): write prefix here
38124
38125 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38126
38127 Use .asciz instead of .string
38128
38129 * i386/pc/diskboot.S: use .asciz instead of .string
38130 * i386/pc/boot.S: likewise
38131 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38132 (GRUB_MOD_NAME): likewise
38133
38134 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38135
38136 gfxpayload support
38137
38138 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38139 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38140 (grub_video_setup): remove
38141 (grub_video_set_mode): new prototype
38142 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38143 (vid_mode): remove
38144 (linux_vesafb_res): compile only on PCBIOS
38145 (grub_linux_boot): support gfxpayload
38146 * loader/i386/pc/xnu.c (video_hook): new function
38147 (grub_xnu_set_video): support gfxpayload
38148 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38149 (DEFAULT_VIDEO_HEIGHT): likewise
38150 (DEFAULT_VIDEO_FLAGS): likewise
38151 (DEFAULT_VIDEO_MODE): new definition
38152 (video_hook): new function
38153 (grub_gfxterm_init): use grub_video_set_mode
38154 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38155 loading xnu
38156 * video/video.c (grub_video_setup): removed
38157 (grub_video_set_mode): new function based on grub_gfxterm_init and
38158 grub_video_setup
38159
38160 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38161
38162 Avoid calling biosdisk in drivemap
38163
38164 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38165 (revparse_biosdisk): likewise
38166 (list_mappings): derive name from id directly
38167 (grub_cmd_drivemap): use tryparse_diskstring
38168
38169 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38170
38171 Script fixes
38172
38173 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38174 (grub_lexer_param): add tokenonhold
38175 (grub_script_create_cmdline): remove cmdline. All callers updated
38176 (grub_script_function_create): make functionname
38177 grub_script_arg. All callers updated
38178 (grub_script_execute_argument_to_string): new prototype
38179 * kern/parser.c (state_transitions): reorder
38180 (grub_parser_cmdline_state): fix a bug and make more compact
38181 * script/sh/execute.c (grub_script_execute_argument_to_string):
38182 make global
38183 (grub_script_execute_cmdline): use new format
38184 * script/sh/function.c (grub_script_function_create): make functionname
38185 grub_script_arg. All callers updated
38186 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38187 (grub_script_yylex): remove
38188 (grub_script_yylex2): renamed to ...
38189 (grub_script_yylex): ...renamed
38190 parse the expressions like a${b}c
38191 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38192 (GRUB_PARSER_TOKEN_VAR): remove
38193 (GRUB_PARSER_TOKEN_NAME): likewise
38194 ("if"): declare as typeless
38195 ("while"): likewise
38196 ("function"): likewise
38197 ("else"): likewise
38198 ("then"): likewise
38199 ("fi"): likewise
38200 (text): remove
38201 (argument): likewise
38202 (script): accept empty scripts and make exit on error
38203 (arguments): use GRUB_PARSER_TOKEN_ARG
38204 (function): likewise
38205 (command): move error handling to script
38206 (menuentry): move grub_script_lexer_ref before
38207 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38208 argument. All callers updated
38209
38210 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38211
38212 Prevent GRUB from probing floppies during boot.
38213
38214 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38215 * commands/search.c (options): Add --no-floppy.
38216 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38217 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38218 --no-floppy when searching for UUIDs.
38219
38220 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38221
38222 Simplify the code duplication in commands/search.c.
38223
38224 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38225 (search_fs): ... this. Update all users.
38226
38227 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38228
38229 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38230
38231 2009-05-28 Pavel Roskin <proski@gnu.org>
38232
38233 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38234 Remove the original symlink explicitly.
38235
38236 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38237 just one slash. That's how grub_fshelp_find_file() does it.
38238
38239 2009-05-26 Pavel Roskin <proski@gnu.org>
38240
38241 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38242 to `str'.
38243
38244 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38245 possibly unused.
38246
38247 2009-05-25 Christian Franke <franke@computer.org>
38248
38249 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38250 register.
38251 (grub_atapi_identify): Add wait after drive select.
38252 (grub_ata_identify): Do more strict status register check before
38253 calling grub_atapi_identify (). Suppress error message if status
38254 register is 0x00 after command failure. Add status register
38255 check after PIO read to avoid bogus identify due to stuck DRQ.
38256 Thanks to Pavel Roskin for testing.
38257 (grub_device_initialize): Remove unsafe status register check.
38258 Thanks to 'phcoder' for problem report and patch.
38259 Prevent sign extension in debug message.
38260
38261 2009-05-23 Colin D Bennett <colin@gibibit.com>
38262
38263 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38264 definition file, and functions defined in `normal/menu.c' have had
38265 their prototypes moved to `include/grub/menu.h' for consistency.
38266
38267 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38268 from normal.h.
38269 (grub_menu_get_entry): Likewise.
38270 (grub_menu_get_timeout): Likewise.
38271 (grub_menu_set_timeout): Likewise.
38272 (grub_menu_execute_entry): Likewise.
38273 (grub_menu_execute_with_fallback): Likewise.
38274 (grub_menu_entry_run): Likewise.
38275
38276 * include/grub/normal.h: Re-ordered and grouped function
38277 prototypes by file that the function is defined in.
38278 (grub_menu_execute_callback): Removed; moved to menu.h.
38279 (grub_menu_get_entry): Likewise.
38280 (grub_menu_get_timeout): Likewise.
38281 (grub_menu_set_timeout): Likewise.
38282 (grub_menu_execute_entry): Likewise.
38283 (grub_menu_execute_with_fallback): Likewise.
38284 (grub_menu_entry_run): Likewise.
38285 (grub_menu_addentry): Renamed from this ...
38286 (grub_normal_add_menu_entry): ... to this.
38287
38288 * normal/main.c (grub_menu_addentry): Renamed from this ...
38289 (grub_normal_add_menu_entry): ... to this.
38290
38291 * script/sh/execute.c (grub_script_execute_menuentry): Update
38292 reference to renamed grub_menu_addentry function.
38293
38294 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38295
38296 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38297
38298 2009-05-22 Pavel Roskin <proski@gnu.org>
38299
38300 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38301 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38302 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38303 compiling for the i386 targets, but not for the utilities.
38304
38305 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38306 to grub_uint8_t.
38307 (grub_root_drive): Likewise.
38308 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38309 remove alignment.
38310 (grub_root_drive): Change size to byte.
38311 (grub_start_addr): Remove.
38312 (grub_end_addr): Likewise.
38313 (grub_apm_bios_info): Likewise.
38314
38315 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38316
38317 * normal/i386: Remove.
38318 * normal/powerpc: Likewise.
38319 * normal/sparc64: Likewise.
38320 * normal/x86_64: Likewise.
38321
38322 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38323
38324 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38325 * loader/i386/linux_trampoline.S: Fix indentation
38326 * loader/i386/xnu_helper.S: Likewise
38327
38328 2009-05-18 Colin D Bennett <colin@gibibit.com>
38329
38330 Display error messages when parsing a Lua statement fails.
38331 Previously, executing a syntactically invalid statement like
38332 ")foo" or "bar;" would silently fail.
38333
38334 * script/lua/grub_main.c (handle_lua_error): New function.
38335 (grub_lua_parse_line): Improved reporting of Lua parser and
38336 execution errors.
38337
38338 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38339
38340 Remove -Werror which causes build to fail on some systems
38341
38342 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38343 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38344 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38345
38346 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38347
38348 trampoline for linux on 64-bit platform
38349
38350 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38351 loader/i386/efi/linux_trampoline.S
38352 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38353 declaration
38354 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38355 here
38356 * loader/i386/linux_trampoline.S: moved here
38357 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38358 trampoline
38359 (jumpvector): removed
38360 (grub_linux_trampoline_start): new declaration
38361 (grub_linux_trampoline_end): likewise
38362 (grub_linux_boot): use trampoline when on 64-bit platform
38363 * loader/i386/linux.c: likewise
38364
38365 2009-05-16 Pavel Roskin <proski@gnu.org>
38366
38367 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38368 const to avoid a warning.
38369 (grub_lua_setenv): Likewise.
38370 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38371 lmsg to fix a warning.
38372
38373 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38374
38375 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38376 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38377 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38378 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38379 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38380 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38381 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38382 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38383
38384 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38385
38386 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38387
38388 2009-05-16 Bean <bean123ch@gmail.com>
38389
38390 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38391 (lua_mod_SOURCES): New variable.
38392 (lua_mod_CFLAGS): Likewise.
38393 (lua_mod_LDFLAGS): Likewise.
38394
38395 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38396 (setjmp_mod_SOURCES): New variable.
38397 (setjmp_mod_CFLAGS): Likewise.
38398 (setjmp_LDFLAGS): Likewise.
38399
38400 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38401 (setjmp_mod_SOURCES): New variable.
38402 (setjmp_mod_CFLAGS): Likewise.
38403 (setjmp_LDFLAGS): Likewise.
38404
38405 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38406 (setjmp_mod_SOURCES): New variable.
38407 (setjmp_mod_CFLAGS): Likewise.
38408 (setjmp_LDFLAGS): Likewise.
38409
38410 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38411 (setjmp_mod_SOURCES): New variable.
38412 (setjmp_mod_CFLAGS): Likewise.
38413 (setjmp_LDFLAGS): Likewise.
38414
38415 * normal/i386/setjmp.S: Moved from here ...
38416 * lib/i386/setjmp.S: ... Moved here
38417 * normal/x86_64/setjmp.S: Moved from here ...
38418 * lib/x86_64/setjmp.S: ... Moved here
38419 * normal/powerpc/setjmp.S: Moved from here ...
38420 * lib/powerpc/setjmp.S: ... Moved here
38421 * normal/sparc64/setjmp.S: Moved from here ...
38422 * lib/sparc64/setjmp.S: ... Moved here
38423
38424 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38425 returns_twice in mingw.
38426
38427 * script/lua/grub_lib.c: New file.
38428 * script/lua/grub_lib.h: Likewise.
38429 * script/lua/grub_lua.h: Likewise.
38430 * script/lua/grub_main.c: Likewise.
38431 * script/lua/lapi.c: Likewise.
38432 * script/lua/lapi.h: Likewise.
38433 * script/lua/lauxlib.c: Likewise.
38434 * script/lua/lauxlib.h: Likewise.
38435 * script/lua/lbaselib.c: Likewise.
38436 * script/lua/lcode.c: Likewise.
38437 * script/lua/lcode.h: Likewise.
38438 * script/lua/ldblib.c: Likewise.
38439 * script/lua/ldebug.c: Likewise.
38440 * script/lua/ldebug.h: Likewise.
38441 * script/lua/ldo.c: Likewise.
38442 * script/lua/ldo.h: Likewise.
38443 * script/lua/ldump.c: Likewise.
38444 * script/lua/lfunc.c: Likewise.
38445 * script/lua/lfunc.h: Likewise.
38446 * script/lua/lgc.c: Likewise.
38447 * script/lua/lgc.h: Likewise.
38448 * script/lua/linit.c: Likewise.
38449 * script/lua/liolib.c: Likewise.
38450 * script/lua/llex.c: Likewise.
38451 * script/lua/llex.h: Likewise.
38452 * script/lua/llimits.h: Likewise.
38453 * script/lua/lmathlib.c: Likewise.
38454 * script/lua/lmem.c: Likewise.
38455 * script/lua/lmem.h: Likewise.
38456 * script/lua/loadlib.c: Likewise.
38457 * script/lua/lobject.c: Likewise.
38458 * script/lua/lobject.h: Likewise.
38459 * script/lua/lopcodes.c: Likewise.
38460 * script/lua/lopcodes.h: Likewise.
38461 * script/lua/loslib.c: Likewise.
38462 * script/lua/lparser.c: Likewise.
38463 * script/lua/lparser.h: Likewise.
38464 * script/lua/lstate.c: Likewise.
38465 * script/lua/lstate.h: Likewise.
38466 * script/lua/lstring.c: Likewise.
38467 * script/lua/lstring.h: Likewise.
38468 * script/lua/lstrlib.c: Likewise.
38469 * script/lua/ltable.c: Likewise.
38470 * script/lua/ltable.h: Likewise.
38471 * script/lua/ltablib.c: Likewise.
38472 * script/lua/ltm.c: Likewise.
38473 * script/lua/ltm.h: Likewise.
38474 * script/lua/lua.h: Likewise.
38475 * script/lua/luaconf.h: Likewise.
38476 * script/lua/lualib.h: Likewise.
38477 * script/lua/lundump.c: Likewise.
38478 * script/lua/lundump.h: Likewise.
38479 * script/lua/lvm.c: Likewise.
38480 * script/lua/lvm.h: Likewise.
38481 * script/lua/lzio.c: Likewise.
38482 * script/lua/lzio.h: Likewise.
38483
38484 2009-05-16 Bean <bean123ch@gmail.com>
38485
38486 * include/grub/kernel.h (grub_module_header_types): Add type
38487 OBJ_TYPE_CONFIG.
38488
38489 * kern/main.c (grub_load_config): New function.
38490 (grub_main): Call grub_load_config to read boot config.
38491
38492 * grub-mkimage (generate_image): New parameter config_path.
38493 (options): New option --config.
38494 (main): Parse --config option, and pass it to generate_image.
38495
38496 2009-05-14 Christian Franke <franke@computer.org>
38497
38498 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38499 This fixes build on Cygwin.
38500
38501 2009-05-14 Pavel Roskin <proski@gnu.org>
38502
38503 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38504 jump. This saves two bytes, so the typical case of 2 swapped
38505 drives would fit 32 bytes.
38506
38507 2009-05-13 Pavel Roskin <proski@gnu.org>
38508
38509 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38510 grub_uint32_t to avoid a warning.
38511
38512 * loader/i386/linux.c (allocate_pages): When assigning
38513 real_mode_mem, cast through grub_size_t to fix a warning. The
38514 code already makes sure that the value would fit a pointer.
38515 (grub_linux_setup_video): Cast render_target->data to
38516 grub_size_t to fix a warning.
38517
38518 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38519
38520 * commands/i386/pc/drivemap.c: New file - implement drivemap
38521 command.
38522 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38523 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38524
38525 2009-05-13 Pavel Roskin <proski@gnu.org>
38526
38527 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38528 embedding_area_exists.
38529
38530 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38531
38532 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38533 it easier to understand / work with.
38534 Improve warning messages for cases where there's no embedding area,
38535 or when it is too small (or core.img too large).
38536
38537 2009-05-13 Pavel Roskin <proski@gnu.org>
38538
38539 * loader/i386/pc/multiboot2.c: Add necessary includes for
38540 grub_multiboot2_real_boot().
38541
38542 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38543 PX record is always little-endian. We only need the lower 2
38544 bytes of the mode.
38545
38546 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38547 facilitate code reuse.
38548 (grub_cpio_mount): Use "struct head", not a char buffer. This
38549 fixes a warning reported by gcc 4.4.
38550
38551 * kernel/disk.c (grub_disk_read): Use void pointer for the
38552 buffer.
38553 (grub_disk_write): Use const void pointer for the buffer.
38554 Adjust all callers. Remove unnecessary casts.
38555
38556 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38557
38558 * util/i386/pc/grub-install.in: Update copyright year.
38559
38560 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38561
38562 gptsync
38563
38564 * commands/gptsync.c: new file
38565 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38566 (gptsync_mod_SOURCES): new variable
38567 (gptsync_mod_CFLAGS): likewise
38568 (gptsync_mod_LDFLAGS): likewise
38569 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38570 new definition
38571 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38572 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38573 * conf/i386-ieee1275.rmk: likewise
38574 * conf/i386-pc.rmk: likewise
38575 * conf/powerpc-ieee1275.rmk: likewise
38576
38577 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38578
38579 Fixed grub-emu
38580
38581 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38582 (grub_dl_ref): likewise
38583
38584 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38585
38586 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38587 split in two functions (one for msdos and one for gpt).
38588
38589 2009-05-08 Pavel Roskin <proski@gnu.org>
38590
38591 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38592 not modified.
38593
38594 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38595 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38596 Initialize them with -1. Add sanity check for bad1. Eliminate
38597 nerr variable.
38598
38599 2009-05-08 David S. Miller <davem@davemloft.net>
38600
38601 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38602
38603 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38604
38605 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38606 existence.
38607
38608 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38609
38610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38611 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38612
38613 2009-05-05 David S. Miller <davem@davemloft.net>
38614
38615 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38616
38617 2009-05-05 Pavel Roskin <proski@gnu.org>
38618
38619 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38620 of grub_dl_ref() and grub_dl_unref().
38621 * commands/parttool.c: Remove preprocessor conditionals around
38622 grub_dl_ref() and grub_dl_unref().
38623 * fs/affs.c: Likewise.
38624 * fs/afs.c: Likewise.
38625 * fs/cpio.c: Likewise.
38626 * fs/ext2.c: Likewise.
38627 * fs/fat.c: Likewise.
38628 * fs/hfs.c: Likewise.
38629 * fs/hfsplus.c: Likewise.
38630 * fs/iso9660.c: Likewise.
38631 * fs/jfs.c: Likewise.
38632 * fs/minix.c: Likewise.
38633 * fs/ntfs.c: Likewise.
38634 * fs/reiserfs.c: Likewise.
38635 * fs/sfs.c: Likewise.
38636 * fs/udf.c: Likewise.
38637 * fs/ufs.c: Likewise.
38638 * fs/xfs.c: Likewise.
38639 * include/grub/dl.h: Likewise.
38640 * loader/xnu.c: Likewise.
38641
38642 2009-05-04 Pavel Roskin <proski@gnu.org>
38643
38644 * commands/acpi.c: Remove unused variable my_mod.
38645 * partmap/amiga.c: Likewise.
38646 * partmap/apple.c: Likewise.
38647 * partmap/gpt.c: Likewise.
38648 * partmap/pc.c: Likewise.
38649 * partmap/sun.c: Likewise.
38650 * term/gfxterm.c: Likewise.
38651 * term/i386/pc/vesafb.c: Likewise.
38652 * term/i386/pc/vga.c: Likewise.
38653
38654 2009-05-04 David S. Miller <davem@davemloft.net>
38655
38656 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38657 pointer args to grub_ieee1275_get_property().
38658
38659 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38660
38661 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38662 devices, and do not traverse down under controller nodes.
38663
38664 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38665 (grub_ofdisk_open): Use it to un-escape "," characters.
38666 * kern/disk.c (find_part_sep): New.
38667 (grub_disk_open): Use it to find the first non-escaped ','
38668 character in the disk name.
38669 * util/ieee1275/devicemap.c (escape_of_path): New.
38670 (grub_util_emit_devicemap_entry): Use it.
38671 * util/sparc64/ieee1275/grub-install.in: Update script to
38672 strip partition specifiers properly by not triggering on
38673 '\' escaped ',' characters.
38674
38675 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38676
38677 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38678 to 0x300.
38679 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38680 resolutions.
38681 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38682 on documentation from Wikipedia).
38683
38684 2009-05-04 Pavel Roskin <proski@gnu.org>
38685
38686 * disk/ata.c: Spelling fixes.
38687 * disk/raid.c: Likewise.
38688 * disk/usbms.c: Likewise.
38689 * disk/dmraid_nvidia.c: Likewise.
38690 * kern/ieee1275/openfw.c: Likewise.
38691 * kern/ieee1275/init.c: Likewise.
38692 * kern/ieee1275/cmain.c: Likewise.
38693 * boot/i386/pc/cdboot.S: Likewise.
38694 * video/readers/png.c: Likewise.
38695 * video/i386/pc/vbe.c: Likewise.
38696 * fs/udf.c: Likewise.
38697 * fs/hfs.c: Likewise.
38698 * fs/reiserfs.c: Likewise.
38699 * efiemu/runtime/efiemu.c: Likewise.
38700 * efiemu/main.c: Likewise.
38701 * efiemu/mm.c: Likewise.
38702 * include/grub/elf.h: Likewise.
38703 * include/grub/xnu.h: Likewise.
38704 * include/grub/usbdesc.h: Likewise.
38705 * include/grub/usb.h: Likewise.
38706 * include/grub/script_sh.h: Likewise.
38707 * include/grub/lib/LzmaEnc.h: Likewise.
38708 * include/grub/efiemu/efiemu.h: Likewise.
38709 * include/grub/command.h: Likewise.
38710 * normal/menu.c: Likewise.
38711 * normal/main.c: Likewise.
38712 * normal/datetime.c: Likewise.
38713 * bus/usb/uhci.c: Likewise.
38714 * mmap/i386/uppermem.c: Likewise.
38715 * mmap/mmap.c: Likewise.
38716 * commands/acpi.c: Likewise.
38717 * commands/test.c: Likewise.
38718 * partmap/apple.c: Likewise.
38719 * font/font.c: Likewise.
38720 * loader/sparc64/ieee1275/linux.c: Likewise.
38721 * loader/macho.c: Likewise.
38722 * loader/i386/bsd_trampoline.S: Likewise.
38723 * loader/i386/bsd.c: Likewise.
38724 * loader/xnu.c: Likewise.
38725 * term/i386/pc/vesafb.c: Likewise.
38726 * term/usb_keyboard.c: Likewise.
38727 * util/resolve.c: Likewise.
38728 * util/getroot.c: Likewise.
38729
38730 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38731
38732 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38733
38734 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38735
38736 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38737 build error.
38738
38739 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38740
38741 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38742 parameter only available on BIOS.
38743
38744 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38745
38746 Removed wrong semicolon in declaration
38747
38748 * grub/misc.h (grub_dprintf): remove semicolon
38749
38750 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38751
38752 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38753 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38754 is done by grub_cmd_linux() now).
38755 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38756 restore video to text mode.
38757 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38758 indicates lack of "vga=" parameter. "vga=0" is mapped to
38759 `GRUB_LINUX_VID_MODE_NORMAL'.
38760
38761 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38762
38763 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38764 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38765 and `normal/script.c'. Add `kern/rescue_reader.c',
38766 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38767 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38768 `grub_script.tab.c'.
38769
38770 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38771 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38773 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38774 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38775
38776 * Makefile.in: Remove duplicated 2008 in Copyright line.
38777
38778 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38779
38780 * util/misc.c (grub_util_warn): New function. Emits a warning
38781 unconditionally.
38782 * include/grub/util/misc.h (grub_util_warn): New declaration.
38783
38784 * util/i386/pc/grub-install.in: Understand --force and pass it down
38785 to grub-setup.
38786
38787 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38788 down to setup().
38789 (setup): Improve error messages and add warnings when requested to
38790 install in odd layouts. Refuse to install using blocklists unless
38791 --force was set.
38792
38793 2009-05-04 martin f. krafft <madduck@madduck.net>
38794
38795 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38796
38797 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38798
38799 Updated copyright year
38800
38801 * fs/hfsplus.c: updated copyright year
38802
38803 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38804
38805 HFS+ UUID
38806
38807 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38808 in the space previously used by unused3
38809 (grub_hfsplus_uuid): new function
38810 (grub_hfsplus_fs): added uuid field
38811
38812 2009-05-03 Pavel Roskin <proski@gnu.org>
38813
38814 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38815 suppress warnings. It's no longer needed.
38816 * disk/host.c: Likewise.
38817 * disk/ata_pthru.c: Likewise.
38818 * disk/loopback.c: Likewise.
38819 * hook/datehook.c: Likewise.
38820 * parttool/pcpart.c: Likewise.
38821 * fs/i386/pc/pxe.c: Likewise.
38822 * fs/ntfscomp.c: Likewise.
38823 * efiemu/main.c: Likewise.
38824 * mmap/mmap.c: Likewise.
38825 * commands/crc.c: Likewise.
38826 * commands/hexdump.c: Likewise.
38827 * commands/hdparm.c: Likewise.
38828 * commands/acpi.c: Likewise.
38829 * commands/echo.c: Likewise.
38830 * commands/minicmd.c: Likewise.
38831 * commands/blocklist.c: Likewise.
38832 * commands/memrw.c: Likewise.
38833 * commands/loadenv.c: Likewise.
38834 * commands/usbtest.c: Likewise.
38835 * commands/lsmmap.c: Likewise.
38836 * commands/boot.c: Likewise.
38837 * commands/parttool.c: Likewise.
38838 * commands/configfile.c: Likewise.
38839 * commands/search.c: Likewise.
38840 * commands/ieee1275/suspend.c: Likewise.
38841 * commands/cat.c: Likewise.
38842 * commands/i386/pc/pxecmd.c: Likewise.
38843 * commands/i386/pc/play.c: Likewise.
38844 * commands/i386/pc/halt.c: Likewise.
38845 * commands/i386/pc/vbeinfo.c: Likewise.
38846 * commands/i386/pc/vbetest.c: Likewise.
38847 * commands/lspci.c: Likewise.
38848 * commands/date.c: Likewise.
38849 * commands/handler.c: Likewise.
38850 * commands/ls.c: Likewise.
38851 * commands/test.c: Likewise.
38852 * commands/cmp.c: Likewise.
38853 * commands/efi/loadbios.c: Likewise.
38854 * commands/efi/fixvideo.c: Likewise.
38855 * commands/halt.c: Likewise.
38856 * commands/help.c: Likewise.
38857 * commands/reboot.c: Likewise.
38858 * hello/hello.c: Likewise.
38859 * script/sh/main.c: Likewise.
38860 * loader/xnu.c: Likewise.
38861 * term/terminfo.c: Likewise.
38862 * term/i386/pc/serial.c: Likewise.
38863 * term/usb_keyboard.c: Likewise.
38864
38865 2009-05-03 David S. Miller <davem@davemloft.net>
38866
38867 * normal/menu.c: Include grub/parser.h
38868
38869 2009-05-03 Pavel Roskin <proski@gnu.org>
38870
38871 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38872 not char*.
38873 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38874 Suggested by Javier Martín <lordhabbit@gmail.com>
38875
38876 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38877 efiemu??.o doesn't exist.
38878 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38879 copying.
38880
38881 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38882
38883 FreeBSD 64-bit support
38884
38885 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38886 and loader/i386/bsd_trampoline.S
38887 (bsd_mod_ASFLAGS): new variable
38888 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38889 (FREEBSD_MODTYPE_KERNEL64): likewise
38890 (grub_bsd64_trampoline_start): likewise
38891 (grub_bsd64_trampoline_end): likewise
38892 (grub_bsd64_trampoline_selfjump): likewise
38893 (grub_bsd64_trampoline_gdt): likewise
38894 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38895 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38896 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38897 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38898 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38899 of "attrib" member
38900 * loader/i386/bsd_pagetable.c: new file
38901 * loader/i386/bsd_trampoline.S: likewise
38902 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38903 (ALIGN_VAR): likewise
38904 (entry_hi): new variable
38905 (kern_end_mdofs): likewise
38906 (is_64bit): likewise
38907 (grub_freebsd_add_meta): use ALIGN_VAR
38908 (grub_e820_mmap): new declaration
38909 (grub_freebsd_add_mmap): new function
38910 (grub_freebsd_add_meta_module): support 64 bit kernels
38911 (grub_freebsd_list_modules): use ALIGN_VAR
38912 (gdt_descriptor): new declaration
38913 (grub_freebsd_boot): support 64 bit kernels
38914 (grub_bsd_elf64_hook): new function
38915 (grub_bsd_load_elf): support elf64
38916
38917 2009-05-03 Bean <bean123ch@gmail.com>
38918
38919 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38920 after we get the result of if statement.
38921
38922 2009-05-03 Bean <bean123ch@gmail.com>
38923
38924 * Makefile.in (enable_efiemu): New variable.
38925
38926 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38927 set.
38928 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38929 path.
38930 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38931 path, add -mno-red-zone option.
38932 (efiemu64_s.o): Likewise.
38933 (efiemu64.o): Use macro $^ for source file.
38934
38935 * configure.ac (--enable-efiemu): New option.
38936
38937 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38938
38939 xnu support
38940
38941 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38942 (pkglib_MODULES): add xnu.mod
38943 (xnu_mod_SOURCES): new variable
38944 (xnu_mod_CFLAGS): likewise
38945 (xnu_mod_LDFLAGS): likewise
38946 (xnu_mod_ASFLAGS): likewise
38947 * conf/i386-pc.rmk: likewise
38948 * conf/x86_64-efi.rmk: likewise
38949 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38950 new declaration
38951 * include/grub/i386/macho.h: new file
38952 * include/grub/i386/xnu.h: likewise
38953 * include/grub/macho.h: likewise
38954 * include/grub/machoload.h: likewise
38955 * include/grub/x86_64/macho.h: likewise
38956 * include/grub/x86_64/xnu.h: likewise
38957 * include/grub/xnu.h: likewise
38958 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38959 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38960 * loader/i386/efi/xnu.c: new file
38961 * loader/i386/pc/xnu.c: likewise
38962 * loader/i386/xnu.c: likewise
38963 * loader/i386/xnu_helper.S: likewise
38964 * loader/macho.c: likewise
38965 * loader/xnu.c: likewise
38966 * loader/xnu_resume.c: likewise
38967 * util/grub-dumpdevtree: likewise
38968 * include/grub/i386/pit.h: include grub/err.h
38969 (grub_pit_wait): export
38970 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38971
38972 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38973
38974 Efiemu
38975
38976 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38977 _linux_efi, linux_efi.
38978 new files in grub-emu
38979 new targets efiemu32.o and efiemu64.o
38980 * loader/linux_normal_efiemu.c: likewise
38981 * loader/i386/efi/linux.c: added preliminary efiemu support
38982 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38983 files to copy
38984 * include/grub/autoefi.h: new file
38985 * include/grub/i386/efiemu.h: likewise
38986 * include/grub/i386/pc/efiemu.h: likewise
38987 * include/grub/efi/api.h: add LL suffix when necessary
38988 new definitions relating to tables
38989 * include/grub/efiemu/efiemu.h: new file
38990 * include/grub/efiemu/runtime.h: likewise
38991 * efiemu/prepare.c: likewise
38992 * efiemu/loadcore_common.c: likewise
38993 * efiemu/loadcore64.c: likewise
38994 * efiemu/runtime/efiemu.sh: likewise
38995 * efiemu/runtime/efiemu.S: likewise
38996 * efiemu/runtime/efiemu.c: likewise
38997 * efiemu/runtime/config.h: likewise
38998 * efiemu/prepare32.c: likewise
38999 * efiemu/main.c: likewise
39000 * efiemu/modules/pnvram.c: likewise
39001 * efiemu/modules/i386: likewise
39002 * efiemu/modules/i386/pc: likewise
39003 * efiemu/modules/acpi.c: likewise
39004 * efiemu/i386/pc/cfgtables.c: likewise
39005 * efiemu/i386/loadcore64.c: likewise
39006 * efiemu/i386/loadcore32.c: likewise
39007 * efiemu/prepare64.c: likewise
39008 * efiemu/loadcore.c: likewise
39009 * efiemu/symbols.c: likewise
39010 * efiemu/mm.c: likewise
39011 * efiemu/loadcore32.c: likewise
39012
39013 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39014
39015 ACPI spoofing
39016
39017 * commands/acpi.c: new file
39018 * commands/i386/pc/acpi.c: likewise
39019 * commands/efi/acpi.c: likewise
39020 * include/grub/acpi.h: likewise
39021 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39022 (acpi_mod_SOURCES): new variable
39023 (acpi_mod_CFLAGS): likewise
39024 (acpi_mod_LDFLAGS): likewise
39025 * conf/i386-efi.rmk: likewise
39026 * conf/x86_64-efi.rmk: likewise
39027
39028 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39029
39030 Missing part from mmap patch
39031
39032 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39033 (grub_mmap_unregister)
39034 (grub_mmap_free_and_unregister): use grub_mmap_register
39035
39036 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39037
39038 Mmap services
39039
39040 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39041 * loader/i386/linux.c (find_mmap_size): likewise
39042 (allocate_pages): likewise
39043 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39044 (grub_fill_multiboot_mmap): likewise
39045 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39046 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39047 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39048 (OPENBSD_MMAP_RESERVED): likewise
39049 * include/grub/i386/pc/memory.h: include grub/memory.h
39050 (grub_lower_mem): removed
39051 (grub_upper_mem): likewise
39052 (GRUB_MACHINE_MEMORY_ACPI): new definition
39053 (GRUB_MACHINE_MEMORY_NVS): likewise
39054 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39055 (GRUB_MACHINE_MEMORY_HOLE): likewise
39056 (grub_machine_mmap_register): likewise
39057 (grub_machine_mmap_unregister): likewise
39058 (grub_machine_get_upper): likewise
39059 (grub_machine_get_lower): likewise
39060 (grub_machine_get_post64): likewise
39061 * include/grub/i386/efi/memory.h: new file
39062 * include/grub/x86_64/efi/memory.h: likewise
39063 * include/grub/efi/memory.h: likewise
39064 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39065 (mmap_mod_SOURCES): new variable
39066 (mmap_mod_LDFLAGS): likewise
39067 (mmap_mod_ASFLAGS): likewise
39068 * conf/i386-coreboot.rmk: likewise
39069 * conf/i386-ieee1275.rmk: likewise
39070 * conf/i386-efi.rmk: likewise
39071 * conf/x86_64-efi.rmk: likewise
39072 * include/grub/types.h (UINT_TO_PTR): new macro
39073 (PTR_TO_UINT32): likewise
39074 (PTR_TO_UINT64): likewise
39075 * include/grub/memory.h: new file
39076 * mmap/i386/pc/mmap.c: likewise
39077 * mmap/i386/pc/mmap_helper.S: likewise
39078 * mmap/i386/uppermem.c: likewise
39079 * mmap/mmap.c: likewise
39080 * mmap/efi/mmap.c: likewise
39081 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39082 grub_upper_mem
39083 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39084 (grub_upper_mem): likewise
39085 (grub_machine_init): don't use grub_upper_mem,
39086 make grub_lower_mem local
39087 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39088 grub_mmap_iterate and grub_mmap_get_upper
39089 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39090
39091 2009-05-02 Bean <bean123ch@gmail.com>
39092
39093 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39094 script/sh/parser.y.
39095 (pkglib_MODULES): Add normal.mod and sh.mod.
39096 (normal_SOURCES): New variable.
39097 (normal_mod_CFLAGS): Likewise.
39098 (normal_mod_LDFLAGS): Likewise.
39099 (sh_mod_SOURCES): Likewise.
39100 (sh_mod_CFLAGS): Likewise.
39101 (sh_mod_LDFLAGS): Likewise.
39102
39103 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39104 script/sh/lexer.c_DEPENDENCIES.
39105 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39106 kern/rescue_reader.c and kern/rescue_parser.c.
39107 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39108 (grub_emu_SOURCES): Change source files.
39109 (pkglib_MODULES): Remove normal.mod.
39110 (normal_SOURCES): Removed.
39111 (normal_mod_CFLAGS): Likewise.
39112 (normal_mod_LDFLAGS): Likewise.
39113 * conf/i386-coreboot.rmk: Likewise.
39114 * conf/i386-efi.rmk: Likewise.
39115 * conf/i386-ieee1276.rmk: Likewise.
39116 * conf/powerpc-ieee1275.rmk: Likewise.
39117 * conf/sparc64-ieee1275.rmk: Likewise.
39118 * conf/x86_64-efi.rmk: Likewise.
39119
39120 * include/grub/command.h (grub_command_execute): New inline function.
39121
39122 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39123
39124 * include/grub/normal.h: Remove <grub/setjmp.h>.
39125 (grub_fs_module_list): Moved to normal/autofs.c.
39126 (grub_exit_env): Removed.
39127 (grub_command_execute): Likewise.
39128 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39129 parameter script.
39130 (read_command_list): New function declaration.
39131 (read_fs_list): Likewise.
39132
39133 * include/parser.h: Include <grub/reader.h>.
39134 (grub_parser_split_cmdline): Change type of getline parameter.
39135 (grub_parser): New structure.
39136 (grub_parser_class): New variable.
39137 (grub_parser_execute): New function declaration.
39138 (grub_register_rescue_parser): Likewise.
39139 (grub_parser_register): New inline function.
39140 (grub_parser_unregister): Likewise.
39141 (grub_parser_get_current): Likewise.
39142 (grub_parser_set_current): Likewise.
39143
39144 * include/grub/reader.h: New file.
39145 * kern/reader.c: Likewise.
39146 * kern/rescue_parser.c: Likewise.
39147 * kern/rescue_reader.c: Likewise.
39148 * normal/autofs.c: Likewise.
39149 * normal/dyncmd.c: Likewise.
39150
39151 * include/grub/rescue.h: Removed.
39152 * normal/command.h: Likewise.
39153
39154 * include/grub/script.h: Moved to ...
39155 * include/grub/script_sh.h: ... Moved here.
39156 * normal/execute.c: Moved to ...
39157 * script/sh/execute.c: ... Moved here.
39158 * normal/function.c: Moved to ...
39159 * script/sh/function.c: ... Moved here.
39160 * normal/lexer.c: Moved to ...
39161 * script/sh/lexer.c: ... Moved here.
39162 * normal/parser.y: Moved to ...
39163 * script/sh/parser.y: ... Moved here.
39164 * normal/script.c: Moved to ...
39165 * script/sh/script.c: ... Moved here.
39166
39167 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39168 <grub/reader.h>.
39169 (grub_exit_env): Removed.
39170 (fs_module_list): Moved to normal/autofs.c.
39171 (grub_file_getline): Don't handle comment here.
39172 (free_menu): Skip removed field entry->commands.
39173 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39174 script parameter.
39175 (read_config_file): Removed nested parameter, change getline function.
39176 (grub_enter_normal_mode): Removed.
39177 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39178 (read_command_list): Likewise.
39179 (autoload_fs_module): Moved to normal/autofs.c.
39180 (read_fs_list): Likewise.
39181 (reader_nested): New variable.
39182 (grub_normal_execute): Run parser.sh to switch to sh parser.
39183 (grub_cmd_rescue): Removed.
39184 (cmd_normal): Removed.
39185 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39186 rescue command.
39187 (grub_cmdline_run): New function.
39188 (grub_normal_reader_init): Likewise.
39189 (grub_normal_read_line): Likewise.
39190 (grub_env_write_pager): Likewise.
39191 (cmdline): New variable.
39192 (grub_normal_reader): Likewise.
39193 (GRUB_MOD_INIT): Register normal reader and set as current, register
39194 pager hook, register normal command with grub_register_command_prio,
39195 so that it won't show up in command.lst.
39196 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39197 grub_fs_autoload_hook.
39198
39199 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39200 (grub_menu_execute_entry): Replace grub_script_execute with
39201 grub_parser_execute, change parameter to grub_command_execute.
39202
39203 * normal/menu_text.c: Remove <grub/script.h>.
39204
39205 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39206 and <grub/parser.h>.
39207 (run): Change editor_getline to use new parser interface. Change
39208 parameter to grub_command_execute.
39209
39210 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39211 <grub/reader.h> and <grub/parser.h>.
39212 (grub_load_normal_mode): Execute normal command.
39213 (grub_main): Call grub_register_core_commands,
39214 grub_register_rescue_parser and grub_register_rescue_reader, use
39215 grub_reader_loop to enter input loop.
39216
39217 * kern/parser.c (grub_parser_split_cmdline): Change type of
39218 getline parameter.
39219 (grub_parser_class): New variable.
39220 (grub_parser_execute): New function.
39221
39222 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39223 * loader/multiboot2.c: Likewise.
39224 * loader/sparc64/ieee1275/linux.c: Likewise.
39225
39226 * util/grub-emu.c (read_command_list): New dummy function.
39227
39228 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39229
39230 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39231 count to 16 for CCISS and IDA.
39232
39233 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39234
39235 * normal/menu_text.c (grub_wait_after_message): Print a newline
39236 after waiting for user input.
39237
39238 * loader/i386/linux.c: Include `<grub/normal.h>'.
39239 (grub_cmd_linux): Improve the error message about `ask' mode, by
39240 waiting for user input so it's not missed (we can do this, since
39241 user requested interaction).
39242
39243 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39244
39245 Added missing lst to grub-mkrescue
39246
39247 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39248 and ${input_dir}/parttool.lst
39249
39250 2009-04-30 David S. Miller <davem@davemloft.net>
39251
39252 * util/hostdisk.c (device_is_wholedisk): New function.
39253 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39254 zero only if device_is_wholedisk() returns true.
39255
39256 * util/hostdisk.c (convert_system_partition_to_system_disk):
39257 Handle virtual disk devices named /dev/vdiskX as found on sparc
39258 and powerpc.
39259
39260 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39261 lettered partition specifier is found, convert to numbered.
39262
39263 2009-04-29 David S. Miller <davem@davemloft.net>
39264
39265 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39266 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39267
39268 * normal/command.c: Add missing newline at end of file.
39269
39270 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39271 warnings.
39272 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39273 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39274 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39275 ihandles have a 32-bit type but need to be stored in a "void *".
39276
39277 2009-04-28 Pavel Roskin <proski@gnu.org>
39278
39279 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39280 not disk. Adjust all dependencies.
39281 (grub_fs_uuid_close): Use grub_device_close(), not
39282 grub_disk_close().
39283
39284 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39285 parent's partition, don't copy it by reference, as it gets freed
39286 on close.
39287
39288 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39289
39290 Preboot hooks support
39291
39292 * commands/boot.c (struct grub_preboot_t): new declaration
39293 (preboots_head): new variable
39294 (preboots_tail): likewise
39295 (grub_loader_register_preboot_hook): new function
39296 (grub_loader_unregister_preboot_hook): likewise
39297 (grub_loader_set): launch preboot hooks
39298 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39299 (grub_loader_register_preboot_hook): new declaration
39300 (grub_loader_unregister_preboot_hook): likewise
39301
39302 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39303
39304 Warning fix
39305
39306 * disk/scsi.c (grub_scsi_open): added missing cast when
39307 calling grub_dprintf
39308
39309 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39310
39311 Bug and warning fixes
39312
39313 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39314 declaration
39315 * commands/test.c (test_parse): fixed bug with file tests and corrected
39316 declaration of find_file
39317
39318 2009-04-26 Pavel Roskin <proski@gnu.org>
39319
39320 * Makefile.in: Don't install empty manual pages if help2man is
39321 missing. Use help2man option for output, not shell redirection.
39322
39323 2009-04-26 David S. Miller <davem@davemloft.net>
39324
39325 * util/grub-mkdevicemap.c (make_device_map): Add missing
39326 NESTED_FUNC_ATTR to process_device().
39327
39328 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39329
39330 Test command
39331
39332 * commands/test.c: rewritten to use bash-like test
39333
39334 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39335
39336 Parttool autoloading and improvements
39337
39338 * Makefile.in (pkglib_DATA): add parttool.lst
39339 (parttool.lst): new target
39340 * genmk.rb: generate parttool-*
39341 (CLEANFILES): add #{parttool}
39342 (PARTTOOLFILES): new variable
39343 * genparttoollist.sh: new file
39344 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39345 (grub_pcpart_type): likewise
39346 * commands/parttool.c (helpmsg): new variable
39347 (grub_cmd_parttool): output help if not enough arguments are supplied
39348 autoload modules
39349 (GRUB_MOD_INIT(parttool)): use helpmsg
39350
39351 2009-04-24 David S. Miller <davem@davemloft.net>
39352
39353 Avoiding opening same device multiple times in device iterator.
39354
39355 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39356 and use it to build a list of partitions in iterate_disk() and
39357 iterate_partition().
39358
39359 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39360 on disk->data.
39361
39362 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39363 grub_devalias_iterate() result instead of unconditional 0.
39364 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39365 Also, capture hook return value, either directly or via
39366 grub_children_iterate(), and propagate to caller.
39367 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39368 grub_children_iterate): Return value is now 'int' instead of
39369 'grub_err_t'.
39370 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39371 like a proper iterator, stopping when hooks return non-zero.
39372 (grub_devalias_iterate): Likewise.
39373
39374 2009-04-23 David S. Miller <davem@davemloft.net>
39375
39376 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39377
39378 2009-04-22 David S. Miller <davem@davemloft.net>
39379
39380 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39381 is larger than address_cells, use that value for address_cells too.
39382
39383 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39384 IEEE1275_MAX_PATH_LEN): Define.
39385 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39386 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39387 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39388 'devtype'. Explicitly NULL terminate devalias expansion.
39389
39390 * util/sparc64/ieee1275/misc.c: New file.
39391 * util/sparc64/ieee1275/grub-setup.c: New file.
39392 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39393 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39394 * util/sparc64/ieee1275/grub-install.in: New file.
39395 * util/ieee1275/ofpath.c: New file.
39396 * util/ieee1275/devicemap.c: New file.
39397 * util/devicemap.c: New file.
39398 * util/deviceiter.c: New file.
39399 * kern/sparc64/ieee1275/init.c: New file.
39400 * include/grub/util/ofpath.h: New file.
39401 * include/grub/util/deviceiter.h: New file.
39402 * util/grub-mkdevicemap.c: Include deviceiter.h.
39403 Implement using grub_util_emit_devicemap_entry and
39404 grub_util_iterate_devices.
39405 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39406 util/devicemap.c into grub-mkdevicemap
39407 * conf/i386-efi.rmk: Likewise.
39408 * conf/i386-ieee1275.rmk: Likewise.
39409 * conf/i386-pc.rmk: Likewise.
39410 * conf/powerpc-ieee1275.rmk: Likewise.
39411 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39412 images and installation utilities. Build kernel as image
39413 instead of as elf binary. Use common rules as much as possible.
39414
39415 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39416
39417 Correct GPT definition
39418
39419 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39420 of "attrib" member
39421
39422 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39423
39424 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39425
39426 2009-04-19 David S. Miller <davem@davemloft.net>
39427
39428 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39429 (grub_rescue_cmd_linux): Rename to...
39430 (grub_cmd_linux): and fix prototype.
39431 (grub_rescue_cmd_initrd): Rename to...
39432 (grub_cmd_initrd): and fix prototype.
39433 (cmd_linux, cmd_initrd): New.
39434 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39435 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39436
39437 2009-04-17 Pavel Roskin <proski@gnu.org>
39438
39439 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39440 format.
39441 (grub_ohci_transfer): Likewise.
39442
39443 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39444
39445 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39446 return without a value. Fix inconsistent indentation.
39447
39448 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39449 match struct grub_fs.
39450
39451 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39452 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39453 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39454 * commands/lspci.c (grub_lspci_iter): Likewise.
39455
39456 2009-04-16 Bean <bean123ch@gmail.com>
39457
39458 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39459 value.
39460
39461 2009-04-15 Pavel Roskin <proski@gnu.org>
39462
39463 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39464 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39465 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39466 definitions.
39467
39468 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39469
39470 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39471 that no multiple data or metadata areas are supported and `Unknown
39472 metadata header'.
39473
39474 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39475
39476 Move loader out of the kernel
39477
39478 * kern/loader.c: moved to ...
39479 * commands/boot.c: ... moved here
39480 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39481 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39482 * include/grub/kernel.h (grub_machine_fini): export
39483 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39484 (grub_loader_set): likewise
39485 (grub_loader_unset): likewise
39486 (grub_loader_boot): likewise
39487 * conf/common.rmk: new module boot.mod
39488 (pkglib_MODULES): add boot.mod
39489 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39490 (grub_emu_SOURCES): likewise
39491 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39492 (grub_emu_SOURCES): likewise
39493 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39494 (grub_emu_SOURCES): likewise
39495 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39496 (grub_emu_SOURCES): likewise
39497 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39498 (grub_emu_SOURCES): likewise
39499 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39500 (grub_emu_SOURCES): likewise
39501 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39502 (grub_emu_SOURCES): likewise
39503
39504 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39505
39506 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39507
39508 * kern/misc.c (grub_itoa): Removed function
39509 (grub_ltoa): likewise
39510 (grub_vsprintf): use grub_lltoa
39511
39512 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39513
39514 Restore grub-emu
39515
39516 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39517 * conf/i386-coreboot.rmk: likewise
39518 * conf/i386-ieee1275.rmk: likewise
39519 * conf/powerpc-ieee1275.rmk: likewise
39520
39521 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39522
39523 * INSTALL: Add that `./autogen.sh' needs to be run before
39524 `./configure.'.
39525
39526 2009-04-14 Bean <bean123ch@gmail.com>
39527
39528 * Makefile.in (pkglib_DATA): Add handler.lst.
39529 (handler.lst): New rule.
39530
39531 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39532 * conf/i386-coreboot.rmk: Likewise.
39533 * conf/i386-ieee1275.rmk: Likewise.
39534 * conf/i386-efi.rmk: Likewise.
39535 * conf/x86_64-efi.rmk: Likewise.
39536 * conf/powerpc-ieee1275.rmk: Likewise.
39537 * conf/sparc64-ieee1275.rmk: Likewise.
39538
39539 * genhandlerlist.sh: New file.
39540
39541 * genmk.rb: Add rules to generate handler.lst.
39542
39543 * include/grub/normal.h (grub_file_getline): New function definition.
39544 (read_handler_list): Likewise.
39545 (free_handler_list): Likewise.
39546
39547 * include/grub/term.h (grub_term_register_input): Add name parameter
39548 for auto generation of handler.lst.
39549 (grub_term_register_output): Likewise.
39550
39551 * normal/handler.c: New file.
39552
39553 * normal/main.c (get_line): Renamed to grub_file_getline.
39554 (read_config_file): Use the newly renamed grub_file_getline.
39555 (read_command_list): Likewise.
39556 (read_fs_list): Likewise.
39557 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39558 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39559
39560 * term/efi/console.c (grub_console_init): Add name parameter for auto
39561 generation of handler.lst.
39562 * term/gfxterm.c: Likewise.
39563 * term/i386/pc/at_keyboard.c: Likewise.
39564 * term/i386/pc/console.c: Likewise.
39565 * term/i386/pc/serial.c: Likewise.
39566 * term/i386/pc/vesafb.c: Likewise.
39567 * term/i386/pc/vga.c: Likewise.
39568 * term/i386/pc/vga_text.c: Likewise.
39569 * term/ieee1275/ofconsole.c: Likewise.
39570 * term/usb_keyboard.c: Likewise.
39571
39572 2009-04-14 Bean <bean123ch@gmail.com>
39573
39574 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39575 properly with null character.
39576
39577 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39578
39579 * configure: Remove.
39580 * config.h.in: Likewise.
39581 * stamp-h.in: Likewise.
39582 * DISTLIST: Likewise.
39583 * conf/common.mk: Likewise.
39584 * conf/i386-coreboot.mk: Likewise.
39585 * conf/i386-efi.mk: Likewise.
39586 * conf/i386-ieee1275.mk: Likewise.
39587 * conf/i386.mk: Likewise.
39588 * conf/i386-pc.mk: Likewise.
39589 * conf/powerpc-ieee1275.mk: Likewise.
39590 * conf/sparc64-ieee1275.mk: Likewise.
39591 * conf/x86_64-efi.mk: Likewise.
39592
39593 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39594 develop on GRUB.
39595
39596 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39597 David S. Miller <davem@davemloft.net>
39598
39599 * util/hostdisk.c (make_device_name): Fix buffer length
39600 calculations.
39601
39602 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39603
39604 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39605 <sys/param.h> and <sys/sysctl.h>.
39606 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39607 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39608 opening the device and reset them afterwards.
39609
39610 2009-04-13 Pavel Roskin <proski@gnu.org>
39611
39612 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39613 Reported by John Stanley <jpsinthemix@verizon.net>
39614
39615 2009-04-13 Robert Millan <rmh@aybabtu.com>
39616
39617 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39618 that name for menuentries when appropriate.
39619
39620 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39621
39622 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39623
39624 2009-04-13 Robert Millan <rmh@aybabtu.com>
39625
39626 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39627 to Linux, simply abort telling the user it's no longer supported.
39628
39629 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39630
39631 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39632 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39633 `freebsd_loadenv' only when devices.hints exist.
39634
39635 2009-04-13 Pavel Roskin <proski@gnu.org>
39636
39637 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39638
39639 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39640
39641 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39642 partition number.
39643 (grub_drive): Likewise.
39644
39645 2009-04-13 David S. Miller <davem@davemloft.net>
39646
39647 * kern/sparc64/ieee1275/ieee1275.c: New file.
39648 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39649 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39650 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39651 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39652 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39653 grub_ieee1275_alloc_physmem): Declare new exported functions.
39654
39655 * include/grub/sparc64/ieee1275/loader.h: New file.
39656 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39657 * include/grub/sparc64/kernel.h: Likewise.
39658 * loader/sparc64/ieee1275/linux.c: Likewise.
39659
39660 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39661 (grub_fstest_SOURCES): Likewise.
39662
39663 * util/hostdisk.c (make_device_name): Do not make any assumptions
39664 about the length of drive names.
39665
39666 * kern/dl.c (grub_dl_load_file): Close file immediately when
39667 we are done using it.
39668
39669 2009-04-12 David S. Miller <davem@davemloft.net>
39670
39671 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39672 values. Noticed by Pavel Roskin.
39673
39674 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39675 target compiler.
39676
39677 * genmk.rb: Add more flexible image type specification, also
39678 pass --strip-unneeded to objcopy.
39679 * conf/i386-pc.rmk: Use *_FORMAT.
39680 * conf/i386-pc.mk: Rebuilt.
39681
39682 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39683 (OFDISK_HASH_SZ): Define.
39684 (ofdisk_hash): New hash table.
39685 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39686 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39687 instead of device phandle which is not unique.
39688
39689 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39690 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39691 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39692 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39693 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39694 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39695 GRUB_KERNEL_MACHINE_DATA_END): Define.
39696 (grub_kernel_image_size, grub_total_module_size): Declare.
39697
39698 2009-04-12 Pavel Roskin <proski@gnu.org>
39699
39700 * configure.ac: Change the logic when we check for target tools.
39701 Do it when the target is specified and it's different from the
39702 specified value of the host.
39703
39704 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39705
39706 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39707 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39708 GNU/kFreeBSD. Check if a device is a character device. Use
39709 DIOCGMEDIASIZE to get the size.
39710 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39711 support for GNU/kFreeBSD.
39712 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39713 is a character device instead of a block device. Add support for
39714 FreeBSD device names.
39715
39716 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39717 is a character device instead of a block device.
39718
39719 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39720 is a character device instead of a block device.
39721
39722 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39723
39724 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39725 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39726 FreeBSD. Check if a device is a character device. Use
39727 DIOCGMEDIASIZE to get the size.
39728 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39729 support for FreeBSD.
39730 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39731 is a character device instead of a block device. Add support for
39732 FreeBSD device names.
39733
39734 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39735 a character device instead of a block device.
39736 (grub_util_check_char_device): New function.
39737
39738 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39739 a character device instead of a block device.
39740
39741 * include/grub/util/getroot.h (grub_util_check_char_device): New
39742 prototype.
39743
39744 2009-04-11 David S. Miller <davem@davemloft.net>
39745
39746 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39747 static libgcc.
39748 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39749 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39750 function, if present.
39751 (__bswapdi2): Likewise.
39752
39753 * include/grub/sparc64/ieee1275/boot.h: New file.
39754 * boot/sparc64/ieee1275/boot.S: Likewise.
39755 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39756
39757 * kern/misc.c (grub_ltoa): New function.
39758 (grub_vsprintf): Use it to format 'long' integers.
39759
39760 2009-04-10 David S. Miller <davem@davemloft.net>
39761
39762 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39763 slots are of type grub_ieee1275_cell_t.
39764 (grub_nand_read): Likewise.
39765 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39766 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39767 macros are used to compare values in arg/ret block of the call.
39768 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39769 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39770 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39771 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39772 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39773 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39774 grub_ieee1275_close, grub_ieee1275_set_property,
39775 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39776 grub_ieee1275_cell_t.
39777 * kern/ieee1275/openfw.c (grub_map): Likewise.
39778 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39779 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39780
39781 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39782 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39783 (grub_devalias_iterate): Likewise.
39784
39785 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39786
39787 UFS improvements
39788
39789 * fs/ufs.c (INODE_NBLOCKS): new definition
39790 (struct grub_ufs_dirent): added fields for non-BSD dirents
39791 (grub_ufs_get_file_block): fixed double indirect handling
39792 (grub_ufs_lookup_symlink): use more robust way to determine whether
39793 symlink is inline
39794 (grub_ufs_find_file): support for non-BSD dirents
39795 (grub_ufs_dir): support for non-BSD dirents
39796
39797 2009-04-10 Bean <bean123ch@gnail.com>
39798
39799 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39800 attribute, otherwise the size would be wrong for i386 platform.
39801
39802 * include/grub/pci.h (grub_pci_read_word): New inline function.
39803 (grub_pci_read_byte): Likewise.
39804 (grub_pci_write): Likewise.
39805 (grub_pci_write_word): Likewise.
39806 (grub_pci_write_byte): Likewise.
39807
39808 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39809
39810 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39811 (find_framebuf): Scan pci to locate the frame buffer address.
39812
39813 * commands/efi/fixvideo.c: New file.
39814
39815 * commands/efi/loadbios.c: Likewise.
39816
39817 * commands/memrw.c: Likewise.
39818
39819 * util/grub-dumpbios.in: Likewise.
39820
39821 * conf/common.rmk (grub-dumpbios): New utility.
39822 (pkglib_MODULES): New module memrw.mod.
39823 (memrw_mod_SOURCE): New macro.
39824 (memrw_mod_CFLAGS): Likewise.
39825 (memrw_mod_LDFLAGS): Likewise.
39826
39827 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39828 fixvideo.mod.
39829 (loadbios_mod_SOURCE): New macro.
39830 (loadbios_mod_CFLAGS): Likewise.
39831 (loadbios_mod_LDFLAGS): Likewise.
39832 (fixvideo_mod_SOURCE): Likewise.
39833 (fixvideo_mod_CFLAGS): Likewise.
39834 (fixvideo_mod_LDFLAGS): Likewise.
39835
39836 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39837 fixvideo.mod.
39838 (loadbios_mod_SOURCE): New macro.
39839 (loadbios_mod_CFLAGS): Likewise.
39840 (loadbios_mod_LDFLAGS): Likewise.
39841 (fixvideo_mod_SOURCE): Likewise.
39842 (fixvideo_mod_CFLAGS): Likewise.
39843 (fixvideo_mod_LDFLAGS): Likewise.
39844
39845 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39846
39847 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39848
39849 2009-04-07 David S. Miller <davem@davemloft.net>
39850
39851 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39852 support for R_SPARC_OLO10 relocations. Fix compile warning for
39853 R_SPARC_WDISP30 case.
39854 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39855
39856 2009-04-06 Pavel Roskin <proski@gnu.org>
39857
39858 * include/grub/misc.h (ARRAY_SIZE): New macro.
39859 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39860 New macro.
39861 * loader/i386/linux.c (allocate_pages): Use free_pages().
39862 (grub_linux_unload): Don't use free_pages().
39863 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39864 wrong index. Treat all other modes as text modes.
39865 (grub_cmd_linux): Initialize vid_mode unconditionally to
39866 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39867
39868 * commands/help.c (print_command_help): Use cmd->prio, not
39869 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39870
39871 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39872
39873 Parttool
39874
39875 * parttool/pcpart.c: new file
39876 * commands/parttool.c: likewise
39877 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39878 (parttool_mod_SOURCES): new variable
39879 (parttool_mod_CFLAGS): likewise
39880 (parttool_mod_LDFLAGS): likewise
39881 (pcpart_mod_SOURCES): likewise
39882 (pcpart_mod_CFLAGS): likewise
39883 (pcpart_mod_LDFLAGS): likewise
39884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39885 and parttool/pcpart.c
39886 * conf/i386-efi.rmk: likewise
39887 * conf/i386-ieee1275.rmk: likewise
39888 * conf/i386-pc.rmk: likewise
39889 * conf/powerpc-ieee1275.rmk: likewise
39890 * conf/sparc64-ieee1275.rmk: likewise
39891 * conf/x86_64-ieee1275.rmk: likewise
39892
39893 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39894
39895 Support for mtime and further expandability of dir command
39896
39897 * include/grub/lib/datetime.h: moved to ...
39898 * include/grub/datetime.h: ... moved here and added
39899 declaration of grub_unixtime2datetime. All users updated
39900 * include/grub/fs.h: new syntax for dir and mtime functions in
39901 struct grub_fs
39902 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39903 and GRUB_FSHELP_FLAGS_MASK
39904 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39905 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39906 (grub_ext2_mtime): new function
39907 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39908 (grub_hfsplus_mtime): new function
39909 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39910 (GRUB_UFS_ATTR_FILE): likewise
39911 (GRUB_UFS_ATTR_LNK): likewise
39912 (struct grub_ufs_sblock): new fields mtime
39913 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39914 all users updated
39915 (grub_ufs_dir): mtime support
39916 (grub_ufs_mtime): new function
39917 * fs/affs.c (grub_affs_dir): use new dir syntax
39918 * fs/afs.c (grub_afs_dir): likewise
39919 * fs/cpio.c (grub_cpio_dir): likewise
39920 * fs/fat.c (grub_fat_find_dir): likewise
39921 * fs/hfs.c (grub_hfs_dir): likewise
39922 * fs/iso9660.c (grub_iso9660_dir): likewise
39923 * fs/jfs.c (grub_jfs_dir): likewise
39924 * fs/minix.c (grub_minix_dir): likewise
39925 * fs/ntfs.c (grub_ntfs_dir): likewise
39926 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39927 * fs/sfs.c (grub_sfs_dir): likewise
39928 * fs/xfs.c (grub_xfs_dir): likewise
39929 * util/hostfs.c (grub_hostfs_dir): likewise
39930 * lib/datetime.c: moved to ...
39931 * normal/datetime.c: ... moved here
39932 (grub_unixtime2datetime): new function
39933 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39934 * normal/completion.c (iterate_dir): use new dir syntax
39935 * normal/misc.c (grub_normal_print_device_info): tell the
39936 last modification time of a volume
39937 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39938 * conf/common.rmk: added lib/datetime.c to ls.mod
39939 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39940 (normal_mod_SOURCES): likewise
39941 (datetime_mod_SOURCES): Removed lib/datetime.c
39942 * conf/i386-efi.rmk: likewise
39943 * conf/i386-ieee1275.rmk: likewise
39944 * conf/i386-pc.rmk: likewise
39945 * conf/powerpc-ieee1275.rmk: likewise
39946 * conf/sparc64-ieee1275.rmk: likewise
39947 * conf/x86_64-efi.rmk: likewise
39948
39949 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39950
39951 Trim trailing spaces in FAT label and support mtools-like labels
39952
39953 * fs/fat.c (grub_fat_iterate_dir): New function based
39954 on grub_fat_find_dir
39955 (grub_fat_find_dir): use grub_fat_iterate_dir
39956 (grub_fat_label): likewise
39957
39958 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39959
39960 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39961 and command.h
39962 remove extraneous kernel_elf_HEADERS
39963
39964 2009-04-04 Bean <bean123ch@gnail.com>
39965
39966 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39967
39968 * util/misc.c: Likewise.
39969
39970 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39971
39972 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39973 instead of grub_printf.
39974
39975 2009-04-03 Robert Millan <rmh@aybabtu.com>
39976
39977 * loader/i386/linux.c (grub_linux_setup_video): Fill
39978 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39979 values from `mode info' structure instead of hardcoded
39980 values.
39981
39982 2009-04-01 Pavel Roskin <proski@gnu.org>
39983
39984 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39985 unused now.
39986 * genmk.rb: Likewise.
39987 * configure.ac: Likewise.
39988
39989 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39990
39991 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39992 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39993
39994 2009-04-01 David S. Miller <davem@davemloft.net>
39995
39996 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39997 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39998 (grub_setjmp): Mark with 'returns_twice' attribute.
39999 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40000 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40001 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40002
40003 2009-04-01 Robert Millan <rmh@aybabtu.com>
40004
40005 Reapply fix from 2008-07-28 which was accidentally reverted; also
40006 perform the same fix to a similar check in same function.
40007
40008 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40009 with the same number are found, just use issue a warning with
40010 grub_dprintf(), as this error has been reported to be non-fatal.
40011
40012 2009-03-31 Pavel Roskin <proski@gnu.org>
40013
40014 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40015 for cross-compilation.
40016
40017 2009-03-30 Robert Millan <rmh@aybabtu.com>
40018
40019 Fix i386-ieee1275 build.
40020
40021 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40022 Remove declaration.
40023
40024 2009-03-30 Pavel Roskin <proski@gnu.org>
40025
40026 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40027 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40028 zero-terminated, rely only on the strlen value. Fix comparison
40029 of strings differing in length.
40030
40031 2009-03-30 Robert Millan <rmh@aybabtu.com>
40032
40033 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40034 checking for abi version. Improve error messages on BIOS to notify
40035 user about `linux16' command.
40036
40037 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40038
40039 Leak fixes
40040
40041 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40042 in case of collision
40043 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40044
40045 2009-03-29 Robert Millan <rmh@aybabtu.com>
40046
40047 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40048 set `vid_mode' accordingly.
40049 (grub_linux_boot): Process `vid_mode' and set video mode.
40050
40051 2009-03-29 Robert Millan <rmh@aybabtu.com>
40052
40053 * util/grub.d/10_linux.in (linux_entry): New function.
40054 Factorize generation of Linux boot entries.
40055
40056 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40057
40058 Make the format of Environment Block plain text. The boot loader
40059 part is not tested well yet.
40060
40061 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40062 (buffer): Removed.
40063 (envblk): Likewise.
40064 (usage): Remove "info" and "clear". Add "unset". Update the
40065 description of "set", as this does not delete variables any
40066 longer.
40067 (create_envblk_file): Complete rewrite.
40068 (open_envblk_file): Likewise.
40069 (cmd_info): Removed.
40070 (cmd_list): Likewise.
40071 (cmd_set): Likewise.
40072 (cmd_clear): Likewise.
40073 (list_variables): New function.
40074 (write_envblk): Likewise.
40075 (set_variables): Likewise.
40076 (unset_variables): Likewise.
40077 (main): Complete rewrite.
40078
40079 * commands/loadenv.c (buffer): Removed.
40080 (envblk): Likewise.
40081 (open_envblk_file): New function.
40082 (read_envblk_file): Complete rewrite.
40083 (grub_cmd_load_env): Likewise.
40084 (grub_cmd_list_env): Likewise.
40085 (struct blocklist): New struct.
40086 (free_blocklists): New function.
40087 (check_blocklists): Likewise.
40088 (write_blocklists): Likewise.
40089 (grub_cmd_save_env): Complete rewrite.
40090
40091 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40092 a plain text signature.
40093 (GRUB_ENVBLK_MAXLEN): Removed.
40094 (struct grub_envblk): Complete rewrite.
40095 (grub_envblk_find): Removed.
40096 (grub_envblk_insert): Likewise.
40097 (grub_envblk_open): New prototype.
40098 (grub_envblk_set): Likewise.
40099 (grub_envblk_delete): Put const to VALUE.
40100 (grub_envblk_iterate): Put const to NAME and VALUE.
40101 (grub_envblk_close): New prototype.
40102 (grub_envblk_buffer): New inline function.
40103 (grub_envblk_size): Likewise.
40104
40105 * lib/envblk.c: Include grub/mm.h.
40106 (grub_env_find): Removed.
40107 (grub_envblk_open): New function.
40108 (grub_envblk_close): Likewise.
40109 (escaped_value_len): Likewise.
40110 (find_next_line): Likewise.
40111 (grub_envblk_insert): Removed.
40112 (grub_envblk_set): New function.
40113 (grub_envblk_delete): Complete rewrite.
40114 (grub_envblk_iterate): Likewise.
40115
40116 2009-03-28 Robert Millan <rmh@aybabtu.com>
40117
40118 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40119 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40120 variables. Use 16-bit loader.
40121 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40122 loader.
40123 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40124 (grub_linux16_boot): ... this. Update all users.
40125 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40126 (grub_linux_boot): ... this. Update all users.
40127
40128 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40129 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40130 commands to `linux16' and `initrd16'.
40131 (GRUB_MOD_FINI(linux)): Rename to ...
40132 (GRUB_MOD_FINI(linux16)): ... this.
40133
40134 2009-03-24 Pavel Roskin <proski@gnu.org>
40135
40136 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40137 not just for compilation.
40138
40139 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40140
40141 Move multiboot helper out of kernel
40142
40143 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40144 `loader/i386/multiboot_helper.S'.
40145 * conf/i386-coreboot.rmk: Likewise
40146 * conf/i386-ieee1275.rmk: Likewise
40147
40148 * kern/i386/loader.S: Move multiboot helpers from here...
40149 * loader/i386/multiboot_helper.S: ...moved here
40150 * include/grub/i386/loader.h: Move declarations of multiboot
40151 helpers from here...
40152 * include/grub/i386/multiboot.h: ...moved here
40153 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40154
40155 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40156
40157 * kern/env.c (grub_env_context_open): Added an argument to specify
40158 whether a new context inherits exported variables from current
40159 one. This is useful when making a sandbox to interpret a config
40160 file.
40161 All callers updated.
40162
40163 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40164
40165 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40166
40167 * kern/env.c (grub_env_context_close): Fix memory leaks.
40168
40169 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40170
40171 * normal/main.c (grub_normal_execute): Added an argument
40172 BATCH to specify if an interactive interface should be provided
40173 after reading a config file.
40174 All callers updated.
40175 (read_command_list): Prevent being executed twice.
40176 (read_fs_list): Likewise.
40177
40178 * include/grub/normal.h (grub_normal_execute): Updated the
40179 prototype.
40180
40181 2009-03-22 Pavel Roskin <proski@gno.org>
40182
40183 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40184 _start.
40185 * kern/i386/pc/startup.S: Likewise.
40186 * kern/i386/efi/startup.S: Likewise.
40187 * kern/i386/ieee1275/startup.S: Likewise.
40188 * kern/i386/coreboot/startup.S: Likewise.
40189 * kern/x86_64/efi/startup.S: Likewise.
40190
40191 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40192 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40193 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40194
40195 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40196
40197 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40198
40199 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40200 limit detection.
40201 Use vaddr of correct segment for entry_point.
40202
40203 2009-03-21 Bean <bean123ch@gmail.com>
40204
40205 * commands/blocklist.c: Add include file <grub/command.h>, remove
40206 <grub/normal.h> and <grub/arg.h>.
40207 (grub_cmd_blocklist): Use the new command interface.
40208 (GRUB_MOD_INIT): Likewise.
40209 (GRUB_MOD_FINI): Likewise.
40210 * commands/boot.c: Likewise.
40211 * commands/cat.c: Likewise.
40212 * commands/cmp.c: Likewise.
40213 * commands/configfile.c: Likewise.
40214 * commands/crc.c: Likewise.
40215 * commands/echo.c: Likewise.
40216 * commands/halt.c: Likewise.
40217 * commands/handler.c: Likewise.
40218 * commands/hdparm.c: Likewise.
40219 * commands/help.c: Likewise.
40220 * commands/hexdump.c: Likewise.
40221 * commands/loadenv.c: Likewise.
40222 * commands/ls.c: Likewise.
40223 * commands/lsmmap.c: Likewise.
40224 * commands/lspci.c: Likewise.
40225 * commands/loadenv.c: Likewise.
40226 * commands/read.c: Likewise.
40227 * commands/reboot.c: Likewise.
40228 * commands/search.c: Likewise.
40229 * commands/sleep.c: Likewise.
40230 * commands/test.c: Likewise.
40231 * commands/usbtest.c: Likewise.
40232 * commands/videotest.c: Likewise.
40233 * commands/i386/cpuid.c: Likewise.
40234 * commands/i386/pc/halt.c: Likewise.
40235 * commands/i386/pc/play.c: Likewise.
40236 * commands/i386/pc/pxecmd.c: Likewise.
40237 * commands/i386/pc/vbeinfo.c: Likewise.
40238 * commands/i386/pc/vbetest.c: Likewise.
40239 * commands/ieee1275/suspend.c: Likewise.
40240 * disk/loopback.c: Likewise.
40241 * font/font_cmd.c: Likewise.
40242 * hello/hello.c: Likewise.
40243 * loader/efi/appleloader.c: Likewise.
40244 * loader/efi/chainloader.c: Likewise.
40245 * loader/i386/bsd.c: Likewise.
40246 * loader/i386/efi/linux.c: Likewise.
40247 * loader/i386/ieee1275/linux.c: Likewise.
40248 * loader/i386/linux.c: Likewise.
40249 * loader/i386/pc/chainloader.c: Likewise.
40250 * loader/i386/pc/linux.c: Likewise.
40251 * loader/powerpc/ieee1275/linux.c: Likewise.
40252 * loader/multiboot_loader.c: Likewise.
40253 * term/gfxterm.c: Likewise.
40254 * term/i386/pc/serial.c: Likewise.
40255 * term/terminfo.c: Likewise.
40256
40257 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40258 * term/i386/pc/vga.c: Likewise.
40259 * video/readers/jpeg.c: Likewise.
40260 * video/readers/png.c: Likewise.
40261 * video/readers/tga.c: Likewise.
40262
40263 * util/grub-fstest (cmd_loopback): Removed.
40264 (cmd_blocklist): Likewise.
40265 (cmd_ls): Likewise.
40266 (grub_register_command): Likewise.
40267 (grub_unregister_command): Likewise.
40268 (execute_command): Use grub_command_find to locate command and execute
40269 it.
40270
40271 * include/grub/efi/chainloader.h: Removed.
40272 * loader/efi/chainloader_normal.c: Likewise.
40273 * loader/i386/bsd_normal.c: Likewise.
40274 * loader/i386/pc/chainloader_normal.c: Likewise.
40275 * loader/i386/pc/multiboot_normal.c: Likewise.
40276 * loader/linux_normal.c: Likewise.
40277 * loader/multiboot_loader_normal.c: Likewise.
40278 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40279
40280 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40281 and grub_register_command_p1.
40282
40283 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40284 kern/command.c, lib/arg.c and commands/extcmd.c.
40285 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40286 (minicmd_mod_SOURCES): New variable.
40287 (minicmd_mod_CFLAGS): Likewise.
40288 (minicmd_mod_LDFLAGS): Likewise.
40289 (extcmd_mod_SOURCES): Likewise.
40290 (extcmd_mod_CFLAGS): Likewise.
40291 (extcmd_mod_LDFLAGS): Likewise.
40292 (boot_mod_SOURCES): Removed.
40293 (boot_mod_CFLAGS): Likewise.
40294 (boot_mod_LDFLAGS): Likewise.
40295
40296 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40297 kern/corecmd.c.
40298 (kernel_img_HEADERS): Add command.h.
40299 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40300 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40301 and lib/arg.c.
40302 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40303 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40304 remove the corresponding normal mode command.
40305 (normal_mod_SOURCES): Remove normal/arg.c.
40306 * conf/i386-coreboot.rmk: Likewise.
40307 * conf/i386-efi.rmk: Likewise.
40308 * conf/i386-ieee1275.rmk: Likewise.
40309 * conf/powerpc-ieee1275.rmk: Likewise.
40310 * conf/x86_64-efi.rmk: Likewise.
40311
40312 * include/grub/arg.h: Move from here ...
40313 * include/grub/lib/arg.h: ... to here.
40314
40315 * normal/arg.c: Move from here ...
40316 * lib/arg.c: ... to here.
40317
40318 * commands/extcmd.c: New file.
40319 * commands/minicmd.c: Likewise.
40320 * include/grub/command.h: Likewise.
40321 * include/grub/extcmd.h: Likewise.
40322 * kern/command.c: Likewise.
40323 * kern/corecmd.c: Likewise.
40324
40325 * kern/list.c (grub_list_iterate): Return int instead of void.
40326 (grub_list_insert): New function.
40327 (grub_prio_list_insert): Likewise.
40328
40329 * kern/rescue.c (grub_rescue_command): Removed.
40330 (grub_rescue_command_list): Likewise.
40331 (grub_rescue_register_command): Likewise.
40332 (grub_rescue_unregister_command): Likewise.
40333 (grub_rescue_cmd_boot): Move to minicmd.c
40334 (grub_rescue_cmd_help): Likewise.
40335 (grub_rescue_cmd_info): Likewise.
40336 (grub_rescue_cmd_boot): Likewise.
40337 (grub_rescue_cmd_testload): Likewise.
40338 (grub_rescue_cmd_dump): Likewise.
40339 (grub_rescue_cmd_rmmod): Likewise.
40340 (grub_rescue_cmd_lsmod): Likewise.
40341 (grub_rescue_cmd_exit): Likewise.
40342 (grub_rescue_print_devices): Moved to corecmd.c.
40343 (grub_rescue_print_files): Likewise.
40344 (grub_rescue_cmd_ls): Likewise.
40345 (grub_rescue_cmd_insmod): Likewise.
40346 (grub_rescue_cmd_set): Likewise.
40347 (grub_rescue_cmd_unset): Likewise.
40348 (attempt_normal_mode): Use grub_command_find to get normal module.
40349 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40350 commands, remove grub_rescue_register_command calls.
40351
40352 * normal/command.c (grub_register_command): Removed.
40353 (grub_unregister_command): Likewise.
40354 (grub_command_find): Likewise.
40355 (grub_iterate_commands): Likewise.
40356 (rescue_command): Likewise.
40357 (export_command): Moved to corecmd.c.
40358 (set_command): Removed.
40359 (unset_command): Likewise.
40360 (insmod_command): Likewise.
40361 (rmmod_command): Likewise.
40362 (lsmod_command): Likewise.
40363 (grub_command_init): Likewise.
40364
40365 * normal/completion.c (iterate_command): Use cmd->prio to check for
40366 active command.
40367 (complete_arguments): Use grub_extcmd_t structure to find options.
40368 (grub_normal_do_completion): Change function grub_iterate_commands to
40369 grub_command_iterate.
40370
40371 * normal/execute.c (grub_script_execute_cmd): No need to parse
40372 argument here.
40373
40374 * normal/main.c (grub_dyncmd_dispatcher): New function.
40375 (read_command_list): Register unload commands as dyncmd.
40376 (grub_cmd_normal): Use new command interface, register rescue,
40377 unregister normal at entry, register normal, unregister rescue at exit.
40378
40379 * include/grub/list.h (grub_list_test_t): New type.
40380 (grub_list_iterate): Return int instead of void.
40381 (grub_list_insert): New function.
40382 (GRUB_AS_NAMED_LIST_P): New macro.
40383 (GRUB_AS_PRIO_LIST): Likewise.
40384 (GRUB_AS_PRIO_LIST_P): Likewise.
40385 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40386 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40387 (grub_prio_list): New structure.
40388 (grub_prio_list_insert): New function.
40389 (grub_prio_list_remove): New inline function.
40390
40391 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40392 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40393 (GRUB_COMMAND_FLAG_MENU): Likewise.
40394 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40395 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40396 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40397 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40398 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40399 (grub_command): Likewise.
40400 (grub_register_command): Likewise.
40401 (grub_command_find): Likewise.
40402 (grub_iterate_commands): Likewise.
40403 (grub_command_init): Likewise.
40404 (grub_arg_parse): Likewise.
40405 (grub_arg_show_help): Likewise.
40406
40407 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40408 (grub_rescue_unregister_command): Likewise.
40409
40410 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40411 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40412 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40413
40414 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40415 grub_rescue_cmd_initrd.
40416 * include/grub/i386/loader.h: Likewise.
40417 * include/grub/x86_64/loader.h: Likewise.
40418
40419 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40420
40421 2009-03-21 Bean <bean123ch@gmail.com>
40422
40423 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40424 instead of stat in mingw environment.
40425
40426 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40427
40428 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40429
40430 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40431 AC_CONFIG_LINKS.
40432
40433 2009-03-21 Bean <bean123ch@gmail.com>
40434
40435 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40436 out of range error.
40437
40438 2009-03-18 Michel Dänzer <michel@daenzer.net>
40439
40440 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40441 checking inode flags for EXT4_EXTENTS_FLAG.
40442
40443 2009-03-18 Robert Millan <rmh@aybabtu.com>
40444
40445 * loader/i386/linux.c: Include `<grub/video.h>' and
40446 `<grub/i386/pc/vbe.h>'..
40447 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40448 (grub_linux32_boot): Attempt to configure video settings with
40449 grub_linux_setup_video().
40450 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40451 to avoid grub_console_fini() which would step out of graphical mode
40452 unconditionally.
40453
40454 2009-03-14 Robert Millan <rmh@aybabtu.com>
40455
40456 Fix build on powerpc.
40457 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40458
40459 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40460
40461 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40462 background image command.
40463
40464 2009-03-12 Colin D Bennett <colin@gibibit.com>
40465
40466 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40467 (grub_gfxterm_putchar): Extract pairs of identical calls to
40468 draw_cursor out of conditional blocks.
40469
40470 2009-03-11 Pavel Roskin <proski@gnu.org>
40471
40472 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40473 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40474
40475 2009-03-11 Robert Millan <rmh@aybabtu.com>
40476
40477 * loader/i386/multiboot_elfxx.c
40478 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40479
40480 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40481
40482 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40483 `kern/handler.c'.
40484
40485 2009-03-11 Robert Millan <rmh@aybabtu.com>
40486
40487 * loader/i386/multiboot.c (code_size): New variable.
40488 (grub_multiboot): Define offsets by adding to `code_size' rather
40489 than subtracting from `grub_multiboot_payload_size'. Provide
40490 4-byte alignment to MBI and others by increasing
40491 `boot_loader_name_length' appropriately.
40492
40493 * loader/i386/multiboot_elfxx.c
40494 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40495
40496 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40497
40498 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40499 `fs/ext2.c'.
40500
40501 2009-03-08 Robert Millan <rmh@aybabtu.com>
40502
40503 Make loader/i386/linux.c usable on i386-pc again.
40504
40505 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40506 memory to heap.
40507 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40508 `#error' stanza.
40509
40510 2009-03-07 Bean <bean123ch@gmail.com>
40511
40512 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40513 allocation.
40514
40515 2009-03-06 Robert Millan <rmh@aybabtu.com>
40516
40517 Fix display issue on terminals with screen size other than 80x25
40518 (e.g. gfxterm with resolution higher than 640x480).
40519
40520 * normal/main.c (grub_normal_init_page): Display title text in a
40521 position relative to the center of the terminal instead of relying
40522 on a hardcoded offset.
40523
40524 2009-03-04 Robert Millan <rmh@aybabtu.com>
40525
40526 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40527 installed.
40528
40529 * Makefile.in (host_kernel): New variable.
40530 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40531 scripts instead of just the windows one.
40532 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40533
40534 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40535
40536 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40537 `kern/handler.c'.
40538 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40539 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40540 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40542 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40543 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40544
40545 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40546
40547 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40548 or if there's no space for the disk label and print the partition number on a
40549 invalid magic.
40550
40551 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40552
40553 * util/misc.c: Include <time.h>.
40554 (grub_millisleep): New function.
40555
40556 2009-03-04 Bean <bean123ch@gmail.com>
40557
40558 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40559 another option -mno-red-zone.
40560
40561 * commands/handler.c: Change module description.
40562
40563 * kern/handler.c: Add missing space at the end of description line.
40564
40565 * kern/list.c: Likewise.
40566
40567 2009-03-03 Robert Millan <rmh@aybabtu.com>
40568
40569 Move more components to the relocation area, and fix mbi pointer
40570 handling to use the destination rather than the origin (thanks to
40571 Vladimir Serbinenko for spotting).
40572
40573 * loader/i386/multiboot.c (mbi_dest): New variable.
40574 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40575 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40576 relocation area.
40577
40578 2009-03-01 Bean <bean123ch@gmail.com>
40579
40580 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40581 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40582 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40583 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40584
40585 * loader/i386/efi/linux.c (acpi_guid): New variable.
40586 (acpi_guid): Likewise.
40587 (EBDA_SEG_ADDR): New constant.
40588 (LOW_MEM_ADDR): Likewise.
40589 (FAKE_EBDA_SEG): Likewise.
40590 (fake_bios_data): New function.
40591 (grub_linux_boot): Call fake_bios_data.
40592
40593 2009-03-01 Bean <bean123ch@gmail.com>
40594
40595 * commands/terminal.c: Removed.
40596
40597 * commands/handler.c: New file.
40598
40599 * include/grub/list.h: Likewise.
40600
40601 * include/grub/handler.h: Likewise.
40602
40603 * kern/list.c: Likewise.
40604
40605 * kern/handler.c: Likewise.
40606
40607 * kern/term.h: Include header file <grub/handler.h>.
40608 (grub_term_input): Move next field to the beginning.
40609 (grub_term_output): Likewise.
40610 (grub_term_input_class): New variable.
40611 (grub_term_output_class): Likewise.
40612 (grub_term_register_input): Changed to inline function.
40613 (grub_term_register_output): Likewise.
40614 (grub_term_unregister_input): Likewise.
40615 (grub_term_unregister_output): Likewise.
40616 (grub_term_set_current_input): Likewise.
40617 (grub_term_set_current_output): Likewise.
40618 (grub_term_get_current_input): Likewise.
40619 (grub_term_get_current_output): Likewise.
40620 (grub_term_iterate_input): Removed.
40621 (grub_term_iterate_output): Likewise.
40622
40623 * kern/term.c (grub_term_list_input): Removed.
40624 (grub_term_list_output): Likewise.
40625 (grub_term_input_class): New variable.
40626 (grub_term_output_class): Likewise.
40627 (grub_cur_term_input): Change variable as macro.
40628 (grub_cur_term_output): Likewise.
40629 (grub_term_register_input): Removed.
40630 (grub_term_register_output): Likewise.
40631 (grub_term_unregister_input): Likewise.
40632 (grub_term_unregister_output): Likewise.
40633 (grub_term_set_current_input): Likewise.
40634 (grub_term_set_current_output): Likewise.
40635 (grub_term_iterate_input): Likewise.
40636 (grub_term_iterate_output): Likewise.
40637 (grub_term_get_current_input): Likewise.
40638 (grub_term_get_current_output): Likewise.
40639
40640 * util/grub-editenv.c: Include header file <grub/handler.h>.
40641 (grub_term_get_current_input): Removed.
40642 (grub_term_get_current_output): Likewise.
40643 (grub_term_input_class): New variable.
40644 (grub_term_output_class): Likewise.
40645
40646 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40647 (grub_term_get_current_output): Likewise.
40648 (grub_term_input_class): New variable.
40649 (grub_term_output_class): Likewise.
40650
40651 * util/grub-probe.c (grub_term_get_current_input): Removed.
40652 (grub_term_get_current_output): Likewise.
40653 (grub_term_input_class): New variable.
40654 (grub_term_output_class): Likewise.
40655
40656 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40657 (grub_term_get_current_output): Likewise.
40658 (grub_term_input_class): New variable.
40659 (grub_term_output_class): Likewise.
40660
40661 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40662 (terminal_mod_SOURCES): Likewise.
40663 (terminal_mod_CFLAGS): Likewise.
40664 (terminal_mod_LDFLAGS): Likewise.
40665
40666 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40667 handler.c.
40668 (kernel_img_SOURCES): Add list.c and handler.c.
40669 (kernel_img_HEADERS): Add list.h and handler.h.
40670
40671 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40672 handler.c.
40673 (kernel_mod_SOURCES): Add list.c and handler.c.
40674 (kernel_mod_HEADERS): Add list.h and handler.h.
40675
40676 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40677 handler.c.
40678 (kernel_elf_SOURCES): Add list.c and handler.c.
40679 (kernel_elf_HEADERS): Add list.h and handler.h.
40680
40681 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40682 handler.c.
40683 (kernel_elf_SOURCES): Add list.c and handler.c.
40684 (kernel_elf_HEADERS): Add list.h and handler.h.
40685
40686 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40687 handler.c.
40688 (kernel_mod_SOURCES): Add list.c and handler.c.
40689 (kernel_mod_HEADERS): Add list.h and handler.h.
40690
40691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40692 handler.c.
40693 (kernel_elf_SOURCES): Add list.c and handler.c.
40694 (kernel_elf_HEADERS): Add list.h and handler.h.
40695
40696 2009-02-27 Robert Millan <rmh@aybabtu.com>
40697
40698 Factorize elf32 / elf64 code in Multiboot loader. This will
40699 prevent it from getting out of sync again.
40700
40701 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40702 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40703 grub_multiboot_load_elf64): Move from here ...
40704 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40705 grub_multiboot_load_elf): ... to here (new file).
40706
40707 2009-02-27 Robert Millan <rmh@aybabtu.com>
40708
40709 * util/grub.d/10_linux.in: Rename "single-user mode" to
40710 "recovery mode".
40711
40712 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40713
40714 Don't leak in SCSI code.
40715 * disk/scsi.c (grub_scsi_close): free `scsi'.
40716
40717 2009-02-27 Robert Millan <rmh@aybabtu.com>
40718
40719 * loader/i386/pc/multiboot.c: Move from here ...
40720 * loader/i386/multiboot.c: ... to here. Update all users.
40721
40722 2009-02-27 Robert Millan <rmh@aybabtu.com>
40723
40724 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40725 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40726
40727 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40728
40729 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40730 b-tree.
40731
40732 2009-02-27 Robert Millan <rmh@aybabtu.com>
40733
40734 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40735 `0x' qualifier as 0 when base is specified as parameter).
40736
40737 2009-02-24 Bean <bean123ch@gmail.com>
40738
40739 * configure.ac: Check for -mcmodel=large in x86_64 target.
40740
40741 * include/grub/efi/api.h (efi_call_10): New macro.
40742 (efi_wrap_10): New function.
40743
40744 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40745 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40746 (GRUB_PE32_REL_BASED_LOW): Likewise.
40747 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40748 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40749 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40750 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40751 (GRUB_PE32_REL_BASED_REL): Likewise.
40752 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40753 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40754 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40755
40756 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40757 issue.
40758
40759 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40760 (efi_wrap_10): New function.
40761
40762 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40763
40764 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40765 MB/MBP model (NV chipset).
40766 (devdata_devs): Add devpath_5 to the list.
40767
40768 * load/i386/efi/linux.c (video_base): Remove variable.
40769 (RGB_MASK): New macro.
40770 (RGB_MAGIC): Likewise.
40771 (LINE_MIN): Likewise.
40772 (LINE_MAX): Likewise.
40773 (FBTEST_STEP): Likewise.
40774 (FBTEST_COUNT): Likewise.
40775 (fb_list): New variable.
40776 (grub_find_video_card): Remove function.
40777 (find_framebuf): New function.
40778 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40779 line length.
40780
40781 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40782 problem for x86_64.
40783
40784 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40785
40786 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40787
40788 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40789 coding tool name.
40790
40791 2009-02-22 Robert Millan <rmh@aybabtu.com>
40792
40793 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40794 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40795 in our relocation, instead of using it directly from heap. Also
40796 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40797
40798 2009-02-21 Robert Millan <rmh@aybabtu.com>
40799
40800 Implement USB keyboard support (based on patch by Marco Gerards)
40801
40802 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40803 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40804 (usb_keyboard_mod_LDFLAGS): New variables.
40805
40806 * term/usb_keyboard.c: New file.
40807
40808 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40809
40810 Corrected wrong declaration
40811
40812 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40813
40814 2009-02-14 Christian Franke <franke@computer.org>
40815
40816 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40817 (grub_lspci_iter): Print class code and programming interface byte.
40818
40819 2009-02-14 Christian Franke <franke@computer.org>
40820
40821 * gendistlist.sh: Ignore `.svn' directories.
40822
40823 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40824
40825 * fs/fat.c: Add 2009 to Copyright line.
40826
40827 2009-02-14 Christian Franke <franke@computer.org>
40828
40829 * commands/hdparm.c: New file. Provides `hdparm' command
40830 which sends ATA commands via grub_disk_ata_pass_through ().
40831
40832 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40833
40834 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40835 and <grub/cpu/io.h> to include/grub/ata.h.
40836 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40837 (GRUB_CDROM_SECTOR_SIZE): Remove.
40838 (GRUB_ATA_*): Move to include/grub/ata.h.
40839 (GRUB_ATAPI_*): Likewise.
40840 (enum grub_ata_commands): Likewise.
40841 (enum grub_ata_timeout_milliseconds): Likewise.
40842 (struct grub_ata_device): Likewise.
40843 (grub_ata_regset): Likewise.
40844 (grub_ata_regget): Likewise.
40845 (grub_ata_regset2): Likewise.
40846 (grub_ata_regget2): Likewise.
40847 (grub_ata_check_ready): Likewise.
40848 (grub_ata_wait_not_busy): Remove static, exported in
40849 include/grub/ata.h.
40850 (grub_ata_wait_drq): Likewise.
40851 (grub_ata_pio_read): Likewise.
40852
40853 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40854 function for hdparm.mod.
40855
40856 * include/grub/ata.h: New file, contains declarations from
40857 disk/ata.c.
40858 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40859
40860 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40861 (grub_disk_ata_pass_through): New exported variable.
40862
40863 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40864
40865 2009-02-13 Colin D Bennett <colin@gibibit.com>
40866
40867 Support multiple fallback entries, and provide an API to support
40868 executing default+fallback menu entries. Renamed the `terminal' menu
40869 viewer to `text'.
40870
40871 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40872 variable declaration.
40873 (grub_menu_execute_callback): New structure declaration.
40874 (grub_menu_execute_callback_t): New typedef.
40875 (grub_menu_execute_with_fallback): New function declaration.
40876 (grub_menu_get_entry): Likewise.
40877 (grub_menu_get_timeout): Likewise.
40878 (grub_menu_set_timeout): Likewise.
40879
40880 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40881
40882 * normal/menu.c (grub_wait_after_message): Moved to
40883 `normal/menu_text.c'.
40884 (draw_border): Likewise.
40885 (print_message): Likewise.
40886 (print_entry): Likewise.
40887 (print_entries): Likewise.
40888 (grub_menu_init_page): Likewise.
40889 (get_entry_number): Likewise.
40890 (print_timeout): Likewise.
40891 (run_menu): Likewise.
40892 (grub_menu_execute_entry): Likewise.
40893 (show_text_menu): Likewise.
40894 (get_and_remove_first_entry_number): New function.
40895 (grub_menu_execute_with_fallback): Likewise.
40896 (get_entry): Renamed to ...
40897 (grub_menu_get_entry): .. this and made it global.
40898 (get_timeout): Renamed to ...
40899 (grub_menu_get_timeout): ... this and made it global.
40900 (set_timeout): Renamed to ...
40901 (grub_menu_set_timeout): ... this and made it global.
40902 (grub_normal_terminal_menu_viewer): Renamed to ...
40903 (grub_normal_text_menu_viewer): ... this.
40904
40905 * normal/menu_text.c: New file. Extracted text-menu-specific code
40906 from normal/menu.c.
40907
40908 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40909 (normal_mod_SOURCES): Likewise.
40910
40911 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40912 (normal_mod_SOURCES): Likewise.
40913
40914 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40915 (normal_mod_SOURCES): Likewise.
40916
40917 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40918 (normal_mod_SOURCES): Likewise.
40919
40920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40921 (normal_mod_SOURCES): Likewise.
40922
40923 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40924 (normal_mod_SOURCES): Likewise.
40925
40926 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40927 (normal_mod_SOURCES): Likewise.
40928
40929 2009-02-11 Robert Millan <rmh@aybabtu.com>
40930
40931 * util/grub.d/00_header.in: Update old reference to `font' command.
40932
40933 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40934
40935 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40936
40937 Based on patch from Javier Martín.
40938
40939 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40940
40941 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40942 to avoid false positives with FAT.
40943 (grub_fstest_SOURCES): Likewise.
40944 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40945 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40946 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40947 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40948 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40949 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40950
40951 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40952
40953 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40954 bpb.version_specific.fat12_or_fat16.fstype and
40955 bpb.version_specific.fat32.fstype.
40956
40957 2009-02-08 Robert Millan <rmh@aybabtu.com>
40958
40959 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40960
40961 2009-02-08 Robert Millan <rmh@aybabtu.com>
40962
40963 * Makefile.in (host_os, host_cpu): New variables.
40964 (target_os): Remove. Update all users.
40965
40966 2009-02-08 Marco Gerards <marco@gnu.org>
40967
40968 * Makefile.in (enable_grub_emu_usb): New variable.
40969 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40970 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40971 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40972 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40973 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40974 `usbtest.mod' and `usbms.mod'.
40975 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40976 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40977 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40978 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40979 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40980 variables.
40981
40982 * disk/usbms.c: New file.
40983
40984 * include/grub/usb.h: Likewise.
40985
40986 * include/grub/usbtrans.h: Likewise.
40987
40988 * include/grub/usbdesc.h: Likewise.
40989
40990 * bus/usb/usbtrans.c: Likewise.
40991
40992 * bus/usb/ohci.c: Likewise.
40993
40994 * bus/usb/uhci.c: Likewise.
40995
40996 * bus/usb/usbhub.c: Likewise.
40997
40998 * bus/usb/usb.c: Likewise.
40999
41000 * commands/usbtest.c: Likewise.
41001
41002 * util/usb.c: Likewise.
41003
41004 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41005
41006 * configure.ac: Test for libusb presence.
41007
41008 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41009
41010 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41011
41012 * kern/mm.c: Add more comments.
41013
41014 2009-02-08 Robert Millan <rmh@aybabtu.com>
41015
41016 Patch from Javier Martín.
41017 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41018 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41019
41020 2009-02-08 Robert Millan <rmh@aybabtu.com>
41021
41022 * fs/cpio.c: Split tar functionality to ...
41023 * fs/tar.c: ... here (new file). Update all users.
41024
41025 2009-02-07 Robert Millan <rmh@aybabtu.com>
41026
41027 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41028 backward-incompatible features.
41029
41030 Based on patch from Javier Martín, with some adjustments.
41031
41032 2009-02-07 Michael Scherer <misc@mandriva.org>
41033
41034 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41035
41036 2009-02-07 Robert Millan <rmh@aybabtu.com>
41037
41038 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41039 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41040 after the RAID stuff.
41041
41042 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41043
41044 Fixes problem when running vbetest command as reported by
41045 Vladimir Serbinenko <phcoder@gmail.com>.
41046
41047 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41048
41049 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41050
41051 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41052 /dev/md/NpN style mdraid devices.
41053
41054 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41055
41056 * util/unifont2pff.rb: Remove.
41057
41058 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41059
41060 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41061 `#'.
41062
41063 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41064
41065 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41066 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41067 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41068 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41070 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41071 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41072
41073 2009-02-02 Christian Franke <franke@computer.org>
41074
41075 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41076
41077 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41078
41079 * INSTALL: Note that we now require at least autoconf 2.59 and
41080 that LZO is optional.
41081
41082 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41083
41084 Base on patch on bug #24154 created by Tomas Tintera
41085 <trosos@seznam.cz>.
41086
41087 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41088
41089 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41090
41091 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41092 <bero@arklinux.org>.
41093
41094 * normal/parser.y (script_init): Add missing semicolon.
41095
41096 2009-01-31 Colin D Bennett <colin@gibibit.com>
41097
41098 * normal/main.c: Add include to grub/menu_viewer.h.
41099 (free_menu_entry_classes): Added.
41100 (grub_normal_menu_addentry): Added class property handling.
41101 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41102 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41103
41104 * normal/menu_viewer.c: New file.
41105
41106 * normal/menu.c (run_menu_entry): Renamed to ...
41107 (grub_menu_execute_entry): ... this and made it as global.
41108 (grub_menu_run): Renamed to ...
41109 (show_text_menu): ... this and made it local.
41110 (show_text_menu): Adapt to new function names.
41111 (grub_normal_terminal_menu_viewer): New global variable.
41112
41113 * include/grub/menu.h: New file.
41114
41115 * include/grub/menu_viewer.h: New file.
41116
41117 * include/grub/normal.h: Added include to grub/menu.h.
41118 (grub_menu_entry): Moved to include/grub/menu.h.
41119 (grub_menu_entry_t): Likewise.
41120 (grub_menu): Likewise.
41121 (grub_menu_t): Likewise.
41122 (grub_normal_terminal_menu_viewer): Added.
41123 (grub_menu_execute_entry): Likewise.
41124 (grub_menu_run): Removed.
41125
41126 * DISTLIST: Added include/grub/menu.h.
41127 Added include/grub/menu_viewer.h.
41128 Added normal/menu_viewer.c.
41129
41130 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41131
41132 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41133 arglist for menutitle arguments.
41134
41135 * normal/main.c (grub_normal_menu_addentry): Likewise.
41136
41137 * normal/parser.y (menuentry): Likewise.
41138
41139 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41140
41141 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41142 (grub_script_create_cmdmenu): Likewise.
41143
41144 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41145
41146 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41147 changes.
41148
41149 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41150
41151 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41152
41153 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41154
41155 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41156
41157 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41158
41159 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41160
41161 2009-01-30 Christian Franke <franke@computer.org>
41162
41163 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41164 in option help text.
41165
41166 2009-01-27 Pavel Roskin <proski@gnu.org>
41167
41168 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41169
41170 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41171
41172 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41173
41174 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41175
41176 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41177 unregister function.
41178
41179 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41180
41181 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41182
41183 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41184
41185 * util/grub-mkfont.c (usage): Fix typo.
41186
41187 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41188
41189 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41190
41191 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41192
41193 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41194
41195 * kern/misc.c (grub_strcasecmp): New function.
41196 (grub_strcasecmp): Use grub_size_t instead of int for length.
41197 Fix return value.
41198 * include/grub/misc.h: Update function prototypes.
41199
41200 2009-01-26 Robert Millan <rmh@aybabtu.com>
41201
41202 * configure.ac: Fix cross-compilation check.
41203
41204 2009-01-22 Christian Franke <franke@computer.org>
41205
41206 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41207 (precision) digit string. Allow `.format2' without `format1' (width).
41208 Limit input chars for `%s' output to `format2' if specified. This is
41209 compatible with standard printf ().
41210
41211 2009-01-22 Christian Franke <franke@computer.org>
41212
41213 * disk/ata.c (grub_ata_wait_status): Replace by ...
41214 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41215 other status bits may be invalid while BSY is asserted.
41216 (grub_ata_check_ready): New function.
41217 (grub_ata_cmd): Removed.
41218 (grub_ata_wait_drq): New function.
41219 (grub_ata_strncpy): Remove inline.
41220 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41221 and error check now done by grub_ata_wait_drq ().
41222 (grub_ata_pio_write): Likewise.
41223 (grub_atapi_identify): Set DEV before check for !BSY. Use
41224 grub_ata_wait_drq () to wait for data.
41225 (grub_ata_device_initialize): Add status register check to
41226 detect missing SATA slave devices. Add debug messages.
41227 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41228 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41229 transfer loop by grub_ata_pio_write ().
41230 (grub_ata_identify): Set DEV before check for !BSY. Use
41231 grub_ata_wait_drq () to wait for data.
41232 (grub_ata_setaddress): Set DEV before check for !BSY.
41233 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41234 read/write in one loop. Fix invalid command on write. Fix incomplete
41235 command on (size % batch) == 0. Add missing error check after write of
41236 last block. Add debug messages.
41237 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41238
41239 2009-01-19 Christian Franke <franke@computer.org>
41240
41241 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41242 (GRUB_ATAPI_IREASON_*): Likewise.
41243 (grub_ata_pio_write): Fix timeout error return.
41244 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41245 (grub_atapi_wait_drq): New function.
41246 (grub_atapi_packet): New parameter `size'.
41247 Use grub_atapi_wait_drq () and direct write instead of
41248 grub_ata_pio_write ().
41249 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41250 reads the number of bytes requested by the device for each DRQ
41251 assertion.
41252 (grub_atapi_write): Remove old implementation, return not
41253 implemented instead.
41254
41255 2009-01-19 Christian Franke <franke@computer.org>
41256
41257 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41258 of 512 to calculate data size.
41259 (grub_scsi_read12): Likewise.
41260 (grub_scsi_write10): Likewise.
41261 (grub_scsi_write12): Likewise.
41262 (grub_scsi_read): Adjust size according to blocksize.
41263 Add checks for invalid blocksize and unaligned transfer.
41264
41265 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41266
41267 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41268
41269 * term/gfxterm.c (write_char): Fix background rendering for wide
41270 width glyphs.
41271
41272 2009-01-19 Robert Millan <rmh@aybabtu.com>
41273
41274 * config.guess: Update to latest version from config git.
41275 * config.sub: Likewise.
41276
41277 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41278
41279 * Makefile.in: Change font compilation to use new grub-mkfont instead
41280 of java version.
41281
41282 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41283 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41284 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41285 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41286 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41287 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41288 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41289 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41290 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41291
41292 2009-01-16 Christian Franke <franke@computer.org>
41293
41294 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41295 (enum grub_ata_timeout_milliseconds): New enum.
41296 (grub_ata_wait_status): Add parameter milliseconds.
41297 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41298 recovery from timed-out commands.
41299 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41300 return grub_errno instead of REG_ERROR.
41301 (grub_ata_pio_write): Add parameter milliseconds.
41302 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41303 Pass milliseconds to grub_ata_wait_status () and
41304 grub_ata_pio_read ().
41305 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41306 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41307 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41308 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41309 It is not suitable for device detection, because DEV bit is ignored,
41310 the command may run too long, and not all devices set the signature
41311 properly.
41312 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41313 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41314 Fix device selection, DEV bit must be set first to address the registers
41315 of the correct device.
41316 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41317 grub_ata_pio_read/write ().
41318 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41319 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41320
41321 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41322
41323 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41324
41325 2009-01-13 Bean <bean123ch@gmail.com>
41326
41327 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41328
41329 2009-01-13 Bean <bean123ch@gmail.com>
41330
41331 * Makefile.in: (enable_grub_mkfont): New variable.
41332 (freetype_cflags): Likewise.
41333 (freetype_libs): Likewise.
41334
41335 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41336 (grub_mkfont_SOURCES): New variable.
41337 (grub_mkfont_CFLAGS): Likewise.
41338 (grub_mkfont_LDFLAGS): Likewise.
41339
41340 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41341 library if `--enable-grub-mkfont' is requested.
41342 (enable_grub_mkfont): New variable.
41343 (freetype_cflags): Likewise.
41344 (freetype_libs): Likewise.
41345
41346 * util/grub-mkfont.c: New file.
41347
41348 2009-01-12 Christian Franke <franke@computer.org>
41349
41350 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41351 mode check. Fix setting of compat_use[].
41352
41353 2009-01-10 Robert Millan <rmh@aybabtu.com>
41354
41355 Update a few copyright years which we forgot to do in 2008 (only for
41356 files whose changes made in 2008 were copyright-significant)
41357
41358 * Makefile.in: Add 2008 to Copyright line.
41359 * disk/ieee1275/ofdisk.c: Likewise.
41360 * disk/efi/efidisk.c: Likewise.
41361 * kern/dl.c: Likewise.
41362 * kern/sparc64/ieee1275/init.c: Likewise.
41363 * kern/mm.c: Likewise.
41364 * kern/efi/mm.c: Likewise.
41365 * boot/i386/pc/boot.S: Likewise.
41366 * genfslist.sh: Likewise.
41367 * fs/iso9660.c: Likewise.
41368 * fs/hfs.c: Likewise.
41369 * fs/jfs.c: Likewise.
41370 * fs/minix.c: Likewise.
41371 * fs/ufs.c: Likewise.
41372 * gensymlist.sh.in: Likewise.
41373 * genkernsyms.sh.in: Likewise.
41374 * include/grub/misc.h: Likewise.
41375 * include/grub/types.h: Likewise.
41376 * include/grub/symbol.h: Likewise.
41377 * include/grub/elf.h: Likewise.
41378 * include/grub/kernel.h: Likewise.
41379 * include/grub/disk.h: Likewise.
41380 * include/grub/dl.h: Likewise.
41381 * include/grub/i386/linux.h: Likewise.
41382 * include/grub/i386/pc/biosdisk.h: Likewise.
41383 * include/grub/efi/api.h: Likewise.
41384 * include/grub/efi/pe32.h: Likewise.
41385 * include/grub/util/misc.h: Likewise.
41386 * normal/execute.c: Likewise.
41387 * normal/arg.c: Likewise.
41388 * normal/completion.c: Likewise.
41389 * normal/lexer.c: Likewise.
41390 * normal/parser.y: Likewise.
41391 * normal/misc.c: Likewise.
41392 * commands/i386/pc/vbeinfo.c: Likewise.
41393 * commands/hexdump.c: Likewise.
41394 * commands/terminal.c: Likewise.
41395 * commands/ls.c: Likewise.
41396 * commands/help.c: Likewise.
41397 * partmap/pc.c: Likewise.
41398 * loader/efi/chainloader.c: Likewise.
41399 * loader/multiboot_loader.c: Likewise.
41400 * loader/i386/pc/multiboot2.c: Likewise.
41401 * term/efi/console.c: Likewise.
41402 * term/i386/pc/serial.c: Likewise.
41403 * util/lvm.c: Likewise.
41404 * util/console.c: Likewise.
41405 * util/i386/efi/grub-mkimage.c: Likewise.
41406 * util/raid.c: Likewise.
41407
41408 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41409
41410 * commands/videotest.c: Removed include to grub/machine/memory.h.
41411
41412 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41413 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41414 (video_mod_SOURCES): Removed.
41415 (video_mod_CFLAGS): Likewise.
41416 (video_mod_LDFLAGS): Likewise.
41417 (gfxterm_mod_SOURCES): Likewise.
41418 (gfxterm_mod_CFLAGS): Likewise.
41419 (gfxterm_mod_LDFLAGS): Likewise.
41420 (videotest_mod_SOURCES): Likewise.
41421 (videotest_mod_CFLAGS): Likewise.
41422 (videotest_mod_LDFLAGS): Likewise.
41423 (bitmap_mod_SOURCES): Likewise.
41424 (bitmap_mod_CFLAGS): Likewise.
41425 (bitmap_mod_LDFLAGS): Likewise.
41426 (tga_mod_SOURCES): Likewise.
41427 (tga_mod_CFLAGS): Likewise.
41428 (tga_mod_LDFLAGS): Likewise.
41429 (jpeg_mod_SOURCES): Likewise.
41430 (jpeg_mod_CFLAGS): Likewise.
41431 (jpeg_mod_LDFLAGS): Likewise.
41432 (png_mod_SOURCES): Likewise.
41433 (png_mod_CFLAGS): Likewise.
41434 (png_mod_LDFLAGS): Likewise.
41435
41436 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41437 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41438 (video_mod_SOURCES): Added.
41439 (video_mod_CFLAGS): Likewise.
41440 (video_mod_LDFLAGS): Likewise.
41441 (videotest_mod_SOURCES): Likewise.
41442 (videotest_mod_CFLAGS): Likewise.
41443 (videotest_mod_LDFLAGS): Likewise.
41444 (bitmap_mod_SOURCES): Likewise.
41445 (bitmap_mod_CFLAGS): Likewise.
41446 (bitmap_mod_LDFLAGS): Likewise.
41447 (tga_mod_SOURCES): Likewise.
41448 (tga_mod_CFLAGS): Likewise.
41449 (tga_mod_LDFLAGS): Likewise.
41450 (jpeg_mod_SOURCES): Likewise.
41451 (jpeg_mod_CFLAGS): Likewise.
41452 (jpeg_mod_LDFLAGS): Likewise.
41453 (png_mod_SOURCES): Likewise.
41454 (png_mod_CFLAGS): Likewise.
41455 (png_mod_LDFLAGS): Likewise.
41456 (gfxterm_mod_SOURCES): Likewise.
41457 (gfxterm_mod_CFLAGS): Likewise.
41458 (gfxterm_mod_LDFLAGS): Likewise.
41459
41460 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41461 grub/machine/console.h.
41462
41463 2009-01-04 Jerone Young <jerone@gmail.com>
41464
41465 Make on screen instructions clearer
41466
41467 Based on patch created by Jidanni <jidanni@jidanni.org>
41468
41469 * normal/menu.c: print clearer instructions on the screen
41470
41471 2009-01-02 Colin D Bennett <colin@gibibit.com>
41472
41473 New font engine.
41474
41475 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41476 build system and fixed gfxterm.c to work with different sized fonts.
41477
41478 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41479
41480 * configure: Re-generated.
41481
41482 * DISTLIST: Removed font/manager.c.
41483 Added font/font.c.
41484 Added font/font_cmd.c.
41485
41486 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41487 compilation.
41488
41489 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41490
41491 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41492
41493 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41494
41495 * normal/menu.c: Likewise.
41496
41497 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41498 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41499
41500 * include/grub/font.h: Replaced with new file.
41501
41502 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41503 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41504 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41505 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41506 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41507 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41508 fg_red, fg_green, fg_blue, fg_alpha.
41509 (grub_video_adapter): Removed blit_glyph.
41510 (grub_video_blit_glyph): Removed.
41511
41512 * font/manager.c: Removed file.
41513
41514 * font/font.c: New file.
41515
41516 * font/font_cmd.c: Likewise.
41517
41518 * video/video.c (grub_video_blit_glyph): Removed.
41519
41520 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41521 (grub_video_vbe_map_rgba): Likewise.
41522 (grub_video_vbe_unmap_color_int): Likewise.
41523 (grub_video_vbe_blit_glyph): Removed.
41524 (grub_video_vbe_adapter): Removed blit_glyph.
41525
41526 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41527 (get_pixel): Likewise.
41528 (set_pixel): Likewise.
41529
41530 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41531
41532 * term/gfxterm.c: Adapted to new font engine.
41533
41534 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41535
41536 * term/i386/pc/vga.c: Likewise.
41537
41538 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41539
41540 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41541
41542 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41543
41544 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41545
41546 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41547
41548 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41549
41550 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41551
41552 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41553
41554 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41555
41556 * util/grub.d/00_header.in: Changed to use new loadfont command.
41557
41558 * util/grub-mkconfig_lib.in: Changed font extension.
41559
41560 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41561
41562 * util/getroot.c (grub_util_get_grub_dev): Add support for
41563 /dev/md/dNNpNN style partitionable mdraid devices.
41564
41565 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41566
41567 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41568 at a time limit of the PXE TFTP API correctly.
41569 (grub_pxefs_close): Likewise.
41570
41571 2008-11-29 Robert Millan <rmh@aybabtu.com>
41572
41573 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41574 grub_ata_device_initialize() calls.
41575
41576 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41577
41578 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41579 iteration failed.
41580 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41581
41582 2008-11-28 Robert Millan <rmh@aybabtu.com>
41583
41584 Fix build on powerpc-ieee1275. Based on patch created by
41585 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41586 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41587 `kern/ieee1275/mmap.c'.
41588 * include/grub/powerpc/ieee1275/memory.h: New file.
41589
41590 Provide grub-install on coreboot.
41591 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41592 (grub_install_SOURCES): New variable.
41593 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41594 usable on coreboot.
41595
41596 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41597
41598 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41599 to `grub_term_input_t'.
41600 (grub_term_get_current_output): Change return type to
41601 `grub_term_output_t'.
41602
41603 2008-11-22 Robert Millan <rmh@aybabtu.com>
41604
41605 Fix breakage on coreboot due to declaration mismatch.
41606 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41607 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41608 grub_vga_text_cls().
41609
41610 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41611 comments. Avoid copying one more byte than necessary (just in case).
41612
41613 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41614 to 0x200000 (avoids trouble with some OFW implementations, and matches
41615 with the one in Yaboot).
41616 Reported by Manoel Abranches
41617
41618 2008-11-20 Robert Millan <rmh@aybabtu.com>
41619
41620 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41621 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41622
41623 * util/grub-mkconfig_lib.in (grub_warn): New function.
41624 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41625 warnings, to obtain consistent formatting.
41626 * util/grub.d/00_header.in: Likewise.
41627 * util/update-grub_lib.in: Likewise.
41628
41629 * loader/i386/linux.c (allocate_pages): Fix a warning.
41630 Move comment text to `#error' stanza.
41631
41632 Harmonize ieee1275's grub_available_iterate() with the generic
41633 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41634 build problem on i386-ieee1275):
41635 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41636 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41637 parameter `type'. Update all users of this function.
41638 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41639 `kern/ieee1275/mmap.c'.
41640 * kern/ieee1275/init.c
41641 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41642 with ...
41643 (grub_machine_mmap_iterate): ... this.
41644 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41645 return type to `grub_err_t'. Update all implementations of this
41646 function prototype.
41647 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41648 Likewise.
41649
41650 Add `lsmmap' command (lists firmware-provided memory map):
41651 * commands/lsmmap.c: New file.
41652 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41653 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41654 variables.
41655 * conf/powerpc-ieee1275.rmk: Likewise.
41656 * conf/i386-coreboot.rmk: Likewise.
41657 * conf/i386-ieee1275.rmk: Likewise.
41658
41659 2008-11-19 Robert Millan <rmh@aybabtu.com>
41660
41661 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41662 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41663 constraints to initrd allocation (based on code from
41664 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41665 for Linux to find it.
41666
41667 2008-11-14 Robert Millan <rmh@aybabtu.com>
41668
41669 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41670 order to cope with duplicate slashes.
41671
41672 2008-11-14 Robert Millan <rmh@aybabtu.com>
41673
41674 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41675 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41676 don't want to mess with lower memory, because it is used in the Linux
41677 loader.
41678
41679 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41680 an appropriate place in lower memory, between 0x10000 and 0x90000,
41681 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41682 is in our heap (probably as a result of it being corrupted during
41683 decompression). Add #error instance with comment to explain why this
41684 loader isn't currently usable on PC/BIOS.
41685
41686 2008-11-14 Robert Millan <rmh@aybabtu.com>
41687
41688 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41689 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41690
41691 2008-11-12 Robert Millan <rmh@aybabtu.com>
41692
41693 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41694
41695 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41696 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41697 from here ...
41698 * include/grub/i386/pc/memory.h: ... to here.
41699
41700 2008-11-12 Robert Millan <rmh@aybabtu.com>
41701
41702 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41703 split).
41704
41705 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41706 (grub_console_cur_color, grub_console_real_putchar)
41707 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41708 (grub_console_setcolorstate, grub_console_setcolor)
41709 (grub_console_getcolor): Move from here ...
41710 * include/grub/i386/vga_common.h: ... to here (new file).
41711
41712 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41713 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41714 `<grub/i386/io.h>'.
41715 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41716 `<grub/i386/vga_common.h>'.
41717
41718 2008-11-12 Robert Millan <rmh@aybabtu.com>
41719
41720 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41721 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41722 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41723 variables.
41724 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41725 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41726
41727 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41728 grub_console_init() with call to grub_vga_text_init().
41729 (grub_machine_fini): Replace call to
41730 grub_console_fini() with call to grub_vga_text_fini() and
41731 grub_at_keyboard_fini().
41732
41733 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41734 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41735 (grub_console_setcolorstate, grub_console_setcolor)
41736 (grub_console_getcolor): New function prototypes.
41737
41738 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41739 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41740 (grub_vga_text_setcursor): Static-ize.
41741 (grub_vga_text_term): New structure.
41742 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41743
41744 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41745 (grub_console_cur_color, grub_console_standard_color)
41746 (grub_console_normal_color, grub_console_highlight_color)
41747 (map_char, grub_console_putchar, grub_console_getcharwidth)
41748 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41749 (grub_console_getcolor): Move from here ...
41750 * term/i386/vga_common.c: ... to here (same function names).
41751
41752 2008-11-12 Robert Millan <rmh@aybabtu.com>
41753
41754 Use newly-added Multiboot support in coreboot.
41755
41756 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41757 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41758
41759 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41760 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41761 (codestart): Store the MBI in `startup_multiboot_info' when we're
41762 being loaded using Multiboot.
41763
41764 * kern/i386/coreboot/init.c (grub_machine_init): Move
41765 grub_at_keyboard_init() call to beginning of function (useful for
41766 debugging). Call grub_machine_mmap_init() before attempting to use
41767 grub_machine_mmap_iterate().
41768 (grub_lower_mem, grub_upper_mem): Move from here ...
41769 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41770 here (new file).
41771
41772 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41773 function prototype.
41774
41775 2008-11-12 Robert Millan <rmh@aybabtu.com>
41776
41777 Fix a regression introduced by the at_keyboard.mod split. Because
41778 some terminals are default on some platforms and non-default on
41779 others, the first terminal being registered determines which is
41780 going to be default.
41781
41782 * kern/term.c (grub_term_register_input): If this is the first
41783 terminal being registered, set it as the current one.
41784 (grub_term_register_output): Likewise.
41785
41786 * term/efi/console.c (grub_console_init): Do not call
41787 grub_term_set_current_output() or grub_term_set_current_input().
41788 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41789 * term/i386/pc/console.c (grub_console_init): Likewise.
41790 (grub_console_fini): Do not call grub_term_set_current_input()
41791 (but leave grub_term_set_current_output() to restore text mode).
41792
41793 2008-11-10 Robert Millan <rmh@aybabtu.com>
41794
41795 * util/grub.d/00_header.in: Add backward compatibility check for
41796 versions of terminal.mod that don't understand `terminal_input' or
41797 `terminal_output'.
41798
41799 2008-11-09 Robert Millan <rmh@aybabtu.com>
41800
41801 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41802 `terminal_input' / `terminal_output', not `terminal'.
41803
41804 2008-11-08 Robert Millan <rmh@aybabtu.com>
41805
41806 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41807 (DISTCLEANFILES): Add `build_env.mk'.
41808
41809 2008-11-08 Robert Millan <rmh@aybabtu.com>
41810
41811 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41812 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41813 members. Update all users.
41814 * util/console.c (grub_ncurses_term): Split in ...
41815 (grub_ncurses_term_input): ... this, and ...
41816 (grub_ncurses_term_output): ... this. Update all users.
41817 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41818
41819 2008-11-08 Robert Millan <rmh@aybabtu.com>
41820
41821 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41822 (PKGDATA): Add $(pkgdata_SRCDIR).
41823 (pkglib_BUILDDIR): New variable.
41824 (pkgdata_SRCDIR): New variable.
41825 (build_env.mk): New target.
41826 (include_DATA): New variable.
41827 (install-local): Install $(include_DATA) files in $(includedir).
41828
41829 2008-11-07 Pavel Roskin <proski@gnu.org>
41830
41831 * gendistlist.sh: Use C locale for sorting to ensure consistent
41832 output on all systems.
41833
41834 * util/grub.d/00_header.in: Remove incorrect space before
41835 "serial".
41836
41837 2008-11-07 Robert Millan <rmh@aybabtu.com>
41838
41839 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41840 per specification.
41841 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41842 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41843 (based on find_multi_boot1_header).
41844 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41845 using find_multi_boot2_header(), and abort if neither Multiboot or
41846 Multiboot headers were found.
41847
41848 2008-11-07 Robert Millan <rmh@aybabtu.com>
41849
41850 Modularize at_keyboard.mod:
41851
41852 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41853 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41854 (at_keyboard_mod_LDFLAGS): New variables.
41855
41856 Actual terminal split:
41857
41858 * include/grub/term.h (struct grub_term): Split in ...
41859 (struct grub_term_input): ... this, and ...
41860 (struct grub_term_output): ... this. Update all users.
41861 (grub_term_set_current): Split in ...
41862 (grub_term_set_current_input): ... this, and ...
41863 (grub_term_set_current_output): ... this.
41864 (grub_term_get_current): Split in ...
41865 (grub_term_get_current_input): ... this, and ...
41866 (grub_term_get_current_output): ... this.
41867 (grub_term_register): Split in ...
41868 (grub_term_register_input): ... this, and ...
41869 (grub_term_register_output): ... this.
41870 (grub_term_unregister): Split in ...
41871 (grub_term_unregister_input): ... this, and ...
41872 (grub_term_unregister_output): ... this.
41873 (grub_term_iterate): Split in ...
41874 (grub_term_iterate_input): ... this, and ...
41875 (grub_term_iterate_output): ... this.
41876
41877 * kern/term.c (grub_term_list): Split in ...
41878 (grub_term_list_input): ... this, and ...
41879 (grub_term_list_output): ... this. Update all users.
41880 (grub_cur_term): Split in ...
41881 (grub_cur_term_input): ... this, and ...
41882 (grub_cur_term_output): ... this. Update all users.
41883 (grub_term_set_current): Split in ...
41884 (grub_term_set_current_input): ... this, and ...
41885 (grub_term_set_current_output): ... this.
41886 (grub_term_get_current): Split in ...
41887 (grub_term_get_current_input): ... this, and ...
41888 (grub_term_get_current_output): ... this.
41889 (grub_term_register): Split in ...
41890 (grub_term_register_input): ... this, and ...
41891 (grub_term_register_output): ... this.
41892 (grub_term_unregister): Split in ...
41893 (grub_term_unregister_input): ... this, and ...
41894 (grub_term_unregister_output): ... this.
41895 (grub_term_iterate): Split in ...
41896 (grub_term_iterate_input): ... this, and ...
41897 (grub_term_iterate_output): ... this.
41898
41899 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41900 a check for input and one for output (and only attempt to get keys
41901 from user when input works).
41902
41903 * util/grub-probe.c (grub_term_get_current): Split in ...
41904 (grub_term_get_current_input): ... this, and ...
41905 (grub_term_get_current_output): ... this.
41906 * util/grub-fstest.c: Likewise.
41907 * util/i386/pc/grub-setup.c: Likewise.
41908 * util/grub-editenv.c: Likewise.
41909
41910 Portability adjustments:
41911
41912 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41913 `term/i386/pc/at_keyboard.c'.
41914 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41915 grub_keyboard_controller_init() (now handled by terminal .init).
41916 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41917 grub_at_keyboard_init().
41918 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41919 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41920 at_keyboard.mod via input terminal interface).
41921 * include/grub/i386/coreboot/console.h: Convert into a stub for
41922 `<grub/i386/pc/console.h>'.
41923
41924 Migrate full terminals to new API:
41925
41926 * term/efi/console.c (grub_console_term): Split into ...
41927 (grub_console_term_input): ... this, and ...
41928 (grub_console_term_output): ... this. Update all users.
41929 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41930 (grub_ofconsole_init): Split into ...
41931 (grub_ofconsole_init_input): ... this, and ...
41932 (grub_ofconsole_init_output): ... this.
41933 (grub_ofconsole_term): Split into ...
41934 (grub_ofconsole_term_input): ... this, and ...
41935 (grub_ofconsole_term_output): ... this. Update all users.
41936 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41937 (grub_serial_term_input): ... this, and ...
41938 (grub_serial_term_output): ... this. Update all users.
41939 * term/i386/pc/console.c (grub_console_term): Split into ...
41940 (grub_console_term_input): ... this, and ...
41941 (grub_console_term_output): ... this. Update all users.
41942 (grub_console_term_input): Only enable it on PC/BIOS platform.
41943 (grub_console_init): Remove grub_keyboard_controller_init() call.
41944
41945 Migrate input terminals to new API:
41946
41947 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41948 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41949 i386-specific anyway).
41950 (grub_console_checkkey): Rename to ...
41951 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41952 users.
41953 (grub_keyboard_controller_orig): New variable.
41954 (grub_console_getkey): Rename to ...
41955 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41956 users.
41957 (grub_keyboard_controller_init): Static-ize. Save original
41958 controller value so that it can be restored ...
41959 (grub_keyboard_controller_fini): ... here (new function).
41960 (grub_at_keyboard_term): New structure.
41961 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41962 functions.
41963
41964 Migrate output terminals to new API:
41965
41966 * term/i386/pc/vga.c (grub_vga_term): Change type to
41967 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41968 members. Update all users.
41969 * term/gfxterm.c (grub_video_term): Change type to
41970 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41971 members. Update all users.
41972 * include/grub/i386/pc/console.h (grub_console_checkkey)
41973 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41974 etc).
41975
41976 Migrate `terminal' command and userland tools to new API:
41977
41978 * commands/terminal.c (grub_cmd_terminal): Split into ...
41979 (grub_cmd_terminal_input): ... this, and ...
41980 (grub_cmd_terminal_output): ... this.
41981 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41982 `terminal_input' and `terminal_output'.
41983 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41984 `terminal_input' / `terminal_output' API.
41985 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41986 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41987 provided ${GRUB_TERMINAL}, convert it).
41988
41989 2008-11-04 Robert Millan <rmh@aybabtu.com>
41990
41991 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41992 for FreeBSD.
41993 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41994
41995 2008-11-03 Bean <bean123ch@gmail.com>
41996
41997 * kern/elf.c (grub_elf32_load): Revert to previous code.
41998 (grub_elf64_load): Likewise.
41999
42000 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42001
42002 2008-11-01 Robert Millan <rmh@aybabtu.com>
42003
42004 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42005 (TARGET_CPPFLAGS): Likewise.
42006 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42007
42008 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42009
42010 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42011
42012 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42013
42014 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42015 addition of objects until the code is not going to be able to fail.
42016
42017 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42018
42019 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42020 (add a missing NULL check, and correct them by moving the pointer
42021 operations after the actual check).
42022
42023 2008-10-29 Robert Millan <rmh@aybabtu.com>
42024
42025 * util/i386/pc/grub-install.in: Handle empty string as output from
42026 make_system_path_relative_to_its_root().
42027
42028 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42029
42030 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42031 circular metadata worst case scenario. If the metadata is circular
42032 then copy the wrap in place.
42033 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42034 project lib/format_text/layout.h
42035 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42036
42037 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42038
42039 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42040
42041 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42042
42043 * util/update-grub_lib.in: Mention filename in warning message.
42044
42045 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42046
42047 * NEWS: Update for rename of update-grub to grub-mkconfig.
42048
42049 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42050
42051 * util/update-grub_lib.in: Copy to ...
42052 * util/grub-mkconfig_lib.in: ... this. Update all users.
42053 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42054 * util/update-grub.in: Rename to ...
42055 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42056 option. Add `--output' option to allow users to specify the generated
42057 configuration file. Default to stdout.
42058 (update_grub_dir): Rename to ...
42059 (grub_mkconfig_dir): ... this.
42060 (grub_cfg): Default to an empty string.
42061 * conf/common.rmk (update-grub): Rename to ...
42062 (grub-mkconfig): ... this.
42063 (update-grub_lib): Copy to ...
42064 (grub-mkconfig_lib): ... this.
42065 (update-grub_SCRIPTS): Copy to ...
42066 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42067 (update-grub_DATA): Rename to ...
42068 (grub-mkconfig_DATA): ... this.
42069
42070 2008-09-28 Robert Millan <rmh@aybabtu.com>
42071
42072 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42073 to `modified'. Add the real `created' field.
42074 (grub_iso9660_uuid): Use `modified' rather than `created' for
42075 constructing the UUID.
42076
42077 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42078
42079 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42080 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42081
42082 2008-09-28 Bean <bean123ch@gmail.com>
42083
42084 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42085 Thanks to Christian Franke for finding this bug.
42086
42087 2008-09-25 Robert Millan <rmh@aybabtu.com>
42088
42089 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42090 instances of grub_util_get_disk_name() (see previous commit).
42091
42092 2008-09-25 Robert Millan <rmh@aybabtu.com>
42093
42094 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42095 `util/i386/get_disk_name.c'.
42096 * conf/i386-efi.rmk: Likewise.
42097 * conf/x86_64-efi.rmk: Likewise.
42098 * conf/i386-coreboot.rmk: Likewise.
42099 * conf/i386-ieee1275.rmk: Likewise.
42100 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42101 `util/ieee1275/get_disk_name.c'.
42102 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42103 * util/ieee1275/get_disk_name.c: Remove file.
42104 * util/i386/get_disk_name.c: Remove file.
42105 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42106 "hd%d" for device.map entries, rather than using
42107 grub_util_get_disk_name().
42108
42109 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42110
42111 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42112 warning.
42113 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42114
42115 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42116
42117 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42118 Changed to 0x5100.
42119 (GRUB_TERM_PPAGE): Changed to 0x4900.
42120
42121 2008-09-24 Robert Millan <rmh@aybabtu.com>
42122
42123 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42124 macros (they were i386-pc specific).
42125 * include/grub/sparc64/ieee1275/console.h: Likewise.
42126 * include/grub/efi/console.h: Likewise.
42127
42128 2008-09-22 Bean <bean123ch@gmail.com>
42129
42130 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42131 resident and in attribute list.
42132
42133 * include/grub/ntfs.h (BMP_LEN): Removed.
42134
42135 2008-09-22 Bean <bean123ch@gmail.com>
42136
42137 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42138 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42139
42140 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42141 error occurs, as grub_disk_open will call grub_disk_close, which will
42142 call p->close (scsi).
42143
42144 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42145
42146 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42147 (AC_PREREQ): Bumped to 2.59.
42148 (AC_TRY_COMPILE): Replace obsolete macro with ...
42149 (AC_COMPILE_IFELSE): ... this.
42150 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42151 (AC_LINK_IFELSE): ... this.
42152
42153 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42154
42155 * autogen.sh: Add a call to `gendistlist.sh'.
42156
42157 2008-09-19 Christian Franke <franke@computer.org>
42158
42159 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42160 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42161 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42162 Export __enable_execute_stack() to modules.
42163 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42164 New function.
42165
42166 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42167
42168 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42169 Sort the list.
42170
42171 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42172
42173 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42174 #include <grub/util/hostdisk.h>.
42175
42176 2008-09-08 Robert Millan <rmh@aybabtu.com>
42177
42178 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42179 segments when their filesz is zero (grub_file_read() interprets
42180 zero-size as "read until EOF", which results in memory corruption).
42181 Use `lowest_segment' rather than 0 for calculating the current
42182 segment load address.
42183
42184 2008-09-08 Robert Millan <rmh@aybabtu.com>
42185
42186 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42187 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42188 clobbered useful information.
42189
42190 2008-09-08 Robert Millan <rmh@aybabtu.com>
42191
42192 * include/grub/util/biosdisk.h: Move to ...
42193 * include/grub/util/hostdisk.h: ... here. Update all users.
42194 * util/biosdisk.c: Move to ...
42195 * util/hostdisk.c: ... here. Update all users.
42196
42197 2008-09-07 Robert Millan <rmh@aybabtu.com>
42198
42199 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42200 variables.
42201 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42202 and length can be stored directly in the `mbi->mmap_addr' and
42203 `mbi->mmap_length' struct fields.
42204
42205 2008-09-07 Robert Millan <rmh@aybabtu.com>
42206
42207 * conf/i386.rmk: New file. Provides declaration for building
42208 `cpuid.mod'.
42209 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42210 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42211 variables.
42212 Include `conf/i386.mk'.
42213 * conf/i386-efi.rmk: Likewise.
42214 * conf/x86_64-efi.rmk: Likewise.
42215 * conf/i386-coreboot.rmk: Likewise.
42216 * conf/i386-ieee1275.rmk: Likewise.
42217
42218 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42219
42220 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42221 Adds optimization support for BGR based modes.
42222
42223 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42224 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42225 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42226 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42227 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42228 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42229 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42230 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42231 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42232 (grub_video_i386_vbeblit_index_index): Likewise.
42233 (grub_video_i386_vbeblit_replace_directN): Added.
42234 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42235 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42236 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42237 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42238 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42239 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42240 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42241 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42242 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42243 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42244 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42245 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42246 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42247
42248 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42249 (grub_video_i386_vbefill_R8G8B8): Likewise.
42250 (grub_video_i386_vbefill_index): Likewise.
42251 (grub_video_i386_vbefill_direct32): Added.
42252 (grub_video_i386_vbefill_direct24): Likewise.
42253 (grub_video_i386_vbefill_direct16): Likewise.
42254 (grub_video_i386_vbefill_direct8): Likewise.
42255
42256 * include/grub/video.h (grub_video_blit_format): Removed
42257 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42258 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42259 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42260 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42261 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42262
42263 * video/video.c (grub_video_get_blit_format): Updated to use new
42264 blit formats. Added handling for 16 bit color modes.
42265
42266 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42267 fillers.
42268 (common_blitter): Updated to use new blitters.
42269
42270 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42271 Removed.
42272 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42273 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42274 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42275 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42276 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42277 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42278 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42279 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42280 (grub_video_i386_vbeblit_index_index): Likewise.
42281 (grub_video_i386_vbeblit_replace_directN): Added.
42282 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42283 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42284 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42285 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42286 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42287 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42288 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42289 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42290 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42291 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42292 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42293 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42294 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42295
42296 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42297 (grub_video_i386_vbefill_R8G8B8): Likewise.
42298 (grub_video_i386_vbefill_index): Likewise.
42299 (grub_video_i386_vbefill_direct32): Added.
42300 (grub_video_i386_vbefill_direct24): Likewise.
42301 (grub_video_i386_vbefill_direct16): Likewise.
42302 (grub_video_i386_vbefill_direct8): Likewise.
42303
42304 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42305 types.
42306
42307 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42308 types.
42309
42310 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42311 blitter types.
42312
42313 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42314 types.
42315
42316 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42317
42318 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42319 RAID level 1.
42320
42321 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42322
42323 * fs/iso9660.c (grub_iso9660_date): New structure.
42324 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42325 (grub_iso9660_uuid): New function.
42326
42327 2008-09-05 Bean <bean123ch@gmail.com>
42328
42329 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42330
42331 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42332 insensitive bit for names in Win32 and Win32 & DOS namespace.
42333
42334 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42335
42336 * include/grub/types.h (LONG_MAX): Likewise.
42337
42338 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42339
42340 * util/getroot.c: Include <config.h>.
42341 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42342 add support for /dev/md/N devices and handle LVM double dash escaping.
42343
42344 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42345
42346 * config.guess: Update to latest version from config git.
42347 * config.sub: Likewise.
42348
42349 2008-09-03 Robert Millan <rmh@aybabtu.com>
42350
42351 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42352 `disk->total_sectors'.
42353
42354 2008-09-01 Colin D Bennett <colin@gibibit.com>
42355
42356 * include/grub/normal.h: Fixed incorrect comment for
42357 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42358
42359 2008-09-01 Colin D Bennett <colin@gibibit.com>
42360
42361 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42362 values with defines.
42363
42364 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42365 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42366 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42367 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42368 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42369 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42370 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42371 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42372 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42373 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42374 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42375 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42376 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42377 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42378 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42379 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42380 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42381 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42382 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42383
42384 2008-08-31 Robert Millan <rmh@aybabtu.com>
42385
42386 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42387 declaration.
42388 (grub_multiboot): Fix a few warnings.
42389
42390 2008-08-31 Robert Millan <rmh@aybabtu.com>
42391
42392 * loader/i386/pc/multiboot.c: Update comment not to say that
42393 boot_device support is unimplemented.
42394
42395 2008-08-31 Robert Millan <rmh@aybabtu.com>
42396
42397 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42398 or memory map support are unimplemented.
42399
42400 2008-08-31 Colin D Bennett <colin@gibibit.com>
42401
42402 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42403
42404 2008-08-31 Colin D Bennett <colin@gibibit.com>
42405
42406 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42407 total video memory in 'vbeinfo' output; show color format details for
42408 each video mode.
42409
42410 2008-08-30 Pavel Roskin <proski@gnu.org>
42411
42412 * util/genmoddep.c: Remove for real this time.
42413 * DISTLIST: Remove util/genmoddep.c.
42414
42415 2008-08-30 Robert Millan <rmh@aybabtu.com>
42416
42417 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42418 as required by Multiboot spec (it was already 4-byte aligned, but
42419 only by chance).
42420
42421 2008-08-29 Pavel Roskin <proski@gnu.org>
42422
42423 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42424 * kern/powerpc/ieee1275/startup.S: ... this.
42425 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42426 * DISTLIST: Likewise.
42427
42428 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42429 grub/cpu/kernel.h. Add start label for consistency with other
42430 platforms. Add grub_prefix immediately after start. Add jump
42431 to the code after grub_prefix.
42432 * include/grub/powerpc/kernel.h: Provide valid values for
42433 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42434
42435 2008-08-29 Bean <bean123ch@gmail.com>
42436
42437 * configure.ac: Change host_os to cygwin for mingw.
42438 (asprintf): New check for function.
42439
42440 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42441 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42442
42443 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42444 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42445 sync, sleep and grub_util_get_disk_size for mingw.
42446
42447 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42448 to get size in mingw.
42449 (open_device): Use flag O_BINARY if it's defined.
42450 (find_root_device): Add dummy code for mingw.
42451
42452 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42453 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42454 (get_scsi_disk_name): Return 0 for mingw.
42455
42456 * util/hostfs.c: #include <grub/util/misc.h>.
42457 (grub_hostfs_open): Use "rb" flag to open file, use
42458 grub_util_get_disk_size to get disk size for mingw.
42459
42460 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42461 (asprintf): New function if HAVE_ASPRINTF is not set.
42462 (sync): New function for mingw.
42463 (sleep): Likewise.
42464 (grub_util_get_disk_size): Likewise.
42465
42466 2008-08-28 Pavel Roskin <proski@gnu.org>
42467
42468 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42469 kern/time.c.
42470
42471 2008-08-28 Robert Millan <rmh@aybabtu.com>
42472
42473 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42474
42475 2008-08-28 Robert Millan <rmh@aybabtu.com>
42476
42477 Change find_grub_drive() syntax so it doesn't prevent it from
42478 detecting NULL names as errors.
42479
42480 * util/biosdisk.c (find_grub_drive): Move free slot search code
42481 from here ...
42482 (find_free_slot): ... to here.
42483 (read_device_map): Use find_free_slot() to search for free slots.
42484
42485 2008-08-27 Marco Gerards <marco@gnu.org>
42486
42487 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42488 (scsi_mod_SOURCES): New variable.
42489 (scsi_mod_CFLAGS): Likewise
42490 (scsi_mod_LDFLAGS): Likewise.
42491
42492 * disk/scsi.c: New file.
42493
42494 * include/grub/scsi.h: Likewise.
42495
42496 * include/grub/scsicmd.h: Likewise.
42497
42498 * disk/ata.c: Include <grub/scsi.h>.
42499 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42500 instead.
42501 (grub_ata_iterate): Skip ATAPI devices.
42502 (grub_ata_open): Only handle ATAPI devices.
42503 (struct grub_atapi_read): Removed.
42504 (grub_atapi_readsector): Likewise.
42505 (grub_ata_read): No longer handle ATAPI devices.
42506 (grub_ata_write): Likewise.
42507 (grub_atapi_iterate): New function.
42508 (grub_atapi_read): Likewise.
42509 (grub_atapi_write): Likewise.
42510 (grub_atapi_open): Likewise.
42511 (grub_atapi_close): Likewise.
42512 (grub_atapi_dev): New variable.
42513 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42514 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42515
42516 * include/grub/disk.h (enum grub_disk_dev_id): Add
42517 `GRUB_DISK_DEVICE_SCSI_ID'.
42518
42519 2008-08-26 Robert Millan <rmh@aybabtu.com>
42520
42521 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42522 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42523 descriptive.
42524
42525 2008-08-23 Bean <bean123ch@gmail.com>
42526
42527 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42528 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42529 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42530 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42531 dm_nv.mod.
42532 (raid5rec_mod_SOURCES): New macro.
42533 (raid5rec_mod_CFLAGS): Likewise.
42534 (raid5rec_mod_LDFLAGS): Likewise.
42535 (raid6rec_mod_SOURCES): Likewise.
42536 (raid6rec_mod_CFLAGS): Likewise.
42537 (raid6rec_mod_LDFLAGS): Likewise.
42538 (mdraid_mod_SOURCES): Likewise.
42539 (mdraid_mod_CFLAGS): Likewise.
42540 (mdraid_mod_LDFLAGS): Likewise.
42541 (dm_nv_mod_SOURCES): Likewise.
42542 (dm_nv_mod_CFLAGS): Likewise.
42543 (dm_nv_mod_LDFLAGS): Likewise.
42544
42545 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42546 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42547 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42548
42549 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42550 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42551
42552 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42553
42554 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42555
42556 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42557
42558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42559
42560 * disk/raid5_recover.c: New file.
42561
42562 * disk/raid6_recover.c: Likewise.
42563
42564 * disk/mdraid_linux.c: Likewise.
42565
42566 * disk/dmraid_nvidia.c: Likewise.
42567
42568 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42569 ULONG_MAX.
42570
42571 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42572 calculate the size of raid device.
42573 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42574 different layout of raid5.
42575 (grub_raid_scan_device): Remove code specific to mdraid.
42576 (grub_raid_list): New variable.
42577 (free_array): New function.
42578 (grub_raid_register): Likewise.
42579 (grub_raid_unregister): Likewise.
42580 (grub_raid_rescan): Likewise.
42581 (GRUB_MOD_INIT): Don't iterate device here.
42582 (GRUB_MOD_FINI): Use free_array to release resource.
42583
42584 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42585 (grub_raid5_recover_func_t): New function variable type.
42586 (grub_raid6_recover_func_t): Likewise.
42587 (grub_raid5_recover_func): New variable.
42588 (grub_raid6_recover_func): Likewise.
42589 (grub_raid_register): New function.
42590 (grub_raid_unregister): Likewise.
42591 (grub_raid_rescan): Likewise.
42592 (grub_raid_block_xor): Likewise.
42593
42594 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42595 (CMD_CRC): New macro.
42596 (part): Removed.
42597 (read_file): Handle device as well as file.
42598 (cmd_crc): New function.
42599 (fstest): Handle multiple disks.
42600 (options): Remove part, raw and long, add root and diskcount.
42601 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42602 (main): Find the first non option entry and ignore subsequent options,
42603 add handling for the new options, support multiple disks.
42604
42605 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42606
42607 2008-08-23 Bean <bean123ch@gmail.com>
42608
42609 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42610
42611 * genfslist.sh: Ignore kernel.mod.
42612
42613 * genpartmaplist.sh: Likewise.
42614
42615 2008-08-23 Robert Millan <rmh@aybabtu.com>
42616
42617 * util/getroot.c (find_root_device): Skip anything that starts with
42618 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42619
42620 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42621
42622 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42623 * util/grub.d/00_header.in: Allow the administrator to change default
42624 gfxmode via ${GRUB_GFXMODE}.
42625
42626 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42627
42628 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42629
42630 2008-08-21 Robert Millan <rmh@aybabtu.com>
42631
42632 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42633 loader.
42634 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42635 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42636
42637 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42638
42639 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42640 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42641
42642 2008-08-19 Robert Millan <rmh@aybabtu.com>
42643
42644 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42645 (struct grub_virtual_screen): Remove `cursor_color'.
42646 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42647 initialization.
42648 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42649
42650 2008-08-18 Robert Millan <rmh@aybabtu.com>
42651
42652 Unify (identical) linux_normal.c files.
42653 * loader/i386/efi/linux_normal.c: Move from here ...
42654 * loader/linux_normal.c: ... to here. Update all users.
42655 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42656 * loader/i386/ieee1275/linux_normal.c: Likewise.
42657
42658 2008-08-18 Robert Millan <rmh@aybabtu.com>
42659
42660 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42661 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42662 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42663 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42664 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42665 New macros.
42666 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42667 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42668 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42669 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42670 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42671 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42672 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42673 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42674 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42675 portably using grub_getxy().
42676 Replace `-EFI' with `-bzImage' in boot message.
42677
42678 2008-08-17 Robert Millan <rmh@aybabtu.com>
42679
42680 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42681
42682 2008-08-17 Robert Millan <rmh@aybabtu.com>
42683
42684 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42685
42686 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42687 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42688 (grub_machine_mmap_iterate): New function declaration.
42689 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42690 structure.
42691 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42692 macros.
42693
42694 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42695 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42696 Move e820 parsing from here ...
42697 * kern/i386/pc/mmap.c: New file.
42698 (grub_machine_mmap_iterate): ... to here.
42699
42700 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42701 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42702 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42703 (grub_available_iterate): Redeclare to return `void', and redeclare
42704 its hook to use grub_uint64_t as addr and size parameters, and rename
42705 to ...
42706 (grub_machine_mmap_iterate): ... this. Update all users.
42707
42708 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42709 to make it more readable. Rename to ...
42710 (grub_machine_mmap_iterate): ... this.
42711
42712 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42713 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42714 (grub_multiboot): Allocate an extra region after the payload, and fill
42715 it with a Multiboot memory map. Adjust a.out loader to calculate size
42716 with the extra space.
42717 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42718 with the extra space.
42719
42720 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42721
42722 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42723
42724 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42725
42726 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42727 mdate-sh to the list `find' searches for.
42728 * DISTLIST: Regenerated.
42729
42730 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42731
42732 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42733 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42734 genmoddep.awk, gensymlist.sh.in.
42735 (DISTDIRS): Add bus, docs, hook, lib.
42736 * DISTLIST: Regenerated.
42737 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42738
42739 2008-08-16 Robert Millan <rmh@aybabtu.com>
42740
42741 * disk/raid.c (grub_raid_init): Handle/report errors set by
42742 grub_device_iterate().
42743 * disk/lvm.c (grub_lvm_init): Likewise.
42744
42745 2008-08-15 Bean <bean123ch@gmail.com>
42746
42747 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42748 and datehook.mod.
42749 (datetime_mod_SOURCES): New macro.
42750 (datetime_mod_CFLAGS): Likewise.
42751 (datetime_mod_LDFLAGS): Likewise.
42752 (date_mod_SOURCES): Likewise.
42753 (date_mod_CFLAGS): Likewise.
42754 (date_mod_LDFLAGS): Likewise.
42755 (datehook_mod_SOURCES): Likewise.
42756 (datehook_mod_CFLAGS): Likewise.
42757 (datehook_mod_LDFLAGS): Likewise.
42758
42759 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42760 and datehook.mod.
42761 (datetime_mod_SOURCES): New macro.
42762 (datetime_mod_CFLAGS): Likewise.
42763 (datetime_mod_LDFLAGS): Likewise.
42764 (date_mod_SOURCES): Likewise.
42765 (date_mod_CFLAGS): Likewise.
42766 (date_mod_LDFLAGS): Likewise.
42767 (datehook_mod_SOURCES): Likewise.
42768 (datehook_mod_CFLAGS): Likewise.
42769 (datehook_mod_LDFLAGS): Likewise.
42770
42771 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42772 and datehook.mod.
42773 (datetime_mod_SOURCES): New macro.
42774 (datetime_mod_CFLAGS): Likewise.
42775 (datetime_mod_LDFLAGS): Likewise.
42776 (date_mod_SOURCES): Likewise.
42777 (date_mod_CFLAGS): Likewise.
42778 (date_mod_LDFLAGS): Likewise.
42779 (datehook_mod_SOURCES): Likewise.
42780 (datehook_mod_CFLAGS): Likewise.
42781 (datehook_mod_LDFLAGS): Likewise.
42782
42783 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42784 and datehook.mod.
42785 (datetime_mod_SOURCES): New macro.
42786 (datetime_mod_CFLAGS): Likewise.
42787 (datetime_mod_LDFLAGS): Likewise.
42788 (date_mod_SOURCES): Likewise.
42789 (date_mod_CFLAGS): Likewise.
42790 (date_mod_LDFLAGS): Likewise.
42791 (datehook_mod_SOURCES): Likewise.
42792 (datehook_mod_CFLAGS): Likewise.
42793 (datehook_mod_LDFLAGS): Likewise.
42794
42795 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42796 and datehook.mod.
42797 (datetime_mod_SOURCES): New macro.
42798 (datetime_mod_CFLAGS): Likewise.
42799 (datetime_mod_LDFLAGS): Likewise.
42800 (date_mod_SOURCES): Likewise.
42801 (date_mod_CFLAGS): Likewise.
42802 (date_mod_LDFLAGS): Likewise.
42803 (datehook_mod_SOURCES): Likewise.
42804 (datehook_mod_CFLAGS): Likewise.
42805 (datehook_mod_LDFLAGS): Likewise.
42806
42807 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42808
42809 * commands/date.c: New file.
42810
42811 * hook/datehook.c: Likewise.
42812
42813 * include/grub/lib/datetime.h: Likewise.
42814
42815 * include/grub/i386/cmos.h: Likewise.
42816
42817 * lib/datetime.c: Likewise.
42818
42819 * lib/i386/datetime.c: Likewise.
42820
42821 * lib/efi/datetime.c: Likewise.
42822
42823 2008-08-14 Robert Millan <rmh@aybabtu.com>
42824
42825 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42826 (grub_mkelfimage_SOURCES): New variable.
42827 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42828
42829 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42830 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42831 * conf/powerpc-ieee1275.rmk: Likewise.
42832 * conf/i386-ieee1275.rmk: Likewise.
42833
42834 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42835 * kern/i386/coreboot/init.c: Likewise.
42836
42837 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42838 with `<grub/cpu/kernel.h>'.
42839 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42840 to ...
42841 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42842 * kern/i386/coreboot/startup.S: Likewise.
42843
42844 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42845 (GRUB_MOD_GAP): Remove.
42846 * include/grub/powerpc/kernel.h: New file.
42847 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42848 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42849 * include/grub/i386/kernel.h: New file.
42850 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42851 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42852 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42853
42854 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42855 `grub-mkelfimage'.
42856 Use --directory when invoking grub_mkimage.
42857
42858 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42859 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42860 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42861 and GRUB_KERNEL_CPU_PREFIX.
42862
42863 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42864
42865 * include/grub/err.h (grub_err_printf): New function prototype.
42866 * util/misc.c (grub_err_printf): New function.
42867 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42868 grub_printf.
42869 * kern/err.c (grub_print_error): Use grub_err_printf.
42870
42871 2008-08-13 Robert Millan <rmh@aybabtu.com>
42872
42873 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42874
42875 2008-08-13 Robert Millan <rmh@aybabtu.com>
42876
42877 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42878 boot entry.
42879
42880 2008-08-12 Robert Millan <rmh@aybabtu.com>
42881
42882 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42883 of the relocation code from here ...
42884 (grub_multiboot): ... to here.
42885 (forward_relocator, backward_relocator): Move from here ...
42886 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42887 (grub_multiboot_backward_relocator): ... to here.
42888 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42889 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42890 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42891 (grub_multiboot_forward_relocator_end)
42892 (grub_multiboot_backward_relocator)
42893 (grub_multiboot_backward_relocator_end): New variables.
42894
42895 2008-08-12 Bean <bean123ch@gmail.com>
42896
42897 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42898
42899 2008-08-11 Robert Millan <rmh@aybabtu.com>
42900
42901 * kern/i386/linuxbios/startup.S: Move from here ...
42902 * kern/i386/coreboot/startup.S: ... to here.
42903
42904 * kern/i386/linuxbios/init.c: Move from here ...
42905 * kern/i386/coreboot/init.c: ... to here.
42906
42907 * kern/i386/linuxbios/table.c: Move from here ...
42908 * kern/i386/coreboot/mmap.c: ... to here.
42909
42910 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42911
42912 2008-08-11 Robert Millan <rmh@aybabtu.com>
42913
42914 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42915 errors. Leave it to the upper layer to handle them.
42916
42917 2008-08-09 Christian Franke <franke@computer.org>
42918
42919 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42920 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42921 Install `grub.d/10_windows' only on Cygwin.
42922 * configure.ac: Add subst of `target_os'.
42923 Check `target_os' also before setting TARGET_OBJ2ELF.
42924 Add `--enable-grub-pe2elf'.
42925
42926 2008-08-08 Robert Millan <rmh@aybabtu.com>
42927
42928 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42929 (grub_last_time): Change type to grub_uint64_t.
42930 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42931 (grub_disk_close): Likewise.
42932
42933 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42934 (run_menu): Migrate code from to using grub_get_time_ms().
42935
42936 * util/misc.c (grub_get_time_ms): New function.
42937
42938 2008-08-08 Marco Gerards <marco@gnu.org>
42939
42940 * disk/ata.c (grub_ata_regget): Change return type to
42941 `grub_uint8_t'.
42942 (grub_ata_regget2): Likewise.
42943 (grub_ata_wait_status): New function.
42944 (grub_ata_wait_busy): Removed function, updated all users to use
42945 `grub_ata_wait_status'.
42946 (grub_ata_wait_drq): Likewise.
42947 (grub_ata_cmd): New function.
42948 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42949 error handling.
42950 (grub_ata_pio_write): Add error handling.
42951 (grub_atapi_identify): Likewise.
42952 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42953 handling.
42954 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42955 handling. Actually use the detected registers. Reorder the
42956 detection logic such that it is easier to read.
42957 (grub_ata_pciinit): Do not assign the same ID to each controller.
42958 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42959 handling.
42960 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42961
42962 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42963
42964 2008-08-08 Marco Gerards <marco@gnu.org>
42965
42966 * NEWS: Update.
42967
42968 2008-08-07 Bean <bean123ch@gmail.com>
42969
42970 * include/grub/x86_64/pci.h: New file.
42971
42972 2008-08-07 Christian Franke <franke@computer.org>
42973
42974 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42975 (TIMER2_GATE): Likewise.
42976 (grub_pit_wait): Add enable/disable of the timer2 gate
42977 bit of port 0x61. This fixes a possible infinite loop.
42978
42979 2008-08-07 Bean <bean123ch@gmail.com>
42980
42981 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42982 kern/i386/tsc.c and kern/i386/pit.c.
42983
42984 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42985 x86_64 platform.
42986
42987 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42988 <grub/i386/tsc.h>.
42989
42990 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42991
42992 2008-08-07 Bean <bean123ch@gmail.com>
42993
42994 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42995
42996 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42997
42998 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42999 multiple inclusion. Add #include <grub/types.h>.
43000
43001 2008-08-06 Christian Franke <franke@computer.org>
43002
43003 * conf/common.rmk: Build and install `10_windows'.
43004 * util/grub.d/10_windows.in: New script.
43005
43006 2008-08-06 Pavel Roskin <proski@gnu.org>
43007
43008 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43009
43010 2008-08-06 Robert Millan <rmh@aybabtu.com>
43011
43012 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43013 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43014
43015 2008-08-06 Bean <bean123ch@gmail.com>
43016
43017 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43018 (grub_pxefs_fs_int): Remove dummy definition.
43019 (grub_pxefs_open): Use data->block_size to store the current block
43020 size setting.
43021 (grub_pxefs_read): Use block size stored in data->block_size. As the
43022 value of grub_pxe_blksize can be changed after the file is opened.
43023
43024 2008-08-06 Bean <bean123ch@gmail.com>
43025
43026 * fs/i386/pc/pxe.c (curr_file): new variable.
43027 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43028 require the dummy internal file system anymore.
43029 (grub_pxefs_read): Removed.
43030 (grub_pxefs_close): Likewise.
43031 (grub_pxefs_fs_int): Likewise.
43032 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43033 connection when we switch file.
43034 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43035
43036 2008-08-06 Robert Millan <rmh@aybabtu.com>
43037
43038 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43039 `halt.mod'.
43040 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43041 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43042
43043 * kern/i386/halt.c: New file.
43044 * kern/i386/reboot.c: Likewise.
43045 * include/grub/i386/reboot.h: Likewise.
43046 * include/grub/i386/halt.h: Likewise.
43047
43048 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43049 Include `<grub/cpu/halt.h>'.
43050 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43051 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43052
43053 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43054 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43055 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43056 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43057 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43058 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43059 from here ...
43060 * include/grub/i386/at_keyboard.h: ... to here.
43061
43062 2008-08-05 Robert Millan <rmh@aybabtu.com>
43063
43064 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43065 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43066 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43067 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43068 `kern/generic/millisleep.c'.
43069
43070 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43071 instead of grub_get_rtc().
43072 (grub_tsc_init): Initialize `tsc_boot_time'.
43073
43074 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43075 (grub_machine_init): Use grub_tsc_init() rather than
43076 installing an RTC-based handler via grub_install_get_time_ms().
43077
43078 * kern/i386/pit.c: New file.
43079 * include/grub/i386/pit.h: Likewise.
43080
43081 2008-08-05 Bean <bean123ch@gmail.com>
43082
43083 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43084
43085 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43086 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43087 (pxe_mod_SOURCES): New macro.
43088 (pxe_mod_CFLAGS): Likewise.
43089 (pxe_mod_LDFLAGS): Likewise.
43090 (pxecmd_mod_SOURCES): Likewise.
43091 (pxecmd_mod_CFLAGS): Likewise.
43092 (pxecmd_mod_LDFLAGS): Likewise.
43093
43094 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43095 (grub_pxe_call): Likewise.
43096
43097 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43098
43099 * commands/i386/pc/pxecmd.c: New file.
43100
43101 * fs/i386/pc/pxe.c: Likewise.
43102
43103 * include/grub/i386/pc/pxe.h: Likewise.
43104
43105 2008-08-05 Bean <bean123ch@gmail.com>
43106
43107 * util/console.c (grub_console_cur_color): New variable.
43108 (grub_console_standard_color): Likewise.
43109 (grub_console_normal_color): Likewise.
43110 (grub_console_highlight_color): Likewise.
43111 (color_map): Likewise.
43112 (use_color): Likewise.
43113 (NUM_COLORS): New macro.
43114 (grub_ncurses_setcolorstate): Handle color properly.
43115 (grub_ncurses_setcolor): Don't change color here, just remember the
43116 settings, color will be set in grub_ncurses_setcolorstate.
43117 (grub_ncurses_getcolor): New function.
43118 (grub_ncurses_init): Initialize color pairs.
43119 (grub_ncurses_term): New member grub_ncurses_getcolor.
43120
43121 2008-08-05 Colin D Bennett <colin@gibibit.com>
43122
43123 High resolution timer support. Implemented for x86 CPUs using TSC.
43124 Extracted generic grub_millisleep() so it's linked in only as needed.
43125 This requires a Pentium compatible CPU; if the RDTSC instruction is
43126 not supported, then it falls back on the generic grub_get_time_ms()
43127 implementation that uses the machine's RTC.
43128
43129 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43130 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43131 `kern/generic/millisleep.c'.
43132
43133 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43134 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43135
43136 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43137 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43138
43139 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43140
43141 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43142 `kern/generic/millisleep.c'.
43143
43144 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43145
43146 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43147
43148 * kern/generic/rtc_get_time_ms.c: New file.
43149
43150 * kern/generic/millisleep.c: New file.
43151
43152 * kern/misc.c: Don't include
43153 <kern/time.h> anymore.
43154 (grub_millisleep_generic): Removed.
43155
43156 * commands/sleep.c (grub_interruptible_millisleep): Uses
43157 grub_get_time_ms() instead of grub_get_rtc().
43158
43159 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43160 function.
43161 (grub_cpu_is_cpuid_supported): New inline function.
43162 (grub_cpu_is_tsc_supported): New inline function.
43163 (grub_tsc_init): New function prototype.
43164 (grub_tsc_get_time_ms): New function prototype.
43165
43166 * kern/i386/tsc.c (grub_get_time_ms): New file.
43167
43168 * include/grub/time.h: Include <grub/types.h.
43169 (grub_millisleep_generic): Removed.
43170 (grub_get_time_ms): New prototype.
43171 (grub_install_get_time_ms): New prototype.
43172 (grub_rtc_get_time_ms): New prototype.
43173
43174 * kern/time.c (grub_get_time_ms): New function.
43175 (grub_install_get_time_ms): New function.
43176
43177 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43178 <grub/time.h> anymore.
43179 (grub_millisleep): Removed.
43180 (grub_machine_init): Call grub_tsc_init.
43181
43182 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43183 get_time_ms() implementation.
43184
43185 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43186 (ieee1275_get_time_ms): New function.
43187 (grub_machine_init): Install get_time_ms() implementation.
43188
43189 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43190 (grub_machine_init): Call grub_tsc_init().
43191 (grub_millisleep): Removed.
43192
43193 * kern/ieee1275/init.c (grub_millisleep): Removed.
43194 (grub_machine_init): Install ieee1275_get_time_ms()
43195 implementation.
43196 (ieee1275_get_time_ms): New function.
43197 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43198 real work.
43199
43200 2008-08-05 Marco Gerards <marco@gnu.org>
43201
43202 * disk/ata.c: Include <grub/pci.h>.
43203 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43204 (grub_ata_initialize): Rewritten.
43205 (grub_ata_device_initialize): New function.
43206
43207 2008-08-04 Pavel Roskin <proski@gnu.org>
43208
43209 * kern/main.c: Include grub/mm.h.
43210
43211 2008-08-04 Robert Millan <rmh@aybabtu.com>
43212
43213 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43214 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43215 corruption problem).
43216
43217 2008-08-04 Robert Millan <rmh@aybabtu.com>
43218
43219 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43220 warnings introduced in my last commit.
43221
43222 2008-08-03 Robert Millan <rmh@aybabtu.com>
43223
43224 Make PCI available on all i386 architectures.
43225
43226 * include/grub/i386/pc/pci.h: Move from here ...
43227 * include/grub/i386/pci.h: ... to here.
43228
43229 * include/grub/i386/pc/pci.h: Remove.
43230 * include/grub/i386/efi/pci.h: Remove.
43231 * include/grub/x86_64/efi/pci.h: Remove.
43232
43233 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43234 `<grub/cpu/pci.h>'.
43235
43236 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43237 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43238 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43239
43240 * conf/i386-ieee1275.rmk: Likewise.
43241
43242 2008-08-03 Robert Millan <rmh@aybabtu.com>
43243
43244 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43245 (grub_console_setcursor): Make it possible to set cursor off.
43246
43247 2008-08-03 Robert Millan <rmh@aybabtu.com>
43248
43249 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43250 of modules instead of assuming which platform provides what.
43251 * util/update-grub.in: Likewise.
43252
43253 2008-08-03 Robert Millan <rmh@aybabtu.com>
43254
43255 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43256 instead of `grub_install_dos_part' to determine whether a drive needs
43257 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43258 because it can be overridden when loading GRUB via Multiboot).
43259
43260 2008-08-02 Robert Millan <rmh@aybabtu.com>
43261
43262 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43263
43264 2008-08-02 Robert Millan <rmh@aybabtu.com>
43265
43266 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43267 of informational grub_dprintf() calls.
43268
43269 2008-08-02 Robert Millan <rmh@aybabtu.com>
43270
43271 * disk/memdisk.c (memdisk_size): Don't initialize.
43272 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43273
43274 * include/grub/i386/pc/kernel.h
43275 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43276 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43277 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43278 (grub_arch_memdisk_size): Remove.
43279
43280 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43281 field (was only used to transfer a constant). Add `type' field to
43282 support multiple module types.
43283 (grub_module_iterate): New function.
43284
43285 * kern/device.c (grub_device_open): Do not hide error messages
43286 when grub_disk_open() fails. Use grub_print_error() instead.
43287
43288 * kern/i386/pc/init.c (grub_arch_modules_addr)
43289 (grub_arch_memdisk_size): Remove functions.
43290 (grub_arch_modules_addr): Return the module address in high memory
43291 (now that it isn't copied anymore).
43292
43293 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43294 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43295 decompression routine (grub_total_module_size already includes that
43296 now). Don't copy modules back to low memory.
43297
43298 * kern/main.c: Include `<grub/mm.h>'.
43299 (grub_load_modules): Split out (and use) ...
43300 (grub_module_iterate): ... this function, which iterates through
43301 module objects and runs a hook.
43302 Comment out grub_mm_init_region() call, as it would cause non-ELF
43303 modules to be overwritten.
43304
43305 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43306 the memdisk image in its own region, make it part of the module list.
43307 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43308 (main): Parse --memdisk|-m option, and pass user-provided path as
43309 parameter to generate_image().
43310 (add_segments): Pass `memdisk_path' down to load_modules().
43311 (load_modules): Embed memdisk image in module section when requested.
43312 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43313 `header.type' instead of `header.offset'.
43314
43315 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43316 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43317 (memdisk_mod_LDFLAGS): New variables.
43318 * conf/i386-coreboot.rmk: Likewise.
43319 * conf/i386-ieee1275.rmk: Likewise.
43320
43321 2008-08-02 Robert Millan <rmh@aybabtu.com>
43322
43323 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43324 (backward_relocator): New variables. Used to allocate and relocate
43325 the payload, respectively.
43326 (grub_multiboot_load_elf32): Load into heap instead of requested
43327 address, install the appropriate relocator code in each bound of
43328 the payload, and set the entry point such that
43329 grub_multiboot_real_boot() will jump to one of them.
43330
43331 * kern/i386/loader.S (grub_multiboot_payload_size)
43332 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43333 (grub_multiboot_payload_entry_offset): New variables.
43334 (grub_multiboot_real_boot): Set cpu context to what the relocator
43335 expects, and jump to the relocator instead of the payload.
43336
43337 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43338 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43339 (grub_multiboot_payload_entry_offset): Export.
43340
43341 2008-08-01 Bean <bean123ch@gmail.com>
43342
43343 * normal/menu_entry.c (editor_getline): Don't return the original
43344 string as result, as it will be released by lexer once it has done
43345 using it.
43346
43347 2008-08-01 Robert Millan <rmh@aybabtu.com>
43348
43349 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43350 within menuentries, not before them.
43351 util/grub.d/10_hurd.in: Likewise.
43352
43353 2008-08-01 Bean <bean123ch@gmail.com>
43354
43355 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43356 (bufio_mod_SOURCES): New macro.
43357 (bufio_mod_CFLAGS): Likewise.
43358 (bufio_mod_LDFLAGS): Likewise.
43359
43360 * include/grub/bufio.h: New file.
43361
43362 * io/bufio.c: Likewise.
43363
43364 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43365 (grub_video_reader_png): Use grub_buffile_open to open file.
43366
43367 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43368 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43369
43370 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43371 (grub_video_reader_tga): Use grub_buffile_open to open file.
43372
43373 * font/manager.c: Include <grub/bufio.h>.
43374 (add_font): Use grub_buffile_open to open file.
43375
43376 2008-07-31 Robert Millan <rmh@aybabtu.com>
43377
43378 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43379 ELF segments, use a macro for arbitrarily accessing any of them instead
43380 of preparing a pointer that allows access to one at a time.
43381 (grub_multiboot_load_elf64): Likewise.
43382
43383 2008-07-31 Bean <bean123ch@gmail.com>
43384
43385 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43386 GRUB_KERNEL_MACHINE_DATA_END.
43387
43388 2008-07-30 Robert Millan <rmh@aybabtu.com>
43389
43390 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43391 Increase from 0x50 to 0x60.
43392 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43393 use UUIDs to identify the root drive for them. If that's not
43394 possible, abort.
43395 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43396 check, for cross-disk installs.
43397
43398 2008-07-30 Robert Millan <rmh@aybabtu.com>
43399
43400 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43401 is non-empty, use it to set the `prefix' environment variable instead
43402 of the usual approach.
43403 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43404 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43405 environment variable instead of dummy make_install_device().
43406
43407 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43408 (start): Insert a data section, with `grub_prefix' variable.
43409 * kern/i386/linuxbios/startup.S: Likewise.
43410
43411 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43412 New variable reference.
43413 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43414 New macro. Defines offset of `grub_prefix' within startup.S (relative
43415 to `start').
43416 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43417 section within startup.S (relative to `start').
43418 * include/grub/i386/coreboot/kernel.h: Likewise.
43419
43420 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43421 Overwrite grub_prefix with its contents, at the beginning of the
43422 first segment.
43423 (main): Understand -p|--prefix.
43424
43425 2008-07-30 Robert Millan <rmh@aybabtu.com>
43426
43427 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43428
43429 2008-07-30 Robert Millan <rmh@aybabtu.com>
43430
43431 * term/i386/pc/vga_text.c (grub_console_cls): Use
43432 grub_console_gotoxy() to go back to beginning of the screen.
43433 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43434
43435 2008-07-29 Christian Franke <franke@computer.org>
43436
43437 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43438 Add conversion of emulated mount points on Cygwin.
43439
43440 2008-07-29 Christian Franke <franke@computer.org>
43441
43442 * util/update-grub.in: Add a check for admin
43443 group on Cygwin.
43444 Remove old `grub.cfg.new' before creation.
43445 Add `-f' to `mv' to handle the different filesystem
43446 semantics of Windows.
43447
43448 2008-07-29 Bean <bean123ch@gmail.com>
43449
43450 * normal/main.c (get_line): Fix buffer overflow bug.
43451
43452 2008-07-28 Robert Millan <rmh@aybabtu.com>
43453
43454 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43455 (struct grub_apple_header): New struct. Describes the layout of
43456 the partmap header.
43457 (apple_partition_map_iterate): Check the header magic as well as the
43458 partition magic (which was already being checked).
43459
43460 2008-07-28 Pavel Roskin <proski@gnu.org>
43461
43462 * genmk.rb: Add a warning to the beginning of the output that
43463 it's a generated file and should not be edited.
43464
43465 2008-07-28 Robert Millan <rmh@aybabtu.com>
43466
43467 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43468 with the same number are found, just use issue a warning with
43469 grub_dprintf(), as this error has been reported to be non-fatal.
43470
43471 2008-07-27 Robert Millan <rmh@aybabtu.com>
43472
43473 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43474 information.
43475
43476 2008-07-27 Bean <bean123ch@gmail.com>
43477
43478 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43479 (grub_fat_find_dir): Ignore case when comparing filename.
43480
43481 2008-07-27 Bean <bean123ch@gmail.com>
43482
43483 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43484 smallino, as it's more descriptive, and i8count can be confused with
43485 the other field count.
43486 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43487 inode type.
43488
43489 2008-07-27 Bean <bean123ch@gmail.com>
43490
43491 * commands/crc.c: New file.
43492
43493 * lib/crc.c: Likewise.
43494
43495 * include/grub/lib/crc.h: Likewise.
43496
43497 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43498
43499 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43500 (hexdump): Move this function to ...
43501
43502 * lib/hexdump.c: ... here.
43503
43504 * include/grub/hexdump.h: Renamed to ...
43505
43506 * include/grub/lib/hexdump.h: ... this.
43507
43508 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43509
43510 * util/grub-editenv.c: Likewise.
43511
43512 * include/envblk.h: Renamed to ...
43513
43514 * include/lib/envblk.h: ... this.
43515
43516 * util/envblk.c: Renamed to ...
43517
43518 * lib/envblk.c: ... this.
43519
43520 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43521 lib/hexdump.c.
43522 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43523 (pkglib_MODULES): Add crc.mod.
43524 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43525 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43526 (crc_mod_SOURCES): New macro.
43527 (crc_mod_CFLAGS): Likewise.
43528 (crc_mod_LDFLAGS): Likewise.
43529
43530 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43531
43532 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43533
43534 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43535
43536 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43537
43538 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43539
43540 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43541
43542 * commands/help.c: Include <grub/term.h>.
43543 (TERM_WIDTH): Removed. Updated all users.
43544
43545 2008-07-27 Pavel Roskin <proski@gnu.org>
43546
43547 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43548 spurious warnings about a comment within a comment.
43549
43550 2008-07-25 Robert Millan <rmh@aybabtu.com>
43551
43552 * util/getroot.c (find_root_device): Skip devices that match
43553 /dev/dm-[0-9]. This lets the real device be found for any type of
43554 abstraction (LVM, EVMS, RAID..).
43555 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43556 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43557 device is found first, find_root_device() will now skip it.
43558
43559 2008-07-24 Pavel Roskin <proski@gnu.org>
43560
43561 * include/grub/types.h: Use __builtin_bswap32() and
43562 __builtin_bswap64() with gcc 4.3 and newer.
43563
43564 2008-07-24 Christian Franke <franke@computer.org>
43565
43566 * util/i386/pc/grub-install.in: If `--debug' is specified,
43567 pass `--verbose' to grub-setup.
43568 Abort script if make_system_path_relative_to_its_root() fails.
43569
43570 2008-07-24 Bean <bean123ch@gmail.com>
43571
43572 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43573 variable `target_platform' should be `platform'.
43574
43575 2008-07-24 Bean <bean123ch@gmail.com>
43576
43577 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43578 (grub_png_init_fixed_block): New function.
43579 (grub_png_decode_image_data): Handle fixed huffman code compression.
43580
43581 2008-07-24 Bean <bean123ch@gmail.com>
43582
43583 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43584 (grub_pe2elf_SOURCES): New macro.
43585 (CLEANFILES): Add grub-pe2elf.
43586
43587 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43588 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43589 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43590 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43591 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43592 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43593 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43594 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43595 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43596 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43597 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43598 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43599 (GRUB_PE32_DT_FUNCTION): Likewise.
43600 (GRUB_PE32_REL_I386_DIR32): Likewise.
43601 (GRUB_PE32_REL_I386_REL32): Likewise.
43602 (grub_pe32_symbol): New structure.
43603 (grub_pe32_reloc): Likewise.
43604
43605 * util/grub-pe2elf.c: New file.
43606
43607 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43608 start symbol in non pc platform.
43609
43610 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43611
43612 The following patches are from Christian Franke.
43613
43614 * include/grub/dl.h: Remove .previous, gas supports this only
43615 for ELF format.
43616
43617 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43618 Remove .type, gas supports this only for ELF format.
43619
43620 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43621 nullbytes in symbol table. This fixes an infinite loop if table is
43622 zero filled.
43623
43624 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43625 TARGET_IMG_LDFLAGS and EXEEXT.
43626
43627 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43628 TARGET_IMG_LDFLAGS_AC.
43629 (grub_CHECK_STACK_ARG_PROBE): New function.
43630
43631 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43632
43633 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43634
43635 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43636 to set TARGET_IMG_LD* accordingly.
43637 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43638 Add call to grub_CHECK_STACK_ARG_PROBE.
43639 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43640
43641 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43642
43643 * genmk.rb: Add EXEEXT to CLEANFILES.
43644
43645 2008-07-23 Robert Millan <rmh@aybabtu.com>
43646
43647 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43648 define the codes for arrows and lines used for the menu).
43649 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43650 as well.
43651
43652 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43653 fonts, because the latter are too slow.
43654
43655 2008-07-21 Bean <bean123ch@gmail.com>
43656
43657 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43658 a20. Run keyboard test last, as it will cause macbook to halt.
43659
43660 2008-07-18 Pavel Roskin <proski@gnu.org>
43661
43662 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43663 load foreign architecture modules correctly anyway. Keep
43664 support for loading host architecture modules, whether we
43665 compile them or not.
43666
43667 2008-07-17 Pavel Roskin <proski@gnu.org>
43668
43669 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43670 change target_cpu. The compiler default can mismatch target_cpu
43671 in any case.
43672
43673 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43674 * kern/efi/efi.c: Likewise.
43675
43676 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43677 target compiler is functional.
43678 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43679 are set up.
43680
43681 * configure.ac: Default to efi platform for x86_64-apple. Allow
43682 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43683 adjustments from the rest, only do them if target is not
43684 explicitly given. Merge other adjustments with the final sanity
43685 check. Remove an extraneous check for supported CPU. Be
43686 specific which CPU and which platform is not supported.
43687
43688 * configure.ac: Default to pc platform for x86_64.
43689
43690 2008-07-17 Robert Millan <rmh@aybabtu.com>
43691
43692 Partial LinuxBIOS -> Coreboot rename.
43693
43694 * conf/i386-linuxbios.rmk: Renamed to ...
43695 * conf/i386-coreboot.rmk: ... this.
43696 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43697 * configure.ac: Accept "coreboot" as input platform (but maintain
43698 compatibility with "linuxbios").
43699 * include/grub/i386/linuxbios: Renamed to ...
43700 * include/grub/i386/coreboot: ... this.
43701
43702 2008-07-17 Bean <bean123ch@gmail.com>
43703
43704 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43705 (appleldr_mod_SOURCE): New variable.
43706 (appleldr_mod_CFLAGS): Likewise.
43707 (appleldr_mod_LDFLAGS): Likewise.
43708 (pci_mod_SOURCES): Likewise.
43709 (pci_mod_CFLAGS): Likewise.
43710 (pci_mod_LDFLAGS): Likewise.
43711 (lspci_mod_SOURCES): Likewise.
43712 (lspci_mod_CFLAGS): Likewise.
43713 (lspci_mod_LDFLAGS): Likewise.
43714
43715 * conf/x86_64-efi.rmk: New file.
43716
43717 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43718 macro.
43719 (grub_efidisk_write): Likewise.
43720
43721 * include/efi/api.h (efi_call_0): New macro.
43722 (efi_call_1): Likewise.
43723 (efi_call_2): Likewise.
43724 (efi_call_3): Likewise.
43725 (efi_call_4): Likewise.
43726 (efi_call_5): Likewise.
43727 (efi_call_6): Likewise.
43728
43729 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43730 grub_rescue_cmd_chainloader.
43731
43732 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43733 (grub_pe32_optional_header): Change some fields based on i386 or
43734 x86_64 platform.
43735 (GRUB_PE32_PE32_MAGIC): Likewise.
43736
43737 * include/grub/efi/uga_draw.h: New file.
43738
43739 * include/grub/elf.h (STN_ABS): New constant.
43740 (R_X86_64_NONE): Relocation constant for x86_64.
43741 (R_X86_64_64): Likewise.
43742 (R_X86_64_PC32): Likewise.
43743 (R_X86_64_GOT32): Likewise.
43744 (R_X86_64_PLT32): Likewise.
43745 (R_X86_64_COPY): Likewise.
43746 (R_X86_64_GLOB_DAT): Likewise.
43747 (R_X86_64_JUMP_SLOT): Likewise.
43748 (R_X86_64_RELATIVE): Likewise.
43749 (R_X86_64_GOTPCREL): Likewise.
43750 (R_X86_64_32): Likewise.
43751 (R_X86_64_32S): Likewise.
43752 (R_X86_64_16): Likewise.
43753 (R_X86_64_PC16): Likewise.
43754 (R_X86_64_8): Likewise.
43755 (R_X86_64_PC8): Likewise.
43756
43757 * include/grub/i386/efi/pci.h: New file.
43758
43759 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43760 Change it value based on platform.
43761 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43762 (GRUB_E820_RAM): Likewise.
43763 (GRUB_E820_RESERVED): Likewise.
43764 (GRUB_E820_ACPI): Likewise.
43765 (GRUB_E820_NVS): Likewise.
43766 (GRUB_E820_EXEC_CODE): Likewise.
43767 (GRUB_E820_MAX_ENTRY): Likewise.
43768 (grub_e820_mmap): New structure.
43769 (linux_kernel_header): Change the efi field according to different
43770 kernel version, also field from linux_kernel_header.
43771
43772 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43773
43774 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43775 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43776 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43777 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43778 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43779 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43780 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43781 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43782 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43783 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43784
43785 * include/grub/x86_64/efi/kernel.h: New file.
43786
43787 * include/grub/x86_64/efi/loader.h: Likewise.
43788
43789 * include/grub/x86_64/efi/machine.h: Likewise.
43790
43791 * include/grub/x86_64/efi/pci.h: Likewise.
43792
43793 * include/grub/x86_64/efi/time.h: Likewise.
43794
43795 * include/grub/x86_64/linux.h: Likewise.
43796
43797 * include/grub/x86_64/setjmp.h: Likewise.
43798
43799 * include/grub/x86_64/time.h: Likewise.
43800
43801 * include/grub/x86_64/types.h: Likewise.
43802
43803 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43804 GRUB_TARGET_SIZEOF_VOID_P.
43805
43806 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43807 (grub_efi_locate_handle): Likewise.
43808 (grub_efi_open_protocol): Likewise.
43809 (grub_efi_set_text_mode): Likewise.
43810 (grub_efi_stall): Likewise.
43811 (grub_exit): Likewise.
43812 (grub_reboot): Likewise.
43813 (grub_halt): Likewise.
43814 (grub_efi_exit_boot_services): Likewise.
43815 (grub_get_rtc): Likewise.
43816
43817 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43818 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43819 (grub_efi_allocate_pages): Wrap efi calls.
43820 (grub_efi_free_pages): Wrap efi calls.
43821 (grub_efi_get_memory_map): Wrap efi calls.
43822
43823 * kern/x86_64/dl.c: New file.
43824
43825 * kern/x86_64/efi/callwrap.S: Likewise.
43826
43827 * kern/x86_64/efi/startup.S: Likewise.
43828
43829 * loader/efi/appleloader.c: Likewise.
43830
43831 * loader/efi/chainloader.c (cmdline): New variable.
43832 (grub_chainloader_unload): Wrap efi calls.
43833 (grub_chainloader_boot): Likewise.
43834 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43835 command line.
43836
43837 * loader/efi/chainloader_normal.c (chainloader_command):
43838 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43839 command line.
43840
43841 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43842 method.
43843 (grub_e820_add_region): New function.
43844 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43845 booting.
43846 (grub_find_video_card): New function.
43847 (grub_linux_setup_video): New function.
43848 (grub_rescue_cmd_linux): Probe for video information.
43849
43850 * normal/x86_64/setjmp.S: New file.
43851
43852 * term/efi/console.c (map_char): New function.
43853 (grub_console_putchar): Map unicode char.
43854 (grub_console_checkkey): Wrap efi calls.
43855 (grub_console_getkey): Likewise.
43856 (grub_console_getwh): Likewise.
43857 (grub_console_gotoxy): Likewise.
43858 (grub_console_cls): Likewise.
43859 (grub_console_setcolorstate): Likewise.
43860 (grub_console_setcursor): Likewise.
43861
43862 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43863
43864 2008-07-16 Pavel Roskin <proski@gnu.org>
43865
43866 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43867 format strings.
43868
43869 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43870 pointer, not an integer. This fixes a warning and prevents
43871 precision loss on 64-bit systems.
43872 (relocate_addresses): Remove unneeded cast.
43873
43874 2008-07-15 Pavel Roskin <proski@gnu.org>
43875
43876 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43877
43878 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43879
43880 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43881 Fix comparison between signed and unsigned.
43882
43883 * include/grub/i386/ieee1275/console.h: Declare
43884 grub_console_init() and grub_console_fini().
43885
43886 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43887 It's empty and unused.
43888
43889 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43890 beginning to avoid warnings with some compilers.
43891
43892 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43893 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43894
43895 2008-07-14 Pavel Roskin <proski@gnu.org>
43896
43897 * kern/env.c (grub_register_variable_hook): Don't copy empty
43898 string, it leaks memory. Pass "" to grub_env_set(), it should
43899 handle constant strings.
43900
43901 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43902 * commands/cmp.c (grub_cmd_cmp): Likewise.
43903 * kern/dl.c (grub_dl_flush_cache): Likewise.
43904 (grub_dl_load_core): Likewise.
43905 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43906 (grub_elf64_load_phdrs): Likewise.
43907
43908 2008-07-13 Pavel Roskin <proski@gnu.org>
43909
43910 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43911 between signed and unsigned.
43912 (LzmaEnc_Finish): Fix warning about an unused parameter.
43913
43914 2008-07-13 Bean <bean123ch@gmail.com>
43915
43916 * Makefile.in (enable_lzo): New rule.
43917
43918 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43919
43920 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43921
43922 * boot/i386/pc/lnxboot.S: #include <config.h>.
43923
43924 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43925 its value according to the compression algorithm used, lzo or lzma.
43926
43927 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43928 compression algorithm according to configure macro.
43929
43930 * kern/i386/pc/startup.S (codestart): Likewise.
43931
43932 * kern/i386/pc/lzma_decode.S: New file.
43933
43934 * include/grub/lib/LzFind.h: Likewise.
43935
43936 * include/grub/lib/LzHash.h: Likewise.
43937
43938 * include/grub/lib/LzmaDec.h: Likewise.
43939
43940 * include/grub/lib/LzmaEnc.h: Likewise.
43941
43942 * include/grub/lib/LzmaTypes.h: Likewise.
43943
43944 * lib/LzFind.c: Likewise.
43945
43946 * lib/LzmaDec.c: Likewise.
43947
43948 * lib/LzmaEnc.c: Likewise.
43949
43950 2008-07-13 Bean <bean123ch@gmail.com>
43951
43952 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43953 (grub_ext4_extent_header): New structure.
43954 (grub_ext4_extent): Likewise.
43955 (grub_ext4_extent_idx): Likewise.
43956 (grub_ext4_find_leaf): New function.
43957 (grub_ext2_read_block): Handle extents.
43958
43959 2008-07-12 Robert Millan <rmh@aybabtu.com>
43960
43961 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43962
43963 2008-07-11 Robert Millan <rmh@aybabtu.com>
43964
43965 * util/grub.d/40_custom.in: New file. Example on how to add custom
43966 entries to /etc/grub.d.
43967 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43968 40_custom (implicitly, by merging all the grub.d rules).
43969
43970 2008-07-11 Pavel Roskin <proski@gnu.org>
43971
43972 * commands/read.c (grub_getline): Fix invalid memory access.
43973 Don't add newline to the variable value.
43974
43975 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43976 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43977 (serial_hw_get_port): Check validity of the port number.
43978 (grub_cmd_serial): Check return value of serial_hw_get_port().
43979
43980 2008-07-07 Pavel Roskin <proski@gnu.org>
43981
43982 * boot/i386/pc/diskboot.S (notification_string): Replace
43983 "Loading kernel" with just "loading". This is shorter, less
43984 confusing and saves a few bytes for possible future changes.
43985
43986 2008-07-05 Pavel Roskin <proski@gnu.org>
43987
43988 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43989 size for ATAPI devices, they are undefined. Output sector
43990 number in decimal form.
43991
43992 * disk/ata.c: Use named constants for status bits.
43993
43994 2008-07-04 Pavel Roskin <proski@gnu.org>
43995
43996 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43997 grub_addr_t before casting it to the void pointer to fix a
43998 warning. Non-addressable regions are discarded earlier.
43999 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44000 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44001 (check_signature): Don't shadow table_header.
44002 (grub_linuxbios_table_iterate): Cast numeric constants to
44003 grub_linuxbios_table_header_t.
44004 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44005 grub_stop().
44006
44007 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44008 prevent warnings.
44009
44010 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44011 pointer, which can cause warnings. Support 64-bit addresses.
44012
44013 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44014 of sizeof(long). This fixes PowerPC image generation on x86_64.
44015
44016 2008-07-04 Robert Millan <rmh@aybabtu.com>
44017
44018 This fixes a performance issue when pc & gpt partmap iterators
44019 didn't abort iteration even after our hook found what it was
44020 looking for (often causing expensive probes of non-existent drives).
44021
44022 Some callers relied on previous buggy behaviour, since they would
44023 raise an error when their own hooks caused early abortion of its
44024 iteration.
44025
44026 * kern/device.c (grub_device_open): Improve error message.
44027 * disk/lvm.c (grub_lvm_open): Likewise.
44028 * disk/raid.c (grub_raid_open): Likewise.
44029
44030 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44031 when hook requests it, independently of grub_errno.
44032 (pc_partition_map_probe): Do not fail when find_func() caused
44033 early abortion of pc_partition_map_iterate().
44034
44035 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44036 when hook requests it, independently of grub_errno.
44037 (gpt_partition_map_probe): Do not fail when find_func() caused
44038 early abortion of gpt_partition_map_iterate().
44039
44040 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44041 when hook requests it, independently of grub_errno. Do not fail when
44042 part_map_iterate_hook() caused early abortion of p->iterate().
44043
44044 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44045 when grub_partition_iterate() returned with non-zero.
44046
44047 2008-07-03 Pavel Roskin <proski@gnu.org>
44048
44049 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44050 like we do in grub_ata_pio_read().
44051 (grub_ata_readwrite): Always write individual sectors. Fix the
44052 sector count for the remainder.
44053 (grub_ata_write): Enable writing to ATA devices. Correctly
44054 report error for ATAPI devices.
44055
44056 2008-07-02 Pavel Roskin <proski@gnu.org>
44057
44058 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44059 warning.
44060
44061 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44062 for every read sector, we already increment it for the whole
44063 batch. This fixes reading more than 256 sectors at once.
44064
44065 * util/grub-editenv.c (cmd_info): Cast argument to long
44066 explicitly. ptrdiff_t reduces to int on i386.
44067
44068 * util/grub-editenv.c (main): Be specific which parameter is
44069 missing.
44070
44071 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44072 (memdisk): Make memdisk_orig_addr a pointer.
44073
44074 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44075 for file offsets, use grub_off_t instead. Fix printf format
44076 warnings.
44077
44078 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44079 there. Real unexpected warnings should not drown in the noise
44080 about known problems.
44081
44082 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44083 grub_disk_addr_t for memory addresses.
44084
44085 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44086 explicitly to fix a warning.
44087
44088 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44089
44090 * Makefile.in (MODULE_LDFLAGS): New variable.
44091 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44092 the linker accepts --build-id=none.
44093 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44094 MODULE_LDFLAGS.
44095 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44096
44097 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44098 those in Linux XFS code. Provide a way to access 64-bit parent
44099 inode.
44100 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44101 the end of struct grub_xfs_dir_header.
44102
44103 2008-07-02 Bean <bean123ch@gmail.com>
44104
44105 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44106 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44107 and GRUB_IEEE1275_FLAG_NO_ANSI.
44108
44109 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44110 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44111 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44112
44113 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44114 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44115
44116 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44117 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44118
44119 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44120 esc sequence on non ANSI terminal.
44121 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44122
44123 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44124 beginning of file.
44125
44126 2008-07-02 Bean <bean123ch@gmail.com>
44127
44128 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44129 (grub_editenv_SOURCES): New variable.
44130 (pkglib_MODULES): Add loadenv.mod.
44131 (loadenv_mod_SOURCES): New variable.
44132 (loadenv_mod_CFLAGS): Likewise.
44133 (loadenv_mod_LDFLAGS): Likewise.
44134
44135 * include/grub/envblk.h: New file.
44136
44137 * util/envblk.c: New file.
44138
44139 * util/grub-editenv.c: New file.
44140
44141 * commands/loadenv.c: New file.
44142
44143 2008-07-01 Pavel Roskin <proski@gnu.org>
44144
44145 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44146 not unsigned char. This fixes warnings and is consistent with
44147 other tags.
44148
44149 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44150
44151 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44152
44153 * term/tparm.c (analyze): Always set *popcount.
44154
44155 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44156 cast to fix a warning.
44157
44158 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44159 cast to suppress a warning.
44160
44161 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44162 grub_fshelp_read_file() expects.
44163
44164 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44165 write uuid as a 32-bit value in CPU byte order, so declare and
44166 use it as such.
44167
44168 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44169 long if the format specifier expects it.
44170 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44171 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44172 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44173 long to fix a warning.
44174 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44175 grub_dprintf() arguments to fix warnings.
44176
44177 2008-06-30 Pavel Roskin <proski@gnu.org>
44178
44179 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44180 install_bsd_part immediately before core.img is embedded or
44181 modified on disk. This fixes core.img verification if core.img
44182 cannot be embedded.
44183
44184 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44185 core_path to calculate the blocklist.
44186 Patch from Javier Martín <lordhabbit@gmail.com>
44187
44188 2008-06-29 Robert Millan <rmh@aybabtu.com>
44189
44190 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44191 block to disk block.
44192 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44193 Patch from Niels Böhm <bitbucket@arcor.de>
44194
44195 2008-06-29 Robert Millan <rmh@aybabtu.com>
44196
44197 * util/update-grub_lib.in (font_path): Search for fonts in
44198 /boot/grub first, which is more likely to be readable (we aren't
44199 deciding where fonts live, just looking for them).
44200
44201 2008-06-26 Pavel Roskin <proski@gnu.org>
44202
44203 * util/biosdisk.c (read_device_map): Don't leave dead map
44204 entries for devices failing stat() check.
44205
44206 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44207 core_path_dev for the core.img path on the target device.
44208
44209 2008-06-26 Robert Millan <rmh@aybabtu.com>
44210
44211 * disk/fs_uuid.c: New file.
44212 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44213 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44214 (fs_uuid_mod_LDFLAGS): New variables.
44215 * include/grub/disk.h (grub_disk_dev_id): Add
44216 `GRUB_DISK_DEVICE_UUID_ID'.
44217 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44218 implement iterate().
44219
44220 2008-06-26 Robert Millan <rmh@aybabtu.com>
44221
44222 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44223 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44224 Linux image includes no initrd.
44225
44226 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44227
44228 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44229 call to resolve the core image location that effectively appended the
44230 name twice.
44231
44232 2008-06-21 Robert Millan <rmh@aybabtu.com>
44233
44234 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44235 call from here ...
44236
44237 * util/grub.d/10_hurd.in: ... to here ...
44238 * util/grub.d/10_linux.in: ... and here.
44239
44240 2008-06-19 Robert Millan <rmh@aybabtu.com>
44241
44242 * kern/main.c (grub_main): Export `prefix' variable immediately
44243 after it has been set by grub_machine_set_prefix().
44244
44245 2008-06-19 Robert Millan <rmh@aybabtu.com>
44246
44247 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44248 search result when not saving to variable, not the other way around.
44249 When saving to variable, abort iteration as soon as a match is found.
44250
44251 2008-06-19 Robert Millan <rmh@aybabtu.com>
44252
44253 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44254 check for partition that provides /boot/grub. Its logic is flawed,
44255 as it prevents prepare_grub_to_access_device() from being called
44256 multiple times.
44257
44258 2008-06-19 Robert Millan <rmh@aybabtu.com>
44259
44260 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44261 "insmod" command directly when abstraction modules are needed,
44262 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44263 since it had already been processed).
44264
44265 2008-06-19 Pavel Roskin <proski@gnu.org>
44266
44267 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44268 changed. This is needed in case GRUB_LIBDIR changes.
44269 * conf/i386-ieee1275.rmk: Likewise.
44270 * conf/i386-linuxbios.rmk: Likewise.
44271 * conf/i386-pc.rmk: Likewise.
44272 * conf/powerpc-ieee1275.rmk: Likewise.
44273
44274 2008-06-18 Pavel Roskin <proski@gnu.org>
44275
44276 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44277 kernel_elf_symlist.c to symlist.c for consistency with other
44278 architectures. Update all users.
44279 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44280
44281 2008-06-18 Robert Millan <rmh@aybabtu.com>
44282
44283 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44284 it in prefix.
44285
44286 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44287 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44288 a RAID device, run setup() for all members independently on whether
44289 LVM abstraction is being used.
44290 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44291 If grub-mkimage has set `*install_dos_part == -2', don't override this
44292 value.
44293 Perform *install_dos_part adjustments independently on whether
44294 we're embedding or not.
44295 Clarify error message when image is too big for embedding.
44296 Remove duplicate *install_dos_part stanza.
44297
44298 2008-06-17 Robert Millan <rmh@aybabtu.com>
44299
44300 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44301 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44302 variables.
44303 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44304 values in grub_ofconsole_normal_color and
44305 grub_ofconsole_highlight_color (they're not directly related to
44306 background and foreground).
44307 (grub_ofconsole_setcolorstate): Extract background and foreground
44308 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44309
44310 2008-06-17 Robert Millan <rmh@aybabtu.com>
44311
44312 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44313 /boot/grub for the check in last commit, not /boot (they could be
44314 different partitions).
44315
44316 2008-06-16 Robert Millan <rmh@aybabtu.com>
44317
44318 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44319 asked to setup access for the same partition that provides /boot,
44320 don't bother using UUIDs since our root already has the value we
44321 want.
44322
44323 2008-06-16 Robert Millan <rmh@aybabtu.com>
44324
44325 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44326 I2O devices.
44327 Patch from Sven Mueller <sven@debian.org>.
44328
44329 2008-06-16 Robert Millan <rmh@aybabtu.com>
44330
44331 * util/update-grub.in: Check for $EUID instead of $UID.
44332 Reported by Vincent Zweije.
44333
44334 2008-06-16 Bean <bean123ch@gmail.com>
44335
44336 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44337 (grub_ext2_read_block): Likewise.
44338 (grub_ext2_read_inode): Likewise.
44339 (grub_ext2_mount): Likewise.
44340 (grub_ext2_close): Likewise.
44341 (grub_ext3_get_journal): Removed.
44342
44343 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44344 (grub_reiserfs_read_symlink): Likewise.
44345 (grub_reiserfs_mount): Likewise.
44346 (grub_reiserfs_open): Likewise.
44347 (grub_reiserfs_read): Likewise.
44348 (grub_reiserfs_close): Likewise.
44349 (grub_reiserfs_get_journal): Removed.
44350
44351 * fs/fshelp.c (grub_fshelp_read): Removed.
44352 (grub_fshelp_map_block): Likewise.
44353
44354 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44355 (grub_fshelp_journal): Likewise.
44356 (grub_fshelp_read): Likewise.
44357 (grub_fshelp_map_block): Likewise.
44358
44359 2008-06-16 Pavel Roskin <proski@gnu.org>
44360
44361 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44362 floating point anymore.
44363 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44364
44365 2008-06-15 Pavel Roskin <proski@gnu.org>
44366
44367 * commands/ls.c (grub_ls_list_files): Use integer calculations
44368 for human readable format, avoid floating point use.
44369 * kern/misc.c (grub_ftoa): Remove.
44370 (grub_vsprintf): Remove floating point support.
44371
44372 2008-06-15 Robert Millan <rmh@aybabtu.com>
44373
44374 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44375 devices.
44376 Reported by Max Vozeler.
44377
44378 2008-06-15 Robert Millan <rmh@aybabtu.com>
44379
44380 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44381 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44382 skipped later.
44383 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44384 the beginning of the prefix.
44385
44386 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44387 It is assumed that if we have a memdisk, grub-mkimage has set
44388 grub_prefix to include the "(memdisk)" drive in it.
44389
44390 2008-06-15 Robert Millan <rmh@aybabtu.com>
44391
44392 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44393 Initialize keyboard controller after registering the terminal, so that
44394 grub_printf() can be called from grub_keyboard_controller_init().
44395
44396 2008-06-15 Robert Millan <rmh@aybabtu.com>
44397
44398 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44399 extent-btree which is written as big endian on disk.
44400 Reported by Alain Greppin <al@chilibi.org>.
44401
44402 2008-06-14 Robert Millan <rmh@aybabtu.com>
44403
44404 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44405 * util/i386/pc/grub-install.in (modules): Likewise.
44406
44407 2008-06-13 Pavel Roskin <proski@gnu.org>
44408
44409 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44410
44411 2008-06-13 Bean <bean123ch@gmail.com>
44412
44413 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44414
44415 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44416
44417 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44418 to indicate sparse block.
44419
44420 2008-06-12 Pavel Roskin <proski@gnu.org>
44421
44422 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44423 number, grub_fshelp_read() does it for us.
44424
44425 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44426 linear disk read with journal translation.
44427 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44428 * include/grub/fshelp.h: Declare grub_fshelp_read().
44429
44430 2008-06-09 Pavel Roskin <proski@gnu.org>
44431
44432 * fs/minix.c (grub_minix_mount): Handle error reading
44433 superblock.
44434
44435 2008-06-08 Robert Millan <rmh@aybabtu.com>
44436
44437 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44438 don't append the RAID prefix afterwards.
44439 Reported by Clint Adams.
44440
44441 2008-06-08 Robert Millan <rmh@aybabtu.com>
44442
44443 Based on description from Pavel:
44444 * kern/disk.c (grub_disk_check_range): Rename to ...
44445 (grub_disk_adjust_range): ... this. Add a comment explaining the
44446 tasks performed by this function.
44447
44448 2008-06-08 Robert Millan <rmh@aybabtu.com>
44449
44450 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44451 `num_serial' (for consistency with other variables).
44452 (struct grub_ntfs_data): Add `uuid' member.
44453 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44454 (grub_ntfs_uuid): New function.
44455 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44456
44457 2008-06-07 Pavel Roskin <proski@gnu.org>
44458
44459 * util/biosdisk.c (open_device): Revert last change to the
44460 function, it broke installation. The sector needs to be
44461 different dependent on which device is opened.
44462
44463 2008-06-06 Robert Millan <rmh@aybabtu.com>
44464
44465 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44466 rest of GRUB, and breakage doesn't happen if its value were modified.
44467
44468 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44469 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44470 a constant (same value).
44471 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44472 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44473
44474 2008-06-06 Robert Millan <rmh@aybabtu.com>
44475
44476 * util/biosdisk.c (open_device): Do not modify sector offset when
44477 accessing a partition. kern/disk.c already handles this for us.
44478
44479 2008-06-06 Robert Millan <rmh@aybabtu.com>
44480
44481 * util/grub-emu.c (grub_machine_init): Move code in this function from
44482 here ...
44483 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44484 segfault in case grub_printf() is called).
44485
44486 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44487 grub_probe. Update all users not to explicitly add it again.
44488 (grub_device): New variable; contains corresponding device for grubdir.
44489 (fs_module, partmap_module, devabstraction_module): Pass
44490 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44491 every time.
44492
44493 2008-06-05 Robert Millan <rmh@aybabtu.com>
44494
44495 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44496 is found, print it (same layout as with labels).
44497
44498 2008-06-04 Robert Millan <rmh@aybabtu.com>
44499
44500 * util/biosdisk.c (get_drive): Rename to ...
44501 (find_grub_drive): ... this. Update all users.
44502
44503 (get_os_disk): Rename to ...
44504 (convert_system_partition_to_system_disk): ... this. Update all users.
44505
44506 (find_drive): Rename to ...
44507 (find_system_device): ... this. Update all users.
44508
44509 2008-06-04 Robert Millan <rmh@aybabtu.com>
44510
44511 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44512 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44513 (make_device_map): Likewise.
44514
44515 2008-06-01 Robert Millan <rmh@aybabtu.com>
44516
44517 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44518 before dereferencing it.
44519
44520 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44521 union with fat12/fat16-specific ones. Add some new fields, including
44522 `num_serial' for both versions.
44523 (struct grub_fat_data): Add `uuid' member.
44524 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44525 names. Initialize `data->uuid' using `num_serial'.
44526 (grub_fat_uuid): New function.
44527 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44528
44529 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44530 (grub_reiserfs_uuid): New function.
44531 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44532 member.
44533
44534 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44535 (grub_xfs_uuid): New function.
44536 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44537
44538 2008-06-01 Robert Millan <rmh@aybabtu.com>
44539
44540 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44541 code that is backward compatible with pre-uuid search command.
44542
44543 2008-05-31 Robert Millan <rmh@aybabtu.com>
44544
44545 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44546 floppies after everything else, to ensure floppy drive isn't accessed
44547 unnecessarily (patch from Bean).
44548
44549 2008-05-31 Robert Millan <rmh@aybabtu.com>
44550
44551 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44552 not print device names when we were asked to set a variable.
44553
44554 2008-05-31 Robert Millan <rmh@aybabtu.com>
44555
44556 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44557 using "cursor-on" and "cursor-off" commands (understood at least by
44558 the Open Firmware flavour on OLPC).
44559
44560 2008-05-31 Michael Gorven <michael@gorven.za.net>
44561
44562 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44563 on and off sequences.
44564
44565 2008-05-31 Robert Millan <rmh@aybabtu.com>
44566
44567 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44568 * util/update-grub.in: Likewise.
44569
44570 2008-05-30 Pavel Roskin <proski@gnu.org>
44571
44572 * util/biosdisk.c (linux_find_partition): Simplify logic and
44573 make the code more universal. Keep special processing for
44574 devfs, but use a simple rule for all other devices. If the
44575 device ends with a number, append 'p' and the partition number.
44576 Otherwise, append only the partition number.
44577
44578 2008-05-30 Robert Millan <rmh@aybabtu.com>
44579
44580 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44581 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44582 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44583 the `root' parameter to Linux.
44584
44585 2008-05-30 Robert Millan <rmh@aybabtu.com>
44586
44587 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44588 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44589 --fs_uuid with --fs-uuid.
44590 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44591 all filesystems support them).
44592
44593 2008-05-30 Robert Millan <rmh@aybabtu.com>
44594
44595 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44596 grub_printf() flags, since we're printing in units of 2 bytes.
44597
44598 2008-05-30 Robert Millan <rmh@aybabtu.com>
44599
44600 * util/grub.d/00_header.in: Remove obsolete comment referencing
44601 convert_system_path_to_grub_path().
44602 * util/update-grub.in: Likewise.
44603 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44604 (convert_system_path_to_grub_path): Add a warning message explaining
44605 that this function is deprecated. Rely on is_path_readable_by_grub()
44606 for the readability checks.
44607 (font_path): Use is_path_readable_by_grub() for the readability
44608 check rather than convert_system_path_to_grub_path().
44609
44610 2008-05-30 Robert Millan <rmh@aybabtu.com>
44611
44612 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44613 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44614 converting it first.
44615 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44616 grub.cfg for access to font file, and afterwards call it again to set
44617 the root device.
44618
44619 2008-05-30 Robert Millan <rmh@aybabtu.com>
44620
44621 * commands/search.c (options): Add --fs_uuid option.
44622 (search_fs_uuid): New function.
44623 (grub_cmd_search): Fix --set argument passing.
44624 Use search_fs_uuid() when requested via --fs_uuid.
44625 (grub_search_init): Update help message.
44626 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44627 and redeclare it as an array of 16-bit words.
44628 (grub_ext2_uuid): New function.
44629 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44630 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44631 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44632 (GRUB_DEVICE_BOOT_UUID): New variables.
44633 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44634 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44635 whenever possible.
44636 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44637 just assume `root' variable has the right value.
44638 * util/grub.d/10_linux.in: Likewise.
44639 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44640 via PRINT_FS_UUID.
44641 (main): Recognise `-t fs_uuid' argument.
44642
44643 2008-05-30 Robert Millan <rmh@aybabtu.com>
44644
44645 * util/biosdisk.c (map): Redefine structure to hold information
44646 about GRUB drive name.
44647 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44648 drive names.
44649 (call_hook): Remove.
44650 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44651 member. Assume drive has partitions.
44652 (grub_util_biosdisk_open): Access device names via `.device' struct
44653 member.
44654 (open_device): Likewise.
44655 (find_drive): Likewise.
44656 (read_device_map): Adjust map[] usage to match the new struct
44657 definition. Don't check for duplicates (still possible, but not cheap
44658 anymore).
44659 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44660 (make_device_name): Remove assumption of BIOS-like drive names.
44661
44662 2008-05-30 Pavel Roskin <proski@gnu.org>
44663
44664 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44665 compiling execute.c doesn't need grub_script.tab.h anymore.
44666 (normal/command.c_DEPENDENCIES): Likewise.
44667 (normal/function.c_DEPENDENCIES): Likewise.
44668 * conf/i386-ieee1275.rmk: Likewise.
44669 * conf/i386-linuxbios.rmk: Likewise.
44670 * conf/i386-pc.rmk: Likewise.
44671 * conf/powerpc-ieee1275.rmk: Likewise.
44672 * conf/sparc64-ieee1275.rmk: Likewise.
44673
44674 2008-05-29 Pavel Roskin <proski@gnu.org>
44675
44676 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44677 when scanning metadata for volume group name.
44678
44679 * include/grub/script.h: Don't include grub_script.tab.h. It's
44680 a generated file, which may only be included from the files with
44681 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44682 use union YYSTYPE, as the later allows forward declaration.
44683 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44684
44685 2008-05-29 Robert Millan <rmh@aybabtu.com>
44686
44687 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44688 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44689 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44690 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44691 scan codes.
44692
44693 2008-05-29 Robert Millan <rmh@aybabtu.com>
44694
44695 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44696 control key combinations.
44697
44698 2008-05-29 Robert Millan <rmh@aybabtu.com>
44699
44700 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44701 * util/ieee1275/grub-install.in: ... to here.
44702 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44703 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44704 (grub_install_SOURCES): Likewise.
44705
44706 2008-05-29 Robert Millan <rmh@aybabtu.com>
44707
44708 * fs/affs.c: Update copyright year.
44709 * fs/ext2.c: Likewise.
44710 * fs/fshelp.c: Likewise.
44711 * fs/hfsplus.c: Likewise.
44712 * fs/ntfs.c: Likewise.
44713 * fs/xfs.c: Likewise.
44714 * include/grub/fshelp.h: Likewise.
44715 * util/grub-mkdevicemap.c: Likewise.
44716
44717 2008-05-28 Robert Millan <rmh@aybabtu.com>
44718
44719 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44720 might need to be fatfs to support some firmware implementations
44721 (e.g. OFW or EFI).
44722
44723 2008-05-28 Robert Millan <rmh@aybabtu.com>
44724
44725 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44726 devices.
44727 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44728 (make_device_map): Likewise.
44729
44730 2008-05-20 Bean <bean123ch@gmail.com>
44731
44732 * fs/fshelp.c (grub_fshelp_map_block): New function.
44733 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44734 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44735
44736 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44737 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44738 (grub_fshelp_journal): New structure.
44739 (grub_fshelp_map_block): New function prototype.
44740 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44741 (grub_fshelp_map_block): Likewise.
44742
44743 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44744 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44745 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44746 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44747 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44748 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44749 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44750 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44751 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44752 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44753 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44754 (grub_ext2_sblock): New members for journal support.
44755 (grub_ext3_journal_header): New structure.
44756 (grub_ext3_journal_revoke_header): Likewise.
44757 (grub_ext3_journal_block_tag): Likewise.
44758 (grub_ext3_journal_sblock): Likewise.
44759 (grub_fshelp_node): New members logfile and journal.
44760 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44761 grub_fshelp_map_block to get real block number.
44762 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44763 number.
44764 (grub_ext2_read_inode): Likewise.
44765 (grub_ext3_get_journal): New function.
44766 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44767 (grub_ext2_close): Release memory used by journal.
44768
44769 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44770 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44771 (grub_reiserfs_transaction_header): Renamed to
44772 grub_reiserfs_description_block, replace field data with real_blocks.
44773 (grub_reiserfs_commit_block): New structure.
44774 (grub_reiserfs_data): New member journal.
44775 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44776 number.
44777 (grub_reiserfs_read_symlink): Likewise.
44778 (grub_reiserfs_iterate_dir): Likewise.
44779 (grub_reiserfs_open): Likewise.
44780 (grub_reiserfs_read): Likewise.
44781 (grub_reiserfs_get_journal): New function.
44782 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44783 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44784 using grub_reiserfs_get_journal.
44785 (grub_reiserfs_close): Release memory used by journal.
44786
44787 * fs/affs.c (grub_affs_read_block): Change block type to
44788 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44789
44790 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44791
44792 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44793
44794 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44795
44796 * fs/udf.c (grub_udf_read_block): Change block type to
44797 grub_disk_addr_t. Use type cast to avoid warning.
44798
44799 * fs/xfs.c (grub_xfs_read_block): Likewise.
44800
44801 2008-05-16 Christian Franke <franke@computer.org>
44802
44803 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44804 to ensure that break with ESC will always work.
44805 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44806 Remove ESC from keyboard queue.
44807
44808 2008-05-16 Christian Franke <franke@computer.org>
44809
44810 * util/biosdisk.c: [__CYGWIN__] Add includes.
44811 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44812 (get_os_disk): Move variable declarations to OS specific
44813 parts to avoid warning.
44814 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44815 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44816 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44817 Cygwin.
44818 * util/getroot.c: [__CYGWIN__] Add includes.
44819 (strip_extra_slashes): Fix "/" case.
44820 [__CYGWIN__] (get_win32_path): New function.
44821 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44822 [__CYGWIN__] (find_root_device): Disable.
44823 [__CYGWIN__] (get_bootsec_serial): New function.
44824 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44825 [__linux__] (grub_guess_root_device): Add early returns to simplify
44826 structure.
44827 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44828 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44829 check for Linux only.
44830
44831 2008-05-15 Bean <bean123ch@gmail.com>
44832
44833 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44834 keyboard hang problem in apple's intel mac.
44835
44836 2008-05-09 Robert Millan <rmh@aybabtu.com>
44837
44838 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44839 devices.
44840 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44841 (make_device_map): Likewise.
44842 Reported by Aurelien Jarno <aurel32@debian.org>
44843
44844 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44845
44846 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44847 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44848 (make_device_map): Output entries for xvd type disks.
44849
44850 2008-05-07 Robert Millan <rmh@aybabtu.com>
44851
44852 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44853 devices.
44854 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44855 (make_device_map): Likewise.
44856 Reported by Roland Dreier <rdreier@cisco.com>
44857
44858 2008-05-07 Robert Millan <rmh@aybabtu.com>
44859
44860 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44861 grub_strstr() call. Correct a few mistakes in failure path handling.
44862
44863 2008-05-06 Robert Millan <rmh@aybabtu.com>
44864
44865 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44866 Do not print a trailing slash (therefore, the root directory is an
44867 empty string).
44868 (convert_system_path_to_grub_path): Do not remove trailing slash
44869 from make_system_path_relative_to_its_root() output.
44870
44871 * util/i386/pc/grub-install.in: Add trailing slash to output from
44872 make_system_path_relative_to_its_root().
44873
44874 2008-05-06 Robert Millan <rmh@aybabtu.com>
44875
44876 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44877 ensures that output lines aren't intermangled with those sent to
44878 stderr (via grub_util_info()).
44879 * util/grub-probe.c (grub_refresh): Likewise.
44880 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44881
44882 2008-05-05 Christian Franke <franke@computer.org>
44883
44884 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44885 Add Cygwin device names.
44886 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44887 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44888 (check_device): Return error instead of success on empty name.
44889 (make_device_map): Move label inside linux specific code to
44890 prevent compiler warning.
44891
44892 2008-04-30 Robert Millan <rmh@aybabtu.com>
44893
44894 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44895 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44896 first boot option.
44897 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44898
44899 2008-04-29 Robert Millan <rmh@aybabtu.com>
44900
44901 * docs/grub.cfg: New file (example GRUB configuration).
44902
44903 2008-04-26 Robert Millan <rmh@aybabtu.com>
44904
44905 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44906 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44907 and `disk/ieee1275/nand.c'.
44908
44909 2008-04-25 Bean <bean123ch@gmail.com>
44910
44911 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44912 i386-linuxbios.
44913
44914 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44915 change the buffer size to 4096 for cdrom device.
44916
44917 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44918 and nand.mod.
44919 (_linux_mod_SOURCES): New variable.
44920 (_linux_mod_CFLAGS): Likewise.
44921 (_linux_mod_LDFLAGS): Likewise.
44922 (linux_mod_SOURCES): Likewise.
44923 (linux_mod_CFLAGS): Likewise.
44924 (linux_mod_LDFLAGS): Likewise.
44925 (nand_mod_SOURCES): Likewise.
44926 (nand_mod_CFLAGS): Likewise.
44927 (nand_mod_LDFLAGS): Likewise.
44928
44929 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44930 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44931 type property. (nand device in olpc don't have this property)
44932
44933 * include/grub/disk.h (grub_disk_dev_id): New macro
44934 GRUB_DISK_DEVICE_NAND_ID.
44935
44936 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44937 function prototype.
44938 (grub_rescue_cmd_initrd): Likewise.
44939
44940 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44941 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44942 ofw_cif_handler and ofw_idt, adjust padding number.
44943
44944 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44945 GRUB_MACHINE_IEEE1275 is defined.
44946
44947 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44948 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44949
44950 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44951 on nested function heap_init.
44952 (grub_upper_mem): New variable for i386-ieee1275.
44953 (grub_get_extended_memory): New function for i386-ieee1275.
44954 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44955
44956 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44957 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44958 property.
44959
44960 * loader/i386/ieee1275/linux.c: New file.
44961
44962 * loader/i386/ieee1275/linux_normal.c: New file.
44963
44964 * disk/ieee1275/nand.c: New file.
44965
44966 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44967
44968 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44969 value.
44970 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44971
44972 2008-04-18 Robert Millan <rmh@aybabtu.com>
44973
44974 Restructures early code path on ieee1275 to unify grub_main() as
44975 the first C function that is executed in every platform.
44976
44977 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44978 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44979 cmain().
44980 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44981 * kern/ieee1275/cmain.c (cmain): Rename to ...
44982 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44983 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44984 at the beginning.
44985
44986 2008-04-18 Robert Millan <rmh@aybabtu.com>
44987
44988 * util/update-grub.in: Fix syntax error when setting
44989 `GRUB_PRELOAD_MODULES'.
44990 Reported by Stephane Chazelas <stephane@artesyncp.com>
44991
44992 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44993
44994 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44995 section into account, newer toolchains generate unique build ids
44996 * configure.ac: remove the test for --build-id=none acceptance,
44997 we want build ids to be preserved
44998 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44999 far from other sections don't cause the raw binary images grow
45000 size
45001
45002 2008-04-15 Robert Millan <rmh@aybabtu.com>
45003
45004 * disk/lvm.c: Update copyright year.
45005 * kern/misc.c: Likewise.
45006
45007 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45008
45009 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45010 there is no memory left for physical volume name.
45011
45012 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45013
45014 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45015 volume name mapping to support bigger than 9 character names properly.
45016
45017 2008-04-13 Robert Millan <rmh@aybabtu.com>
45018
45019 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45020 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45021
45022 2008-04-13 Christian Franke <franke@computer.org>
45023
45024 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45025 to create a floppy emulation boot CD when non emulation mode
45026 does not work.
45027 Enable Joliet CD filesystem extension.
45028
45029 2008-04-13 Robert Millan <rmh@aybabtu.com>
45030
45031 * kern/misc.c (grub_strncat): Fix off-by-one error.
45032 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45033
45034 * kern/env.c (grub_env_context_close): Clear current context, not
45035 previous one.
45036 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45037
45038 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45039
45040 2008-04-13 Robert Millan <rmh@aybabtu.com>
45041
45042 Improve robustness when handling LVM.
45043
45044 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45045 (and leave `*p' unmodified).
45046 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45047 through it.
45048 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45049 iterating through it.
45050 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45051 through it.
45052 (grub_lvm_scan_device): Check the return value (and fail gracefully
45053 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45054 Don't assume `vg->pvs != NULL' when iterating through it.
45055
45056 2008-04-13 Robert Millan <rmh@aybabtu.com>
45057
45058 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45059 * genmk.rb (partmap): New variable.
45060 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45061 (#{partmap}): New target rule.
45062 * genpartmaplist.sh: New file.
45063 * Makefile.in (pkglib_DATA): Add partmap.lst.
45064 (partmap.lst): New target rule.
45065 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45066 modules (including all partition maps), instead of preloading them.
45067
45068 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45069
45070 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45071 `linux-boot-prober' (if installed) to detect other operating
45072 systems which are installed on the computer and add them to
45073 the boot menu.
45074 * conf/common.rmk: Build and install 30_os-prober.
45075
45076 2008-04-12 Robert Millan <rmh@aybabtu.com>
45077
45078 * kern/powerpc/ieee1275/init.c: Move from here ...
45079 * kern/ieee1275/init.c: ... to here. Update all users.
45080
45081 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45082 * kern/ieee1275/cmain.c: ... to here. Update all users.
45083
45084 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45085 * kern/ieee1275/openfw.c: ... to here. Update all users.
45086
45087 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45088 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45089
45090 2008-04-10 Pavel Roskin <proski@gnu.org>
45091
45092 * configure.ac: Always use "_cv_" in cache variables for
45093 compatibility with Autoconf 2.62.
45094
45095 2008-04-07 Robert Millan <rmh@aybabtu.com>
45096
45097 Revert grub/machine/init.h addition by Pavel (since it breaks on
45098 i386-ieee1275 and others):
45099 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45100 * util/powerpc/ieee1275/misc.c: Likewise.
45101
45102 2008-04-07 Robert Millan <rmh@aybabtu.com>
45103
45104 * util/grub-probe.c (probe): Improve error message.
45105
45106 2008-04-07 Robert Millan <rmh@aybabtu.com>
45107
45108 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45109 (this prevents the presence of a bogus entry from ruining the whole
45110 thing).
45111
45112 2008-04-06 Pavel Roskin <proski@gnu.org>
45113
45114 * util/biosdisk.c: Include grub/util/biosdisk.h.
45115 * util/grub-fstest.c (execute_command): Make static.
45116 * util/grub-mkdevicemap.c (check_device): Likewise.
45117 * util/i386/pc/misc.c: Include grub/machine/init.h.
45118 * util/powerpc/ieee1275/misc.c: Likewise.
45119 * util/lvm.c: Include grub/util/lvm.h.
45120 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45121 grub/cache.h.
45122 * util/raid.c: Include grub/util/raid.h.
45123 (grub_util_getdiskname): Make static.
45124
45125 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45126 grub_hostfs_fini(), as they are called from grub_init_all() and
45127 grub_fini_all() respectively. This fixes an infinite loop in
45128 grub-fstest due to double registration of hostfs.
45129 Reported by Christian Franke <Christian.Franke@t-online.de>
45130
45131 2008-04-05 Pavel Roskin <proski@gnu.org>
45132
45133 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45134 all 8 functions. Otherwise, probe function 0 only.
45135
45136 2008-04-04 Pavel Roskin <proski@gnu.org>
45137
45138 * commands/lspci.c (grub_lspci_iter): Print the bus number
45139 correctly.
45140
45141 * commands/lspci.c (grub_pci_classes): Fix typos.
45142 (grub_lspci_iter): Don't print func twice. Print vendor ID
45143 before device ID, as it's normally done.
45144
45145 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45146 Fix signedness warnings.
45147 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45148 Likewise.
45149 * util/ieee1275/get_disk_name.c: Include config.h so that
45150 _GNU_SOURCE is defined and getline() is declared. Mark an
45151 unused argument as such. Fix a signedness warning.
45152
45153 2008-04-02 Pavel Roskin <proski@gnu.org>
45154
45155 * genkernsyms.sh.in: Use more robust assignments for CC and
45156 srcdir. Quote srcdir.
45157 * gensymlist.sh.in: Likewise. Assert at the compile time that
45158 the symbol table is not empty.
45159
45160 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45161 * fs/cpio.c (grub_cpio_read): Likewise.
45162
45163 2008-04-01 Pavel Roskin <proski@gnu.org>
45164
45165 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45166 * disk/host.c (grub_host_open): Likewise.
45167 * disk/loopback.c (grub_loopback_open): Likewise.
45168 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45169 disk->id as in disk/host.c, not a multi-character constant.
45170
45171 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45172 later is obsolete, potentially dangerous and sets a bad example.
45173 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45174 * util/misc.c (grub_util_get_image_size): Likewise.
45175
45176 * disk/loopback.c (options): Improve help for "--partitions".
45177
45178 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45179 options to align them with the short options, e.g. "echo -e".
45180
45181 2008-03-31 Bean <bean123ch@gmail.com>
45182
45183 * video/reader/png.c (grub_png_data): New member is_16bit and
45184 image_data.
45185 (grub_png_decode_image_header): Detect 16 bit png image.
45186 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45187 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45188 (grub_video_reader_png): Release memory occupied by image_data.
45189
45190 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45191 4096 bytes.
45192 (grub_nfs_mount): Skip the test for sector per cluster.
45193
45194 * include/grub/ntfs.h (MAX_SPC): Removed.
45195
45196 2008-03-31 Bean <bean123ch@gmail.com>
45197
45198 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45199 (grub_probe_SOURCES): Add fs/afs.c.
45200 (grub_fstest_SOURCES): Likewise.
45201 (afs_mod_SOURCES): New variable.
45202 (afs_mod_CFLAGS): Likewise.
45203 (afs_mod_LDFLAGS): Likewise.
45204
45205 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45206 (grub_emu_SOURCES): Likewise.
45207
45208 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45209
45210 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45211
45212 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45213
45214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45215
45216 * fs/afs.c: New file.
45217
45218 2008-03-30 Pavel Roskin <proski@gnu.org>
45219
45220 * disk/host.c: Include grub/misc.h to fix a warning.
45221 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45222 warnings about implicit declarations.
45223
45224 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45225 variable.
45226 * include/grub/i386/loader.h: Change declaration of
45227 grub_linux_boot() to match what grub_loader_set() expects.
45228 * util/getroot.c (grub_guess_root_device): Return const char* to
45229 fix a warning.
45230 * util/grub-probe.c (probe): Fix a warning about uninitialized
45231 abstraction_name variable.
45232 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45233 second argument as unused to fix a warning.
45234
45235 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45236 missing grub_error() call.
45237
45238 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45239 2.60 and newer uses it to define datadir.
45240
45241 * commands/sleep.c: Fix warning about implicit declaration.
45242 * disk/memdisk.c: Likewise.
45243 * loader/aout.c: Likewise.
45244 * loader/i386/bsd_normal.c: Likewise.
45245 * util/grub-probe.c: Likewise.
45246
45247 * commands/i386/cpuid.c (has_longmode): Make static.
45248 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45249 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45250
45251 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45252 GDT. This is more robust, as %ds can change.
45253 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45254 calling real_to_prot().
45255 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45256
45257 2008-03-28 Pavel Roskin <proski@gnu.org>
45258
45259 * kern/i386/pc/startup.S: Assert that uncompressed functions
45260 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45261 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45262 code, as they push parts of the code (error handlers) beyond
45263 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45264 code as correctness and size.
45265
45266 2008-03-28 Pavel Roskin <proski@gnu.org>
45267
45268 * kern/i386/pc/startup.S
45269 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45270 data block address to the real mode, keep offset minimal. This
45271 works around a bug in AWARD BIOS on old Athlon systems, which
45272 makes CD detection hang.
45273
45274 2008-03-26 Pavel Roskin <proski@gnu.org>
45275
45276 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45277 const.
45278 * include/grub/normal.h: Add grub_parse_color_name_pair()
45279 declaration.
45280
45281 2008-03-24 Bean <bean123ch@gmail.com>
45282
45283 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45284 (cd_count): Removed.
45285 (cd_drive): New variable.
45286 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45287 (grub_biosdisk_call_hook): Likewise.
45288 (grub_biosdisk_iterate): Change cdrom detection method.
45289 (grub_biosdisk_open): Replace cd_start with cd_drive.
45290 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45291 detect cdrom device.
45292
45293 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45294 Removed.
45295 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45296 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45297 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45298 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45299 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45300 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45301 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45302 (grub_biosdisk_cdrp): New structure.
45303 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45304
45305 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45306
45307 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45308 device.
45309
45310 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45311 New function.
45312
45313 2008-03-20 Robert Millan <rmh@aybabtu.com>
45314
45315 Remove 2 TiB limit in ata.mod.
45316 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45317 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45318 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45319 grub_uint64_t instead of grub_uint32_t.
45320
45321 2008-03-05 Bean <bean123ch@gmail.com>
45322
45323 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45324 (grub_multiboot): Set boot device.
45325
45326 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45327
45328 2008-03-02 Bean <bean123ch@gmail.com>
45329
45330 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45331 symlink_buffer.
45332
45333 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45334
45335 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45336 texinfo.tex.
45337
45338 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45339 modified.
45340
45341 * docs/fdl.texi: New file.
45342
45343 * docs/mdate-sh: New file. Copied from gnulib.
45344 * docs/texinfo.tex: Likewise.
45345
45346 * config.guess: Updated from gnulib.
45347 * install-sh: Likewise.
45348
45349 2008-02-28 Robert Millan <rmh@aybabtu.com>
45350
45351 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45352 (aout_mod_SOURCES): New variable.
45353 (aout_mod_CFLAGS): Likewise.
45354 (aout_mod_LDFLAGS): Likewise.
45355
45356 * conf/i386-ieee1275.rmk: Likewise.
45357
45358 2008-02-28 Robert Millan <rmh@aybabtu.com>
45359
45360 * util/update-grub.in: Reorganise terminal validity check. Accept
45361 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45362 Based on suggestion by Franklin PIAT.
45363
45364 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45365
45366 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45367 function.
45368 * util/getroot.c (grub_util_check_block_device): New function that
45369 returns the given argument if it is a block device and returns NULL else.
45370 * util/grub-probe.c (argument_is_device): New variable.
45371 (probe): Promote device_name from a variable to an argument. Receive
45372 device_name from grub_util_check_block_device() if path is NULL and from
45373 grub_guess_root_device() else. Do not free() device_name anymore.
45374 (options): Introduce new parameter '-d, --device'.
45375 (main): Add description of the new parameter to the help screen.
45376 Rename path variable to argument. Set argument_is_device if the '-d'
45377 option is given. Pass argument to probe() depending on
45378 argument_is_device.
45379
45380 2008-02-24 Bean <bean123ch@gmail.com>
45381
45382 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45383 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45384 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45385 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45386 (GRUB_ISO9660_VOLDESC_END): Likewise.
45387 (grub_iso9660_primary_voldesc): New member escape.
45388 (grub_iso9660_data): New member joliet.
45389 (grub_iso9660_convert_string): New function.
45390 (grub_iso9660_mount): Detect joliet extension.
45391 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45392 (grub_iso9660_iso9660_label): Likewise.
45393
45394 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45395 (grub_setup_SOURCES): Add fs/udf.c.
45396 (grub_fstest_SOURCES): Likewise.
45397 (udf_mod_SOURCES): New variable.
45398 (udf_mod_CFLAGS): Likewise.
45399 (udf_mod_LDFLAGS): Likewise.
45400
45401 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45402 (grub_emu_SOURCES): Likewise.
45403
45404 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45405
45406 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45407
45408 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45409
45410 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45411
45412 * fs/udf.c: New file.
45413
45414 2008-02-24 Robert Millan <rmh@aybabtu.com>
45415
45416 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45417 (normal/lexer.c_DEPENDENCIES): New variables.
45418 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45419 (normal/lexer.c_DEPENDENCIES): Likewise.
45420 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45421 (normal/lexer.c_DEPENDENCIES): Likewise.
45422 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45423 (normal/lexer.c_DEPENDENCIES): Likewise.
45424 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45425 (normal/lexer.c_DEPENDENCIES): Likewise.
45426 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45427 (normal/lexer.c_DEPENDENCIES): Likewise.
45428
45429 2008-02-23 Robert Millan <rmh@aybabtu.com>
45430
45431 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45432 since they were intended to be in hex. This didn't break previously
45433 because of a bug in gpt_partition_map_iterate() (see below).
45434
45435 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45436 when checking the validity of GPT header.
45437 Remove `partno', since it always provides the same information as `i'.
45438
45439 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45440
45441 * include/grub/efi/time.h: Fix a wrong comment.
45442
45443 2008-02-19 Pavel Roskin <proski@gnu.org>
45444
45445 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45446 message.
45447
45448 2008-02-19 Bean <bean123ch@gmail.com>
45449
45450 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45451 (aout_mod_SOURCES): New variable.
45452 (aout_mod_CFLAGS): Likewise.
45453 (aout_mod_LDFLAGS): Likewise.
45454 (_bsd_mod_SOURCES): New variable.
45455 (_bsd_mod_CFLAGS): Likewise.
45456 (_bsd_mod_LDFLAGS): Likewise.
45457 (bsd_mod_SOURCES): New variable.
45458 (bsd_mod_CFLAGS): Likewise.
45459 (bsd_mod_LDFLAGS): Likewise.
45460
45461 * include/grub/aout.h: New file.
45462
45463 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45464
45465 * include/grub/i386/bsd.h: New file.
45466
45467 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45468 to make it public.
45469
45470 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45471 function is called, so that it's possible to change it inside the hook.
45472 (grub_elf64_load): Likewise.
45473 (grub_elf_file): Don't close the file if elf header is not found.
45474 (grub_elf_close): Close the file if grub_elf_file fails (The new
45475 grub_elf_file won't close it).
45476 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45477 (grub_elf64_size): Likewise.
45478
45479 * kern/i386/loader.S (grub_unix_real_boot): New function.
45480
45481 * loader/aout.c: New file.
45482
45483 * loader/i386/bsd.c: New file.
45484
45485 * loader/i386/bsd_normal.c: New file.
45486
45487 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45488
45489 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45490 can test other formats.
45491
45492 2008-02-19 Robert Millan <rmh@aybabtu.com>
45493
45494 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45495 (grub_gpt_partition_type_empty): Redefine with macro from
45496 `<grub/gpt_partition.h>'.
45497 (gpt_partition_map_iterate): Adjust partition type comparison.
45498
45499 Export `entry' as partmap-specific `part.data' struct.
45500 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45501
45502 * include/grub/gpt_partition.h (grub_gpt_header)
45503 (grub_gpt_partentry): ... to here (new file).
45504
45505 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45506
45507 (grub_gpt_partition_type_bios_boot): New const variable, defined
45508 with macro from `<grub/gpt_partition.h>'.
45509
45510 (setup): Replace `first_start' with `embed_region', which keeps
45511 track of the embed region (and is partmap-agnostic).
45512
45513 Replace find_first_partition_start() with find_usable_region(),
45514 which finds a usable region for embedding using partmap-specific
45515 knowledge (supports PC/MSDOS and GPT).
45516
45517 Fix all assumptions that the embed region start at sector 1, using
45518 `embed_region.start' from now on. Similarly, use `embed_region.end'
45519 rather than `first_start' to calculate available size.
45520
45521 In grub_util_info() message, replace "into after the MBR" with an
45522 indication of the specific sector our embed region starts at.
45523
45524 2008-02-19 Robert Millan <rmh@aybabtu.com>
45525
45526 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45527 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45528 `commands/reboot.c'.
45529 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45530 (halt_mod_SOURCES): Likewise.
45531 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45532 (halt_mod_SOURCES): Likewise.
45533
45534 2008-02-17 Christian Franke <franke@computer.org>
45535
45536 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45537
45538 2008-02-17 Robert Millan <rmh@aybabtu.com>
45539
45540 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45541 set `first_start' to 0 for non-PC/MSDOS partition maps.
45542
45543 2008-02-16 Robert Millan <rmh@aybabtu.com>
45544
45545 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45546 do not assume partition map is PC/MSDOS before performing checks that
45547 are specific to that layout.
45548
45549 2008-02-13 Robert Millan <rmh@aybabtu.com>
45550
45551 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45552 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45553 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45554
45555 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45556
45557 * configure.ac: Only a cosmetic change on the handling of
45558 -fno-stack-protector.
45559
45560 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45561
45562 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45563 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45564 reboot.c.
45565 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45566 (halt_mod_SOURCES): New variable.
45567 (halt_mod_CFLAGS): Likewise.
45568 (halt_mod_LDFLAGS): Likewise.
45569 (reboot_mod_SOURCES): Likewise.
45570 (reboot_mod_CFLAGS): Likewise.
45571 (reboot_mod_LDFLAGS): Likewise.
45572
45573 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45574 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45575 reboot.c.
45576 (halt_mod_SOURCES): Likewise.
45577 (reboot_mod_SOURCES): Likewise.
45578
45579 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45580 commands/i386/pc/reboot.c by commands/reboot.c.
45581 (reboot_mod_SOURCES): Likewise.
45582
45583 * commands/i386/pc/reboot.c: merge this file ...
45584
45585 * commands/ieee1275/reboot.c: ... and this file ...
45586
45587 * commands/reboot.c: ... to this file.
45588 Add some precompiler directive to include the correct header for
45589 each machine.
45590
45591 * commands/ieee1275/halt.c: move this file ...
45592
45593 * commands/halt.c: ... to here.
45594 Add some precompiler directive to include the correct header for
45595 each machine.
45596
45597 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45598 (grub_halt): Likewise.
45599
45600 * kern/efi/efi.c (grub_reboot): New function.
45601 (grub_halt): Likewise.
45602
45603 2008-02-12 Robert Millan <rmh@aybabtu.com>
45604
45605 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45606 /dev (like it is done for /dev/mapper). This doesn't provide support
45607 for EVMS, but at least it is now easy to identify the problem when it
45608 arises.
45609
45610 2008-02-11 Robert Millan <rmh@aybabtu.com>
45611
45612 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45613 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45614 comparing it with -1, not 0.
45615
45616 2008-02-10 Robert Millan <rmh@aybabtu.com>
45617
45618 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45619 `disk/lvm.c'.
45620 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45621 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45622
45623 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45624 `disk/lvm.c' to the end of the list.
45625 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45626 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45627
45628 2008-02-10 Robert Millan <rmh@aybabtu.com>
45629
45630 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45631 grub_print_error() instead. This will let user know why we're entering
45632 rescue mode.
45633 Based on suggestions from Sam Morris.
45634
45635 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45636
45637 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45638 on remaining N args, instead of "--" arg N times.
45639
45640 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45641
45642 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45643 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45644 pattern for unknown glyphs.
45645
45646 2008-02-09 Robert Millan <rmh@aybabtu.com>
45647
45648 * configure.ac: Probe for `help2man'.
45649 * Makefile.in (builddir): New variable.
45650 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45651 or otherwise add a few flags/options to it.
45652 (install-local): For every executable utility or script that is
45653 installed, invoke $(HELP2MAN) to install a manpage based on --help
45654 output.
45655
45656 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45657 that it doesn't prevent --help from working in build tree.
45658
45659 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45660 with `bug-grub@gnu.org'.
45661 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45662 * util/update-grub.in (usage): New function.
45663 Implement proper argument check, with support for --help and --version
45664 (as well as existing -y).
45665
45666 2008-02-09 Christian Franke <franke@computer.org>
45667
45668 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45669 avoid overwriting previous output.
45670 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45671
45672 2008-02-09 Robert Millan <rmh@aybabtu.com>
45673
45674 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45675 drawing the menu.
45676
45677 2008-02-09 Robert Millan <rmh@aybabtu.com>
45678
45679 * commands/sleep.c: New file.
45680 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45681 (sleep_mod_SOURCES): New variable.
45682 (sleep_mod_CFLAGS): Likewise.
45683 (sleep_mod_LDFLAGS): Likewise.
45684
45685 2008-02-09 Robert Millan <rmh@aybabtu.com>
45686
45687 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45688 situations in which we can deduce the RAID size and the superblock
45689 doesn't match it.
45690
45691 2008-02-09 Robert Millan <rmh@aybabtu.com>
45692
45693 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45694 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45695 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45696
45697 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45698 and return a grub_diskmemberlist_t composed of physical array members.
45699 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45700
45701 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45702 prototype.
45703 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45704 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45705 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45706
45707 * util/grub-probe.c (probe): Move partmap probing code from here ...
45708 (probe_partmap): ... to here.
45709 (probe): Use probe_partmap() once for the disk we're probing, and
45710 additionally, when such disk contains a memberlist() struct member,
45711 once for each disk that is contained in the structure returned by
45712 memberlist().
45713
45714 2008-02-09 Robert Millan <rmh@aybabtu.com>
45715
45716 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45717 environment variable to 'all' in order to obtain debug output from
45718 non-util/ code.
45719 * util/i386/pc/grub-setup.c (main): Likewise.
45720
45721 2008-02-08 Robert Millan <rmh@aybabtu.com>
45722
45723 * disk/raid.c (grub_raid_scan_device): Check for
45724 `array->device[sb.this_disk.number]' rather than for
45725 `array->device[sb.this_disk.number]->name', since the latter is not
45726 guaranteed to be accessible.
45727
45728 2008-02-08 Robert Millan <rmh@aybabtu.com>
45729
45730 * disk/raid.c: Update copyright.
45731 * fs/cpio.c: Likewise.
45732 * include/grub/raid.h: Likewise.
45733 * loader/i386/pc/multiboot.c: Likewise.
45734 * util/hostfs.c: Likewise.
45735
45736 2008-02-08 Robert Millan <rmh@aybabtu.com>
45737
45738 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45739 to a grub_disk_t array.
45740 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45741 `device[x]'.
45742 (grub_raid_scan_device): Replace `device[x].name' accesses with
45743 `device[x]->name'. Simplify initialization of `array->device[x]'.
45744
45745 2008-02-08 Robert Millan <rmh@aybabtu.com>
45746
45747 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45748 grub_dprintf() calls.
45749 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45750 error message.
45751
45752 2008-02-07 Christian Franke <franke@computer.org>
45753
45754 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45755 instead of fseek and ftell to support large files.
45756 (grub_hostfs_read): Likewise.
45757
45758 2008-02-07 Robert Millan <rmh@aybabtu.com>
45759
45760 Patch from Jeroen Dekkers.
45761 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45762 failure, since successfully reading all array members might not be
45763 required.
45764
45765 2008-02-06 Robert Millan <rmh@aybabtu.com>
45766
45767 * util/grub-probe.c (probe): Simplify partmap probing (with the
45768 assumption that the first word up to the underscore equals to
45769 the module name).
45770
45771 2008-02-06 Christian Franke <franke@computer.org>
45772
45773 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45774 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45775 last block of a cpio or tar stream.
45776 Check for "TRAILER!!!" instead of any empty data
45777 block to detect last block of a cpio stream.
45778 (grub_cpio_dir): Fix constness of variable np.
45779 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45780 cpio or tar trailer is detected. This fixes a crash
45781 on open of a non existing file.
45782
45783 2008-02-05 Bean <bean123ch@gmail.com>
45784
45785 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45786 address of entry.
45787 (grub_multiboot_load_elf64): Likewise.
45788 (grub_multiboot): Initialize mbi structure.
45789
45790 * util/grub-fstest.c: Don't include unused header file script.h.
45791
45792 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45793 of file.
45794 (grub_fstest_SOURCES): Likewise.
45795
45796 2008-02-05 Robert Millan <rmh@aybabtu.com>
45797
45798 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45799 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45800 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45801 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45802
45803 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45804 (translation_table): Replace hardcoded values with macros
45805 provided by `<grub/term.h>'.
45806
45807 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45808 (keyboard_map): Correct/add a few values, with macros provided
45809 by `<grub/term.h>'.
45810 (keyboard_map_shift): Zero values that don't differ from their
45811 `keyboard_map' equivalents.
45812 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45813 Discard the second scan code that is always sent by Caps lock.
45814 Only use `keyboard_map_shift' when it provides a non-zero value,
45815 otherwise fallback to `keyboard_map'.
45816
45817 2008-02-04 Bean <bean123ch@gmail.com>
45818
45819 * Makefile.in (enable_grub_fstest): New variable.
45820
45821 * conf/common.rmk (grub_fstest_init.lst): New rule.
45822 (grub_fstest_init.h): Likewise.
45823 (grub_fstest_init.c): Likewise.
45824 (util/grub-fstest.c_DEPENDENCIES): New variable.
45825 (grub_fstest_SOURCES): Likewise.
45826
45827 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45828
45829 * util/grub-fstest.c: New file.
45830
45831 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45832
45833 Make grub-setup handle a separate root device.
45834
45835 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45836 so that the root device can be compared with the destination
45837 device.
45838 When embedding the core image, if the root and destination devices
45839 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45840 0xFF.
45841 When not embedding, set ROOT_DRIVE to 0xFF.
45842
45843 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45844
45845 Add support for having a grub directory in a different drive. This
45846 is still only the data handling part.
45847
45848 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45849 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45850 (grub_root_drive): New variable.
45851
45852 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45853 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45854 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45855 as it was.
45856
45857 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45858
45859 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45860 macro.
45861 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45862
45863 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45864 is bogus, because PXE booting does not specify any drive
45865 correctly.
45866
45867 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45868 am not sure if this is really correct.
45869
45870 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45871 is always identical to the boot drive when booting from a CD.
45872
45873 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45874 longer.
45875 (root_drive): New variable.
45876 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45877 (setup_sectors): Push %dx right after popping it, because %dh will
45878 be modified later.
45879 (copy_buffer): Restore %dx.
45880
45881 2008-02-03 Robert Millan <rmh@aybabtu.com>
45882
45883 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45884 use `cdboot.img' for cdrom images.
45885
45886 2008-02-03 Robert Millan <rmh@aybabtu.com>
45887
45888 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45889 only setup gfxterm when `font' command has succeeded.
45890
45891 2008-02-03 Robert Millan <rmh@aybabtu.com>
45892
45893 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45894 (grub_rescue_cmd_multiboot_loader)
45895 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45896
45897 2008-02-03 Pavel Roskin <proski@gnu.org>
45898
45899 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45900 %edx and %esi from stack only after grub_gate_a20() is called.
45901 grub_gate_a20() clobbers %edx.
45902
45903 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45904
45905 * configure.ac (AC_INIT): Bumped to 1.96.
45906
45907 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45908 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45909 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45910 video/readers/png.c.
45911
45912 2008-02-03 Bean <bean123ch@gmail.com>
45913
45914 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45915 (cdboot_img_SOURCES): New variable.
45916 (cdboot_img_ASFLAGS): New variable.
45917 (cdboot_img_LDFLAGS): New variable.
45918
45919 * boot/i386/pc/cdboot.S: New file.
45920
45921 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45922 (cd_count): Likewise.
45923 (grub_biosdisk_get_drive): Add support for cd device.
45924 (grub_biosdisk_call_hook): Likewise.
45925 (grub_biosdisk_iterate): Likewise.
45926 (grub_biosdisk_open): Likewise.
45927 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45928 (grub_biosdisk_rw): Support reading from cd device.
45929 (GRUB_MOD_INIT): Iterate cd devices.
45930
45931 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45932 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45933 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45934
45935 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45936
45937 2008-02-02 Robert Millan <rmh@aybabtu.com>
45938
45939 * commands/read.c: New file.
45940 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45941 (read_mod_SOURCES): New variable.
45942 (read_mod_CFLAGS): Likewise.
45943 (read_mod_LDFLAGS): Likewise.
45944
45945 2008-02-02 Robert Millan <rmh@aybabtu.com>
45946
45947 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45948 determining whether menu has to be displayed.
45949
45950 2008-02-02 Marco Gerards <marco@gnu.org>
45951
45952 * bus/pci.c: New file.
45953
45954 * include/grub/pci.h: Likewise.
45955
45956 * include/grub/i386/pc/pci.h: Likewise.
45957
45958 * commands/lspci.c: Likewise.
45959
45960 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45961 `lspci.mod'.
45962 (pci_mod_SOURCES): New variable.
45963 (pci_mod_CFLAGS): Likewise.
45964 (pci_mod_LDFLAGS): Likewise.
45965 (lspci_mod_SOURCES): Likewise.
45966 (lspci_mod_CFLAGS): Likewise.
45967 (lspci_mod_LDFLAGS): Likewise.
45968
45969 2008-02-02 Bean <bean123ch@gmail.com>
45970
45971 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45972 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45973
45974 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45975 (grub_xfs_btree_node): New structure.
45976 (grub_xfs_btree_root): New structure.
45977 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45978 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45979 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45980 (GRUB_XFS_EXTENT_SIZE): Likewise.
45981 (grub_xfs_read_block): Support btree format type.
45982 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45983 Use directory block as basic unit.
45984
45985 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45986
45987 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45988 __attribute__ ((__regparm__ (1))).
45989
45990 2008-02-01 Robert Millan <rmh@aybabtu.com>
45991
45992 Correct a mistake in previous commit.
45993
45994 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45995 top.
45996 (normal/command.c_DEPENDENCIES): New variable.
45997
45998 2008-02-01 Robert Millan <rmh@aybabtu.com>
45999
46000 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46001 top.
46002 (normal/command.c_DEPENDENCIES): New variable.
46003 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46004 * conf/i386-ieee1275.rmk: Likewise.
46005 * conf/i386-linuxbios.rmk: Likewise.
46006 * conf/i386-pc.rmk: Likewise.
46007 * conf/sparc64-ieee1275.rmk: Likewise.
46008 * conf/powerpc-ieee1275.rmk: Likewise.
46009 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46010
46011 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46012
46013 2008-02-01 Robert Millan <rmh@aybabtu.com>
46014
46015 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46016 call at beginning of function.
46017
46018 2008-01-31 Pavel Roskin <proski@gnu.org>
46019
46020 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46021 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46022 (grub_mkrescue_SOURCES): Likewise.
46023 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46024
46025 2008-01-30 Robert Millan <rmh@aybabtu.com>
46026
46027 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46028 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46029 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46030 (grub_probe_SOURCES): ... to here.
46031
46032 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46033 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46034 * conf/i386-ieee1275.rmk: Likewise.
46035 * conf/i386-linuxbios.rmk: Likewise.
46036 * conf/powerpc-ieee1275.rmk: Likewise.
46037
46038 2008-01-30 Tristan Gingold <gingold@free.fr>
46039
46040 * kern/rescue.c: Silently accept empty lines.
46041
46042 2008-01-29 Bean <bean123ch@gmail.com>
46043
46044 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46045 (real_code_2): Code cleanup and change comment style.
46046 (move_memory): Avoid using 32-bit address mode.
46047
46048 2008-01-29 Bean <bean123ch@gmail.com>
46049
46050 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46051 (png_mod_SOURCES): New variable.
46052 (png_mod_CFLAGS): Likewise.
46053 (png_mod_LDFLAGS): Likewise.
46054
46055 * video/readers/png.c: New file.
46056
46057 2008-01-28 Robert Millan <rmh@aybabtu.com>
46058
46059 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46060 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46061 `ifndef GRUB_MOD_GAP' hack.
46062 * util/elf/grub-mkimage.c (add_segments): Likewise.
46063
46064 2008-01-27 Robert Millan <rmh@aybabtu.com>
46065
46066 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46067 `GRUB_MOD_GAP' for platforms in which it's not defined.
46068 * util/elf/grub-mkimage.c (add_segments): Likewise.
46069
46070 2008-01-27 Robert Millan <rmh@aybabtu.com>
46071
46072 Get grub-emu to build again (including parallel builds).
46073
46074 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46075 Split into ...
46076 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46077 (normal/execute.c_DEPENDENCIES): ... this, ...
46078 (grub-emu_DEPENDENCIES): ... and this.
46079
46080 * conf/i386-efi.rmk: Likewise.
46081 * conf/i386-linuxbios.rmk: Likewise.
46082 * conf/i386-ieee1275.rmk: Likewise.
46083 * conf/powerpc-ieee1275.rmk: Likewise.
46084 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46085
46086 2008-01-27 Robert Millan <rmh@aybabtu.com>
46087
46088 * NEWS: Add a few items.
46089
46090 2008-01-27 Robert Millan <rmh@aybabtu.com>
46091
46092 Fix parallel builds with grub-emu. Based on earlier commit for
46093 grub-probe and grub-setup.
46094
46095 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46096 (util/grub-emu.c_DEPENDENCIES): ... this.
46097 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46098 (util/grub-emu.c_DEPENDENCIES): ... this.
46099 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46100 (util/grub-emu.c_DEPENDENCIES): ... this.
46101 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46102 (util/grub-emu.c_DEPENDENCIES): ... this.
46103 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46104 (util/grub-emu.c_DEPENDENCIES): ... this.
46105
46106 2008-01-27 Pavel Roskin <proski@gnu.org>
46107
46108 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46109 to create a gap between _end and the modules added to the image
46110 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46111 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46112 * util/elf/grub-mkimage.c (add_segments): Likewise.
46113
46114 2008-01-26 Pavel Roskin <proski@gnu.org>
46115
46116 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46117 just return an error.
46118
46119 2008-01-26 Bean <bean123ch@gmail.com>
46120
46121 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46122 (grub_reiserfs_get_item): Save offset of the next item.
46123 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46124
46125 2008-01-25 Robert Millan <rmh@aybabtu.com>
46126
46127 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46128 make all filesystem sources appear together (possibly fixing omissions
46129 while at it).
46130 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46131 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46132 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46134
46135 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46136 add `kern/file.c'.
46137 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46138 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46139 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46140 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46141
46142 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46143 (probe): Add a sanity check to make sure of our ability to read
46144 requested files when probing for filesystem type.
46145
46146 * genmk.rb: Update copyright year (2007).
46147
46148 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46149 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46150 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46151 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46152 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46153 : Remove function prototypes.
46154
46155 2008-01-25 Robert Millan <rmh@aybabtu.com>
46156
46157 Revert my previous commits (based on wrong assumption of how grub_errno
46158 works).
46159
46160 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46161 * kern/file.c (grub_file_open): Likewise.
46162
46163 2008-01-24 Pavel Roskin <proski@gnu.org>
46164
46165 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46166 that hang if GRUB tries to setup colors.
46167 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46168 colors for firmwares that don't support it.
46169 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46170 Recognize Open Hack'Ware, set flags to work around its
46171 limitations.
46172
46173 2008-01-24 Robert Millan <rmh@aybabtu.com>
46174
46175 * kern/file.c (grub_file_open): Do not account previous failures of
46176 unrelated functions when grub_errno is checked for.
46177 Reported by Oleg Strikov.
46178
46179 2008-01-24 Bean <bean123ch@gmail.com>
46180
46181 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46182 (grub_ufs_sblock): New member volume name.
46183 (grub_ufs_find_file): Fix string copy bug.
46184 (grub_ufs_label): Implement this function properly.
46185
46186 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46187 (grub_hfs_iterate_records): Use the correct file number for extents
46188 and catalog file. Fix problem in next index calculation.
46189 (grub_hfs_find_node): Replace recursive function call with loop.
46190 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46191
46192 2008-01-23 Robert Millan <rmh@aybabtu.com>
46193
46194 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46195 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46196 (grub_multiboot2_real_boot): New function prototype.
46197
46198 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46199 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46200
46201 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46202 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46203
46204 2008-01-23 Robert Millan <rmh@aybabtu.com>
46205
46206 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46207 #ifdef'ed out grub_printf().
46208
46209 2008-01-23 Robert Millan <rmh@aybabtu.com>
46210
46211 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46212 grub_dprintf calls, since they make "debug=all" mode unusable.
46213 (grub_console_checkkey): Likewise.
46214
46215 2008-01-23 Robert Millan <rmh@aybabtu.com>
46216
46217 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46218 `term/i386/pc/at_keyboard.c'.
46219 (pkglib_MODULES): Add `serial.mod'.
46220 (serial_mod_SOURCES): New variable.
46221 (serial_mod_CFLAGS): Likewise.
46222 (serial_mod_LDFLAGS): Likewise.
46223
46224 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46225 `<grub/powerpc/ieee1275/console.h>'.
46226 (grub_keyboard_controller_init): New function prototype.
46227 (grub_console_checkkey): Likewise.
46228 (grub_console_getkey): Likewise.
46229
46230 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46231 keyboard on i386.
46232
46233 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46234 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46235
46236 2008-01-23 Robert Millan <rmh@aybabtu.com>
46237
46238 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46239 present, "(memdisk)/boot/grub" becomes the default prefix.
46240
46241 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46242 a memdisk tarball with all the modules. Add --overlay=DIR option that
46243 allows users to overlay additional files into the image.
46244
46245 2008-01-23 Robert Millan <rmh@aybabtu.com>
46246
46247 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46248 and `machine/memory.h'.
46249 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46250 (_multiboot_mod_SOURCES): New variable.
46251 (_multiboot_mod_CFLAGS): Likewise.
46252 (_multiboot_mod_LDFLAGS): Likewise.
46253 (multiboot_mod_SOURCES): Likewise.
46254 (multiboot_mod_CFLAGS): Likewise.
46255 (multiboot_mod_LDFLAGS): Likewise.
46256
46257 * include/grub/i386/ieee1275/loader.h: New file.
46258
46259 * include/grub/i386/ieee1275/machine.h: Likewise.
46260
46261 * include/grub/i386/ieee1275/memory.h: Likewise.
46262
46263 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46264 variable declaration.
46265 (grub_os_area_size): Likewise.
46266
46267 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46268 (grub_lower_mem, grub_upper_mem): New variables.
46269 (grub_stop_floppy): New function (just to make
46270 grub_multiboot2_real_boot() happy).
46271
46272 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46273 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46274 (grub_stop): New function.
46275 Include `"../realmode.S"' and `"../loader.S"'.
46276
46277 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46278 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46279
46280 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46281 rely on grub_multiboot2_real_boot() for final boot.
46282
46283 2008-01-22 Robert Millan <rmh@aybabtu.com>
46284
46285 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46286 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46287 device that doesn't look like an SD card.
46288 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46289 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46290 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46291 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46292 found.
46293
46294 2008-01-22 Robert Millan <rmh@aybabtu.com>
46295
46296 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46297 avoid claiming over our own code.
46298
46299 2008-01-22 Bean <bean123ch@gmail.com>
46300
46301 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46302 (jpeg_mod_SOURCES): New variable.
46303 (jpeg_mod_CFLAGS): Likewise.
46304 (jpeg_mod_LDFLAGS): Likewise.
46305
46306 * video/readers/jpeg.c : New file.
46307
46308 2008-01-22 Bean <bean123ch@gmail.com>
46309
46310 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46311 there are no more items.
46312
46313 2008-01-21 Robert Millan <rmh@aybabtu.com>
46314
46315 * kern/mm.c (grub_mm_init_region): Improve debug message.
46316
46317 2008-01-21 Robert Millan <rmh@aybabtu.com>
46318
46319 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46320 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46321 address.
46322 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46323 a C macro.
46324 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46325 Indicates start of upper memory.
46326 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46327 (generate_image): Abort when image size is big enough to corrupt
46328 upper memory.
46329
46330 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46331 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46332 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46333 instead of hardcoding 0xA0000.
46334 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46335 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46336 instead of hardcoding 0xA0000.
46337
46338 2008-01-21 Robert Millan <rmh@aybabtu.com>
46339
46340 * disk/memdisk.c (memdisk_size): New variable.
46341 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46342 `memdisk_size'.
46343 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46344 image to dynamic memory.
46345 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46346 `memdisk_size'. Free memdisk block.
46347
46348 2008-01-21 Robert Millan <rmh@aybabtu.com>
46349
46350 Fix detection of very small filesystems (like tar).
46351
46352 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46353 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46354 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46355 a problem with this disk).
46356
46357 2008-01-21 Robert Millan <rmh@aybabtu.com>
46358
46359 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46360 on grub_biosdisk_rw_standard() error.
46361
46362 2008-01-21 Robert Millan <rmh@aybabtu.com>
46363
46364 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46365 recent changes.
46366 * kern/elf.c: Likewise.
46367 * kern/ieee1275/ieee1275.c: Likewise.
46368 * kern/powerpc/ieee1275/openfw.c: Likewise.
46369 * term/ieee1275/ofconsole.c: Likewise.
46370
46371 2008-01-21 Robert Millan <rmh@aybabtu.com>
46372
46373 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46374
46375 * include/grub/kernel.h (grub_arch_memdisk_addr)
46376 (grub_arch_memdisk_size): Moved from here ...
46377
46378 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46379 (grub_arch_memdisk_size): ... to here.
46380
46381 2008-01-21 Robert Millan <rmh@aybabtu.com>
46382
46383 Mostly based on bugfix from Bean.
46384
46385 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46386 attribute with hook() parameter.
46387 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46388 declaration.
46389 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46390 attribute with hook() parameter.
46391 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46392 declaration.
46393
46394 2008-01-21 Robert Millan <rmh@aybabtu.com>
46395
46396 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46397 (pkglib_MODULES): Add `memdisk.mod'.
46398 (memdisk_mod_SOURCES): New variable.
46399 (memdisk_mod_CFLAGS): Likewise.
46400 (memdisk_mod_LDFLAGS): Likewise.
46401
46402 * disk/memdisk.c: New file.
46403
46404 * include/grub/disk.h (grub_disk_dev_id): Add
46405 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46406
46407 * include/grub/i386/pc/kernel.h
46408 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46409 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46410 (grub_kernel_image_size): New variable declaration.
46411 (grub_total_module_size): Likewise.
46412 (grub_memdisk_image_size): Likewise.
46413
46414 * include/grub/i386/pc/memory.h
46415 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46416
46417 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46418 (grub_arch_memdisk_addr): New variable declaration.
46419 (grub_arch_memdisk_size): Likewise.
46420
46421 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46422 (grub_arch_memdisk_size): Likewise.
46423
46424 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46425 (codestart): Replace hardcoded `0x100000' with
46426 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46427
46428 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46429 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46430 not NULL, append the contents of the file it refers to, at the end of
46431 the compressed kernel image. Initialize `grub_memdisk_image_size'
46432 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46433 (options): Add "memdisk"|'m' option.
46434 (main): Parse --memdisk|-m option, and pass user-provided path as
46435 parameter to generate_image().
46436
46437 2008-01-20 Robert Millan <rmh@aybabtu.com>
46438
46439 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46440 grub_dprintf() calls from here ...
46441 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46442
46443 2008-01-20 Robert Millan <rmh@aybabtu.com>
46444
46445 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46446
46447 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46448 declaration.
46449 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46450 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46451 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46452 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46453 property).
46454 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46455 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46456
46457 2008-01-19 Robert Millan <rmh@aybabtu.com>
46458
46459 Get rid of confusing function (superseded by
46460 `grub_ieee1275_get_integer_property')
46461 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46462 prototype.
46463 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46464 function.
46465 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46466 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46467 in native endianness from grub_ieee1275_get_integer_property().
46468
46469 2008-01-19 Robert Millan <rmh@aybabtu.com>
46470
46471 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46472 command after "shut-down", since implementations differ on which
46473 the command for halt is.
46474
46475 2008-01-19 Robert Millan <rmh@aybabtu.com>
46476
46477 * include/grub/i386/linuxbios/console.h: Add header protection.
46478 (grub_keyboard_controller_init): New function prototype.
46479 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46480 (KEYBOARD_COMMAND_READ): Likewise.
46481 (KEYBOARD_COMMAND_WRITE): Likewise.
46482 (KEYBOARD_SCANCODE_SET1): Likewise.
46483 (grub_keyboard_controller_write): New function.
46484 (grub_keyboard_controller_read): Likewise.
46485 (grub_keyboard_controller_init): Likewise.
46486
46487 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46488 (grub_console_init): On coreboot/LinuxBIOS, call
46489 grub_keyboard_controller_init().
46490
46491 2008-01-19 Robert Millan <rmh@aybabtu.com>
46492
46493 PowerPC changes provided by Pavel Roskin.
46494
46495 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46496 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46497 don't rely on cmain() doing it.
46498 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46499 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46500
46501 2008-01-16 Robert Millan <rmh@aybabtu.com>
46502
46503 * include/grub/i386/linuxbios/memory.h
46504 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46505 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46506 receive `table_header' as argument. Instead, probe for it in the
46507 known memory ranges where it can be present.
46508 (grub_available_iterate): Do not pass a fixed `table_header' address
46509 to grub_linuxbios_table_iterate().
46510
46511 2008-01-15 Robert Millan <rmh@aybabtu.com>
46512
46513 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46514 * conf/i386-ieee1275.rmk: New file.
46515 * include/grub/i386/ieee1275/console.h: Likewise.
46516 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46517 * include/grub/i386/ieee1275/kernel.h: Likewise.
46518 * include/grub/i386/ieee1275/time.h: Likewise.
46519 * kern/i386/ieee1275/init.c: Likewise.
46520 * kern/i386/ieee1275/startup.S: Likewise.
46521
46522 2008-01-15 Robert Millan <rmh@aybabtu.com>
46523
46524 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46525 when pointers are 32-bit (but still do set it to one when they are
46526 64-bit).
46527
46528 2008-01-15 Robert Millan <rmh@aybabtu.com>
46529
46530 * include/grub/ieee1275/ieee1275.h
46531 (grub_ieee1275_get_integer_property): New function prototype.
46532
46533 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46534 (grub_ieee1275_get_integer_property): New function. Wraps around
46535 grub_ieee1275_get_property() to handle endianness.
46536
46537 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46538 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46539 where appropriate.
46540 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46541 (grub_map): Likewise.
46542 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46543
46544 2008-01-15 Bean <bean123ch@gmail.com>
46545
46546 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46547 (grub_script_execute_cmdline): Reset grub_errno.
46548
46549 * normal/main.c (read_config_file): Reset grub_errno.
46550
46551 * normal/parse.y (script_init): New.
46552 (script): Move function and menuentry here.
46553 (delimiter): New.
46554 (command): Add delimiter at the end of command.
46555 (commands): Adjust to match the new command.
46556 (commandblock): Remove grub_script_lexer_record_start.
46557 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46558 (if): Use the new commands.
46559
46560 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46561
46562 2008-01-15 Robert Millan <rmh@aybabtu.com>
46563
46564 * normal/menu.c (run_menu): Move timeout message from here ...
46565 (print_timeout): ... to here.
46566 (run_menu): Use print_timeout() once during initial draw to print
46567 the whole message, and again in every clock tick to update only
46568 the number of seconds.
46569
46570 2008-01-15 Robert Millan <rmh@aybabtu.com>
46571
46572 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46573 actual size of `available' from grub_ieee1275_get_property(), and
46574 restrict parsing to that bound.
46575
46576 2008-01-15 Christian Franke <franke@computer.org>
46577
46578 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46579 (argp_program_version): Remove variable.
46580 (argp_program_bug_address): Likewise.
46581 (options): Convert from struct argp_option to struct option.
46582 (struct arguments): Remove.
46583 (parse_opt): Remove.
46584 (usage): New function.
46585 (main): Replace struct args members by simple variables.
46586 Replace argp_parse() by getopt_long().
46587 Add switch to evaluate options.
46588 Add missing "(...)" around root_dev in prefix string.
46589
46590 2008-01-14 Robert Millan <rmh@aybabtu.com>
46591
46592 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46593 for grub_ieee1275_exit(), in order to improve portability.
46594
46595 2008-01-14 Robert Millan <rmh@aybabtu.com>
46596
46597 * util/grub.d/10_linux.in (prefix): Define.
46598 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46599
46600 2008-01-13 Pavel Roskin <proski@gnu.org>
46601
46602 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46603 grub_errno if no errors have been detected.
46604
46605 2008-01-12 Robert Millan <rmh@aybabtu.com>
46606
46607 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46608 (grub_util_get_dev_abstraction): New function prototype.
46609
46610 * util/getroot.c: Include `<grub/util/getroot.h>'
46611 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46612 (grub_util_get_dev_abstraction): ... here (new function).
46613
46614 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46615 `PRINT_ABSTRACTION'.
46616 (probe): Probe for abstraction type when requested.
46617 (main): Understand `--target=abstraction'.
46618
46619 * util/i386/efi/grub-install.in: Add abstraction module to core
46620 image when it is found to be necessary.
46621 * util/i386/pc/grub-install.in: Likewise.
46622 * util/powerpc/ieee1275/grub-install.in: Likewise.
46623
46624 * util/update-grub_lib.in (font_path): Return system path without
46625 converting to GRUB path.
46626 * util/update-grub.in: Convert system path returned by font_path()
46627 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46628 abstraction module is needed for loading fonts (if any). Export
46629 that as `GRUB_PRELOAD_MODULES'.
46630 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46631 insmod commands).
46632
46633 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46634
46635 Remove some unused code from reiserfs.
46636
46637 * fs/reiserfs.c (struct grub_reiserfs_key)
46638 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46639 (struct grub_reiserfs_node_body): Removed.
46640 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46641 Likewise.
46642 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46643 Likewise.
46644 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46645 Likewise.
46646 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46647 Likewise.
46648 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46649 Likewise.
46650 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46651 Likewise.
46652 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46653 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46654 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46655
46656 2008-01-10 Robert Millan <rmh@aybabtu.com>
46657
46658 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46659 Determines if a file is garbage left by packaging systems, etc.
46660 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46661 for processing /etc/grub.d scripts.
46662 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46663 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46664 as a condition for processing Linux images.
46665
46666 2008-01-10 Pavel Roskin <proski@gnu.org>
46667
46668 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46669 to compile reiserfs.c on PowerPC.
46670
46671 2008-01-10 Robert Millan <rmh@aybabtu.com>
46672
46673 * kern/device.c (grub_device_iterate): Do not abort device iteration
46674 when one of the devices cannot be opened.
46675 * kern/disk.c (grub_disk_open): Do not account previous failures of
46676 unrelated functions when grub_errno is checked for.
46677
46678 2008-01-08 Robert Millan <rmh@aybabtu.com>
46679
46680 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46681 `! grub_linux_is_bzimage', change order of address comparison to make
46682 it more intuitive, and improve "too big zImage" error message.
46683
46684 2008-01-08 Robert Millan <rmh@aybabtu.com>
46685
46686 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46687 `$(update-grub_DATA)'.
46688 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46689 targets.
46690
46691 2008-01-07 Robert Millan <rmh@aybabtu.com>
46692
46693 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46694 which instruction is modified by grub-setup during installation
46695 (since it wasn't obvious by only looking at this file).
46696
46697 2008-01-07 Robert Millan <rmh@aybabtu.com>
46698
46699 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46700 listing actual TODO items.
46701
46702 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46703
46704 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46705 correctly.
46706 (grub_reiserfs_get_key_offset): Likewise.
46707 (grub_reiserfs_set_key_offset): Likewise.
46708 (grub_reiserfs_set_key_type): Likewise.
46709 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46710
46711 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46712 better to remove the bitfield version completely.
46713
46714 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46715
46716 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46717 allocated from the heap, due to the fshelp implementation.
46718 (grub_reiserfs_dir): Free NODE, due to the same reason.
46719
46720 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46721
46722 Mostly from Vincent Pelletier:
46723
46724 * fs/reiserfs.c: New file.
46725
46726 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46727 (reiserfs_mod_SOURCES): New variable.
46728 (reiserfs_mod_CFLAGS): Likewise.
46729 (reiserfs_mod_LDFLAGS): Likewise.
46730
46731 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46732 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46733 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46734 normal/color.c.
46735
46736 2008-01-06 Robert Millan <rmh@aybabtu.com>
46737
46738 * normal/color.c: Remove `<grub/env.h>'.
46739
46740 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46741
46742 * include/grub/normal.h: Include <grub/env.h>.
46743
46744 2008-01-05 Robert Millan <rmh@aybabtu.com>
46745
46746 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46747 usage example with `(hd0,1)'.
46748 Reported by Samuel Thibault.
46749
46750 2008-01-05 Robert Millan <rmh@aybabtu.com>
46751
46752 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46753 (grub_linux_boot_zimage): Rename to ...
46754 (grub_linux_boot): ... this.
46755 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46756 (grub_linux_boot_zimage): Conditionalize zImage copy.
46757
46758 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46759 (grub_linux_boot_bzimage): Remove prototype.
46760 (grub_linux_boot_zimage): Rename to ...
46761 (grub_linux_boot): ... this.
46762
46763 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46764 (grub_linux_boot): Remove function.
46765
46766 2008-01-05 Robert Millan <rmh@aybabtu.com>
46767
46768 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46769 (grub_env_write_color_highlight): Likewise.
46770 (grub_wait_after_message): Likewise.
46771
46772 * normal/color.c: New file.
46773
46774 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46775 (normal_mod_DEPENDENCIES): Likewise.
46776
46777 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46778 (normal_mod_DEPENDENCIES): Likewise.
46779
46780 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46781 (normal_mod_DEPENDENCIES): Likewise.
46782
46783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46784 (normal_mod_DEPENDENCIES): Likewise.
46785
46786 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46787 for waiting after a message is printed.
46788 * normal/main.c (read_config_file): Likewise.
46789 (grub_normal_init): Register grub_env_write_color_normal() and
46790 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46791 `color_highlight' variables as global.
46792
46793 * normal/menu.c (grub_wait_after_message): New function.
46794 (grub_color_menu_normal): New variable. Replaces ...
46795 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46796 (grub_color_menu_highlight): New variable. Replaces ...
46797 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46798 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46799 `GRUB_TERM_COLOR_STANDARD'.
46800 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46801 `normal_code' and `highlight_code' to `old_color_normal' and
46802 `old_color_highlight', respectively.
46803 (grub_menu_init_page): Update colors when drawing the menu, based on
46804 `menu_color_normal' and `menu_color_highlight' variables.
46805 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46806 a message is printed.
46807
46808 2008-01-05 Robert Millan <rmh@aybabtu.com>
46809
46810 * kern/env.c (grub_env_context_open): Propagate hooks for global
46811 variables to new context.
46812
46813 * kern/main.c (grub_set_root_dev): Export `root' variable.
46814
46815 2008-01-05 Robert Millan <rmh@aybabtu.com>
46816
46817 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46818 discs unconditionally, since udev and others have options to provide
46819 them.
46820
46821 2008-01-05 Robert Millan <rmh@aybabtu.com>
46822
46823 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46824
46825 2008-01-04 Christian Franke <franke@computer.org>
46826
46827 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46828 of eisa_mmap.
46829
46830 2008-01-03 Pavel Roskin <proski@gnu.org>
46831
46832 * kern/i386/linuxbios/init.c: Put "void" to all function
46833 declarations with no arguments.
46834 * kern/powerpc/ieee1275/init.c: Likewise.
46835 * term/i386/pc/at_keyboard.c: Likewise.
46836 * term/i386/pc/vga_text.c: Likewise.
46837 * util/grub-mkdevicemap.c: Likewise.
46838
46839 2008-01-02 Robert Millan <rmh@aybabtu.com>
46840
46841 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46842 message when loaded image is out of bounds.
46843 (grub_multiboot_load_elf64): Likewise.
46844
46845 2008-01-02 Pavel Roskin <proski@gnu.org>
46846
46847 * util/grub.d/10_linux.in: Try version without ".old" when
46848 looking for initrd. It's better to use initrd from the newer
46849 kernel of the same version than no initrd at all.
46850
46851 2008-01-01 Robert Millan <rmh@aybabtu.com>
46852
46853 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46854
46855 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46856
46857 * include/grub/video.h: Added grub_video_unmap_color and
46858 grub_video_get_active_render_target.
46859 (grub_video_adapter): Added unmap_color and get_active_render_target.
46860
46861 * video/video.c: Added grub_video_unmap_color and
46862 grub_video_get_active_render_target.
46863 (grub_video_get_info): Changed method to accept NULL pointer as an
46864 argument to allow detection of active video adapter.
46865
46866 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46867 grub_video_vbe_unmap_color_int.
46868 Added grub_video_vbe_unmap_color and
46869 grub_video_vbe_get_active_render_target.
46870 (grub_video_vbe_adapter): Added unmap_color and
46871 get_active_render_target.
46872
46873 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46874 with grub_video_vbe_unmap_color_int.
46875
46876 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46877 (DEFAULT_NORMAL_COLOR): Likewise.
46878 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46879 (DEFAULT_FG_COLOR): Removed.
46880 (DEFAULT_BG_COLOR): Likewise.
46881 (DEFAULT_CURSOR_COLOR): Changed value.
46882 (grub_virtual_screen): Added standard_color_setting,
46883 normal_color_setting, highlight_color_setting and term_color.
46884 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46885 (bitmap_width): Added.
46886 (bitmap_height): Likewise.
46887 (bitmap): Likewise.
46888 (set_term_color): Likewise.
46889 (grub_virtual_screen_setup): Changed to use new terminal coloring
46890 settings.
46891 (grub_gfxterm_init): Added init for bitmap.
46892 (grub_gfxterm_fini): Added destroy for bitmap.
46893 (redraw_screen_rect): Updated to use background bitmap and new
46894 terminal coloring.
46895 (scroll_up): Added optimization for case when there is no bitmap.
46896 (grub_gfxterm_cls): Fixed to use correct background color.
46897 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46898 coloring.
46899 (grub_virtual_screen_setcolor): Likewise.
46900 (grub_virtual_screen_getcolor): Added.
46901 (grub_gfxterm_background_image_cmd): Likewise.
46902 (grub_video_term): Added setcolor and getcolor.
46903 (MOD_INIT): Added registration of background_image command.
46904 (MOD_TERM): Added unregistration for background_image command.
46905
46906 2007-12-30 Pavel Roskin <proski@gnu.org>
46907
46908 * loader/multiboot_loader.c: Fix multiboot command
46909 unregistration. Fix all typos in the word "multiboot".
46910
46911 2007-12-29 Pavel Roskin <proski@gnu.org>
46912
46913 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46914 support for initrd names used in Fedora.
46915
46916 2007-12-26 Bean <bean123ch@gmail.com>
46917
46918 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46919 (cpio_mod_SOURCES): New variable.
46920 (cpio_mod_CFLAGS): Likewise.
46921 (cpio_mod_LDFLAGS): Likewise.
46922
46923 * fs/cpio.c: New file.
46924
46925 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46926
46927 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46928
46929 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46930
46931 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46932
46933 2007-12-25 Robert Millan <rmh@aybabtu.com>
46934
46935 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46936 (grub_getcolor): New function.
46937
46938 * kern/term.c (grub_getcolor): New function.
46939 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46940 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46941 (print_entry): Set normal and highlight colors to
46942 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46943 respectively, before printing and restore them to old
46944 values afterwards.
46945 (grub_menu_init_page): Likewise. Fill an additional colored space
46946 that would otherwise be left blank.
46947
46948 * term/efi/console.c (grub_console_getcolor): New function.
46949 (struct grub_console_term.getcolor): New variable.
46950 * term/i386/pc/console.c (grub_console_getcolor): New function.
46951 (struct grub_console_term.getcolor): New variable.
46952 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46953 (struct grub_console_term.getcolor): New variable.
46954
46955 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46956 (struct grub_console_term.setcolor): Remove variable.
46957 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46958 (struct grub_console_term.setcolor): Remove variable.
46959 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46960 (struct grub_console_term.setcolor): Remove variable.
46961 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46962 (struct grub_console_term.setcolor): Remove variable.
46963
46964 2007-12-25 Robert Millan <rmh@aybabtu.com>
46965
46966 * configure.ac: Search for possible unifont.hex locations, and
46967 define UNIFONT_HEX if found.
46968
46969 * Makefile.in (UNIFONT_HEX): Define variable.
46970 (DATA): Rename to ...
46971 (PKGLIB): ... this. Update all users.
46972 (PKGDATA): New variable.
46973 (pkgdata_IMAGES): Rename to ...
46974 (pkglib_IMAGES): ... this. Update all users.
46975 (pkgdata_MODULES): Rename to ...
46976 (pkglib_MODULES): ... this. Update all users.
46977 (pkgdata_PROGRAMS): Rename to ...
46978 (pkglib_PROGRAMS): ... this. Update all users.
46979 (pkgdata_DATA): Rename to ...
46980 (pkglib_DATA): ... this. Update all users.
46981 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46982 (unicode.pff, ascii.pff): New rules.
46983 (all-local): Add `$(PKGDATA)' dependency.
46984 (install-local): Process `$(PKGDATA)'.
46985
46986 * util/update-grub_lib.in (font_path): Search for *.pff files in
46987 a few more locations, including `${pkgdata}'.
46988
46989 2007-12-23 Robert Millan <rmh@aybabtu.com>
46990
46991 Patch from Bean <bean123ch@gmail.com>:
46992 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46993 `size'.
46994
46995 2007-12-21 Bean <bean123ch@gmail.com>
46996
46997 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46998 (ntfscomp_mod_SOURCES): New variable.
46999 (ntfscomp_mod_CFLAGS): Likewise.
47000 (ntfscomp_mod_LDFLAGS): Likewise.
47001
47002 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47003 (grub_probe_SOURCES): Likewise.
47004 (grub_emu_SOURCES): Likewise.
47005
47006 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47007 (grub_emu_SOURCES): Likewise.
47008
47009 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47010 (grub_emu_SOURCES): Likewise.
47011
47012 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47013 (grub_emu_SOURCES): Likewise.
47014
47015 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47016 (read_run_list): Renamed to grub_ntfs_read_run_list.
47017 (decomp_nextvcn): Moved to ntfscomp.c.
47018 (decomp_getch): Likewise.
47019 (decomp_get16): Likewise.
47020 (decomp_block): Likewise.
47021 (read_block): Likewise.
47022 (read_data): Partially moved to ntfscomp.c.
47023 (fixup): Change unsigned to grub_uint16_t.
47024 (read_mft): Change unsigned long to grub_uint32_t.
47025 (read_attr): Likewise.
47026 (read_data): Likewise.
47027 (read_run_data): Likewise.
47028 (read_run_list): Likewise.
47029 (read_mft): Likewise.
47030
47031 * fs/ntfscomp.c: New file.
47032
47033 * include/grub/ntfs.h: New file.
47034
47035 2007-12-16 Robert Millan <rmh@aybabtu.com>
47036
47037 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47038 IDE disk check, since Linux is known to support 20 IDE disks.
47039 Reported by Colin Watson.
47040
47041 2007-12-15 Bean <bean123ch@gmail.com>
47042
47043 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47044 (lnxboot_img_SOURCES): New variable.
47045 (lnxboot_img_ASFLAGS): Likewise.
47046 (lnxboot_img_LDFLAGS): Likewise.
47047
47048 * boot/i386/pc/lnxboot.S: New file.
47049
47050 2007-11-24 Pavel Roskin <proski@gnu.org>
47051
47052 * configure.ac: Test if '--build-id=none' is supported by the
47053 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47054 objcopy to generate incorrect binary files (binutils
47055 2.17.50.0.18-1 as shipped by Fedora 8).
47056 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47057 linking, so that build ID doesn't break the test.
47058
47059 2007-11-24 Pavel Roskin <proski@gnu.org>
47060
47061 * include/grub/i386/time.h: use "void" in the argument list
47062 of grub_cpu_idle().
47063 * include/grub/powerpc/time.h: Likewise.
47064 * include/grub/sparc64/time.h: Likewise.
47065
47066 2007-11-18 Christian Franke <franke@computer.org>
47067
47068 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47069 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47070 This fixes the problem that function keys did not work in grub-emu.
47071
47072 2007-11-18 Christian Franke <franke@computer.org>
47073
47074 * disk/host.c (grub_host_open): Remove attribute unused from
47075 name parameter. Add check for "host". This fixes the problem
47076 that grub-emu does not find partitions.
47077
47078 2007-11-18 Christian Franke <franke@computer.org>
47079
47080 * util/hostfs.c (is_dir): New function.
47081 (grub_hostfs_dir): Handle missing dirent.d_type case.
47082 (grub_hostfs_read): Add missing fseek().
47083 (grub_hostfs_label): Clear label pointer. This fixes a crash
47084 of grub-emu on "ls (host)".
47085
47086 2007-11-18 Christian Franke <franke@computer.org>
47087
47088 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47089 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47090 to 64 bit boundary by default.
47091
47092 2007-11-18 Bean <bean123ch@gmail.com>
47093
47094 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47095 (hexdump_mod_SOURCES): New variable.
47096 (hexdump_mod_CFLAGS): Likewise.
47097 (hexdump_mod_LDFLAGS): Likewise.
47098
47099 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47100
47101 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47102
47103 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47104
47105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47106
47107 * include/grub/hexdump.h: New file.
47108
47109 * commands/hexdump.c: New file.
47110
47111 2007-11-10 Robert Millan <rmh@aybabtu.com>
47112
47113 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47114 in grub_outb() calls.
47115 (beep_on): Likewise.
47116
47117 2007-11-10 Christian Franke <franke@computer.org>
47118
47119 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47120 (grub_menu_run): Likewise.
47121
47122 2007-11-10 Robert Millan <rmh@aybabtu.com>
47123
47124 * include/grub/i386/efi/machine.h: New file.
47125 * include/grub/i386/linuxbios/machine.h: Likewise.
47126 * include/grub/i386/pc/machine.h: Likewise.
47127 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47128 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47129
47130 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47131 (serial_hw_io_addr): New variable.
47132 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47133 instead of `(unsigned short *) 0x400'.
47134
47135 2007-11-10 Bean <bean123ch@gmail.com>
47136
47137 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47138
47139 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47140
47141 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47142 (vga_mod_SOURCES): Added.
47143 (vga_mod_CFLAGS): Likewise.
47144 (vga_mod_LDFLAGS): Likewise.
47145
47146 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47147 grub_outb() calls.
47148 (set_map_mask): Likewise.
47149 (set_read_map): Likewise.
47150 (set_read_address): Likewise.
47151 (vga_font): Removed variable.
47152 (get_vga_glyph): Removed function.
47153 (invalidate_char): Likewise.
47154 (write_char): Changed to use grub_font_get_glyph() for font
47155 information.
47156 (grub_vga_putchar): Likewise.
47157 (grub_vga_getcharwidth): Likewise.
47158
47159 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47160
47161 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47162 flags.
47163 (pxeboot_img_LDFLAGS): Likewise.
47164 (diskboot_img_LDFLAGS): Likewise.
47165 (kernel_img_LDFLAGS): Likewise.
47166
47167 2007-11-06 Robert Millan <rmh@aybabtu.com>
47168
47169 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47170 in grub_outb() calls.
47171 (serial_hw_init): Likewise.
47172
47173 2007-11-05 Robert Millan <rmh@aybabtu.com>
47174
47175 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47176 spaces. Skip non-regular files.
47177
47178 2007-11-05 Robert Millan <rmh@aybabtu.com>
47179
47180 * kern/disk.c (grub_disk_firmware_fini)
47181 (grub_disk_firmware_is_tainted): New variables.
47182
47183 * include/grub/disk.h (grub_disk_firmware_fini)
47184 (grub_disk_firmware_is_tainted): Likewise.
47185
47186 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47187 (grub_disk_biosdisk_fini): ... to here.
47188 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47189 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47190 is set. Register grub_disk_biosdisk_fini() in
47191 `grub_disk_firmware_fini'.
47192
47193 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47194 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47195 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47196 to finish existing firmware disk interface.
47197
47198 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47199 (ata_mod_SOURCES): New variable.
47200 (ata_mod_CFLAGS): Likewise.
47201 (ata_mod_LDFLAGS): Likewise.
47202
47203 2007-11-05 Robert Millan <rmh@aybabtu.com>
47204
47205 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47206 (grub_ata_wait): Reimplement using grub_millisleep().
47207
47208 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47209 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47210
47211 2007-11-03 Marco Gerards <marco@gnu.org>
47212
47213 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47214 (CRTC_ADDR_PORT): New macro.
47215 (CRTC_DATA_PORT): Likewise.
47216 (CRTC_CURSOR): Likewise.
47217 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47218 (CRTC_CURSOR_ADDR_LOW): Likewise.
47219 (update_cursor): New function.
47220 (grub_console_real_putchar): Call `update_cursor'.
47221 (grub_console_gotoxy): Likewise.
47222 (grub_console_cls): Set the default color when clearing the
47223 screen.
47224 (grub_console_setcursor): Implemented.
47225
47226 2007-11-03 Marco Gerards <marco@gnu.org>
47227
47228 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47229 become activate.
47230 (grub_ata_pio_write): Likewise.
47231
47232 (grub_atapi_identify): Wait after issuing an ATA command.
47233 (grub_atapi_packet): Likewise.
47234 (grub_ata_identify): Likewise.
47235 (grub_ata_readwrite): Likewise.
47236
47237 2007-11-03 Marco Gerards <marco@gnu.org>
47238
47239 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47240 (grub_ata_pio_write): Likewise.
47241 (grub_ata_readwrite): Use `grub_error', instead of
47242 returning `grub_errno'.
47243
47244 2007-11-03 Marco Gerards <marco@gnu.org>
47245
47246 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47247 grub_ata_pio_write once for every single sector, instead of for
47248 multiple sectors.
47249
47250 2007-10-31 Robert Millan <rmh@aybabtu.com>
47251
47252 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47253
47254 * conf/i386-linuxbios.rmk: New file.
47255
47256 * kern/i386/pc/hardware.c: Likewise.
47257 * term/i386/pc/at_keyboard.c: Likewise.
47258 * term/i386/pc/vga_text.c: Likewise.
47259
47260 * include/grub/i386/linuxbios/boot.h: Likewise.
47261 * include/grub/i386/linuxbios/console.h: Likewise.
47262 * include/grub/i386/linuxbios/init.h: Likewise.
47263 * include/grub/i386/linuxbios/kernel.h: Likewise.
47264 * include/grub/i386/linuxbios/loader.h: Likewise.
47265 * include/grub/i386/linuxbios/memory.h: Likewise.
47266 * include/grub/i386/linuxbios/serial.h: Likewise.
47267 * include/grub/i386/linuxbios/time.h: Likewise.
47268
47269 * kern/i386/linuxbios/init.c: Likewise.
47270 * kern/i386/linuxbios/startup.S: Likewise.
47271 * kern/i386/linuxbios/table.c: Likewise.
47272
47273 2007-10-31 Marco Gerards <marco@gnu.org>
47274
47275 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47276 (ata_mod_SOURCES): New variable.
47277 (ata_mod_CFLAGS): Likewise.
47278 (ata_mod_LDFLAGS): Likewise.
47279
47280 * disk/ata.c: New file.
47281
47282 * include/grub/disk.h (grub_disk_dev_id): Add
47283 `GRUB_DISK_DEV_ATA_ID'.
47284
47285 2007-10-31 Robert Millan <rmh@aybabtu.com>
47286
47287 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47288 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47289
47290 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47291 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47292
47293 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47294 `<grub/types.h>'.
47295
47296 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47297
47298 2007-10-27 Robert Millan <rmh@aybabtu.com>
47299
47300 * include/grub/types.h (ULONG_MAX): Define macro.
47301
47302 2007-10-22 Robert Millan <rmh@aybabtu.com>
47303
47304 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47305 `"../realmode.S"'.
47306 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47307
47308 2007-10-22 Robert Millan <rmh@aybabtu.com>
47309
47310 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47311 (pkgdata_MODULES): Add `biosdisk.mod'.
47312 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47313 variables.
47314
47315 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47316 (grub_biosdisk_init): Replace with ...
47317 (GRUB_MOD_INIT(biosdisk)): ... this.
47318 (grub_biosdisk_fini): Replace with ...
47319 (GRUB_MOD_FINI(biosdisk)): ... this.
47320
47321 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47322 (grub_machine_init): Remove call to grub_biosdisk_init().
47323 (grub_machine_fini): Remove call to grub_machine_fini().
47324
47325 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47326
47327 2007-10-22 Robert Millan <rmh@aybabtu.com>
47328
47329 * include/grub/time.h: New file.
47330 * include/grub/i386/time.h: Likewise.
47331 * include/grub/powerpc/time.h: Likewise.
47332 * include/grub/sparc64/time.h: Likewise.
47333
47334 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47335 instances to ...
47336 (KERNEL_MACHINE_TIME_HEADER): ... this.
47337 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47338 instances to ...
47339 (KERNEL_MACHINE_TIME_HEADER): ... this.
47340 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47341 instances to ...
47342 (KERNEL_MACHINE_TIME_HEADER): ... this.
47343
47344 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47345 (grub_millisleep): New function.
47346 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47347 (grub_millisleep): New function.
47348 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47349 Remove `grub/machine/time.h' include.
47350 (grub_millisleep): New function.
47351 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47352 Remove `grub/machine/time.h' include.
47353 (grub_millisleep): New function.
47354
47355 * include/grub/misc.h (grub_div_roundup): New function.
47356
47357 * kern/misc.c: Include `<grub/time.h>'.
47358 (grub_millisleep_generic): New function.
47359
47360 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47361 Add `time.h'.
47362 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47363 Add `time.h'.
47364 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47365 `machine/time.h'. Add `time.h'.
47366 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47367
47368 2007-10-21 Robert Millan <rmh@aybabtu.com>
47369
47370 * include/grub/misc.h (grub_max): New function.
47371
47372 2007-10-21 Robert Millan <rmh@aybabtu.com>
47373
47374 * util/misc.c (grub_util_info): Call fflush() before returning.
47375
47376 2007-10-20 Robert Millan <rmh@aybabtu.com>
47377
47378 * genmk.rb (Image): Copy `extra_flags' from here ...
47379 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47380
47381 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47382 to `argc' and `args' arguments.
47383
47384 2007-10-17 Robert Millan <rmh@aybabtu.com>
47385
47386 * kern/i386/loader.S: New file.
47387
47388 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47389 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47390 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47391 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47392 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47393 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47394 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47395 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47396 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47397 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47398 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47399 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47400 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47401 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47402
47403 * kern/i386/realmode.S: New file.
47404
47405 * kern/i386/pc/startup.S (protstack): Moved from here ...
47406 * kern/i386/realmode.S (protstack)... to here.
47407 * kern/i386/pc/startup.S (gdt): Moved from here ...
47408 * kern/i386/realmode.S (gdt)... to here.
47409 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47410 * kern/i386/realmode.S (prot_to_real)... to here.
47411
47412 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47413 `kern/i386/realmode.S'.
47414
47415 2007-10-17 Robert Millan <rmh@aybabtu.com>
47416
47417 * include/grub/i386/loader.h: New file.
47418
47419 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47420 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47421 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47422 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47423 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47424 * include/grub/i386/loader.h (grub_linux_prot_size)
47425 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47426 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47427 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47428 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47429
47430 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47431
47432 2007-10-15 Robert Millan <rmh@aybabtu.com>
47433
47434 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47435 filesystem when dev->disk is unset.
47436 Do probe for filesystem even when dev->disk->has_partitions is set.
47437 In case a filesystem is found, always report it.
47438 In case it isn't, if dev->disk->has_partitions is set, report that
47439 a partition table was found instead of reporting that no filesystem
47440 could be identified.
47441
47442 2007-10-12 Robert Millan <rmh@aybabtu.com>
47443
47444 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47445 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47446
47447 * include/grub/types.h (grub_host_to_target16): New macro.
47448 (grub_host_to_target32): Likewise.
47449 (grub_host_to_target64): Likewise.
47450 (grub_target_to_host16): Likewise.
47451 (grub_target_to_host32): Likewise.
47452 (grub_target_to_host64): Likewise.
47453
47454 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47455 Renamed from to ...
47456 (GRUB_MOD_ALIGN): ...this. Update all users.
47457
47458 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47459 grub_host_to_target32.
47460 Replace grub_be_to_cpu32 with grub_target_to_host32.
47461 (load_modules): Likewise.
47462 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47463 Replace grub_be_to_cpu32 with grub_target_to_host32.
47464 Replace grub_cpu_to_be16 with grub_host_to_target16.
47465 Replace grub_cpu_to_be32 grub_host_to_target32.
47466
47467 2007-10-12 Robert Millan <rmh@aybabtu.com>
47468
47469 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47470 * util/elf/grub-mkimage.c: ... here.
47471
47472 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47473 `util/powerpc/ieee1275/grub-mkimage.c'.
47474
47475 2007-10-07 Robert Millan <rmh@aybabtu.com>
47476
47477 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47478 and make it easier to figure out.
47479 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47480 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47481 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47482 leave us with less than HEAP_MIN_SIZE total heap.
47483 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47484
47485 2007-10-03 Robert Millan <rmh@aybabtu.com>
47486
47487 * include/grub/i386/io.h: New file.
47488 * commands/i386/pc/play.c (inb): Removed.
47489 (outb): Removed.
47490 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47491 with grub_outb().
47492 * term/i386/pc/serial.c (inb): Removed.
47493 (outb): Removed.
47494 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47495 with grub_outb().
47496 * term/i386/pc/vga.c (inb): Removed.
47497 (outb): Removed.
47498 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47499 with grub_outb().
47500
47501 2007-10-02 Robert Millan <rmh@aybabtu.com>
47502
47503 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47505 Reported by Marcin Kurek.
47506
47507 2007-09-07 Robert Millan <rmh@aybabtu.com>
47508
47509 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47510 SmartFirmware version updates (as released by Sven Luther), and avoid
47511 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47512 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47513 known broken.
47514
47515 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47516
47517 From Hitoshi Ozeki:
47518 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47519 when merging two regions.
47520
47521 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47522
47523 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47524 * normal/completion.c (grub_normal_do_completion): Likewise.
47525 Reported by Hitoshi Ozeki.
47526
47527 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47528
47529 Do not use devices at boot in chainloading.
47530
47531 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47532 (boot_part_addr): Likewise.
47533 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47534 with BOOT_DRIVE and BOOT_PART_ADDR.
47535 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47536 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47537
47538 2007-08-29 Robert Millan <rmh@aybabtu.com>
47539
47540 Patch from Simon Peter <dn.tlp@gmx.net>:
47541 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47542 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47543 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47544 util/i386/pc/grub-setup.c_DEPENDENCIES.
47545 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47546 util/grub-probe.c_DEPENDENCIES.
47547 * conf/powerpc-ieee1275.rmk: Likewise.
47548
47549 2007-08-28 Robert Millan <rmh@aybabtu.com>
47550
47551 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47552 to tell grub-mkdevicemap how to name devices.
47553 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47554 feature).
47555
47556 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47557 util/i386/get_disk_name.c.
47558 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47559 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47560 util/ieee1275/get_disk_name.c.
47561
47562 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47563
47564 * DISTLIST: Add util/i386/get_disk_name.c and
47565 util/ieee1275/get_disk_name.c.
47566
47567 * util/grub-mkdevicemap.c: Replace device naming logic with
47568 grub_util_get_disk_name() calls.
47569
47570 2007-08-20 Robert Millan <rmh@aybabtu.com>
47571
47572 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47573 (so that it works for both plural and singular quantities).
47574
47575 2007-08-05 Robert Millan <rmh@aybabtu.com>
47576
47577 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47578 so that [xz] isn't taken into account when determining order.
47579
47580 2007-08-02 Marco Gerards <marco@gnu.org>
47581
47582 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47583 `include/multiboot2.h', `include/grub/elfload.h',
47584 `include/multiboot.h', `include/grub/multiboot.h',
47585 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47586 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47587 `kern/elf.c', `loader/multiboot_loader.c',
47588 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47589 `loader/i386/pc/multiboot2.c',
47590 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47591 `util/i386/pc/grub-mkrescue.in'. Remove
47592 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47593 `include/grub/i386/pc/util/biosdisk.h' and
47594 `include/grub/powerpc/ieee1275/multiboot.h'.
47595
47596 2007-08-02 Bean <bean123ch@gmail.com>
47597
47598 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47599 (ntfs_mod_SOURCES): New variable.
47600 (ntfs_mod_CFLAGS): Likewise.
47601 (ntfs_mod_LDFLAGS): Likewise.
47602
47603 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47604 (grub_probe_SOURCES): Likewise.
47605 (grub_emu_SOURCES): Likewise.
47606
47607 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47608 (grub_emu_SOURCES): Likewise.
47609
47610 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47611 (grub_emu_SOURCES): Likewise.
47612
47613 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47614
47615 * fs/ntfs.c: New file.
47616
47617 2007-08-02 Bean <bean123ch@gmail.com>
47618
47619 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47620
47621 * file.h (grub_file): Likewise.
47622
47623 * fshelp.h (grub_fshelp_read_file): Likewise.
47624
47625 * util/i386/pc/grub-setup.c (setup): Likewise.
47626 (save_first_sector): Likewise.
47627 (save_blocklists): Likewise.
47628
47629 * fs/affs.c (grub_affs_read_file): Likewise.
47630
47631 * fs/ext2.c (grub_ext2_read_file): Likewise.
47632
47633 * fs/fat.c (grub_fat_read_data): Likewise.
47634
47635 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47636
47637 * fs/hfs.c (grub_hfs_read_file): Likewise.
47638
47639 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47640
47641 * fs/jfs.c (grub_jfs_read_file): Likewise.
47642
47643 * fs/minix.c (grub_minix_read_file): Likewise.
47644
47645 * fs/sfs.c (grub_sfs_read_file): Likewise.
47646
47647 * fs/ufs.c (grub_ufs_read_file): Likewise.
47648
47649 * fs/xfs.c (grub_xfs_read_file): Likewise.
47650
47651 * command/blocklist.c (read_blocklist): Likewise.
47652 (print_blocklist): Likewise.
47653
47654 2007-08-02 Marco Gerards <marco@gnu.org>
47655
47656 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47657 `util/hostfs.c'.
47658
47659 * disk/host.c: New file.
47660
47661 * util/hostfs.c: Likewise.
47662
47663 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47664 return `GRUB_ERR_BAD_FS'.
47665 * fs/sfs.c (grub_sfs_mount): Likewise.
47666 * fs/xfs.c (grub_xfs_mount): Likewise.
47667
47668 * include/grub/disk.h (enum grub_disk_dev_id): Add
47669 `GRUB_DISK_DEVICE_HOST_ID'.
47670
47671 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47672
47673 2007-07-24 Jerone Young <jerone@gmail.com>
47674
47675 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47676 modules for compilation.
47677 * conf/powerpc-ieee1275.rmk: Likewise.
47678
47679 * include/multiboot.h: Move multiboot definitions to one file. Rename
47680 many definitions to not get grub specific.
47681 * include/multiboot2.h: Create header with multiboot 2 definitions.
47682 * include/grub/multiboot.h: Header for grub specific function
47683 prototypes and definitions.
47684 * include/grub/multiboot2.h: Likewise.
47685 * include/grub/multiboot_loader.h: Likewise.
47686 * include/grub/i386/pc/multiboot.h: Removed.
47687 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47688
47689 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47690 and 2 to allow for one multiboot and module commands.
47691 * loader/multiboot2.c: Add multiboot2 functionality.
47692 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47693 and definition names.
47694 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47695 2 functions.
47696 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47697 ieee1275 specific multiboot2 code.
47698
47699 * kern/i386/pc/startup.S: Change headers and definition names for
47700 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47701
47702 2007-07-22 Robert Millan <rmh@aybabtu.com>
47703
47704 * geninitheader.sh: Process file specified in first parameter rather
47705 than hardcoding grub_modules_init.lst.
47706 * geninit.sh: Likewise. Also, construct header name dynamically rather
47707 than hardcoding grub_modules_init.h.
47708
47709 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47710 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47711 grub_probe_init.[ch] and grub_setup_init.[ch].
47712
47713 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47714 grub_modules_init.h with grub_emu_init.h.
47715 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47716 grub_probe_init.[ch] files.
47717 * conf/i386-efi.rmk: Likewise.
47718 * conf/i386-pc.rmk: Likewise.
47719 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47720 grub_setup_init.[ch] files.
47721
47722 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47723 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47724 to initialize modules rather than a list of hardcoded functions.
47725 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47726 grub_init_all() to initialize modules rather than a list of hardcoded
47727 functions.
47728
47729 2007-07-22 Robert Millan <rmh@aybabtu.com>
47730
47731 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47732 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47733
47734 2007-07-22 Robert Millan <rmh@aybabtu.com>
47735
47736 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47737 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47738 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47739 flag when running on SmartFirmware.
47740 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47741 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47742 was set.
47743
47744 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47745 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47746 rather than decreasing it.
47747
47748 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47749 there's not enough space to do it, fail in the same way as when it
47750 can't be done because there are no partitions.
47751
47752 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47753 when nvsetenv failed.
47754
47755 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47756
47757 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47758 because this rule is automatically generated.
47759 (grub-mkrescue): Removed for the same reason as above.
47760
47761 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47762
47763 Migrate to GNU General Public License Version 3.
47764
47765 * COPYING: Replaced with the plain text version of GPLv3.
47766
47767 * config.guess: Updated from gnulib.
47768 * config.sub: Likewise.
47769
47770 * geninit.sh: Output a GPLv3 copyright notice.
47771 * geninitheader.sh: Likewise.
47772 * genmodsrc.sh: Likewise.
47773 * gensymlist.sh.in: Likewise.
47774
47775 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47776 * boot/i386/pc/diskboot.S: Likewise.
47777 * boot/i386/pc/pxeboot.S: Likewise.
47778 * commands/blocklist.c: Likewise.
47779 * commands/boot.c: Likewise.
47780 * commands/cat.c: Likewise.
47781 * commands/cmp.c: Likewise.
47782 * commands/configfile.c: Likewise.
47783 * commands/echo.c: Likewise.
47784 * commands/help.c: Likewise.
47785 * commands/ls.c: Likewise.
47786 * commands/search.c: Likewise.
47787 * commands/terminal.c: Likewise.
47788 * commands/test.c: Likewise.
47789 * commands/videotest.c: Likewise.
47790 * commands/i386/cpuid.c: Likewise.
47791 * commands/i386/pc/halt.c: Likewise.
47792 * commands/i386/pc/play.c: Likewise.
47793 * commands/i386/pc/reboot.c: Likewise.
47794 * commands/i386/pc/vbeinfo.c: Likewise.
47795 * commands/i386/pc/vbetest.c: Likewise.
47796 * commands/ieee1275/halt.c: Likewise.
47797 * commands/ieee1275/reboot.c: Likewise.
47798 * commands/ieee1275/suspend.c: Likewise.
47799 * disk/loopback.c: Likewise.
47800 * disk/lvm.c: Likewise.
47801 * disk/raid.c: Likewise.
47802 * disk/efi/efidisk.c: Likewise.
47803 * disk/i386/pc/biosdisk.c: Likewise.
47804 * disk/ieee1275/ofdisk.c: Likewise.
47805 * font/manager.c: Likewise.
47806 * fs/affs.c: Likewise.
47807 * fs/ext2.c: Likewise.
47808 * fs/fat.c: Likewise.
47809 * fs/fshelp.c: Likewise.
47810 * fs/hfs.c: Likewise.
47811 * fs/hfsplus.c: Likewise.
47812 * fs/iso9660.c: Likewise.
47813 * fs/jfs.c: Likewise.
47814 * fs/minix.c: Likewise.
47815 * fs/sfs.c: Likewise.
47816 * fs/ufs.c: Likewise.
47817 * fs/xfs.c: Likewise.
47818 * hello/hello.c: Likewise.
47819 * include/grub/acorn_filecore.h: Likewise.
47820 * include/grub/arg.h: Likewise.
47821 * include/grub/bitmap.h: Likewise.
47822 * include/grub/boot.h: Likewise.
47823 * include/grub/cache.h: Likewise.
47824 * include/grub/device.h: Likewise.
47825 * include/grub/disk.h: Likewise.
47826 * include/grub/dl.h: Likewise.
47827 * include/grub/elfload.h: Likewise.
47828 * include/grub/env.h: Likewise.
47829 * include/grub/err.h: Likewise.
47830 * include/grub/file.h: Likewise.
47831 * include/grub/font.h: Likewise.
47832 * include/grub/fs.h: Likewise.
47833 * include/grub/fshelp.h: Likewise.
47834 * include/grub/gzio.h: Likewise.
47835 * include/grub/hfs.h: Likewise.
47836 * include/grub/kernel.h: Likewise.
47837 * include/grub/loader.h: Likewise.
47838 * include/grub/lvm.h: Likewise.
47839 * include/grub/misc.h: Likewise.
47840 * include/grub/mm.h: Likewise.
47841 * include/grub/net.h: Likewise.
47842 * include/grub/normal.h: Likewise.
47843 * include/grub/parser.h: Likewise.
47844 * include/grub/partition.h: Likewise.
47845 * include/grub/pc_partition.h: Likewise.
47846 * include/grub/raid.h: Likewise.
47847 * include/grub/rescue.h: Likewise.
47848 * include/grub/script.h: Likewise.
47849 * include/grub/setjmp.h: Likewise.
47850 * include/grub/symbol.h: Likewise.
47851 * include/grub/term.h: Likewise.
47852 * include/grub/terminfo.h: Likewise.
47853 * include/grub/tparm.h: Likewise.
47854 * include/grub/types.h: Likewise.
47855 * include/grub/video.h: Likewise.
47856 * include/grub/efi/api.h: Likewise.
47857 * include/grub/efi/chainloader.h: Likewise.
47858 * include/grub/efi/console.h: Likewise.
47859 * include/grub/efi/console_control.h: Likewise.
47860 * include/grub/efi/disk.h: Likewise.
47861 * include/grub/efi/efi.h: Likewise.
47862 * include/grub/efi/pe32.h: Likewise.
47863 * include/grub/efi/time.h: Likewise.
47864 * include/grub/i386/linux.h: Likewise.
47865 * include/grub/i386/setjmp.h: Likewise.
47866 * include/grub/i386/types.h: Likewise.
47867 * include/grub/i386/efi/kernel.h: Likewise.
47868 * include/grub/i386/efi/loader.h: Likewise.
47869 * include/grub/i386/efi/time.h: Likewise.
47870 * include/grub/i386/pc/biosdisk.h: Likewise.
47871 * include/grub/i386/pc/boot.h: Likewise.
47872 * include/grub/i386/pc/chainloader.h: Likewise.
47873 * include/grub/i386/pc/console.h: Likewise.
47874 * include/grub/i386/pc/init.h: Likewise.
47875 * include/grub/i386/pc/kernel.h: Likewise.
47876 * include/grub/i386/pc/loader.h: Likewise.
47877 * include/grub/i386/pc/memory.h: Likewise.
47878 * include/grub/i386/pc/multiboot.h: Likewise.
47879 * include/grub/i386/pc/serial.h: Likewise.
47880 * include/grub/i386/pc/time.h: Likewise.
47881 * include/grub/i386/pc/vbe.h: Likewise.
47882 * include/grub/i386/pc/vbeblit.h: Likewise.
47883 * include/grub/i386/pc/vbefill.h: Likewise.
47884 * include/grub/i386/pc/vbeutil.h: Likewise.
47885 * include/grub/i386/pc/vga.h: Likewise.
47886 * include/grub/ieee1275/ieee1275.h: Likewise.
47887 * include/grub/ieee1275/ofdisk.h: Likewise.
47888 * include/grub/powerpc/libgcc.h: Likewise.
47889 * include/grub/powerpc/setjmp.h: Likewise.
47890 * include/grub/powerpc/types.h: Likewise.
47891 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47892 * include/grub/powerpc/ieee1275/console.h: Likewise.
47893 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47894 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47895 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47896 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47897 * include/grub/powerpc/ieee1275/time.h: Likewise.
47898 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47899 * include/grub/sparc64/libgcc.h: Likewise.
47900 * include/grub/sparc64/setjmp.h: Likewise.
47901 * include/grub/sparc64/types.h: Likewise.
47902 * include/grub/sparc64/ieee1275/console.h: Likewise.
47903 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47904 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47905 * include/grub/sparc64/ieee1275/time.h: Likewise.
47906 * include/grub/util/biosdisk.h: Likewise.
47907 * include/grub/util/getroot.h: Likewise.
47908 * include/grub/util/lvm.h: Likewise.
47909 * include/grub/util/misc.h: Likewise.
47910 * include/grub/util/raid.h: Likewise.
47911 * include/grub/util/resolve.h: Likewise.
47912 * io/gzio.c: Likewise.
47913 * kern/device.c: Likewise.
47914 * kern/disk.c: Likewise.
47915 * kern/dl.c: Likewise.
47916 * kern/elf.c: Likewise.
47917 * kern/env.c: Likewise.
47918 * kern/err.c: Likewise.
47919 * kern/file.c: Likewise.
47920 * kern/fs.c: Likewise.
47921 * kern/loader.c: Likewise.
47922 * kern/main.c: Likewise.
47923 * kern/misc.c: Likewise.
47924 * kern/mm.c: Likewise.
47925 * kern/parser.c: Likewise.
47926 * kern/partition.c: Likewise.
47927 * kern/rescue.c: Likewise.
47928 * kern/term.c: Likewise.
47929 * kern/efi/efi.c: Likewise.
47930 * kern/efi/init.c: Likewise.
47931 * kern/efi/mm.c: Likewise.
47932 * kern/i386/dl.c: Likewise.
47933 * kern/i386/efi/init.c: Likewise.
47934 * kern/i386/efi/startup.S: Likewise.
47935 * kern/i386/pc/init.c: Likewise.
47936 * kern/i386/pc/lzo1x.S: Likewise.
47937 * kern/i386/pc/startup.S: Likewise.
47938 * kern/ieee1275/ieee1275.c: Likewise.
47939 * kern/powerpc/cache.S: Likewise.
47940 * kern/powerpc/dl.c: Likewise.
47941 * kern/powerpc/ieee1275/cmain.c: Likewise.
47942 * kern/powerpc/ieee1275/crt0.S: Likewise.
47943 * kern/powerpc/ieee1275/init.c: Likewise.
47944 * kern/powerpc/ieee1275/openfw.c: Likewise.
47945 * kern/sparc64/cache.S: Likewise.
47946 * kern/sparc64/dl.c: Likewise.
47947 * kern/sparc64/ieee1275/init.c: Likewise.
47948 * kern/sparc64/ieee1275/openfw.c: Likewise.
47949 * loader/efi/chainloader.c: Likewise.
47950 * loader/efi/chainloader_normal.c: Likewise.
47951 * loader/i386/efi/linux.c: Likewise.
47952 * loader/i386/efi/linux_normal.c: Likewise.
47953 * loader/i386/pc/chainloader.c: Likewise.
47954 * loader/i386/pc/chainloader_normal.c: Likewise.
47955 * loader/i386/pc/linux.c: Likewise.
47956 * loader/i386/pc/linux_normal.c: Likewise.
47957 * loader/i386/pc/multiboot.c: Likewise.
47958 * loader/i386/pc/multiboot_normal.c: Likewise.
47959 * loader/powerpc/ieee1275/linux.c: Likewise.
47960 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47961 * normal/arg.c: Likewise.
47962 * normal/cmdline.c: Likewise.
47963 * normal/command.c: Likewise.
47964 * normal/completion.c: Likewise.
47965 * normal/execute.c: Likewise.
47966 * normal/function.c: Likewise.
47967 * normal/lexer.c: Likewise.
47968 * normal/main.c: Likewise.
47969 * normal/menu.c: Likewise.
47970 * normal/menu_entry.c: Likewise.
47971 * normal/misc.c: Likewise.
47972 * normal/parser.y: Likewise.
47973 * normal/script.c: Likewise.
47974 * normal/i386/setjmp.S: Likewise.
47975 * normal/powerpc/setjmp.S: Likewise.
47976 * normal/sparc64/setjmp.S: Likewise.
47977 * partmap/acorn.c: Likewise.
47978 * partmap/amiga.c: Likewise.
47979 * partmap/apple.c: Likewise.
47980 * partmap/gpt.c: Likewise.
47981 * partmap/pc.c: Likewise.
47982 * partmap/sun.c: Likewise.
47983 * term/gfxterm.c: Likewise.
47984 * term/terminfo.c: Likewise.
47985 * term/efi/console.c: Likewise.
47986 * term/i386/pc/console.c: Likewise.
47987 * term/i386/pc/serial.c: Likewise.
47988 * term/i386/pc/vesafb.c: Likewise.
47989 * term/i386/pc/vga.c: Likewise.
47990 * term/ieee1275/ofconsole.c: Likewise.
47991 * util/biosdisk.c: Likewise.
47992 * util/console.c: Likewise.
47993 * util/genmoddep.c: Likewise.
47994 * util/getroot.c: Likewise.
47995 * util/grub-emu.c: Likewise.
47996 * util/grub-mkdevicemap.c: Likewise.
47997 * util/grub-probe.c: Likewise.
47998 * util/lvm.c: Likewise.
47999 * util/misc.c: Likewise.
48000 * util/raid.c: Likewise.
48001 * util/resolve.c: Likewise.
48002 * util/update-grub.in: Likewise.
48003 * util/update-grub_lib.in: Likewise.
48004 * util/grub.d/00_header.in: Likewise.
48005 * util/grub.d/10_hurd.in: Likewise.
48006 * util/grub.d/10_linux.in: Likewise.
48007 * util/i386/efi/grub-install.in: Likewise.
48008 * util/i386/efi/grub-mkimage.c: Likewise.
48009 * util/i386/pc/grub-install.in: Likewise.
48010 * util/i386/pc/grub-mkimage.c: Likewise.
48011 * util/i386/pc/grub-mkrescue.in: Likewise.
48012 * util/i386/pc/grub-setup.c: Likewise.
48013 * util/i386/pc/misc.c: Likewise.
48014 * util/powerpc/ieee1275/grub-install.in: Likewise.
48015 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48016 * util/powerpc/ieee1275/misc.c: Likewise.
48017 * video/bitmap.c: Likewise.
48018 * video/video.c: Likewise.
48019 * video/i386/pc/vbe.c: Likewise.
48020 * video/i386/pc/vbeblit.c: Likewise.
48021 * video/i386/pc/vbefill.c: Likewise.
48022 * video/i386/pc/vbeutil.c: Likewise.
48023 * video/readers/tga.c: Likewise.
48024
48025 2007-07-02 Robert Millan <rmh@aybabtu.com>
48026
48027 * conf/i386-efi.rmk: Replace obsolete reference to
48028 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48029 with util/getroot.c.
48030 * conf/powerpc-ieee1275.rmk: Likewise.
48031 * conf/sparc64-ieee1275.rmk: Likewise.
48032
48033 * util/grub-emu.c (main): Fix unchecked pointer handling.
48034
48035 2007-07-02 Robert Millan <rmh@aybabtu.com>
48036
48037 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48038 invocation to fail, in order to support partition-less media.
48039
48040 * util/i386/pc/grub-install.in: Likewise.
48041
48042 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48043 which fs or partmap modules are needed (akin to its sister scripts).
48044
48045 Also use grub-probe to get rid of unportable /proc/mounts check.
48046
48047 Print the same informational message that the other scripts do, before
48048 exiting.
48049
48050 2007-06-23 Robert Millan <rmh@aybabtu.com>
48051
48052 * util/update-grub_lib.in (font_path): New function. Determine whether
48053 a font file can be found and, if so, echo the GRUB path to it.
48054
48055 * util/update-grub.in: Handle multiple terminals depending on user
48056 input, platform availability and font file presence. Propagate
48057 variables of our findings to /etc/grub.d/ children.
48058
48059 * util/grub.d/00_header.in: Handle multiple terminals, based on
48060 environment setup by update-grub.
48061
48062 2007-06-23 Robert Millan <rmh@aybabtu.com>
48063
48064 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48065
48066 2007-06-21 Robert Millan <rmh@aybabtu.com>
48067
48068 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48069 indicate end of data section in kernel image.
48070 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48071 GRUB_KERNEL_MACHINE_DATA_END.
48072
48073 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48074 space for it.
48075 * kern/i386/efi/startup.S: Likewise.
48076
48077 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48078 during image generation. Implement --prefix option to override this
48079 patch.
48080 * util/i386/efi/grub-mkimage.c: Likewise.
48081
48082 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48083 code to make path relative to its root into a separate function.
48084
48085 * util/i386/pc/grub-install.in: Use newly provided
48086 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48087 pass the result to grub-install --prefix.
48088
48089 2007-06-13 Robert Millan <rmh@aybabtu.com>
48090
48091 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48092 DEFAULT_DEVICE_MAP.
48093 * util/grub-emu.c: Use above definitions from misc.h instead of
48094 defining them.
48095 * util/grub-mkdevicemap.c: Likewise.
48096 * util/i386/pc/grub-setup.c: Likewise.
48097 * util/grub-probe.c: Likewise.
48098 (probe): Abort with grub_util_error() when either
48099 grub_guess_root_device or grub_util_get_grub_dev fails.
48100
48101 2007-06-12 Robert Millan <rmh@aybabtu.com>
48102
48103 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48104 "pager" assignment.
48105 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48106 "pcdata".
48107 * util/grub-probe.c (probe): Likewise for "drive_name".
48108
48109 2007-06-11 Robert Millan <rmh@aybabtu.com>
48110
48111 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48112 not just the cdrom one.
48113
48114 2007-06-11 Robert Millan <rmh@aybabtu.com>
48115
48116 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48117 Add --pkglibdir=DIR option to override pkglibdir.
48118 Mention --image-type=TYPE in help output.
48119 Fix --grub-mkimage (it was a no-op).
48120 Abort gracefully when no parameter is given.
48121
48122 2007-06-11 Robert Millan <rmh@aybabtu.com>
48123
48124 * util/i386/pc/grub-mkrescue.in: New file.
48125 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48126 * Makefile.in: Handle bin_SCRIPTS.
48127
48128 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48129
48130 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48131 list of video modes.
48132
48133 2007-06-06 Robert Millan <rmh@aybabtu.com>
48134
48135 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48136 file doesn't exist, or if it is in a filesystem grub can't read.
48137
48138 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48139 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48140 header comment to fit in 80 columns when the variables are resolved.
48141
48142 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48143 could be identified by update-grub. Remove redundant check for
48144 unifont.pff existence (since convert_system_path_to_grub_path now
48145 handles that).
48146
48147 2007-06-04 Robert Millan <rmh@aybabtu.com>
48148
48149 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48150
48151 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48152
48153 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48154
48155 2007-06-04 Robert Millan <rmh@aybabtu.com>
48156
48157 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48158
48159 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48160 grub_apple_partition_map_fini.
48161
48162 * util/biosdisk.c
48163 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48164 to access >2 TiB disks).
48165
48166 Print disk->total_sectors with %llu instead of %lu, since this
48167 variable is always 64-bit (prevents wrong disk size from being displayed
48168 on either >2 TiB disk or big-endian CPU).
48169
48170 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48171 into a generic case that supports all (sane) partition maps.
48172
48173 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48174 breaks big-endian.
48175
48176 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48177 and grub_apple_partition_map_fini() after that.
48178
48179 2007-06-01 Robert Millan <rmh@aybabtu.com>
48180
48181 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48182
48183 * util/grub.d/00_header.in: Only enable gfxterm when
48184 convert_system_path_to_grub_path() succeeds.
48185
48186 2007-05-20 Robert Millan <rmh@aybabtu.com>
48187
48188 * util/update-grub_lib.in: New file.
48189 * DISTLIST: Add update-grub_lib.in.
48190 * conf/common.rmk: Generate update-grub_lib and install it in
48191 $(lib_DATA).
48192 * Makefile.in: Add install routine for $(lib_DATA).
48193
48194 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48195 function provided by update-grub_lib to support arbitrary paths of
48196 unifont.pff.
48197 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48198 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48199
48200 2007-05-19 Robert Millan <rmh@aybabtu.com>
48201
48202 * commands/i386/cpuid.c: New module.
48203 * DISTLIST: Add it.
48204 * conf/i386-efi.rmk: Enable cpuid.mod.
48205 * conf/i386-pc.rmk: Likewise.
48206
48207 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48208
48209 * kern/disk.c (grub_disk_read): Check return value of
48210 grub_realloc().
48211
48212 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48213
48214 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48215 arrays.
48216 * disk/raid.c (grub_raid_open): Likewise.
48217
48218 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48219
48220 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48221 stack instead of on the heap.
48222
48223 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48224 before doing a read on it.
48225
48226 * configure.ac: Only use -fno-stack-protector for the target
48227 environment.
48228
48229 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48230
48231 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48232 __attribute_ ((unused)) to mode_type argument.
48233
48234 * util/getroot.c (grub_guess_root_device): Fix #endif.
48235
48236 * kern/misc.c (memcmp): Fix prototype.
48237
48238 * include/grub/partition.h [GRUB_UTIL]
48239 (grub_gpt_partition_map_init): Add prototype.
48240 (grub_gpt_partition_map_fini): Likewise.
48241
48242 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48243 at the right place.
48244
48245 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48246 (grub_fat_read_data): Likewise.
48247 (grub_fat_find_dir): Likewise.
48248
48249 * font/manager.c (find_glyph): Make table a const.
48250 (grub_font_get_glyph): Remove bitmap from if statement.
48251
48252 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48253
48254 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48255 code, first search for device in /dev/mapper, then in /dev.
48256 (grub_util_get_grub_dev): New function.
48257 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48258 prototype.
48259 * util/grub-probe.c (probe): Remove check for RAID, call
48260 grub_util_get_grub_dev() instead of
48261 grub_util_biosdisk_get_grub_dev().
48262 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48263 grub_util_biosdisk_get_grub_dev().
48264 * util/i386/pc/grub-setup.c (main): Likewise.
48265
48266 2007-05-16 Robert Millan <rmh@aybabtu.com>
48267
48268 * DISTLIST: Update for the latest changes.
48269 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48270 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48271 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48272 grub/util/biosdisk.h.
48273 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48274 grub/util/biosdisk.h.
48275
48276 2007-05-16 Robert Millan <rmh@aybabtu.com>
48277
48278 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48279
48280 2007-05-16 Robert Millan <rmh@aybabtu.com>
48281
48282 * util/i386/efi/grub-install.in: New.
48283 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48284 newly added grub-install.
48285 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48286 include.
48287 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48288 grub/util/biosdisk.h.
48289 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48290 grub/util/biosdisk.h.
48291
48292 2007-05-16 Robert Millan <rmh@aybabtu.com>
48293
48294 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48295 * include/grub/util/biosdisk.h: ... here.
48296 * util/i386/pc/biosdisk.c: Moved to ...
48297 * util/biosdisk.c: ... here.
48298 * util/i386/pc/getroot.c: Moved to ...
48299 * util/getroot.c: ... here.
48300 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48301 * util/grub-mkdevicemap.c: ... here.
48302 * util/i386/pc/grub-probe.c: Moved to ...
48303 * util/grub-probe.c: ... here.
48304
48305 2007-05-15 Robert Millan <rmh@aybabtu.com>
48306
48307 * util/update-grub.in: Remove duplicated line in grub.cfg header
48308 message.
48309
48310 2007-05-13 Robert Millan <rmh@aybabtu.com>
48311
48312 * util/update-grub.in: Fix a few assumptions about the devices holding
48313 /, /boot and /boot/grub being the same.
48314 * util/grub.d/00_header.in: Likewise.
48315 * util/grub.d/10_hurd.in: Likewise.
48316 * util/grub.d/10_linux.in: Likewise.
48317
48318 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48319 patterns. Use that to define the `.old' suffix as older than `'.
48320
48321 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48322
48323 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48324 the grub.cfg header message.
48325
48326 2007-05-11 Robert Millan <rmh@aybabtu.com>
48327
48328 * util/update-grub.in: Create device.map if it doesn't already exist,
48329 before attempting to run grub-probe.
48330 Check for grub-probe and grub-mkdevicemap with the same code
48331 grub-install is using.
48332 Remove test mode.
48333
48334 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48335
48336 * Makefile.in: Add the datarootdir autoconf variable.
48337
48338 2007-05-09 Robert Millan <rmh@aybabtu.com>
48339
48340 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48341 fail gracefully if dev->disk->partition == NULL.
48342
48343 2007-05-07 Robert Millan <rmh@aybabtu.com>
48344
48345 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48346 determine partition map module.
48347 * util/i386/pc/grub-install.in: Use this feature to decide which
48348 partition module to load, instead of hardcoding pc and gpt.
48349
48350 2007-05-07 Robert Millan <rmh@aybabtu.com>
48351
48352 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48353 source directory differs from build directory.
48354
48355 2007-05-05 Robert Millan <rmh@aybabtu.com>
48356
48357 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48358 initialisation.
48359
48360 2007-05-05 Robert Millan <rmh@aybabtu.com>
48361
48362 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48363
48364 2007-05-05 Robert Millan <rmh@aybabtu.com>
48365
48366 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48367 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48368
48369 2007-05-05 Robert Millan <rmh@aybabtu.com>
48370
48371 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48372 (grub_probe_SOURCES): Likewise.
48373 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48374 GPT and initialize dos_part and bsd_part accordingly.
48375 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48376 install_bsd_part.
48377 (main): Activate gpt module for use during partition identification,
48378 and deactivate it afterwards.
48379 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48380 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48381 partition identification, and deactivate it afterwards.
48382
48383 2007-05-05 Robert Millan <rmh@aybabtu.com>
48384
48385 * term/i386/pc/console.c (grub_console_fini): Call
48386 grub_term_set_current() before grub_term_unregister().
48387
48388 2007-05-04 Robert Millan <rmh@aybabtu.com>
48389
48390 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48391 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48392 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48393 and update-grub_DATA.
48394 * conf/common.rmk: Build and install update-grub components.
48395 * conf/common.mk: Regenerate.
48396 * util/update-grub.in: New. Core of update-grub.
48397 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48398 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48399 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48400 * util/grub.d/README: New. Document grub.d directory layout.
48401
48402 2007-05-01 Robert Millan <rmh@aybabtu.com>
48403
48404 * util/grub-emu.c: Move initialization functions
48405 grub_util_biosdisk_init() and grub_init_all() before
48406 grub_util_biosdisk_get_grub_dev(), which relies on them.
48407
48408 2007-04-19 Robert Millan <rmh@aybabtu.com>
48409
48410 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48411 it is used later.
48412
48413 2007-04-18 Jerone Young <jerone@gmail.com>
48414
48415 * kernel/elf.c: Add missing parenthesis for conditional statement
48416 stanza.
48417
48418 2007-04-10 Jerone Young <jerone@gmail.com>
48419
48420 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48421 continue on and look for device node with real device name.
48422
48423 2007-04-10 Jerone Young <jerone@gmail.com>
48424
48425 * configure.ac: Add argument for autoconf to use transformation
48426 ability.
48427 * Makefile.in: Add autoconf package transformation code.
48428 * util/i386/pc/grub-install.in: Likewise.
48429 * util/powerpc/ieee1275/grub-install.in: Likewise.
48430
48431 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48432
48433 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48434 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48435 (EXT2_REVISION): Likewise.
48436 (EXT2_INODE_SIZE): Likewise.
48437 (struct grub_ext2_block_group): Added a missing member
48438 "used_dirs".
48439 (grub_ext2_read_inode): Divide by the inode size in a superblock
48440 instead of 128 to obtain INODES_PER_BLOCK.
48441 Use the macro EXT2_INODE_SIZE instead of directly using
48442 SBLOCK->INODE_SIZE.
48443
48444 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48445
48446 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48447 superblock instead of the structure size to compute an
48448 offset. This fixes the problem that GRUB could not read a
48449 filesystem when inode size is different from 128-byte.
48450
48451 2007-03-05 Marco Gerards <marco@gnu.org>
48452
48453 * normal/main.c (read_config_file): When "menu" is not set, create
48454 an initial context.
48455
48456 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48457
48458 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48459 (HEAP_LIMIT): New macro.
48460 (grub_claim_heap): Claim memory up to `heaplimit'.
48461
48462 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48463
48464 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48465 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48466 (_start): Likewise.
48467 (grub_arch_modules_addr): Return address after `_end'.
48468 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48469 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48470 (add_segments): Calculate `_end' from phdr size and location.
48471 (ALIGN_UP): Moved to ...
48472 * include/grub/misc.h: here.
48473 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48474 New macro.
48475 (GRUB_IEEE1275_MODULE_BASE): Removed.
48476
48477 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48478
48479 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48480 loop boundary.
48481
48482 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48483
48484 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48485 All users updated.
48486 (grub_elf64_load_hook_t): Likewise.
48487 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48488 debug output.
48489
48490 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48491
48492 * kern/mm.c: Update copyright.
48493 (grub_mm_debug): Correct syntax error.
48494 (grub_mm_dump_free): New function.
48495 (grub_debug_free): Call `grub_free'.
48496 * include/grub/mm.h: Update copyright.
48497 (grub_mm_dump_free): Add declaration.
48498
48499 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48500
48501 * include/grub/ieee1275/ieee1275.h: Update copyright.
48502 * kern/powerpc/ieee1275/init.c: Likewise.
48503 * kern/powerpc/ieee1275/openfw.c: Likewise.
48504
48505 * loader/powerpc/ieee1275/linux.c: Likewise.
48506 * include/grub/elfload.h: Likewise.
48507 * kern/elf.c: Likewise.
48508 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48509 callers.
48510 (grub_elf64_load): Likewise.
48511 (grub_elf32_load_segment): Move to a nested function.
48512 (grub_elf64_load_segment): Likewise.
48513
48514 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48515
48516 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48517 prototype.
48518 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48519 (grub_heap_len): Likewise.
48520 (HEAP_SIZE): New macro.
48521 (grub_claim_heap): New function.
48522 (grub_machine_init): Don't claim heap directly. Call
48523 `grub_claim_heap'.
48524 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48525 (grub_available_iterate): New function.
48526
48527 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48528
48529 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48530 * configure.ac: Use it for testing the HOST and TARGET compilers.
48531
48532 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48533
48534 * Makefile.in (enable_grub_emu): New variable.
48535 * configure.ac (--enable-grub-emu): New option.
48536 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48537 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48538 * conf/i386-pc.rmk: Likewise.
48539 * conf/powerpc-ieee1275.rmk: Likewise.
48540 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48541
48542 2006-12-12 Marco Gerards <marco@gnu.org>
48543
48544 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48545
48546 * kern/env.c (grub_env_unset): Don't free the member `value' when
48547 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48548 pointer.
48549
48550 * normal/main.c (current_menu): Removed.
48551 (free_menu): Unset the `menu' environment variable.
48552 (grub_normal_menu_addentry): Make use of the environment variable
48553 `menu', instead of using the global `current_menu'. Allocate
48554 memory for the sourcecode of this entry.
48555 (read_config_file): New argument `nested', changed all callers.
48556 Only in the case of a new context, initialize a new menu. Set the
48557 `menu' environment variable.
48558 (grub_normal_execute): Don't set and unset the environment
48559 variable `menu' here anymore. Only free the menu when leaving the
48560 context.
48561
48562 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48563 leak.
48564
48565 2006-12-11 Marco Gerards <marco@gnu.org>
48566
48567 * normal/menu_entry.c (run): Fix off by one bug so the last line
48568 is executed. Move the loader check to outside the loop.
48569
48570 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48571
48572 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48573
48574 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48575
48576 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48577 the number of sectors. Reported by Andrey Shuvikov
48578 <mr_hyro@yahoo.com>.
48579
48580 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48581
48582 * kern/disk.c (grub_disk_read): When there is a read error, always
48583 try to read only the necessary data.
48584
48585 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48586 disk/raid.c.
48587 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48588 prototype.
48589 [GRUB_UTIL] (grub_raid_fini): Likewise.
48590 [GRUB_UTIL] (grub_lvm_init): Likewise.
48591 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48592 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48593 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48594 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48595 and grub_raid_fini().
48596
48597 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48598
48599 * include/grub/types.h (__unused): Rename to UNUSED.
48600 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48601 (grub_elf64_size): Likewise.
48602
48603 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48604
48605 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48606 grub_error_push and grub_error_pop in the error-handling path.
48607 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48608 length.
48609
48610 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48611
48612 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48613 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48614 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48615 (kernel_elf_SOURCES): Likewise.
48616 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48617 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48618 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48619 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48620 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48621 (elf_mod_SOURCES): New variable.
48622 (elf_mod_CFLAGS): Likewise.
48623 (elf_mod_LDFLAGS): Likewise.
48624 * include/grub/types.h (__unused): New macro.
48625 * include/grub/elfload.h: New file.
48626 * kern/elf.c: Likewise.
48627 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48628 (ELF32_LOADMASK): New macro.
48629 (ELF64_LOADMASK): Likewise.
48630 (vmlinux): Removed.
48631 (grub_linux_load32): New function.
48632 (grub_linux_load64): Likewise.
48633 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48634 Use grub_elf_t instead of grub_file_t.
48635
48636 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48637
48638 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48639 `catch_result' to struct set_color_args.
48640
48641 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48642
48643 * normal/menu.c: Include grub/script.h.
48644 * normal/menu_entry.c: Likewise.
48645 * include/grub/normal.h: Do not include grub/script.h.
48646
48647 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48648
48649 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48650
48651 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48652
48653 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48654 disk.
48655 (grub_disk_close): Print debug messages when closing a disk.
48656 (grub_disk_read): Print debug messages when disk read fails.
48657 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48658 filesystem type.
48659 * kern/partition.c: Include misc.h.
48660 (grub_partition_iterate): Print debug messages when detecting
48661 partition type.
48662
48663 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48664
48665 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48666 is negative.
48667 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48668
48669 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48670
48671 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48672 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48673
48674 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48675
48676 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48677 instead of sizeof(lv). Patch by Michael Guntsche.
48678
48679 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48680
48681 * disk/lvm.c: Rename VGS to VG_LIST.
48682 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48683 (grub_lvm_open): Likewise.
48684 Thanks to Michael Guntsche for finding this bug.
48685
48686 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48687
48688 * configure.ac (AC_INIT): Bumped to 1.95.
48689
48690 2006-10-14 Robert Millan <rmh@aybabtu.com>
48691
48692 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48693 with "/dev/.static/dev/md".
48694
48695 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48696
48697 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48698 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48699 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48700 DRIVE_NAME are always freed.
48701
48702 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48703 DOS_PART, as a DOS partition is counted from one instead of zero
48704 now. Reported by Robert Millan.
48705
48706 2006-10-14 Robert Millan <rmh@aybabtu.com>
48707
48708 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48709 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48710 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48711 string returned by grub_guess_root_device.
48712 * util/i386/pc/grub-setup.c: Likewise.
48713 * util/i386/pc/grub-probefs.c: Likewise.
48714
48715 * util/i386/pc/grub-probefs.c: Rename to ...
48716 * util/i386/pc/grub-probe.c: ... this.
48717 * DISTLIST: Remove grub-probefs, add grub-probe.
48718 * conf/i386-efi.rmk: Likewise.
48719 * conf/i386-pc.rmk: Likewise.
48720 * util/i386/pc/grub-install.in: Likewise.
48721
48722 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48723 choose which information we want to print.
48724
48725 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48726
48727 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48728 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48729 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48730 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48731 video/readers/tga.c and video/i386/pc/vbeutil.c.
48732
48733 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48734
48735 Added support for RAID and LVM.
48736
48737 * disk/lvm.c: New file.
48738 * disk/raid.c: Likewise.
48739 * include/grub/lvm.h: Likewise.
48740 * include/grub/raid.h: Likewise.
48741 * include/grub/util/lvm.h: Likewise.
48742 * include/grub/util/raid.h: Likewise.
48743 * util/lvm.c: Likewise.
48744 * util/raid.c: Likewise.
48745
48746 * include/grub/disk.h (grub_disk_dev_id): Add
48747 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48748 (grub_disk_get_size): New prototype.
48749 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48750 returns a partition.
48751 (grub_disk_get_size): New function.
48752
48753 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48754 verbatim if grub_install_dos_part is -2.
48755
48756 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48757 and LVM devices.
48758
48759 * util/i386/pc/grub-setup.c (setup): New argument
48760 MUST_EMBED. Force embedding of GRUB when the argument is
48761 true. Close FILE before returning.
48762 (main): Add support for RAID and LVM.
48763
48764 * conf/common.rmk: Add RAID and LVM modules.
48765 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48766 util/lvm.c.
48767 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48768
48769 * kern/misc.c (grub_strstr): New function.
48770 * include/grub/misc.h (grub_strstr): New prototype.
48771
48772 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48773
48774 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48775
48776 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48777
48778 * kern/misc.c (grub_strtoull): Guess the base only if not
48779 specified.
48780
48781 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48782
48783 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48784 PowerMac support.
48785
48786 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48787
48788 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48789
48790 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48791 Remove `flags' argument. All callers changed.
48792 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48793 (IEEE1275_IHANDLE_INVALID): New variable.
48794 (IEEE1275_CELL_INVALID): New variable.
48795 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48796 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48797 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48798 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48799 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48800 codes from Open Firmware. All callers updated.
48801 (grub_ieee1275_next_property): Directly return Open Firmware return
48802 code.
48803 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48804 Standardize error checking from `grub_ieee1275_get_property'.
48805 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48806 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48807
48808 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48809
48810 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48811 `instance_to_package_args' to `instance_to_path_args'.
48812
48813 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48814 `grub_ieee1275_chosen'.
48815
48816 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48817 `grub_ieee1275_interpret'.
48818
48819 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48820
48821 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48822
48823 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48824
48825 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48826 (__cmpdi): Likewise.
48827
48828 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48829 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48830 `grub_ssize_t'.
48831
48832 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48833
48834 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48835 to type `grub_ssize_t'.
48836 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48837
48838 2006-09-22 Marco Gerards <marco@gnu.org>
48839
48840 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48841 newlines.
48842
48843 2006-09-22 Marco Gerards <marco@gnu.org>
48844
48845 * commands/echo.c: New file.
48846
48847 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48848
48849 * conf/common.rmk (echo_mod_SOURCES): New variable.
48850 (echo_mod_CFLAGS): Likewise.
48851 (echo_mod_LDFLAGS): Likewise.
48852
48853 2006-09-22 Marco Gerards <marco@gnu.org>
48854
48855 * normal/main.c (get_line): Malloc memory instead of using
48856 preallocated memory. Removed the arguments `cmdline' and
48857 `max_len'. Updated all callers.
48858
48859 2006-09-22 Marco Gerards <marco@gnu.org>
48860
48861 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48862 (normal_mod_DEPENDENCIES): Likewise.
48863
48864 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48865 (normal_mod_DEPENDENCIES): Likewise.
48866
48867 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48868
48869 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48870
48871 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48872 programs.
48873 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48874 (normal_mod_DEPENDENCIES): Likewise.
48875 * conf/i386-pc.mk: Regenerate.
48876 * conf/i386-efi.mk: Likewise
48877 * conf/common.mk: Likewise.
48878 * conf/powerpc-ieee1275.mk: Likewise.
48879 * conf/sparc64-ieee1275.mk: Likewise.
48880
48881 2006-09-22 Robert Millan <rmh@aybabtu.com>
48882
48883 Sync with i386 version.
48884 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48885 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48886
48887 2006-09-21 Robert Millan <rmh@aybabtu.com>
48888
48889 Import from GRUB Legacy (lib/device.c):
48890 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48891 (init_device_map) [__linux__]: Add support for I2O devices.
48892
48893 2006-09-14 Marco Gerards <marco@gnu.org>
48894
48895 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48896 `-melf_i386'.
48897
48898 2006-09-14 Robert Millan <rmh@aybabtu.com>
48899
48900 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48901 /boot/grub/*.lst.
48902
48903 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48904
48905 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48906 before adding it to device.map.
48907
48908 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48909
48910 * genmk.rb: Let GCC generate dependencies the first time it
48911 compiles a file; using the -MD option.
48912 * conf/common.mk: Regenerate.
48913 * conf/i386-pc.mk: Likewise.
48914 * conf/i386-efi.mk: Likewise.
48915 * conf/powerpc-ieee1275.mk: Likewise.
48916 * conf/sparc64-ieee1275.mk: Likewise.
48917
48918 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48919
48920 Move the prototypes of grub_setjmp and grub_longjmp to
48921 cpu/setjmp.h, so that each architecture may specify different
48922 attributes.
48923
48924 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48925 (grub_longjmp): Likewise.
48926 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48927 (grub_longjmp): Likewise.
48928 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48929 (grub_longjmp): Likewise.
48930
48931 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48932 [!GRUB_UTIL] (grub_longjmp): Removed.
48933
48934 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48935
48936 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48937 "color!" method does not return any value.
48938
48939 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48940
48941 * include/grub/bitmap.h: New file.
48942
48943 * include/grub/i386/pc/vbeutil.h: Likewise.
48944
48945 * video/bitmap.c: Likewise.
48946
48947 * video/readers/tga.c: Likewise.
48948
48949 * video/i386/pc/vbeutil.c: Likewise.
48950
48951 * commands/videotest.c: Code cleanup and updated to reflect to new
48952 video API.
48953
48954 * term/gfxterm.c: Likewise.
48955
48956 * video/video.c: Likewise.
48957
48958 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48959 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48960 (bitmap_mod_SOURCES): New entry.
48961 (bitmap_mod_CFLAGS): Likewise.
48962 (bitmap_mod_LDFLAGS): Likewise.
48963 (tga_mod_SOURCES): Likewise.
48964 (tga_mod_CFLAGS): Likewise.
48965 (tga_mod_LDFLAGS): Likewise.
48966
48967 * include/grub/video.h (grub_video_blit_operators): New enum type.
48968 (grub_video_render_target): Changed as forward declaration and moved
48969 actual definition to be video driver specific.
48970 (grub_video_adapter.blit_bitmap): Added blitting operator.
48971 (grub_video_adapter.blit_render_target): Likewise.
48972 (grub_video_blit_bitmap): Likewise.
48973 (grub_video_blit_render_target): Likewise.
48974
48975 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48976 driver specific render target definition.
48977 (grub_video_vbe_map_rgba): Added driver internal helper.
48978 (grub_video_vbe_unmap_color): Updated to use
48979 grub_video_i386_vbeblit_info.
48980 (grub_video_vbe_get_video_ptr): Likewise.
48981
48982 * include/grub/i386/pc/vbeblit.h
48983 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48984 grub_video_i386_vbeblit_info.
48985 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48986 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48987 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48988 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48989 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48990 (grub_video_i386_vbeblit_index_index): Likewise.
48991 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48992 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48993 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48994 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48995 operator.
48996 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48997 operator.
48998
48999 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49000 include/grub/i386/pc/vbeblit.h.
49001
49002 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49003 Updated to use grub_video_i386_vbeblit_info.
49004 (grub_video_i386_vbefill_R8G8B8): Likewise.
49005 (grub_video_i386_vbefill_index): Likewise.
49006 (grub_video_i386_vbefill): Added generic filler.
49007
49008 * video/i386/pc/vbefill.c: Updated to reflect changes on
49009 include/grub/i386/pc/vbefill.h.
49010
49011 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49012 grub_video_i386_vbeblit_info.
49013 (grub_video_vbe_unmap_color): Likewise.
49014 (grub_video_vbe_blit_glyph): Likewise.
49015 (grub_video_vbe_scroll): Likewise.
49016 (grub_video_vbe_draw_pixel): Removed function.
49017 (grub_video_vbe_get_pixel): Likewise.
49018 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49019 updated code to use it.
49020 (common_blitter): Added common blitter for render target and bitmap.
49021 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49022 (grub_video_vbe_blit_render_target): Likewise.
49023
49024 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49025
49026 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49027 is in text mode if there is no console control protocol instance
49028 available.
49029
49030 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49031
49032 * include/grub/video.h: Code cleanup.
49033
49034 * include/grub/i386/pc/vbe.h: Likewise.
49035
49036 * video/i386/pc/vbe.c: Likewise.
49037
49038 * video/i386/pc/vbeblit.c: Likewise.
49039
49040 * video/i386/pc/vbefill.c: Likewise.
49041
49042 * video/video.c: Likewise. Also added more comments.
49043
49044 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49045
49046 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49047 (struct grub_biosdisk_dap): Likewise.
49048
49049 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49050 linkage settings for all functions.
49051
49052 2006-07-12 Marco Gerards <marco@gnu.org>
49053
49054 * configure.ac (--enable-mm-debug): Fix typo.
49055
49056 * genkernsyms.sh.in: Use proper quoting for `CC'.
49057
49058 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49059
49060 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49061 (normal_mod_ASFLAGS): Remove "-m32".
49062
49063 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49064
49065 * util/misc.c: Include config.h.
49066 [!HAVE_MEMALIGN]: Do not include malloc.h.
49067 (grub_memalign): Use posix_memalign, if present. Then, use
49068 memalign, if present. Otherwise, emit an error.
49069
49070 * util/grub-emu.c: Do not include malloc.h.
49071
49072 * include/grub/util/misc.h: Include unistd.h. This is required for
49073 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49074 D. Eades III <hde@foobar-qux.org>.
49075
49076 * configure.ac (AC_GNU_SOURCE): Added.
49077 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49078 type.
49079
49080 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49081
49082 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49083 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49084
49085 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49086
49087 * include/grub/types.h (grub_host_addr_t): Rename to
49088 grub_target_addr_t.
49089 (grub_host_off_t): Rename to grub_target_off_t.
49090 (grub_host_size_t): Rename to grub_target_size_t.
49091 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49092 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49093
49094 * include/grub/kernel.h (struct grub_module_header): Change type
49095 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49096 (grub_module_info): Likewise.
49097
49098 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49099
49100 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49101 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49102 Velazquez <jesus.velazquez@gmail.com>.
49103
49104 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49105
49106 Count partitions from 1 instead of 0 in the string representation
49107 of partitions. Still use 0-based internally.
49108
49109 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49110 (sun_partition_map_iterate): Use grub_partition_t instead of
49111 struct grub_partition *. Cast DESC->START_CYLINDER to
49112 grub_uint64_t after converting the endian.
49113 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49114 (sun_partition_map_get_name): Add 1 to P->INDEX.
49115
49116 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49117 PCDATA->DOS_PART.
49118 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49119
49120 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49121 zero instead of one.
49122 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49123 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49124
49125 * partmap/apple.c (apple_partition_map_iterate): Change the type
49126 of POS to unsigned.
49127 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49128 (apple_partition_map_get_name): Add 1 into P->INDEX.
49129
49130 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49131 of POS to unsigned.
49132 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49133 calculate the offset of a partition.
49134 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49135 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49136
49137 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49138 SECTOR to grub_disk_addr_t.
49139 (acorn_partition_map_iterate): Likewise.
49140 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49141 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49142 top.
49143 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49144
49145 * kern/i386/pc/init.c (make_install_device): Add 1 into
49146 GRUB_INSTALL_DOS_PART.
49147
49148 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49149 conditional.
49150
49151 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49152
49153 Clean up the code to support 64-bit addressing in disks and
49154 files. This change is not enough for filesystems yet.
49155
49156 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49157 type of "start" to grub_uint64_t.
49158 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49159 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49160 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49161 convert addresses.
49162
49163 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49164 to grub_disk_addr_t.
49165
49166 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49167 string.
49168
49169 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49170
49171 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49172 to char *.
49173
49174 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49175
49176 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49177
49178 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49179
49180 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49181 to grub_off_t, to detect an error from grub_file_seek.
49182 (grub_multiboot_load_elf32): Likewise.
49183
49184 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49185 maximum unsigned long value when an overflow is detected.
49186 (grub_strtoull): New function.
49187 (grub_divmod64): Likewise.
49188 (grub_lltoa): use grub_divmod64.
49189
49190 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49191 grub_disk_addr_t.
49192 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49193 the pointer to next character. Use grub_strtoull instead of
49194 grub_strtoul.
49195 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49196 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49197 respectively.
49198
49199 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49200 return value is signed.
49201 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49202 test if OFFSET is less than zero, as OFFSET is unsigned now.
49203
49204 * kern/disk.c (struct grub_disk_cache): Change the type of
49205 "sector" to grub_disk_addr_t.
49206 (grub_disk_cache_get_index): Change the type of SECTOR to
49207 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49208 unsigned after shifting.
49209 (grub_disk_cache_invalidate): Change the type of SECTOR to
49210 grub_disk_addr_t.
49211 (grub_disk_cache_unlock): Likewise.
49212 (grub_disk_cache_store): Likewise.
49213 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49214 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49215 grub_disk_addr_t and grub_uint64_t, respectively.
49216 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49217 body, as the value of OFFSET is tweaked by
49218 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49219 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49220 respectively.
49221 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49222 body, as the value of OFFSET is tweaked by
49223 grub_disk_check_range. Change the types of LEN and N to
49224 grub_size_t.
49225
49226 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49227 and "saved_offset" to grub_off_t.
49228 (test_header): Cast BUF to char *.
49229 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49230 to char *.
49231 (grub_gzio_read): Change the types of OFFSET and SIZE to
49232 grub_off_t and grub_size_t, respectively.
49233
49234 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49235 Removed.
49236 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49237 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49238 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49239 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49240 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49241
49242 * include/grub/types.h (grub_off_t): Unconditionally set to
49243 grub_uint64_t.
49244 (grub_disk_addr_t): Changed to grub_uint64_t.
49245
49246 * include/grub/partition.h (struct grub_partition): Change the
49247 types of "start", "len" and "offset" to grub_disk_addr_t,
49248 grub_uint64_t and grub_disk_addr_t, respectively.
49249 (grub_partition_get_start): Return grub_disk_addr_t.
49250 (grub_partition_get_len): Return grub_uint64_t.
49251
49252 * include/grub/misc.h (grub_strtoull): New prototype.
49253 (grub_divmod64): Likewise.
49254
49255 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49256 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49257 grub_off_t, respectively.
49258 All callers and references changed.
49259
49260 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49261 grub_size_t in "read".
49262 All callers and references changed.
49263
49264 * include/grub/file.h (struct grub_file): Change the types of
49265 "offset" and "size" to grub_off_t and grub_off_t,
49266 respectively. Change the type of SECTOR to grub_disk_addr_t in
49267 "read_hook".
49268 (grub_file_read): Change the type of LEN to grub_size_t.
49269 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49270 grub_off_t.
49271 (grub_file_size): Return grub_off_t.
49272 (grub_file_tell): Likewise.
49273 All callers and references changed.
49274
49275 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49276 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49277 "write".
49278 (struct grub_disk): Change the type of "total_sectors" to
49279 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49280 "read_hook".
49281 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49282 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49283 (grub_disk_write): Likewise.
49284 All callers and references changed.
49285
49286 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49287 char * for grub_strncmp to silence gcc.
49288 (grub_iso9660_mount): Likewise.
49289 (grub_iso9660_mount): Likewise.
49290 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49291 return statement.
49292 (grub_iso9660_iterate_dir): Likewise.
49293 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49294
49295 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49296 LEN to grub_disk_addr_t and grub_size_t, respectively.
49297
49298 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49299
49300 * fs/jfs.c (grub_jfs_read_file): Likewise.
49301
49302 * fs/minix.c (grub_jfs_read_file): Likewise.
49303
49304 * fs/sfs.c (grub_jfs_read_file): Likewise.
49305
49306 * fs/ufs.c (grub_jfs_read_file): Likewise.
49307
49308 * fs/xfs.c (grub_jfs_read_file): Likewise.
49309
49310 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49311 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49312 respectively.
49313
49314 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49315 BLKNR to -1 instead of returning GRUB_ERRNO.
49316 (grub_ext2_read_file): Change the types of SECTOR and
49317 LEN to grub_disk_addr_t and grub_size_t, respectively.
49318
49319 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49320 LEN to grub_disk_addr_t and grub_size_t, respectively.
49321
49322 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49323 grub_file_read.
49324
49325 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49326 string. Do not cast SECTOR explicitly.
49327
49328 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49329 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49330 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49331 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49332 over 2TB and LBA mode is not supported, raise an error.
49333 (get_safe_sectors): New function.
49334 (grub_biosdisk_read): Use get_safe_sectors.
49335 (grub_biosdisk_write): Likewise.
49336
49337 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49338 (grub_efidisk_write): Likewise.
49339
49340 * disk/loopback.c (delete_loopback): Cosmetic changes.
49341 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49342 correctly.
49343 (grub_loopback_open): Likewise.
49344 (grub_loopback_read): Likewise. Also, change the type of POS to
49345 grub_off_t, and fix the usage of grub_memset.
49346
49347 * commands/i386/pc/play.c: Include grub/machine/time.h.
49348
49349 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49350 print FILE->SIZE.
49351
49352 * commands/configfile.c: Include grub/env.h.
49353
49354 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49355 GRUB_ERRNO directly instead. Change the type of POS to
49356 grub_off_t. Follow the coding standard.
49357
49358 * commands/blocklist.c: Include grub/partition.h.
49359 (grub_cmd_blocklist): Return an error if the underlying device is
49360 not a disk. Take the starting sector of a partition into account,
49361 if a partition is used.
49362
49363 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49364 a length field.
49365 (lba_mode): Support 64-bit addresses.
49366 (chs_mode): Likewise.
49367 (copy_buffer): Adapted to the new offsets of a length field and a
49368 segment field.
49369 (blocklist_default_start): Allocate 64-bit space.
49370
49371 * boot/i386/pc/boot.S (force_lba): Removed.
49372 (boot_drive): Moved to under KERNEL_SECTOR.
49373 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49374 space.
49375 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49376 is useless.
49377 (lba_mode): Refactored to support a 64-bit address. More size
49378 optimization.
49379 (setup_sectors): Likewise.
49380
49381 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49382
49383 * DISTLIST: Added include/grub/i386/linux.h. Removed
49384 include/grub/i386/pc/linux.h
49385
49386 * configure.ac (AC_INIT): Bumped to 1.94.
49387
49388 * config.guess: Updated from gnulib.
49389 * config.sub: Likewise.
49390 * install-sh: Likewise.
49391 * mkinstalldirs: Likewise.
49392
49393 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49394
49395 * conf/common.rmk (grub_modules_init.lst): Depended on
49396 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49397 MODSRCFILES.
49398
49399 * genmk.rb (PModule::rule): Reverted the previous change.
49400
49401 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49402
49403 * conf/common.rmk (grub_modules_init.lst): Depends on
49404 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49405 that the target does not exist before producing.
49406 (grub_modules_init.h): Remove the target before generating.
49407 (grub_emu_init.c): Likewise.
49408
49409 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49410
49411 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49412
49413 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49414 for the target-specific tests. Make sure that we also have the
49415 up-to-date target variables for those tests.
49416
49417 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49418
49419 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49420 (PModule::rule): Likewise.
49421
49422 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49423
49424 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49425 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49426 target-specific flags should be prefixed.
49427 (PModule::rule): Likewise.
49428
49429 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49430
49431 * configure.ac (CMP): Check if cmp is available explicitly.
49432
49433 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49434
49435 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49436 (target_cpu): New variable.
49437 (pkglibdir): Use target_cpu instead of host_cpu.
49438
49439 * util/i386/pc/grub-install.in (host_cpu): Removed.
49440 (target_cpu): New variable.
49441 (pkglibdir): Use target_cpu instead of host_cpu.
49442
49443 * util/genmoddep.c: Removed.
49444
49445 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49446 instead of GRUB_HOST_SIZEOF_VOID_P.
49447 * kern/dl.c: Likewise.
49448
49449 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49450 ...
49451 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49452 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49453 (GRUB_TARGET_SIZEOF_LONG): ... this.
49454 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49455 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49456 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49457 to ...
49458 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49459 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49460 (GRUB_TARGET_SIZEOF_LONG): ... this.
49461 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49462 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49463 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49464 to ...
49465 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49466 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49467 (GRUB_TARGET_SIZEOF_LONG): ... this.
49468 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49469 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49470
49471 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49472 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49473 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49474 instead of GRUB_HOST_SIZEOF_LONG.
49475 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49476 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49477 GRUB_CPU_WORDS_BIGENDIAN.
49478 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49479 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49480 grub_host_ssize_t.
49481
49482 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49483 (genmoddep_SOURCES): Likewise.
49484 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49485 (genmoddep_SOURCES): Likewise.
49486 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49487 (genmoddep_SOURCES): Likewise.
49488 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49489 Likewise.
49490 (genmoddep_SOURCES): Likewise.
49491
49492 * genmoddep.awk: New file.
49493
49494 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49495 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49496 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49497 (PModule::rule): Likewise.
49498 (Program::rule): Likewise.
49499 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49500 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49501 respectively.
49502
49503 * configure.ac: Rewritten intensively to use host and target
49504 instead of build and host, respectively.
49505
49506 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49507 (host_cpu): Removed.
49508 (target_cpu): New variable.
49509 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49510 (BUILD_CC): Removed.
49511 (BUILD_CFLAGS): Likewise.
49512 (BUILD_CPPFLAGS): Likewise.
49513 (TARGET_CC): New variable.
49514 (TARGET_CFLAGS): Likewise.
49515 (TARGET_CPPFLAGS): Likewise.
49516 (TARGET_LDFLAGS): Likewise.
49517 (AWK): Likewise.
49518 (include): Use target_cpu instead of host_cpu.
49519 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49520
49521 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49522
49523 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49524
49525 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49526 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49527 field 'false' to 'exec_on_false'.
49528 (grub_script_create_cmdif): Renamed argument names to reflect above
49529 changes.
49530
49531 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49532
49533 * normal/script.c (grub_script_create_cmdif): Likewise.
49534
49535 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49536
49537 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49538 top.
49539 (grub_hfsplus_btree_recptr): Likewise.
49540 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49541 FILEBLOCK both to pass a block number and store next block
49542 number.
49543 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49544 overflow file correctly. Specify errors appropriately, because
49545 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49546 grub_hfsplus_btree_recptr to get the pointer to a found key.
49547 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49548 is found.
49549
49550 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49551 linux.mod.
49552 (_linux_mod_SOURCES): New variable.
49553 (_linux_mod_CFLAGS): Likewise.
49554 (_linux_mod_LDFLAGS): Likewise.
49555 (linux_mod_SOURCES): Likewise.
49556 (linux_mod_CFLAGS): Likewise.
49557 (linux_mod_LDFLAGS): Likewise.
49558
49559 * DISTLIST: Added loader/i386/efi/linux.c,
49560 loader/i386/efi/linux_normal.c and
49561 include/grub/i386/efi/loader.h.
49562
49563 * loader/i386/efi/linux.c: New file.
49564 * loader/i386/efi/linux_normal.c: Likewise.
49565 * include/grub/i386/efi/loader.h: Likewise.
49566
49567 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49568
49569 * commands/blocklist.c: New file.
49570
49571 * DISTLIST: Added commands/blocklist.c.
49572
49573 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49574 color for the background, and a darker color for the foreground.
49575 (grub_console_checkkey): Return READ_KEY.
49576 (grub_console_cls): Set the background to
49577 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49578
49579 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49580
49581 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49582 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49583
49584 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49585 prototype.
49586
49587 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49588 BG. The spec is wrong again.
49589
49590 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49591 prototype.
49592 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49593
49594 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49595 commands/blocklist.c.
49596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49597
49598 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49599 (blocklist_mod_SOURCES): New variable.
49600 (blocklist_mod_CFLAGS): Likewise.
49601 (blocklist_mod_LDFLAGS): Likewise.
49602
49603 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49604
49605 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49606 duplication.
49607 (lba_mode): Use %eax more intensively to reduce the code size.
49608
49609 2006-05-20 Marco Gerards <marco@gnu.org>
49610
49611 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49612
49613 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49614 for `menuentry'.
49615 (script): Accept leading newlines.
49616 (newlines): New rule to describe 0 or more newlines.
49617 (commands): Accept `command' with trailing newline. Fixed the
49618 order in which arguments were passed to `grub_script_add_cmd'.
49619 Accept commands separated by newlines.
49620 (function): Changed to accept newlines.
49621 (menuentry) Rewritten.
49622
49623 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49624 front of the list, instead of to the end.
49625
49626 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49627
49628 * util/i386/pc/grub-install.in (bindir): New variable.
49629 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49630 Shaver <lbgwjl@gmail.com>.
49631
49632 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49633
49634 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49635 grub/machine/linux.h
49636 * loader/i386/pc/linux.c: Likewise.
49637
49638 * include/grub/i386/pc/linux.h: Moved to ...
49639 * include/grub/i386/linux.h: ... here.
49640
49641 * include/grub/i386/linux.h (struct linux_kernel_params): New
49642 struct.
49643
49644 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49645
49646 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49647 checking.
49648 (grub_video_vbe_blit_glyph): Likewise.
49649 (grub_video_vbe_blit_bitmap): Likewise.
49650 (grub_video_vbe_blit_render_target): Likewise.
49651
49652 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49653
49654 * configure.ac (--with-platform): Properly quote the square
49655 brackets.
49656
49657 2006-05-08 Marco Gerards <marco@gnu.org>
49658
49659 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49660 this...
49661 (kernel_elf_HEADERS): ...to this. Updated all users.
49662 (grubof_symlist.c): Renamed from this...
49663 (kernel_elf_symlist.c): ...to this. Updated all users.
49664 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49665 (grubof_SOURCES): Renamed from this...
49666 (kernel_elf_SOURCES): ...to this.
49667 (grubof_HEADERS): Renamed from this...
49668 (kernel_elf_HEADERS): ...to this.
49669 (grubof_CFLAGS): Renamed from this...
49670 (kernel_elf_CFLAGS): ...to this.
49671 (grubof_ASFLAGS): Renamed from this...
49672 (kernel_elf_ASFLAGS): ...to this.
49673 (grubof_LDFLAGS): Renamed from this...
49674 (kernel_elf_LDFLAGS): ...to this.
49675
49676 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49677 this...
49678 (kernel_elf_HEADERS): ...to this. Updated all users.
49679 (grubof_symlist.c): Renamed from this...
49680 (kernel_elf_symlist.c): ...to this. Updated all users.
49681 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49682 (grubof_SOURCES): Renamed from this...
49683 (kernel_elf_SOURCES): ...to this.
49684 (grubof_HEADERS): Renamed from this...
49685 (kernel_elf_HEADERS): ...to this.
49686 (grubof_CFLAGS): Renamed from this...
49687 (kernel_elf_CFLAGS): ...to this.
49688 (grubof_ASFLAGS): Renamed from this...
49689 (kernel_elf_ASFLAGS): ...to this.
49690 (grubof_LDFLAGS): Renamed from this...
49691 (kernel_elf_LDFLAGS): ...to this.
49692
49693 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49694 `kernel.elf' instead of `grubof'.
49695
49696 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49697
49698 Add --with-platform to configure. Use pkglibdir instead of
49699 pkgdatadir. This is reported by Roger Leigh.
49700
49701 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49702 (host_vendor): Likewise.
49703 (host_os): Likewise.
49704 (pkgdatadir): Likewise.
49705 (platform): New variable.
49706 (pkglibdir): Likewise.
49707 Use PKGLIBDIR instead of PKGDATADIR.
49708
49709 * util/i386/pc/grub-install.in (datadir): Removed.
49710 (host_vendor): Likewise.
49711 (host_os): Likewise.
49712 (pkgdatadir): Likewise.
49713 (platform): New variable.
49714 (pkglibdir): Likewise.
49715 Use PKGLIBDIR instead of PKGDATADIR.
49716
49717 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49718 instead of GRUB_DATADIR.
49719 (main): Likewise.
49720 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49721 (main): Likewise.
49722 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49723 (main): Likewise.
49724
49725 * configure.ac (--with-platform): New option.
49726 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49727
49728 * Makefile.in: Include a makefile based on PLATFORM instead of
49729 HOST_VENDOR.
49730 (pkgdatadir): Not appended by the machine type.
49731 (pkglibdir): Appended by the machine type.
49732 (host_vendor): Removed.
49733 (platform): New variable.
49734 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49735 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49736 (uninstall): Likewise.
49737
49738 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49739
49740 Use the environment context in the menu. Remove the commands
49741 "default" and "timeout", and use variables instead.
49742
49743 * normal/menu.c: Include grub/env.h.
49744 (print_entry): Cast TITLE to silence gcc.
49745 (get_timeout): New function.
49746 (set_timeout): Likewise.
49747 (get_entry_number): Likewise.
49748 (run_menu): Use a default entry, a fallback entry and a timeout
49749 in the environment variables "default", "fallback" and
49750 "timeout". Also, tweak the default entry if it is not within the
49751 current menu entries.
49752 (grub_menu_run): Use a fallback entry in the environment variable
49753 "fallback".
49754
49755 * normal/main.c (read_config_file): Do not initialize
49756 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49757 NEWMENU->TIMEOUT.
49758 (grub_normal_execute): Use a data slot to store the menu.
49759
49760 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49761 fallback_entry and timeout.
49762 (struct grub_menu_list): Removed.
49763 (grub_menu_list_t): Likewise.
49764 (struct grub_context): Likewise.
49765 (grub_context_t): Likewise.
49766 (grub_context_get): Likewise.
49767 (grub_context_get_current_menu): Likewise.
49768 (grub_context_push_menu): Likewise.
49769 (grub_context_pop_menu): Likewise.
49770 (grub_default_init): Likewise.
49771 (grub_default_fini): Likewise.
49772 (grub_timeout_init): Likewise.
49773 (grub_timeout_fini): Likewise.
49774
49775 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49776 and timeout.mod.
49777 (normal_mod_SOURCES): Removed normal/context.c.
49778
49779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49780 commands/default.c, commands/timeout.c and normal/context.c.
49781 (normal_mod_SOURCES): Removed normal/context.c.
49782
49783 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49784 commands/timeout.c and normal/context.c.
49785 (normal_mod_SOURCES): Removed normal/context.c.
49786
49787 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49788 commands/default.c, commands/timeout.c and normal/context.c.
49789 (normal_mod_SOURCES): Removed normal/context.c.
49790
49791 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49792 timeout.mod.
49793 (default_mod_SOURCES): Removed.
49794 (default_mod_CFLAGS): Likewise.
49795 (default_mod_LDFLAGS): Likewise.
49796 (timeout_mod_SOURCES): Removed.
49797 (timeout_mod_CFLAGS): Likewise.
49798 (timeout_mod_LDFLAGS): Likewise.
49799
49800 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49801 normal/context.c.
49802
49803 * commands/default.c: Removed.
49804 * commands/timeout.c: Likewise.
49805 * normal/context.c: Likewise.
49806
49807 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49808
49809 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49810
49811 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49812
49813 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49814 "next" to "prev" for readability.
49815 (struct grub_env_sorted_var): New struct.
49816 (grub_env_context): Renamed to ...
49817 (initial_context): ... this.
49818 (grub_env_var_context): Renamed to ...
49819 (current_context): ... this.
49820 (grub_env_find): Look only at CURRENT_CONTEXT.
49821 (grub_env_context_open): Rewritten to copy exported variables from
49822 previous context.
49823 (grub_env_context_close): Rewritten according to the new
49824 scheme. Also, add an assertion to prevent the initial context from
49825 removed.
49826 (grub_env_insert): Removed the code for the sorted list.
49827 (grub_env_remove): Likewise.
49828 (grub_env_export): Simply mark the variable with
49829 GRUB_ENV_VAR_GLOBAL.
49830 (grub_env_set): A cosmetic change for naming consistency.
49831 (grub_env_get): Likewise.
49832 (grub_env_unset): Likewise.
49833 (grub_env_iterate): Rewritten to sort variables within this
49834 function.
49835 (grub_register_variable_hook): Fixed for naming consistency. Call
49836 grub_env_find again, only if NAME is not found at the first time.
49837 (mangle_data_slot_name): New function.
49838 (grub_env_set_data_slot): Likewise.
49839 (grub_env_get_data_slot): Likewise.
49840 (grub_env_unset_data_slot): Likewise.
49841
49842 * include/grub/env.h (grub_env_var_type): New enum.
49843 (GRUB_ENV_VAR_LOCAL): New constant.
49844 (GRUB_ENV_VAR_GLOBAL): Likewise.
49845 (GRUB_ENV_VAR_DATA): Likewise.
49846 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49847 "type".
49848 (grub_env_set): Replace VAR with NAME for consistency.
49849 (grub_register_variable_hook): Likewise.
49850 (grub_env_export): Specify the name of the argument.
49851 (grub_env_set_data_slot): New prototype.
49852 (grub_env_get_data_slot): Likewise.
49853 (grub_env_unset_data_slot): Likewise.
49854
49855 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49856
49857 Extend the loader so that GRUB can accept a loader which comes
49858 back to GRUB when a loaded image exits. Also, this change adds
49859 support for a chainloader on EFI.
49860
49861 * term/efi/console.c: Include grub/misc.h.
49862 (grub_console_checkkey): Display a scan code on the top for
49863 debugging. This will be removed once the EFI port gets stable.
49864 Correct the scan code mapping.
49865
49866 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49867 allocate memory from larger regions, in order to reduce the number
49868 of allocated regions. Otherwise, the MacOSX loader panics.
49869 (filter_memory_map): Avoid less than 1MB for compatibility with
49870 other loaders.
49871 (add_memory_regions): Allocate from the tail of a region, if
49872 possible, to avoid allocating a region near to 1MB, for the MacOSX
49873 loader.
49874
49875 * kern/efi/init.c (grub_efi_set_prefix): Specify
49876 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49877
49878 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49879 argument IMAGE_HANDLE and specify it to get a loaded image.
49880 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49881 grub_efi_get_loaded_image.
49882 (grub_efi_get_filename): Divide the length by the size of
49883 grub_efi_char16_t.
49884 (grub_efi_get_device_path): New function.
49885 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49886 the length by the size of grub_efi_char16_t for a file path device
49887 path node.
49888
49889 * kern/loader.c (grub_loader_noreturn): New variable.
49890 (grub_loader_set): Accept a new argument NORETURN. Set
49891 GRUB_LOADER_NORETURN to NORETURN.
49892 All callers changed.
49893 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49894 grub_machine_fini.
49895
49896 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49897 prototype.
49898 (grub_efi_get_loaded_image): Take an argument to specify an image
49899 handle.
49900
49901 * include/grub/loader.h (grub_loader_set): Added one more argument
49902 NORETURN.
49903
49904 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49905 instead of grub_efi_open_protocol.
49906 (grub_efidisk_get_device_name): Likewise.
49907 (grub_efidisk_close): Print a newline.
49908 (grub_efidisk_get_device_handle): Fixed to use
49909 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49910 GRUB_EFI_DEVICE_PATH_TYPE.
49911
49912 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49913 * kern/efi/efi.c (device_path_guid): ... here.
49914
49915 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49916 chain.mod.
49917 (kernel_mod_HEADERS): Added efi/disk.h.
49918 (_chain_mod_SOURCES): New variable.
49919 (_chain_mod_CFLAGS): Likewise.
49920 (_chain_mod_LDFLAGS): Likewise.
49921 (chain_mod_SOURCES): Likewise.
49922 (chain_mod_CFLAGS): Likewise.
49923 (chain_mod_LDFLAGS): Likewise.
49924
49925 * DISTLIST: Added include/grub/efi/chainloader.h,
49926 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49927
49928 * include/grub/efi/chainloader.h: New file.
49929 * loader/efi/chainloader.c: Likewise.
49930 * loader/efi/chainloader_normal.c: Likewise.
49931
49932 2006-04-30 Marco Gerards <marco@gnu.org>
49933
49934 * commands/configfile.c (grub_cmd_source): New function.
49935 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49936 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49937
49938 2006-04-30 Marco Gerards <marco@gnu.org>
49939
49940 * normal/execute.c (grub_script_execute_cmd): Change the return
49941 type to `grub_err_t'. Correctly return the error.
49942 (grub_script_execute_cmdline): In case a command line is not a
49943 command or a function, try to interpret it as an assignment.
49944
49945 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49946
49947 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49948 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49949 skip a node whose name is obviously invalid as UTF-16,
49950 i.e. contains a NUL character. Stop the iteration when the last
49951 directory entry is found. Instead of using the return value of
49952 grub_hfsplus_btree_iterate_node, store the value in RET and use
49953 it, because the iterator can be stopped by the last directory
49954 entry.
49955
49956 2006-04-30 Marco Gerards <marco@gnu.org>
49957
49958 * include/grub/env.h (grub_env_export): New prototype. Reported
49959 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49960
49961 2006-04-30 Marco Gerards <marco@gnu.org>
49962
49963 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49964 size of the extents in a catalog file record.
49965
49966 2006-04-29 Marco Gerards <marco@gnu.org>
49967
49968 * commands/configfile.c (grub_cmd_configfile): Execute the
49969 configfile within its own context.
49970
49971 * include/grub/env.h (grub_env_context_open): New prototype.
49972 (grub_env_context_close): Likewise.
49973
49974 * kern/env.c (grub_env): Removed.
49975 (grub_env_sorted): Likewise.
49976 (grub_env_context): New variable.
49977 (grub_env_var_context): Likewise.
49978 (grub_env_find): Search both the active context and the global
49979 context.
49980 (grub_env_context_open): New function.
49981 (grub_env_context_close): Likewise.
49982 (grub_env_insert): Likewise.
49983 (grub_env_remove): Likewise.
49984 (grub_env_export): Likewise.
49985 (grub_env_set): Changed to use helper functions to avoid code
49986 duplication.
49987 (grub_env_iterate): Rewritten so both the current context and the
49988 global context are being used.
49989
49990 * normal/command.c (export_command): New function.
49991 (grub_command_init): Register the `export' function.
49992
49993 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49994
49995 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49996 explicitly to suppress gcc's warnings.
49997 * fs/fat.c (grub_fat_find_dir): Likewise.
49998 (grub_fat_label): Likewise.
49999 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50000 (grub_xfs_mount): Likewise.
50001 (grub_xfs_label): Likewise.
50002 * fs/affs.c (grub_affs_mount): Likewise.
50003 (grub_affs_label): Likewise.
50004 (grub_affs_iterate_dir): Likewise.
50005 * fs/sfs.c (grub_sfs_mount): Likewise.
50006 (grub_sfs_iterate_dir): Likewise.
50007 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50008 * fs/hfs.c (grub_hfs_mount): Likewise.
50009 (grub_hfs_cmp_catkeys): Likewise.
50010 (grub_hfs_find_dir): Likewise.
50011 (grub_hfs_dir): Likewise.
50012 (grub_hfs_label): Likewise.
50013 * fs/jfs.c (grub_jfs_mount): Likewise.
50014 (grub_jfs_opendir): Likewise.
50015 (grub_jfs_getent): Likewise.
50016 (grub_jfs_lookup_symlink): Likewise.
50017 (grub_jfs_label): Likewise.
50018 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50019 (grub_hfsplus_iterate_dir): Likewise.
50020 (grub_hfsplus_btree_iterate_node): Made static.
50021
50022 * util/grub-emu.c (prefix): New variable.
50023 (grub_machine_set_prefix): New function.
50024 (main): Do not set the environment variable "prefix" here. Only
50025 set PREFIX, which is used later by grub_machine_set_prefix.
50026
50027 * include/grub/video.h: Do not include grub/symbol.h.
50028 (grub_video_register): Not exported. This symbol is not defined in
50029 the kernel.
50030 (grub_video_unregister): Likewise.
50031 (grub_video_iterate): Likewise.
50032 (grub_video_setup): Likewise.
50033 (grub_video_restore): Likewise.
50034 (grub_video_get_info): Likewise.
50035 (grub_video_get_blit_format): Likewise.
50036 (grub_video_set_palette): Likewise.
50037 (grub_video_get_palette): Likewise.
50038 (grub_video_set_viewport): Likewise.
50039 (grub_video_get_viewport): Likewise.
50040 (grub_video_map_color): Likewise.
50041 (grub_video_map_rgb): Likewise.
50042 (grub_video_map_rgba): Likewise.
50043 (grub_video_fill_rect): Likewise.
50044 (grub_video_blit_glyph): Likewise.
50045 (grub_video_blit_bitmap): Likewise.
50046 (grub_video_blit_render_target): Likewise.
50047 (grub_video_scroll): Likewise.
50048 (grub_video_swap_buffers): Likewise.
50049 (grub_video_create_render_target): Likewise.
50050 (grub_video_delete_render_target): Likewise.
50051 (grub_video_set_active_render_target): Likewise.
50052
50053 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50054 Undefined.
50055 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50056
50057 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50058 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50059 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50060 instead of $(srcdir)/genkernsyms.sh.
50061
50062 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50063 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50064 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50065 instead of $(srcdir)/genkernsyms.sh.
50066
50067 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50068 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50069 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50070 instead of $(srcdir)/genkernsyms.sh.
50071
50072 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50073 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50074 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50075 instead of $(srcdir)/genkernsyms.sh.
50076
50077 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50078 genkernsyms.sh.
50079
50080 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50081 genkernsyms.sh.
50082 (gensymlist.sh): New target.
50083 (genkernsyms.sh): Likewise.
50084
50085 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50086 genkernsyms.sh.in and gensymlist.sh.in.
50087
50088 * genkernsyms.sh: Removed.
50089 * gensymlist.sh: Likewise.
50090
50091 * genkernsyms.sh.in: New file.
50092 * gensymlist.sh.in: Likewise.
50093
50094 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50095
50096 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50097 clobber "prefix", since we may have already set it manually.
50098
50099 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50100
50101 * kern/misc.c (abort): New alias for grub_abort.
50102
50103 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50104
50105 A new machine-specific function "grub_machine_set_prefix" is
50106 defined. This is called after loading modules, so that a prefix
50107 initialization can use modules. Also, this change adds an
50108 intensive debugging feature for the memory manager via the
50109 configure option "--enable-mm-debug".
50110
50111 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50112 PART.LEN.
50113
50114 * kern/sparc64/ieee1275/init.c (abort): Removed.
50115 (grub_stop): Likewise.
50116 (grub_exit): New function.
50117 (grub_set_prefix): Renamed to ...
50118 (grub_machine_set_prefix): ... this.
50119 (grub_machine_init): Do not call grub_set_prefix.
50120
50121 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50122 (grub_machine_set_prefix): ... this.
50123 (grub_machine_init): Do not call grub_set_prefix.
50124
50125 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50126 (grub_machine_init): Do not set the prefix here.
50127
50128 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50129
50130 * kern/efi/init.c: Include grub/mm.h.
50131 (grub_efi_set_prefix): New function.
50132
50133 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50134 (grub_efi_get_filename): New function.
50135 (grub_print_device_path): Renamed to ...
50136 (grub_efi_print_device_path): ... this.
50137
50138 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50139 [MM_DEBUG] (grub_realloc): Likewise.
50140 [MM_DEBUG] (grub_free): Likewise.
50141 [MM_DEBUG] (grub_memalign): Likewise.
50142 [MM_DEBUG] (grub_mm_debug): New variable.
50143 [MM_DEBUG] (grub_debug_malloc): New function.
50144 [MM_DEBUG] (grub_debug_free): New function.
50145 [MM_DEBUG] (grub_debug_realloc): New function.
50146 [MM_DEBUG] (grub_debug_memalign): New function.
50147
50148 * kern/misc.c (grub_abort): Print a newline to distinguish
50149 the message.
50150
50151 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50152 grub_set_root_dev after loading modules. This is necessary when
50153 setting a prefix depends on modules.
50154
50155 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50156 (grub_efi_print_device_path): ... this.
50157 (grub_efi_get_filename): New prototype.
50158 (grub_efi_set_prefix): Likewise.
50159
50160 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50161 and grub/disk.h.
50162 (grub_efidisk_get_device_handle): New prototype.
50163 (grub_efidisk_get_device_name): Likewise.
50164
50165 * include/grub/mm.h: Include config.h.
50166 (MM_DEBUG): Removed.
50167 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50168 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50169 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50170 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50171 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50172 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50173 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50174 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50175 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50176
50177 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50178
50179 * disk/efi/efidisk.c: Include grub/partition.h.
50180 (iterate_child_devices): New function.
50181 (add_device): First, compare only last device path nodes, so that
50182 devices are sorted by the types.
50183 (grub_efidisk_get_device_handle): New function.
50184 (grub_efidisk_get_device_name): Likewise.
50185
50186 * configure.ac (--enable-mm-debug): New option to enable the
50187 memory manager debugging feature. This makes the binary much
50188 bigger, so is disabled by default.
50189
50190 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50191
50192 Use grub_abort instead of grub_stop, and grub_exit must be
50193 define in each architecture now. Also, this change adds support
50194 for EFI disks.
50195
50196 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50197 (grub_getkey): New function.
50198 (grub_term_get_current): Likewise.
50199
50200 * util/i386/pc/grub-setup.c: Include grub/term.h.
50201 (grub_getkey): New function.
50202 (grub_term_get_current): Likewise.
50203
50204 * util/misc.c (grub_stop): Renamed to ...
50205 (grub_exit): ... this.
50206
50207 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50208 (grub_exit): ... this.
50209 (grub_machine_init): Use grub_abort instead of abort.
50210 (grub_stop): Removed.
50211
50212 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50213 abort.
50214
50215 * kern/i386/pc/startup.S (grub_exit): New function.
50216 (cold_reboot): New label.
50217
50218 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50219 (grub_efi_init): Call grub_efidisk_init.
50220 (grub_efi_fini): Call grub_efidisk_fini.
50221
50222 * kern/efi/efi.c: Include grub/mm.h.
50223 (grub_efi_console_control_guid): Renamed to ...
50224 (console_control_guid): ... this.
50225 (grub_efi_loaded_image_guid): Renamed to ...
50226 (loaded_image_guid): ... this.
50227 (grub_efi_locate_handle): New function.
50228 (grub_efi_open_protocol): Likewise.
50229 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50230 GRUB_EFI_CONSOLE_CONTROL_GUID.
50231 (grub_efi_exit): Removed.
50232 (grub_stop): Likewise.
50233 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50234 (grub_exit): New function.
50235 (grub_print_device_path): Likewise.
50236
50237 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50238 (grub_enter_rescue_mode): Register "exit".
50239
50240 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50241 (grub_abort): New function.
50242
50243 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50244
50245 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50246
50247 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50248
50249 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50250 (grub_print_device_path): New prototype.
50251 (grub_efi_locate_handle): Likewise.
50252 (grub_efi_open_protocol): Likewise.
50253
50254 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50255 * disk/efi/efidisk.c: Likewise.
50256
50257 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50258
50259 * include/grub/efi/console_control.h
50260 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50261
50262 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50263 last 8 bytes as an array.
50264 (GRUB_EFI_DISK_IO_GUID): New macro.
50265 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50266 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50267 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50268 grub_uint8_t.
50269 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50270 (struct grub_efi_device_path): Rename the member "sub_type" to
50271 "subtype".
50272 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50273 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50274 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50275 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50276 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50277 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50278 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50279 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50280 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50281 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50282 (struct grub_efi_pci_device_path): New structure.
50283 (grub_efi_pci_device_path_t): New type.
50284 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50285 (struct grub_efi_pccard_device_path): New structure.
50286 (grub_efi_pccard_device_path_t): New type.
50287 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50288 (struct grub_efi_memory_mapped_device_path): New structure.
50289 (grub_efi_memory_mapped_device_path_t): New type.
50290 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50291 (struct grub_efi_vendor_device_path): New structure.
50292 (grub_efi_vendor_device_path_t): New type.
50293 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50294 (struct grub_efi_controller_device_path): New structure.
50295 (grub_efi_controller_device_path_t): New type.
50296 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50297 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50298 (struct grub_efi_acpi_device_path): New structure.
50299 (grub_efi_acpi_device_path_t): New type.
50300 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50301 (struct grub_efi_expanded_acpi_device_path): New structure.
50302 (grub_efi_expanded_acpi_device_path_t): New type.
50303 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50304 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50305 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50306 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50307 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50308 (struct grub_efi_atapi_device_path): New structure.
50309 (grub_efi_atapi_device_path_t): New type.
50310 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50311 (struct grub_efi_fibre_channel_device_path): New structure.
50312 (grub_efi_fibre_channel_device_path_t): New type.
50313 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50314 (struct grub_efi_1394_device_path): New structure.
50315 (grub_efi_1394_device_path_t): New type.
50316 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50317 (struct grub_efi_usb_device_path): New structure.
50318 (grub_efi_usb_device_path_t): New type.
50319 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50320 (struct grub_efi_usb_class_device_path): New structure.
50321 (grub_efi_usb_class_device_path_t): New type.
50322 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50323 (struct grub_efi_i2o_device_path): New structure.
50324 (grub_efi_i2o_device_path_t): New type.
50325 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50326 (struct grub_efi_mac_address_device_path): New structure.
50327 (grub_efi_mac_address_device_path_t): New type.
50328 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50329 (struct grub_efi_ipv4_device_path): New structure.
50330 (grub_efi_ipv4_device_path_t): New type.
50331 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50332 (struct grub_efi_ipv6_device_path): New structure.
50333 (grub_efi_ipv6_device_path_t): New type.
50334 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50335 (struct grub_efi_infiniband_device_path): New structure.
50336 (grub_efi_infiniband_device_path_t): New type.
50337 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50338 (struct grub_efi_uart_device_path): New structure.
50339 (grub_efi_uart_device_path_t): New type.
50340 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50341 (struct grub_efi_vendor_messaging_device_path): New structure.
50342 (grub_efi_vendor_messaging_device_path_t): New type.
50343 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50344 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50345 (struct grub_efi_hard_drive_device_path): New structure.
50346 (grub_efi_hard_drive_device_path_t): New type.
50347 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50348 (struct grub_efi_cdrom_device_path): New structure.
50349 (grub_efi_cdrom_device_path_t): New type.
50350 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50351 (struct grub_efi_vendor_media_device_path): New structure.
50352 (grub_efi_vendor_media_device_path_t): New type.
50353 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50354 (struct grub_efi_file_path_device_path): New structure.
50355 (grub_efi_file_path_device_path_t): New type.
50356 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50357 (struct grub_efi_protocol_device_path): New structure.
50358 (grub_efi_protocol_device_path_t): New type.
50359 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50360 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50361 (struct grub_efi_bios_device_path): New structure.
50362 (grub_efi_bios_device_path_t): New type.
50363 (struct grub_efi_disk_io): New structure.
50364 (grub_efi_disk_io_t): New type.
50365 (struct grub_efi_block_io_media): New structure.
50366 (grub_efi_block_io_media_t): New type.
50367 (struct grub_efi_block_io): New structure.
50368 (grub_efi_block_io_t): New type.
50369
50370 * include/grub/misc.h (grub_stop): Removed.
50371 (grub_exit): New prototype.
50372 (grub_abort): Likewise.
50373
50374 * include/grub/disk.h (enum grub_disk_dev_id): Added
50375 GRUB_DISK_DEVICE_EFIDISK_ID.
50376
50377 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50378 disk/efi/efidisk.c.
50379 (kernel_syms.lst): Remove the target if an error occurs.
50380
50381 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50382
50383 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50384 as it was simply too buggy.
50385
50386 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50387
50388 * kern/misc.c (grub_lltoa): New function.
50389 (grub_vsprintf): Added support for the long long suffix,
50390 i.e. "ll".
50391
50392 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50393
50394 * Makefile.in (LDFLAGS): Add variable.
50395 (LD): Remove variable.
50396 * configure.ac: Add -m32 to LDFLAGS.
50397 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50398 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50399 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50400 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50401 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50402 variables.
50403 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50404 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50405 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50406
50407 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50408
50409 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50410 length for unknown glyph.
50411
50412 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50413
50414 Add support for pre-loaded modules into the EFI port.
50415
50416 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50417 completely. Accept one more argument DIR. The caller has changed.
50418
50419 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50420
50421 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50422 (grub_efi_loaded_image_guid): New variable.
50423 (grub_efi_get_loaded_image): New function.
50424 (grub_arch_modules_addr): Likewise.
50425
50426 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50427 prototype.
50428
50429 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50430 (struct grub_efi_loaded_image): New structure.
50431 (grub_efi_loaded_image_t): New type.
50432
50433 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50434
50435 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50436 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50437 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50438
50439 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50440
50441 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50442
50443 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50444
50445 * DISTLIST: Added include/grub/efi/console.h,
50446 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50447 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50448
50449 * include/grub/efi/console.h: New file.
50450 * include/grub/efi/time.h: Likewise.
50451 * include/grub/i386/efi/kernel.h: Likewise.
50452 * kern/efi/init.c: Likewise.
50453 * kern/efi/mm.c: Likewise.
50454 * term/efi/console.c: Likewise.
50455
50456 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50457 (grub_stop): Removed.
50458 (grub_get_rtc): Likewise.
50459 (grub_machine_init): Simply call grub_efi_init.
50460 (grub_machine_fini): Call grub_efi_fini.
50461
50462 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50463 (grub_efi_output_string): Removed.
50464 (grub_efi_stall): New function.
50465 (grub_stop): Likewise.
50466 (grub_get_rtc): Likewise.
50467
50468 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50469 (grub_efi_stall): New prototype.
50470 (grub_efi_allocate_pages): Likewise.
50471 (grub_efi_free_pages): Likewise.
50472 (grub_efi_get_memory_map): Likewise.
50473 (grub_efi_mm_init): Likewise.
50474 (grub_efi_mm_fini): Likewise.
50475 (grub_efi_init): Likewise.
50476 (grub_efi_fini): Likewise.
50477
50478 * include/grub/i386/efi/time.h: Do not include
50479 grub/symbol.h. Include grub/efi/time.h.
50480 (GRUB_TICKS_PER_SECOND): Removed.
50481 (grub_get_rtc): Likewise.
50482
50483 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50484 Added padding. The EFI spec is buggy.
50485 (GRUB_EFI_BLACK): New macro.
50486 (GRUB_EFI_BLUE): Likewise.
50487 (GRUB_EFI_GREEN): Likewise.
50488 (GRUB_EFI_CYAN): Likewise.
50489 (GRUB_EFI_RED): Likewise.
50490 (GRUB_EFI_MAGENTA): Likewise.
50491 (GRUB_EFI_BROWN): Likewise.
50492 (GRUB_EFI_LIGHTGRAY): Likewise.
50493 (GRUB_EFI_BRIGHT): Likewise.
50494 (GRUB_EFI_DARKGRAY): Likewise.
50495 (GRUB_EFI_LIGHTBLUE): Likewise.
50496 (GRUB_EFI_LIGHTGREEN): Likewise.
50497 (GRUB_EFI_LIGHTCYAN): Likewise.
50498 (GRUB_EFI_LIGHTRED): Likewise.
50499 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50500 (GRUB_EFI_YELLOW): Likewise.
50501 (GRUB_EFI_WHITE): Likewise.
50502 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50503 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50504 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50505 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50506 (GRUB_EFI_BACKGROUND_RED): Likewise.
50507 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50508 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50509 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50510 (GRUB_EFI_TEXT_ATTR): Likewise.
50511
50512 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50513 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50514 (kernel_mod_HEADERS): Added efi/time.h.
50515
50516 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50517
50518 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50519 include/grub/efi/api.h, include/grub/efi/console_control.h,
50520 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50521 include/grub/i386/efi/time.h, kern/efi/efi.c,
50522 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50523 and util/i386/efi/grub-mkimage.c.
50524
50525 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50526
50527 * genmk.rb (PModule#rule): Do not export symbols if
50528 #{prefix}_EXPORTS is set to "no".
50529
50530 * conf/i386-efi.mk: New file.
50531 * conf/i386-efi.rmk: Likewise.
50532 * include/grub/efi/api.h: Likewise.
50533 * include/grub/efi/console_control.h: Likewise.
50534 * include/grub/efi/efi.h: Likewise.
50535 * include/grub/efi/pe32.h: Likewise.
50536 * include/grub/i386/efi/time.h: Likewise.
50537 * kern/efi/efi.c: Likewise.
50538 * kern/i386/efi/init.c: Likewise.
50539 * kern/i386/efi/startup.S: Likewise.
50540 * util/i386/efi/grub-mkimage.c: Likewise.
50541
50542 2006-04-17 Marco Gerards <marco@gnu.org>
50543
50544 * include/grub/script.h: Include <grub/parser.h> and
50545 "grub_script.tab.h".
50546 (struct grub_lexer_param): New struct.
50547 (struct grub_parser_param): Likewise.
50548 (grub_script_create_arglist): Pass the state in an argument.
50549 (grub_script_add_arglist): Likewise.
50550 (grub_script_create_cmdline): Likewise.
50551 (grub_script_create_cmdblock): Likewise.
50552 (grub_script_create_cmdif): Likewise.
50553 (grub_script_create_cmdmenu): Likewise.
50554 (grub_script_add_cmd): Likewise.
50555 (grub_script_arg_add): Likewise.
50556 (grub_script_lexer_ref): Likewise.
50557 (grub_script_lexer_deref): Likewise.
50558 (grub_script_lexer_record_start): Likewise.
50559 (grub_script_lexer_record_stop): Likewise.
50560 (grub_script_mem_record): Likewise.
50561 (grub_script_mem_record_stop): Likewise.
50562 (grub_script_malloc): Likewise.
50563 (grub_script_yylex): Likewise.
50564 (grub_script_yyparse): Likewise.
50565 (grub_script_yyerror): Likewise.
50566 (grub_script_yylex): Likewise.
50567 (grub_script_lexer_init): Return the state.
50568
50569 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50570 (grub_script_lexer_done): Likewise.
50571 (grub_script_lexer_getline): Likewise.
50572 (grub_script_lexer_refs): Likewise.
50573 (script): Likewise.
50574 (newscript): Likewise.
50575 (record): Likewise.
50576 (recording): Likewise.
50577 (recordpos): Likewise.
50578 (recordlen): Likewise.
50579 (grub_script_lexer_init): Return the state instead of setting
50580 global variables.
50581 (grub_script_lexer_ref): Use the newly added argument for state
50582 instead of globals.
50583 (grub_script_lexer_deref): Likewise.
50584 (grub_script_lexer_record_start): Likewise.
50585 (grub_script_lexer_record_stop): Likewise.
50586 (recordchar): Likewise.
50587 (nextchar): Likewise.
50588 (grub_script_yylex2): Likewise.
50589 (grub_script_yylex): Likewise.
50590 (grub_script_yyerror): Likewise.
50591
50592 * normal/parser.y (func_mem): Removed variable.
50593 (menu_entry): Likewise.
50594 (err): Likewise.
50595 (%lex-param): New parser option.
50596 (%parse-param): Likewise.
50597 (script): Always return the AST.
50598 (argument): Pass the state around.
50599 (arguments): Likewise.
50600 (grubcmd): Likewise.
50601 (commands): Likewise.
50602 (function): Likewise.
50603 (menuentry): Likewise.
50604 (if_statement): Likewise.
50605 (if): Likewise.
50606
50607 * normal/script.c (grub_script_memused): Removed variable.
50608 (grub_script_parsed): Likewise.
50609 (grub_script_malloc): Added a state argument. Use that instead of
50610 global variables.
50611 (grub_script_mem_record): Likewise.
50612 (grub_script_mem_record_stop): Likewise.
50613 (grub_script_arg_add): Likewise.
50614 (grub_script_add_arglist): Likewise.
50615 (grub_script_create_cmdline): Likewise.
50616 (grub_script_create_cmdif): Likewise.
50617 (grub_script_create_cmdmenu): Likewise.
50618 (grub_script_add_cmd): Likewise.
50619 (grub_script_parse): Setup the state before calling the parser.
50620
50621 2006-04-16 Marco Gerards <marco@gnu.org>
50622
50623 * normal/command.c (grub_command_init): Remove the title command.
50624
50625 * normal/lexer.c (grub_script_yylex): Renamed from this...
50626 (grub_script_yylex2): ... to this.
50627 (grub_script_yylex): New function. Temporary
50628 introduced to filter some tokens.
50629 (grub_script_yyerror): Print a newline.
50630
50631 * normal/main.c (read_config_file): Output information about the
50632 lines that contain errors. Wait for a key after all lines have
50633 been processed. Don't return an empty menu.
50634
50635 * normal/parser.y (func_mem): Don't initialize.
50636 (menu_entry): Likewise.
50637 (err): New variable.
50638 (script): Don't return anything when an error was encountered.
50639 (ws, returns): Removed rules.
50640 (argument): Disabled concatenated variable support.
50641 (arguments): Remove explicit separators.
50642 (grubcmd): Likewise.
50643 (function): Likewise.
50644 (menuentry): Likewise.
50645 (if): Likewise.
50646 (commands): Likewise. Add error handling.
50647
50648 * normal/script.c (grub_script_create_cmdline): If
50649 `grub_script_parsed' is 0, assume the parser encountered an error.
50650
50651 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50652
50653 * configure.ac: Add support for EFI. Fix the typo
50654 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50655
50656 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50657
50658 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50659 foreign multibyte characters should be shown correctly.
50660
50661 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50662
50663 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50664 calculation.
50665 (read_config_file): Made it to close file before returning.
50666
50667 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50668
50669 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50670 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50671 video/i386/pc/vbefill.c.
50672
50673 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50674 video/i386/pc/vbefill.c.
50675
50676 * include/grub/video.h (grub_video_blit_format): New enum.
50677 (grub_video_mode_info): Added new member blit_format.
50678 (grub_video_get_blit_format): New function prototype.
50679
50680 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50681 function prototype.
50682 (grub_video_vbe_map_rgb): Likewise.
50683 (grub_video_vbe_unmap_color): Likewise.
50684
50685 * include/grub/i386/pc/vbeblit.h: New file.
50686
50687 * include/grub/i386/pc/vbefill.h: New file.
50688
50689 * video/video.c (grub_video_get_blit_format): New function.
50690 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50691 (grub_video_vbe_map_rgb): Likewise.
50692 (grub_video_vbe_unmap_color): Likewise.
50693
50694 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50695 optimized fills.
50696 (grub_video_vbe_blit_render_target): Changed to use more optimized
50697 blits.
50698 (grub_video_vbe_setup): Added detection for optimized settings.
50699 (grub_video_vbe_create_render_target): Likewise.
50700
50701 * video/i386/pc/vbeblit.c: New file.
50702
50703 * video/i386/pc/vbefill.c: New file.
50704
50705 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50706
50707 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50708 here...
50709
50710 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50711 parsing to support both hex and dec ranges. If filename was missing
50712 show usage information.
50713
50714 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50715
50716 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50717 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50718
50719 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50720 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50721 (video_mod_SOURCES): Added.
50722 (video_mod_CFLAGS): Likewise.
50723 (video_mod_LDFLAGS): Likewise.
50724 (gfxterm_mod_SOURCES): Likewise.
50725 (gfxterm_mod_CFLAGS): Likewise.
50726 (gfxterm_mod_LDFLAGS): Likewise.
50727 (videotest_mod_SOURCES): Likewise.
50728 (videotest_mod_CFLAGS): Likewise.
50729 (videotest_mod_LDFLAGS): Likewise.
50730 (vesafb_mod_SOURCES): Removed.
50731 (vesafb_mod_CFLAGS): Likewise.
50732 (vesafb_mod_LDFLAGS): Likewise.
50733 (vga_mod_SOURCES): Likewise.
50734 (vga_mod_CFLAGS): Likewise.
50735 (vga_mod_LDFLAGS): Likewise.
50736
50737 * commands/videotest.c: New file.
50738
50739 * font/manager.c (fill_with_default_glyph): Modified to use
50740 grub_font_glyph.
50741 (grub_font_get_glyph): Likewise.
50742 (fontmanager): Renamed from this...
50743 (font_manager): ... to this.
50744
50745 * include/grub/font.h (grub_font_glyph): Added new structure.
50746 (grub_font_get_glyph): Modified to use grub_font_glyph.
50747
50748 * include/grub/misc.h (grub_abs): Added as inline function.
50749
50750 * include/grub/video.h: New file.
50751
50752 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50753 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50754 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50755 (grub_vbe_get_controller_info): Renamed from this...
50756 (grub_vbe_bios_get_controller_info): ... to this.
50757 (grub_vbe_get_mode_info): Renamed from this...
50758 (grub_vbe_bios_get_mode_info): ... to this.
50759 (grub_vbe_set_mode): Renamed from this...
50760 (grub_vbe_bios_set_mode): ... to this.
50761 (grub_vbe_get_mode): Renamed from this...
50762 (grub_vbe_bios_get_mode): ... to this.
50763 (grub_vbe_set_memory_window): Renamed from this...
50764 (grub_vbe_bios_set_memory_window): ... to this.
50765 (grub_vbe_get_memory_window): Renamed from this...
50766 (grub_vbe_bios_get_memory_window): ... to this.
50767 (grub_vbe_set_scanline_length): Renamed from this...
50768 (grub_vbe_set_scanline_length): ... to this.
50769 (grub_vbe_get_scanline_length): Renamed from this...
50770 (grub_vbe_bios_get_scanline_length): ... to this.
50771 (grub_vbe_set_display_start): Renamed from this...
50772 (grub_vbe_bios_set_display_start): ... to this.
50773 (grub_vbe_get_display_start): Renamed from this...
50774 (grub_vbe_bios_get_display_start): ... to this.
50775 (grub_vbe_set_palette_data): Renamed from this...
50776 (grub_vbe_bios_set_palette_data): ... to this.
50777 (grub_vbe_set_pixel_rgb): Removed.
50778 (grub_vbe_set_pixel_index): Likewise.
50779
50780 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50781 from this...
50782 (grub_vbe_bios_get_controller_info): ... to this.
50783 (grub_vbe_get_mode_info): Renamed from this...
50784 (grub_vbe_bios_get_mode_info): ... to this.
50785 (grub_vbe_set_mode): Renamed from this...
50786 (grub_vbe_bios_set_mode): ... to this.
50787 (grub_vbe_get_mode): Renamed from this...
50788 (grub_vbe_bios_get_mode): ... to this.
50789 (grub_vbe_set_memory_window): Renamed from this...
50790 (grub_vbe_bios_set_memory_window): ... to this.
50791 (grub_vbe_get_memory_window): Renamed from this...
50792 (grub_vbe_bios_get_memory_window): ... to this.
50793 (grub_vbe_set_scanline_length): Renamed from this...
50794 (grub_vbe_set_scanline_length): ... to this.
50795 (grub_vbe_get_scanline_length): Renamed from this...
50796 (grub_vbe_bios_get_scanline_length): ... to this.
50797 (grub_vbe_set_display_start): Renamed from this...
50798 (grub_vbe_bios_set_display_start): ... to this.
50799 (grub_vbe_get_display_start): Renamed from this...
50800 (grub_vbe_bios_get_display_start): ... to this.
50801 (grub_vbe_set_palette_data): Renamed from this...
50802 (grub_vbe_bios_set_palette_data): ... to this.
50803 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50804 getting corrupted after calling it. Added more pushes and pops.
50805 (grub_vbe_bios_set_mode): Likewise.
50806 (grub_vbe_bios_get_mode): Likewise.
50807 (grub_vbe_bios_get_memory_window): Likewise.
50808 (grub_vbe_bios_set_scanline_length): Likewise.
50809 (grub_vbe_bios_get_scanline_length): Likewise.
50810 (grub_vbe_bios_get_display_start): Likewise.
50811 (grub_vbe_bios_set_palette_data): Likewise.
50812
50813 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50814 (cl_insert): Likewise.
50815 (cl_delete): Likewise.
50816
50817 * term/gfxterm.c: New file.
50818
50819 * term/i386/pc/vesafb.c: Removed file.
50820
50821 * video/video.c: New file.
50822
50823 * video/i386/pc/vbe.c (real2pm): Added new function.
50824 (grub_video_vbe_draw_pixel): Likewise.
50825 (grub_video_vbe_get_video_ptr): Likewise.
50826 (grub_video_vbe_get_pixel): Likewise
50827 (grub_video_vbe_init): Likewise.
50828 (grub_video_vbe_fini): Likewise.
50829 (grub_video_vbe_setup): Likewise.
50830 (grub_video_vbe_get_info): Likewise.
50831 (grub_video_vbe_set_palette): Likewise.
50832 (grub_video_vbe_get_palette): Likewise.
50833 (grub_video_vbe_set_viewport): Likewise.
50834 (grub_video_vbe_get_viewport): Likewise.
50835 (grub_video_vbe_map_color): Likewise.
50836 (grub_video_vbe_map_rgb): Likewise.
50837 (grub_video_vbe_map_rgba): Likewise.
50838 (grub_video_vbe_unmap_color): Likewise.
50839 (grub_video_vbe_fill_rect): Likewise.
50840 (grub_video_vbe_blit_glyph): Likewise.
50841 (grub_video_vbe_blit_bitmap): Likewise.
50842 (grub_video_vbe_blit_render_target): Likewise.
50843 (grub_video_vbe_scroll): Likewise.
50844 (grub_video_vbe_swap_buffers): Likewise.
50845 (grub_video_vbe_create_render_target): Likewise.
50846 (grub_video_vbe_delete_render_target): Likewise.
50847 (grub_video_vbe_set_active_render_target): Likewise.
50848 (grub_vbe_set_pixel_rgb): Remove function.
50849 (grub_vbe_set_pixel_index): Likewise.
50850 (index_color_mode): Remove static variable.
50851 (active_mode): Likewise.
50852 (framebuffer): Likewise.
50853 (bytes_per_scan_line): Likewise.
50854 (grub_video_vbe_adapter): Added new static variable.
50855 (framebuffer): Likewise.
50856 (render_target): Likewise.
50857 (initial_mode): Likewise.
50858 (mode_in_use): Likewise.
50859 (mode_list): Likewise.
50860
50861 2006-03-10 Marco Gerards <marco@gnu.org>
50862
50863 * configure.ac (AC_INIT): Bumped to 1.93.
50864
50865 * DISTLIST: Added `include/grub/hfs.h'.
50866
50867 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50868
50869 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50870 18H, which might help the BIOS falling back to next boot media.
50871
50872 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50873
50874 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50875 Poe Chen <poe.poechen@gmail.com>.
50876
50877 2006-01-17 Marco Gerards <marco@gnu.org>
50878
50879 * include/grub/normal.h: Include <grub/script.h>.
50880 (grub_command_list): Removed struct.
50881 (grub_command_list_t): Removed type.
50882 (grub_menu_entry): Remove members `num' and `command_list'. Add
50883 members `commands' and `sourcecode'.
50884 * include/grub/script.h: Add inclusion guards.
50885 (grub_script_cmd_menuentry): New struct.
50886 (grub_script_execute_menuentry): New prototype.
50887 (grub_script_lexer_record_start): Likewise.
50888 (grub_script_lexer_record_stop): Likewise.
50889 * normal/execute.c (grub_script_execute_menuentry): New function.
50890 * normal/lexer.c (record, recording, recordpos, recordlen): New
50891 variables.
50892 (grub_script_lexer_record_start): New function.
50893 (grub_script_lexer_record_stop): Likewise.
50894 (recordchar): Likewise.
50895 (nextchar): Likewise.
50896 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50897 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50898 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50899 (current_menu): New variable.
50900 (free_menu): Mainly rewritten.
50901 (grub_normal_menu_addentry): New function.
50902 (read_config_file): Rewritten.
50903 * normal/menu.c (run_menu_entry): Mainly rewritten.
50904 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50905 the menu entry.
50906 (run): Mainly rewritten.
50907 * normal/parser.y (menu_entry): New variable.
50908 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50909 (menuentry): New rule.
50910 (command): Add `menuentry'.
50911 (if_statement): Allow additional returns before `fi'.
50912 * normal/script.c (grub_script_create_cmdmenu): New function.
50913
50914 2006-01-03 Marco Gerards <marco@gnu.org>
50915
50916 * INSTALL: GNU Bison is required.
50917 * configure.ac: Rewritten the test to detect Bison.
50918 * Makefile.in (YACC): New variable. Reported by Xun Sun
50919 <xun.sun.cn@gmail.com>.
50920
50921 2006-01-03 Marco Gerards <marco@gnu.org>
50922
50923 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50924 the HFS+ filesystem to filesystem blocks.
50925 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50926 GCC warning is silenced.
50927
50928 2006-01-03 Marco Gerards <marco@gnu.org>
50929
50930 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50931 read from disk from big endian to host byte order.
50932
50933 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50934
50935 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50936 documentation.
50937 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50938 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50939 embedded HFS+ filesystem.
50940 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50941 (grub_hfs_sblock): Move from here...
50942 * include/grub/hfs.h: To here... New file.
50943 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50944 documentation.
50945 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50946 New macros.
50947 (grub_hfsplus_volheader): Change type of member `magic' to
50948 `grub_uint16_t'.
50949 (grub_hfsplus_data): Add new member `embedded_offset'.
50950 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50951 returned block.
50952 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50953 Calculate the offset.
50954
50955 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50956
50957 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50958 Removed.
50959 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50960
50961 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50962
50963 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50964 ENV->NAME is NULL after allocating ENV->VALUE.
50965
50966 2005-12-25 Marco Gerards <marco@gnu.org>
50967
50968 * kern/env.c (grub_env_set): Rewritten the error handling code.
50969
50970 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50971
50972 * geninit.sh: Made more robust, and more portable.
50973
50974 2005-12-25 Marco Gerards <marco@gnu.org>
50975
50976 Add support for Apple HFS+ filesystems.
50977
50978 * fs/hfsplus.c: New file.
50979
50980 * DISTLIST: Added `fs/hfsplus.c'.
50981
50982 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50983 (hfsplus_mod_SOURCES): New variable.
50984 (hfsplus_mod_CFLAGS): Likewise.
50985 (hfsplus_mod_LDFLAGS): Likewise.
50986 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50987 (grub_setup_SOURCES): Likewise.
50988 (grub_mkdevicemap_SOURCES): Likewise.
50989 (grub_emu_SOURCES): Likewise.
50990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50991
50992 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50993
50994 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50995
50996 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50997
50998 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50999 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51000 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51001 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51002 normal/lexer.c, normal/parser.y, normal/script.c, and
51003 partmap/gpt.c.
51004 Removed kern/sparc64/cache.c.
51005
51006 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51007 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51008 grub_emu_init.c.
51009
51010 * configure.ac (AC_INIT): Bumped to 1.92.
51011
51012 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51013
51014 * kern/err.c (grub_error_push): Added new function to support error
51015 stacks.
51016 (grub_error_pop): Likewise.
51017 (grub_error_stack_items): New local variable to support error stacks.
51018 (grub_error_stack_pos): Likewise.
51019 (grub_error_stack_assert): Likewise.
51020 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51021 stack depth.
51022 (grub_print_error): Added support to print errors from error stack.
51023
51024 * include/grub/err.h (grub_error_push): Added function prototype.
51025 (grub_error_pop): Likewise.
51026
51027 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51028
51029 * configure.ac: Accept `powerpc64' as host_cpu.
51030 (amd64): Rename to `biarch32'.
51031
51032 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51033 non-cacheline-aligned addresses.
51034
51035 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51036 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51037 if `size' is non-zero.
51038
51039 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51040
51041 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51042 and `cd' to make sure the filename is not prefixed with a
51043 directory name.
51044 (pkgdata_MODULES): Add `gpt.mod'.
51045 (gpt_mod_SOURCES): New variable.
51046 (gpt_mod_CFLAGS): Likewise.
51047 (gpt_mod_LDFLAGS): Likewise.
51048
51049 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51050
51051 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51052 New macro.
51053
51054 * partmap/gpt.c: New file.
51055
51056 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51057 GPT partition map is detected.
51058
51059 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51060
51061 * commands/i386/pc/play.c: New file.
51062 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51063 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51064 macros.
51065
51066 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51067
51068 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51069 ((unused))' to silence gcc warning.
51070
51071 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51072
51073 * configure.ac: Correct `AC_PROG_YACC' test.
51074
51075 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51076
51077 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51078 check before installing files.
51079
51080 2005-11-22 Mike Small <smallm@panix.com>
51081
51082 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51083 number regex so multidigit numbers are recognized correctly.
51084
51085 2005-11-22 Mike Small <smallm@panix.com>
51086
51087 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51088 debugging message before attempting to claim memory.
51089 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51090 multiple addresses in case of failure.
51091
51092 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51093
51094 * term/tparm.c (get_space): Remove empty `if' statement.
51095
51096 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51097
51098 * kern/parser.c (check_varstate): Rename `state' to 's'.
51099
51100 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51101
51102 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51103 variable definitions to the beginning of each function. Sort stack
51104 variables by size.
51105 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51106 `buf' argument to `char *'.
51107
51108 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51109
51110 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51111 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51112 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51113 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51114 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51115 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51116 configfile.mod, search.mod, gzio.mod and test.mod.
51117 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51118 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51119 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51120 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51121 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51122 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51123 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51124 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51125 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51126 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51127 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51128 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51129 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51130 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51131 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51132 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51133 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51134 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51135 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51136 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51137 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51138 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51139 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51140
51141 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51142 `grep --include'.
51143 (pkgdata_MODULES): Add test.mod.
51144
51145 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51146
51147 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51148 appending to variables with "+=".
51149 (PModule): Use full pathname to generate *.lst filenames.
51150
51151 * Makefile.in: Fixed list rules moved from genmk.rb.
51152 (.DELETE_ON_ERROR): New special target.
51153 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51154
51155 * conf/i386-pc.rmk: Include conf/common.mk.
51156 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51157 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51158 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51159 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51160 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51161 configfile.mod, search.mod, gzio.mod and test.mod.
51162 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51163 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51164 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51165 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51166 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51167 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51168 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51169 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51170 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51171 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51172 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51173 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51174 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51175 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51176 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51177 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51178 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51179 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51180 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51181 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51182 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51183 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51184 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51185 here...
51186 * conf/common.rmk: ... to here. New file.
51187
51188 * conf/common.mk: New file.
51189
51190 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51191
51192 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51193 (grub_script.tab.c): ... here.
51194
51195 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51196 (grub_script.tab.c): ... here.
51197
51198 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51199 (grub_script.tab.c): ... here.
51200
51201 * normal/command.c (grub_command_find): Fixed a memory leak of
51202 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51203
51204 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51205
51206 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51207 "@" which marks the start of a comment on ARM.
51208 (VARIABLE): Likewise.
51209
51210 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51211
51212 Add support for Linux/ADFS partition tables.
51213
51214 * partmap/acorn.c: New file.
51215
51216 * include/grub/acorn_filecore.h: Likewise.
51217
51218 * DISTLIST: Added `partmap/acorn.c' and
51219 `include/grub/acorn_filecore.h'.
51220
51221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51222 `partmap/acorn.c'.
51223 (pkgdata_MODULES): Add `acorn.mod'.
51224 (acorn_mod_SOURCES): New variable.
51225 (acorn_mod_CFLAGS): Likewise.
51226
51227 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51228 `partmap/acorn.c'.
51229 (pkgdata_MODULES): Add `acorn.mod'.
51230 (acorn_mod_SOURCES): New variable.
51231 (acorn_mod_CFLAGS): Likewise.
51232
51233 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51234 (pkgdata_MODULES): Add `acorn.mod'.
51235 (acorn_mod_SOURCES): New variable.
51236 (acorn_mod_CFLAGS): Likewise.
51237 (acorn_mod_LDFLAGS): Likewise.
51238
51239 * include/types.h (grub_disk_addr_t): New typedef.
51240
51241 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51242
51243 * geninit.sh: New file.
51244
51245 * geninitheader.sh: Likewise.
51246
51247 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51248 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51249 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51250 * commands/configfile.c (grub_configfile_init)
51251 (grub_configfile_fini): Likewise.
51252 * commands/default.c (grub_default_init, grub_default_fini):
51253 Likewise.
51254 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51255 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51256 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51257 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51258 Likewise.
51259 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51260 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51261 Likewise.
51262 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51263 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51264 Likewise.
51265 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51266 Likewise.
51267 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51268 Likewise.
51269 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51270 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51271 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51272 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51273 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51274 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51275 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51276 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51277 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51278 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51279 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51280 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51281 * partmap/amiga.c (grub_amiga_partition_map_init)
51282 (grub_amiga_partition_map_fini): Likewise.
51283 * partmap/apple.c (grub_apple_partition_map_init)
51284 (grub_apple_partition_map_fini): Likewise.
51285 * partmap/pc.c (grub_pc_partition_map_init)
51286 (grub_pc_partition_map_fini): Likewise.
51287 * partmap/sun.c (grub_sun_partition_map_init,
51288 grub_sun_partition_map_fini): Likewise.
51289 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51290 Likewise.
51291
51292 * util/grub-emu.c: Include <grub_modules_init.h>.
51293 (main): Don't initialize and de-initialize any modules directly,
51294 use `grub_init_all' and `grub_fini_all' instead.
51295
51296 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51297 `grub_vesafb_mod_init'.
51298 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51299 all users.
51300 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51301 `grub_vga_mod_init'. Updated all users.
51302 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51303
51304 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51305 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51306 rules.
51307
51308 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51309 Generate a function to initialize the module in utilities.
51310 Updated all callers.
51311 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51312 initialize the module in utilities. Updated all callers.
51313
51314 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51315
51316 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51317 escape sequence and a literal ^L to clear the screen.
51318
51319 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51320 when returning from Open Firmware.
51321
51322 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51323
51324 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51325 (grub_ofconsole_height): Likewise.
51326 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51327 manually insert a '\n'.
51328 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51329 `grub_ofconsole_height'. Return early if these are already set.
51330
51331 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51332
51333 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51334 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51335 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51336 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51337 and `normal/script.c'.
51338 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51339 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51340 (test_mod_SOURCES): New variable.
51341 (test_mod_CFLAGS): Likewise.
51342 (test_mod_LDFLAGS): Likewise.
51343 (pkgdata_MODULES): Add `test.mod'.
51344 (grub_script.tab.c): New rule.
51345 (grub_script.tab.h): Likewise.
51346
51347 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51348
51349 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51350 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51351 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51352 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51353 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51354 (test_mod_SOURCES): New variable.
51355 (test_mod_CFLAGS): Likewise.
51356 (pkgdata_MODULES): Add `test.mod'.
51357 (grub_script.tab.c): New rule.
51358 (grub_script.tab.h): Likewise.
51359
51360 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51361
51362 Add initial scripting support.
51363
51364 * commands/test.c: New file.
51365 * include/grub/script.h: Likewise.
51366 * normal/execute.c: Likewise.
51367 * normal/function.c: Likewise.
51368 * normal/lexer.c: Likewise.
51369 * normal/parser.y: Likewise.
51370 * normal/script.c: Likewise.
51371
51372 * configure.ac: Add `AC_PROG_YACC' test.
51373
51374 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51375 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51376 `normal/function.c' and `normal/script.c'.
51377 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51378 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51379 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51380 variables.
51381 (pkgdata_MODULES): Add `test.mod'.
51382 (grub_script.tab.c): New rule.
51383 (grub_script.tab.h): Likewise.
51384
51385 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51386
51387 * include/grub/normal.h (grub_test_init): New prototype.
51388 (grub_test_fini): Likewise.
51389
51390 * normal/command.c: Include <grub/script.h>.
51391 (grub_command_execute): Rewritten.
51392
51393 * util/grub-emu.c (main): Call `grub_test_init' and
51394 `grub_test_fini'.
51395
51396 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51397
51398 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51399 to 0.
51400 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51401 there are no pending characters.
51402
51403 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51404
51405 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51406 `grub_strndup' to drop device arguments. Replace unnecessary
51407 `grub_strndup' with `grub_strdup'.
51408
51409 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51410
51411 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51412 `debug' environment variable has been set.
51413
51414 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51415
51416 * Makefile.in (install-local): Use $(DATA).
51417 (uninstall): Likewise.
51418 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51419 (sbin_UTILITIES): ... to here.
51420 (sbin_SCRIPTS): New variable.
51421 (grub_install_SOURCES): New variable.
51422 * util/powerpc/ieee1275/grub-install.in: New file.
51423 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51424 variable.
51425 (add_segments): Call `grub_util_get_path'.
51426
51427 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51428
51429 From Timothy Baldwin:
51430 * commands/ls.c (grub_ls_list_files): Close FILE with
51431 grub_file_close.
51432 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51433
51434 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51435
51436 * include/grub/parser.h: New file.
51437
51438 * kern/parser.c: Likewise.
51439
51440 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51441 (grub_setup_SOURCES): Likewise.
51442 (grub_probefs_SOURCES): Likewise.
51443 (grub_emu_SOURCES): Likewise.
51444 (kernel_img_HEADERS): Add `parser.h'.
51445
51446 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51447 (grub_emu_SOURCES): Add `kern/parser.c'.
51448 (grubof_SOURCES): Likewise.
51449
51450 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51451 (grubof_SOURCES): Add `kern/parser.c'.
51452
51453 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51454
51455 * kern/misc.c (grub_split_cmdline): Removed function.
51456
51457 * kern/rescue.c: Include <grub/parser.h>.
51458 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51459 of `grub_split_cmdline'.
51460
51461 * normal/command.c: Include <grub/parser.h>.
51462 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51463 of `grub_split_cmdline'.
51464
51465 * normal/completion.c: Include <grub/parser.h>.
51466 (cmdline_state): New variable.
51467 (iterate_dir): End the filename with a quote depending on the
51468 command line state.
51469 (get_state): new function.
51470 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51471 split the arguments and determine the current argument. When the
51472 argument string is not quoted, escape all spaces.
51473
51474 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51475
51476 * normal/sparc64/setjmp.S: New file.
51477
51478 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51479
51480 * include/grub/sparc64/libgcc.h: New file.
51481 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51482 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51483 normal/sparc64/setjmp.c.
51484
51485 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51486
51487 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51488 * kern/sparc64/cache.S: New file.
51489 * kern/sparc64/cache.c: Removed.
51490 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51491 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51492 -mtune=ultrasparc.
51493 (COMMON_LDFLAGS): Add -melf64_sparc.
51494 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51495 (grubof_SOURCES): Use cache.S instead of cache.c.
51496 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51497 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51498 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51499 commented though.
51500 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51501 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51502 (linux_mod_CFLAGS): Commented out.
51503 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51504 out because module isn't built.
51505 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51506 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51507 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51508 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51509 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51510 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51511 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51512 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51513 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51514 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51515 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51516 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51517 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51518 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51519
51520 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51521
51522 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51523 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51524 longer, because HFS should not be used on PC.
51525
51526 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51527
51528 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51529 consistently within the loop.
51530
51531 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51532
51533 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51534 directory can not be read.
51535
51536 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51537
51538 * configure.ac (AC_INIT): Increase the version number to 1.91.
51539
51540 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51541 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51542 term/i386/pc/serial.c.
51543
51544 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51545
51546 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51547 file size must be permitted.
51548
51549 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51550 between %ah and %al.
51551
51552 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51553
51554 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51555 grub_uint64_t.
51556 Call the hook with a NUL-terminated filename.
51557 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51558 grub_cpu_to_be32.
51559
51560 * kern/term.c (cursor_state): New variable.
51561 (grub_term_set_current): Reset the cursor state on a new
51562 terminal.
51563 (grub_setcursor): Rewritten to use CURSOR_STATE.
51564 (grub_getcursor): New function.
51565
51566 * include/grub/term.h (grub_getcursor): New prototype.
51567
51568 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51569 integers on ARM. Reported by Timothy Baldwin
51570 <T.E.Baldwin99@members.leeds.ac.uk>.
51571
51572 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51573
51574 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51575 allocated.
51576 (grub_sfs_dir): Likewise.
51577
51578 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51579
51580 Add support for the SFS filesystem.
51581
51582 * fs/sfs.c: New file.
51583
51584 * DISTLIST: Added `fs/sfs.c'.
51585
51586 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51587 (grub_probefs_SOURCES): Likewise.
51588 (grub_emu_SOURCES): Likewise.
51589 (pkgdata_MODULES): Add `sfs.mod'.
51590 (sfs_mod_SOURCES): New variable.
51591 (sfs_mod_CFLAGS): Likewise.
51592 (sfs_mod_LDFLAGS): Likewise.
51593
51594 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51595 (pkgdata_MODULES): Add `sfs.mod'.
51596 (sfs_mod_SOURCES): New variable.
51597 (sfs_mod_CFLAGS): Likewise.
51598
51599 * util/grub-emu.c (main): Call `grub_sfs_init' and
51600 `grub_sfs_fini'.
51601
51602 * include/grub/fs.h (grub_sfs_init): New prototype.
51603 (grub_sfs_fini): Likewise.
51604
51605 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51606
51607 Add support for the AFFS filesystem.
51608
51609 * fs/affs.c: New file.
51610
51611 * DISTLIST: Added `fs/affs.c'.
51612
51613 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51614 (grub_probefs_SOURCES): Likewise.
51615 (grub_emu_SOURCES): Likewise.
51616 (pkgdata_MODULES): Add `affs.mod'.
51617 (affs_mod_SOURCES): New variable.
51618 (affs_mod_CFLAGS): Likewise.
51619 (affs_mod_LDFLAGS): Likewise.
51620
51621 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51622 (pkgdata_MODULES): Add `affs.mod'.
51623 (affs_mod_SOURCES): New variable.
51624 (affs_mod_CFLAGS): Likewise.
51625
51626 * util/grub-emu.c (main): Call `grub_affs_init' and
51627 `grub_affs_fini'.
51628
51629 * include/grub/fs.h (grub_affs_init): New prototype.
51630 (grub_affs_fini): Likewise.
51631
51632 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51633
51634 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51635
51636 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51637
51638 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51639 `-m32' to CFLAGS.
51640
51641 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51642 linking.
51643
51644 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51645 (COMMON_LDFLAGS): New variable.
51646 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51647 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51648 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51649 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51650 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51651 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51652 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51653 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51654 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51655 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51656 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51657 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51658 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51659 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51660 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51661 variables.
51662 (normal_mod_ASFLAGS): Add `-m32'.
51663
51664 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51665 (grub_host_size_t, grub_host_ssize_t): New types.
51666 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51667 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51668 `GRUB_HOST_SIZEOF_VOID_P'.
51669
51670 * include/grub/kernel.h (struct grub_module_header): Type of
51671 member offset changed to `grub_host_off_t'. Type of member size
51672 changed to `grub_host_size_t'.
51673 (struct grub_module_info): Type of member offset changed to
51674 `grub_host_off_t'. Type of member size changed to
51675 `grub_host_size_t'.
51676
51677 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51678
51679 Make GRUB's kernel compliant to Multiboot Specification.
51680
51681 * kern/i386/pc/startup.S (multiboot_header): New label.
51682 (multiboot_entry): Likewise.
51683 (multiboot_trampoline): Likewise.
51684
51685 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51686 Increased to 0x4A0.
51687
51688 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51689 put parentheses after a question mark.
51690 [!GRUB_UTIL] (my_mod): New variable.
51691
51692 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51693
51694 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51695
51696 Adds support for the XFS filesystem. Btrees are not supported
51697 yet.
51698
51699 * fs/xfs.c: New file.
51700
51701 * DISTLIST: Added `fs/xfs.c'.
51702
51703 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51704 (grub_probefs_SOURCES): Likewise.
51705 (grub_emu_SOURCES): Likewise.
51706 (pkgdata_MODULES): Add `xfs.mod'.
51707 (xfs_mod_SOURCES): New variable.
51708 (xfs_mod_CFLAGS): Likewise.
51709
51710 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51711 (pkgdata_MODULES): Add `xfs.mod'.
51712 (xfs_mod_SOURCES): New variable.
51713 (xfs_mod_CFLAGS): Likewise.
51714
51715 * util/grub-emu.c (main): Call `grub_xfs_init' and
51716 `grub_xfs_fini'.
51717
51718 * include/grub/fs.h (grub_xfs_init): New prototype.
51719 (grub_xfs_fini): Likewise.
51720
51721
51722 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51723
51724 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51725 color modes, allow greater than 16 colors to be configured as
51726 a default palette.
51727
51728 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51729
51730 * normal/completion.c (complete_arguments): Add the qualifier
51731 const into OPTIONS.
51732
51733 From Omniflux <omniflux+lists@omniflux.com>:
51734 * include/grub/terminfo.h: New file.
51735 * include/grub/tparm.h: Likewise.
51736 * include/grub/i386/pc/serial.h: Likewise.
51737 * term/terminfo.c: Likewise.
51738 * term/tparm.c: Likewise.
51739 * term/i386/pc/serial.c: Likewise.
51740 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51741 serial.mod.
51742 (terminfo_mod_SOURCES): New variable.
51743 (terminfo_mod_CFLAGS): Likewise.
51744 (serial_mod_SOURCES): Likewise.
51745 (serial_mod_CFLAGS): Likewise.
51746
51747 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51748
51749 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51750 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51751 and kern/powerpc/ieee1275/cmain.c, respectively.
51752
51753 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51754 * kern/powerpc/ieee1275/crt0.S: ... here.
51755
51756 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51757 * kern/powerpc/ieee1275/cmain.c: ... here.
51758
51759 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51760 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51761 instead of boot/powerpc/ieee1275/crt0.S and
51762 boot/powerpc/ieee1275/cmain.c, respectively.
51763
51764 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51765 sectors. It was not used anyway.
51766
51767 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51768
51769 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51770 `unused parameter' warning.
51771
51772 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51773
51774 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51775 function.
51776 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51777 getcharwidth.
51778
51779 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51780
51781 * include/grub/normal.h (enum grub_completion_type): Added
51782 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51783
51784 * normal/cmdline.c (print_completion): Handle
51785 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51786 * normal/menu_entry.c (store_completion): Likewise.
51787
51788 * normal/completion.c (complete_arguments): New function.
51789 (grub_normal_do_completion): Call `complete_arguments' when the
51790 current words start with a dash.
51791
51792 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51793
51794 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51795 `gzio.mod' instead of `io.mod').
51796
51797 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51798
51799 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51800 (DISTDIRS): Added io and video.
51801 Rewrite the search routine to make an output consistently.
51802
51803 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51804 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51805 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51806 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51807 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51808 util/powerpc/ieee1275/misc.c.
51809
51810 * include/grub/gzio.h: New file.
51811 * io/gzio.c: Likewise.
51812
51813 * kern/file.c (grub_file_close): Call grub_device_close only if
51814 FILE->DEVICE is not NULL.
51815
51816 * include/grub/mm.h [!NULL] (NULL): New macro.
51817
51818 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51819
51820 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51821 (pkgdata_MODULES): Added gzio.mod.
51822 (gzio_mod_SOURCES): New variable.
51823 (gzio_mod_CFLAGS): Likewise.
51824
51825 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51826 (pkgdata_MODULES): Added gzio.mod.
51827 (gzio_mod_SOURCES): New variable.
51828 (gzio_mod_CFLAGS): Likewise.
51829
51830 * commands/cat.c: Include grub/gzio.h.
51831 (grub_cmd_cat): Use grub_gzfile_open instead of
51832 grub_file_open.
51833
51834 * commands/cmp.c: Include grub/gzio.h.
51835 (grub_cmd_cmp): Use grub_gzfile_open instead of
51836 grub_file_open.
51837
51838 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51839 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51840 grub_file_open.
51841 (grub_rescue_cmd_module): Likewise.
51842
51843 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51844
51845 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51846 kern/sparc64/ieee1275/init.c because it contains _start.
51847 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51848
51849 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51850
51851 * configure.ac: Add support for sparc64 host with ieee1275
51852 firmware.
51853 * configure: Generated from configure.ac.
51854 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51855 instead of int.
51856 (grub_ofdisk_read): Likewise.
51857 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51858 pointers as (void *) to remove a warning.
51859 (grub_ofdisk_close): Likewise.
51860 (grub_ofdisk_read): Likewise.
51861 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51862 returns, so make it return void to remove a warning.
51863 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51864 Corresponding prototype change.
51865 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51866 values, and cast the pointers as (void *) to remove a warning.
51867 (grub_mm_dump): Likewise.
51868 * conf/sparc64-ieee1275.mk: New file.
51869 * conf/sparc64-ieee1275.rmk: Likewise.
51870 * include/grub/sparc64/setjmp.h: Likewise.
51871 * include/grub/sparc64/types.h: Likewise.
51872 * include/grub/sparc64/ieee1275/console.h: Likewise.
51873 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51874 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51875 * include/grub/sparc64/ieee1275/time.h: Likewise.
51876 * kern/sparc64/cache.c: Likewise.
51877 * kern/sparc64/dl.c: Likewise.
51878 * kern/sparc64/ieee1275/init.c: Likewise.
51879 * kern/sparc64/ieee1275/openfw.c: Likewise.
51880
51881 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51882
51883 * util/console.c (grub_ncurses_putchar): If C is greater than
51884 0x7f, set C to a question mark.
51885 (grub_ncurses_getcharwidth): New function.
51886 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51887 getcharwidth.
51888
51889 * normal/menu.c (print_entry): Made aware of Unicode. First,
51890 convert TITLE to UCS-4, and predict the cursor position by
51891 grub_getcharwidth.
51892
51893 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51894 const to SRC.
51895 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51896
51897 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51898
51899 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51900 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51901 grub_strcat.
51902
51903 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51904 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51905 grub_strcpy and grub_strlen. Take it into account that a space
51906 character is inserted as a delimiter.
51907
51908 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51909
51910 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51911 invalid magic in the error.
51912
51913 * commands/search.c: New file.
51914
51915 * util/grub-emu.c (main): Call grub_search_init and
51916 grub_search_fini.
51917
51918 * kern/rescue.c (grub_rescue_print_disks): Removed.
51919 (grub_rescue_print_devices): New function.
51920 (grub_rescue_cmd_ls): Use grub_device_iterate with
51921 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51922 grub_rescue_print_disks.
51923
51924 * kern/partition.c (grub_partition_iterate): Return the result of
51925 PARTMAP->ITERATE instead of GRUB_ERRNO.
51926
51927 * kern/device.c: Include grub/partition.h.
51928 (grub_device_iterate): New function.
51929
51930 * include/grub/partition.h (grub_partition_iterate): Return int
51931 instead of grub_err_t.
51932
51933 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51934 prototype.
51935 [GRUB_UTIL] (grub_search_fini): Likewise.
51936
51937 * include/grub/device.h (grub_device_iterate): New prototype.
51938
51939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51940 commands/search.c.
51941 (pkgdata_MODULES): Added search.mod.
51942 (search_mod_SOURCES): New variable.
51943 (search_mod_CFLAGS): Likewise.
51944
51945 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51946 (pkgdata_MODULES): Added search.mod.
51947 (search_mod_SOURCES): New variable.
51948 (search_mod_CFLAGS): Likewise.
51949
51950 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51951 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51952 All callers changed.
51953
51954 * DISTLIST: Added commands/search.c.
51955
51956 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51957
51958 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51959 conversion.
51960 (grub_getcharwidth): New function.
51961
51962 * kern/misc.c (grub_utf8_to_ucs4): New function.
51963
51964 * include/grub/term.h (struct grub_term): Added a new member
51965 "getcharwidth".
51966 (grub_getcharwidth): New prototype.
51967
51968 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51969
51970 * term/i386/pc/console.c (map_char): New function. Segregated from
51971 grub_console_putchar.
51972 (grub_console_putchar): Use map_char.
51973 (grub_console_getcharwidth): New function.
51974 (grub_console_term): Specified grub_console_getcharwidth as
51975 getcharwidth.
51976
51977 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51978 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51979
51980 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51981 GRUB_ERRNO.
51982 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51983 on grub_strtoul completely.
51984 (write_char): Declare local variables in the beginning of the
51985 function.
51986 (grub_vesafb_getcharwidth): New function.
51987 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51988 getcharwidth.
51989
51990 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51991
51992 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51993 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51994 commands/i386/pc/vbetest.c.
51995
51996 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51997 call grub_vbe_get_controller_info again, because the returned
51998 information is volatile.
51999 (grub_vbe_set_video_mode): Mostly rewritten.
52000 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52001 grub_vbe_status_t correctly.
52002 (grub_vbe_get_video_mode_info): Likewise.
52003 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52004 several if statements.
52005
52006 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52007 * commands/i386/pc/vbeinfo.c: ... this.
52008
52009 * commands/i386/pc/vbe_test.c: Renamed to ...
52010 * commands/i386/pc/vbetest.c: ... this.
52011
52012 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52013 ...
52014 (grub_cmd_vbeinfo): ... this. Save video modes before
52015 iterating. Skip a video mode, if it is not available, not enough
52016 information is given or it is monochrome. Show the memory
52017 model. Leave the interpretation of MODEVAR to grub_strtoul
52018 completely.
52019 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52020 (GRUB_MOD_FINI): Likewise.
52021
52022 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52023 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52024 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52025 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52026 grub_strtoul completely.
52027 (real2pm): Removed.
52028 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52029 (GRUB_MOD_FINI): Likewise.
52030
52031 * normal/misc.c: Include grub/mm.h.
52032
52033 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52034 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52035 (vbe_list_modes_mod_SOURCES): Removed.
52036 (vbe_list_modes_mod_CFLAGS): Likewise.
52037 (vbe_test_mod_SOURCES): Likewise.
52038 (vbe_test_mod_CFLAGS): Likewise.
52039 (vbeinfo_mod_SOURCES): New variable.
52040 (vbeinfo_mod_CFLAGS): Likewise.
52041 (vbetest_mod_SOURCES): Likewise.
52042 (vbetest_mod_CFLAGS): Likewise.
52043
52044 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52045
52046 * normal/misc.c: New file.
52047
52048 * DISTLIST: Added normal/misc.c.
52049
52050 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52051 DISK to HOOK. Call HOOK with DISK.
52052 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52053 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52054 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52055
52056 * normal/menu_entry.c (struct screen): Added a new member
52057 "completion_shown".
52058 (completion_buffer): New global variable.
52059 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52060 (store_completion): New function.
52061 (complete): Likewise.
52062 (clear_completions): Likewise.
52063 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52064 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52065 a tab, call complete.
52066
52067 * normal/completion.c (disk_dev): Removed.
52068 (print_simple_completion): Likewise.
52069 (print_partition_completion): Likewise.
52070 (print_func): New global variable.
52071 (add_completion): Do not take the arguments WHAT or PRINT any
52072 longer. Added a new argument TYPE. Instead of printing directly,
52073 call PRINT_FUNC if not NULL.
52074 All callers changed.
52075 (complete_device): Use a local variable DEV instead of
52076 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52077 (grub_normal_do_completion): Take a new argument HOOK. Do not
52078 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52079 empty string, return NULL instead.
52080 All callers changed.
52081
52082 * normal/cmdline.c (print_completion): New function.
52083
52084 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52085 to HOOK.
52086 All callers changed.
52087
52088 * kern/disk.c (grub_print_partinfo): Removed.
52089
52090 * include/grub/partition.h (struct grub_partition_map): Add a new
52091 argument DISK into HOOK of ITERATE.
52092 (grub_partition_iterate): Add a new argument DISK to HOOK.
52093
52094 * include/grub/normal.h (enum grub_completion_type): New enum.
52095 (grub_completion_type_t): New type.
52096 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52097 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52098 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52099 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52100 (grub_normal_do_completion): Added a new argument HOOK.
52101 (grub_normal_print_device_info): New prototype.
52102
52103 * include/grub/disk.h (grub_print_partinfo): Removed.
52104
52105 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52106 (normal_mod_SOURCES): Likewise.
52107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52108 (normal_mod_SOURCES): Likewise.
52109
52110 * commands/ls.c (grub_ls_list_disks): Use
52111 grub_normal_print_device_info instead of grub_print_partinfo. Free
52112 PNAME.
52113 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52114 duplicating the code.
52115
52116 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52117
52118 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52119 follow GCS more precisely.
52120 * commands/i386/pc/vbe_test.c: Likewise.
52121 * include/grub/i386/pc/vbe.h: Likewise.
52122 * term/i386/pc/vesafb.c: Likewise.
52123 * video/i386/pc/vbe.c: Likewise.
52124
52125 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52126
52127 * DISTLIST: Added term/i386/pc/vesafb.c
52128 DISTLIST: Added video/i386/pc/vbe.c
52129 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52130 DISTLIST: Added commands/i386/pc/vbe_test.c.
52131 * commands/i386/pc/vbe_list_modes.c: New file.
52132 * commands/i386/pc/vbe_test.c: Likewise.
52133 * term/i386/pc/vesafb.c: Likewise.
52134 * video/i386/pc/vbe.c: Likewise.
52135 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52136 (grub_vbe_probe) Added prototype.
52137 (grub_vbe_set_video_mode) Likewise.
52138 (grub_vbe_get_video_mode) Likewise.
52139 (grub_vbe_get_video_mode_info) Likewise.
52140 (grub_vbe_set_pixel_rgb) Likewise.
52141 (grub_vbe_set_pixel_index) Likewise.
52142 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52143 (pkgdata_MODULES): Added vesafb.mod.
52144 (pkgdata_MODULES): Added vbe_list_modes.mod.
52145 (pkgdata_MODULES): Added vbe_test.mod.
52146 (vbe_mod_SOURCES): Added.
52147 (vbe_mod_CFLAGS): Likewise.
52148 (vesafb_mod_SOURCES): Likewise.
52149 (vesafb_mod_CFLAGS): Likewise.
52150 (vbe_list_modes_mod_SOURCES): Likewise.
52151 (vbe_list_modes_mod_CFLAGS): Likewise.
52152 (vbe_test_mod_SOURCES): Likewise.
52153 (vbe_test_mod_CFLAGS): Likewise.
52154
52155 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52156
52157 * normal/command.c (grub_command_execute): If INTERACTIVE is
52158 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52159 CMDLINE. Disable the pager if INTERACTIVE is true.
52160 All callers are changed.
52161
52162 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52163 before reading a config file.
52164 * normal/main.c (read_config_file): Even if a command is not
52165 found, register it if it is within an entry.
52166
52167 * util/grub-emu.c: Include sys/types.h and unistd.h.
52168 (options): Added --hold.
52169 (struct arguments): Added a new member "hold".
52170 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52171 missing.
52172 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52173 cleared by a debugger, if it is not zero.
52174
52175 * include/grub/normal.h (grub_command_execute): Add an argument
52176 INTERACTIVE.
52177
52178 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52179
52180 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52181
52182 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52183
52184 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52185 program with another one, because the old one didn't detect a bug
52186 in gcc-3.4. Always use regparm 2, because the new test is still
52187 not enough for gcc-4.0. Someone must investigate a simple test
52188 case which detects a bug in gcc-4.0.
52189
52190 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52191
52192 * DISTLIST: Added normal/completion.c.
52193
52194 * normal/completion.c: New file.
52195
52196 * term/i386/pc/console.c (grub_console_getwh): New function.
52197 (grub_console_term): Assign grub_console_getwh to getwh.
52198
52199 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52200 function is defined in normal/completion.c as
52201 grub_normal_do_completion.
52202 (grub_cmdline_get): Use grub_normal_do_completion instead of
52203 grub_tab_complete.
52204
52205 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52206 returns non-zero, otherwise return 0.
52207 (grub_partition_iterate): First, probe the partition map. Then,
52208 call ITERATE only for this partition map.
52209
52210 * kern/misc.c (grub_strncmp): Rewritten.
52211
52212 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52213 returns non-zero. Otherwise return 0.
52214
52215 * include/grub/partition.h (grub_partition_map_iterate): Return
52216 int instead of void.
52217
52218 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52219
52220 * include/grub/misc.h (grub_strncmp): Change the type of N to
52221 grub_size_t.
52222
52223 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52224 of void.
52225
52226 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52227 unsigned explicitly before comparing it with I.
52228
52229 * kern/main.c (grub_env_write_root): Add the attribute unused into
52230 VAR.
52231
52232 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52233 normal/completion.c.
52234 (normal_mod_SOURCES): Likewise.
52235 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52236 (normal_mod_SOURCES): Likewise.
52237
52238 * normal/command.c (grub_iterate_commands): If ITERATE returns
52239 non-zero, return one immediately.
52240
52241 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52242
52243 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52244 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52245 descriptions.
52246 (grub_vbe_get_controller_info): New function.
52247 (grub_vbe_get_mode_info): Likewise.
52248 (grub_vbe_set_mode): Likewise.
52249 (grub_vbe_get_mode): Likewise.
52250 (grub_vbe_set_memory_window): Likewise.
52251 (grub_vbe_get_memory_window): Likewise.
52252 (grub_vbe_set_scanline_length): Likewise.
52253 (grub_vbe_get_scanline_length): Likewise.
52254 (grub_vbe_set_display_start): Likewise.
52255 (grub_vbe_get_display_start): Likewise.
52256 (grub_vbe_set_palette_data): Likewise.
52257 * include/grub/i386/pc/vbe.h: New file.
52258
52259 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52260
52261 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52262 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52263 * DISTLIST: Likewise.
52264 * kern/ieee1275/of.c: Moved to ...
52265 * kern/ieee1275/ieee1275.c: ... here.
52266
52267 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52268
52269 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52270 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52271 Pass 0 as `end' parameter to grub_strtoul().
52272
52273 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52274
52275 * include/grub/powerpc/ieee1275/console.h: Do not include
52276 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52277 ifdef.
52278 (grub_console_cur_color): Remove i386-specific prototype.
52279 (grub_console_real_putchar): Likewise.
52280 (grub_console_checkkey): Likewise.
52281 (grub_console_getkey): Likewise.
52282 (grub_console_getxy): Likewise.
52283 (grub_console_gotoxy): Likewise.
52284 (grub_console_cls): Likewise.
52285 (grub_console_setcursor): Likewise.
52286 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52287 Include <grub/machine/console.h>.
52288 * term/ieee1275/ofconsole.c: Likewise.
52289
52290 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52291
52292 * Makefile.in (LIBLZO): New variable.
52293
52294 * configure.ac: Check for LZO version 2.
52295
52296 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52297 lzo/lzo1x.h instead of lzo1x.h.
52298
52299 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52300 of -llzo.
52301
52302 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52303 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52304
52305 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52306 copying the data from PARTITION to P.
52307
52308 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52309
52310 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52311 negative, unload the module.
52312
52313 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52314 map is "pc_partition_map" but not "pc".
52315 (usage): Fix the description. The options are --boot-image and
52316 --core-image but not --boot-file or --core-file.
52317 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52318 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52319 DEFAULT_DIRECTORY.
52320
52321 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52322 --core-file. Specify INSTALL_DEVICE as an argument.
52323
52324 * util/console.c: Include config.h.
52325 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52326 [HAVE_NCURSES_H]: Include ncurses.h.
52327 [HAVE_CURSES_H]: Include curses.h.
52328 [!A_NORMAL] (A_NORMAL): Defined as zero.
52329 [!A_STANDOUT] (A_STANDOUT): Likewise.
52330
52331 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52332 -lncurses.
52333 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52334
52335 * configure.ac: Check for curses libraries and headers.
52336
52337 * Makefile.in (LIBCURSES): New variable.
52338
52339 * genmk.rb (Script::rule): Set the executable bits.
52340
52341 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52342 name of the PC partition map is "pc_partition_map" but not "pc".
52343
52344 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52345
52346 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52347 (modules): Likewise.
52348 (usage): Added descriptions for --modules and --grub-probefs.
52349 Handle --modules and --grub-probefs. Save the arguments in MODULES
52350 and GRUB_PROBEFS, respectively.
52351 Auto-detect a filesystem module against GRUBDIR. If the result is
52352 empty and modules are not specified explicitly, abort the
52353 installation. Add the result to MODULES.
52354
52355 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52356 disk/powerpc/ieee1275/ofdisk.c,
52357 include/grub/powerpc/ieee1275/init.h and
52358 term/powerpc/ieee1275/ofconsole.c.
52359 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52360 term/ieee1275/ofconsole.c.
52361
52362 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52363
52364 * COPYING: Upgraded to the latest version. Only the address of the
52365 FSF office has changed.
52366
52367 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52368
52369 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52370 kern/ieee1275.c with kern/ieee1275/of.c.
52371
52372 * kern/ieee1275.c: Moved to ...
52373 * kern/ieee1275/of.c: ... here.
52374
52375 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52376
52377 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52378 readability.
52379
52380 * config.guess: Updated to the latest version from gnulib.
52381 * config.sub: Likewise.
52382 * install.sh: Likewise.
52383 * mkinstalldirs: Likewise.
52384
52385 * include/grub/console.h: Removed. This file is arch-specific. Do
52386 not put this in include/grub.
52387
52388 * include/grub/i386/pc/console.h: Resurrected.
52389
52390 * util/console.c: Include grub/machine/console.h instead of
52391 grub/console.h.
52392 * util/grub-emu.c: Likewise.
52393
52394 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52395
52396 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52397 hardcoded value.
52398
52399 From Vincent Pelletier <subdino2004@yahoo.fr>
52400 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52401 Redefined to use grub_getwh.
52402 (grub_term): New member named getwh.
52403 (grub_getwh): New prototype.
52404 * kern/term.c (grub_getwh): New function.
52405 * term/i386/pc/console.c (grub_console_getwh): New function.
52406 (grub_console_term): New member `getwh'.
52407 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52408 (grub_vga_term): New member `getwh'.
52409 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52410 grub_ssize_t.
52411 (grub_ofconsole_getw): New function.
52412 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52413 (grub_ofconsole_term): New field named getwh and new initial
52414 value.
52415
52416 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52417
52418 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52419 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52420 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52421 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52422 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52423 of <grub/machine/ieee1275.h>.
52424 * commands/ieee1275/reboot.c: Likewise.
52425 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52426 * kern/ieee1275.c: ... to here. All users updated. Change all
52427 parameter structs to use new type `grub_ieee1275_cell_t'.
52428 * term/powerpc/ieee1275/ofconsole.c: Move ...
52429 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52430 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52431 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52432 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52433 to return int.
52434 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52435 Remove unused prototypes. All users updated.
52436 * include/grub/powerpc/ieee1275/console.h: Removed.
52437 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52438 `grub_ieee1275_cell_t'.
52439 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52440 Cast comparisons with -1 to the correct type.
52441 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52442 type to match `grub_ieee1275_entry_fn'.
52443
52444 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52445
52446 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52447
52448 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52449 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52450 partmap/sun.c.
52451 (grub_probefs_SOURCES): New variable.
52452
52453 * util/i386/pc/grub-probefs.c: New file.
52454
52455 * util/i386/pc/grub-setup.c (main): Call
52456 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52457 grub_hfs_init and grub_jfs_init to initialize the system. Call
52458 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52459 grub_pc_partition_map_fini to finish the system.
52460
52461 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52462
52463 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52464 function.
52465 (grub_multiboot_load_elf32): Likewise.
52466 (grub_multiboot_is_elf64): Likewise.
52467 (grub_multiboot_load_elf64): Likewise.
52468 (grub_multiboot_load_elf): Likewise.
52469 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52470 an ELF32 or ELF64 file.
52471 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52472
52473 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52474 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52475 NULL before calling FS->LABEL.
52476 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52477 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52478 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52479 before calling FS->LABEL.
52480
52481 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52482
52483 * util/i386/pc/grub-install.in (datadir): New variable.
52484 (libdir): Removed.
52485 (pkgdatadir): New variable.
52486 (pkglibdir): Removed.
52487
52488 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52489
52490 * DISTLIST: Added util/i386/pc/grub-install.in.
52491
52492 * util/i386/pc/grub-install.in: New file.
52493
52494 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52495 (grub_install_SOURCES): Likewise.
52496
52497 * genmk.rb: Added support for scripts.
52498 (Script): New class.
52499 (scripts): New variable.
52500
52501 * Makefile.in (install-local): Install sbin_SCRIPTS by
52502 INSTALL_SCRIPT.
52503 (uninstall): Remove sbin_SCRIPTS.
52504
52505 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52506 device, try to get a GRUB device by
52507 grub_util_biosdisk_get_grub_dev.
52508 Free DEST_DEV.
52509
52510 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52511 description for --device-map.
52512
52513 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52514
52515 Change the semantics of variable hooks. They now return strings
52516 instead of error values.
52517
52518 * util/i386/pc/grub-setup.c: Include grub/env.h.
52519 (setup): Use grub_device_set_root instead of grub_env_set.
52520
52521 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52522 grub_env_get instead of grub_device_set_root and
52523 grub_device_get_root, respectively.
52524
52525 * kern/main.c (grub_env_write_root): New function.
52526 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52527 grub_env_set instead of grub_device_set_root.
52528
52529 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52530 many variables.
52531 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52532 rather than calling ENV->WRITE_HOOK afterwards.
52533 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52534 passing a pointer of a pointer.
52535 (grub_register_variable_hook): Change the types of "read_hook" and
52536 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52537 respectively.
52538 Allocate the default empty string on the heap, because this string
52539 may be freed later.
52540
52541 * kern/device.c: Include grub/env.h.
52542 (grub_device_set_root): Removed.
52543 (grub_device_get_root): Likewise.
52544 (grub_device_open): Use grub_env_get instead of
52545 grub_device_get_root.
52546
52547 * include/grub/env.h (grub_env_read_hook_t): New type.
52548 (grub_env_write_hook_t): Likewise.
52549 (grub_env_var): Change the types of "read_hook" and "write_hook"
52550 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52551 (grub_register_variable_hook): Likewise.
52552
52553 * include/grub/device.h (grub_device_set_root): Removed.
52554 (grub_device_set_root): Likewise.
52555
52556 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52557 make sure that DIRNAME terminates with '/', so that
52558 grub_fat_find_dir will fail if PATH is not a directory.
52559
52560 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52561 from DIRNAME.
52562 Use the qualifier auto for print_files and print_files_long.
52563 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52564 as a regular file.
52565 Put a newline only if there is no error.
52566 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52567 used.
52568
52569 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52570
52571 * kern/partition.c (grub_partition_probe): Initialize PART to
52572 NULL. Otherwise, when no partition map is registered, this returns
52573 a garbage.
52574
52575 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52576
52577 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52578 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52579 valid.
52580
52581 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52582
52583 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52584 information on each device, if it does not have partitions. Print
52585 "Device" instead of "Disk", because this function is not specific
52586 to disk devices.
52587
52588 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52589 static to ensure that it is put on the memory rather than a
52590 register.
52591
52592 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52593
52594 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52595 (grub_cat_init): Likewise.
52596 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52597 (options): Likewise.
52598 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52599 (grub_configfile_init): Likewise.
52600 * font/manager.c (GRUB_MOD_INIT): Likewise.
52601 * commands/help.c (GRUB_MOD_INIT): Likewise.
52602 (grub_help_init): Likewise.
52603 * normal/command.c (grub_command_init): Likewise.
52604 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52605 * disk/loopback.c (grub_loop_init): Likewise.
52606 (GRUB_MOD_INIT): Likewise.
52607 * commands/ls.c (grub_ls_init): Likewise.
52608 (GRUB_MOD_INIT): Likewise.
52609 (options): Likewise.
52610 * commands/boot.c (grub_boot_init): Likewise.
52611 (GRUB_MOD_INIT): Likewise.
52612 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52613 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52614 (GRUB_MOD_INIT): Likewise.
52615 * commands/cmp.c (grub_cmp_init): Likewise.
52616 (GRUB_MOD_INIT): Likewise.
52617
52618 * normal/arg.c: Use <> instead of "" to include header files.
52619 (SHORT_ARG_HELP): New macro.
52620 (SHORT_ARG_USAGE): Likewise.
52621 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52622 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52623 descriptions.
52624 (find_short): Check if C is 'h' or 'u' explicitly.
52625 (grub_arg_show_help): Use space characters instead of tabs. Treat
52626 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52627 are shown with --help and --usage only if they are not used for
52628 the command itself.
52629 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52630 'h' and 'u'.
52631
52632 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52633 const into "longarg". Change the type of "shortarg" to int.
52634
52635 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52636
52637 * boot/i386/pc/boot.S (boot_drive_check): New label.
52638
52639 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52640 macro.
52641
52642 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52643 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52644
52645 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52646
52647 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52648 When turning off Gate A20, skip the check and return immediately,
52649 because this is not fatal usually.
52650
52651 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52652
52653 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52654 be 0x7C00 instead of 0x8000.
52655
52656 * boot/i386/pc/pxeboot.S: Rewritten.
52657
52658 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52659 EXT_C.
52660 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52661 result.
52662
52663 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52664
52665 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52666 robustness. This routine now supports a BIOS call and System
52667 Control Port A to modify the gate A20.
52668
52669 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52670 Increased to 0x440.
52671
52672 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52673
52674 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52675 device path and resulting ihandle.
52676 (grub_ofdisk_close): dprintf the ihandle being closed.
52677 (grub_ofdisk_read): dprintf function parameters.
52678 * kern/mm.c (grub_mm_init_region): Likewise.
52679 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52680 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52681 size, and boot arguments.
52682 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52683 before loading into memory.
52684 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52685 before loading into memory.
52686
52687 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52688
52689 * kern/mm.c: Added much documentation.
52690 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52691 8, set to 5 instead of 8.
52692
52693 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52694
52695 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52696
52697 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52698 (grub_mkdevicemap_SOURCES): New variable.
52699
52700 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52701 lib/device.c of GRUB Legacy.
52702
52703 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52704
52705 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52706 instead of PATH is NULL.
52707
52708 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52709
52710 * commands/cmp.c (BUFFER_SIZE): New macro.
52711 (grub_cmd_cmp): Close the right file at the right time. Compare
52712 only data just read. Don't report files of different size as
52713 identical. Dynamically allocate buffers. Move variable
52714 declarations at the beginning of function.
52715
52716 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52717
52718 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52719 reverse.
52720
52721 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52722
52723 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52724 when backspace is pressed at beginning of line.
52725
52726 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52727
52728 * DISTLIST: Added genfslist.sh.
52729
52730 * normal/main.c (fs_module_list): New variable.
52731 (autoload_fs_module): New function.
52732 (read_fs_list): Likewise.
52733 (grub_normal_execute): Call read_fs_list.
52734
52735 * kern/fs.c (grub_fs_autoload_hook): New variable.
52736 (grub_fs_probe): Added support for auto-loading.
52737
52738 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52739 (grub_fs_module_list_t): New type.
52740
52741 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52742 (grub_fs_autoload_hook): New prototype.
52743
52744 * genfslist.sh: New file.
52745
52746 * genmk.rb: Added a rule to generate a filesystem list.
52747
52748 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52749
52750 * configure.ac: Fix the test for cross-compiling.
52751
52752 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52753 define GRUB_UTIL anymore.
52754
52755 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52756 so this function works on other systems than just big endian.
52757 (load_modules): Likewise.
52758 (add_segments): Likewise.
52759
52760 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52761
52762 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52763 contains `l' modifier, get a long from va_arg().
52764
52765 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52766
52767 * kern/mm.c (grub_free): If the next free block which is being
52768 merged is the first free block, set the first block to the block
52769 being freed.
52770 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52771
52772 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52773
52774 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52775 `grub_ieee1275_chosen'.
52776
52777 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52778
52779 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52780 (grub_ieee1275_chosen): New variable.
52781 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52782 `chosen'.
52783 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52784 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52785 Rename first argument to `phandle' for consistency.
52786 (grub_ieee1275_get_property_length): Likewise.
52787 (grub_ieee1275_next_property): Likewise. Change type of first argument
52788 to grub_ieee1275_phandle_t.
52789 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52790 Move export next to declaration.
52791 (grub_ieee1275_chosen): New variable.
52792 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52793 Correct cosmetic typo.
52794 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52795 `grub_ieee1275_chosen'.
52796 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52797 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52798 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52799 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52800 `grub_ieee1275_chosen'.
52801
52802 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52803
52804 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52805 /chosen/bootargs.
52806 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52807 /chosen/bootargs as "variable=value" pairs.
52808
52809 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52810
52811 * include/grub/misc.h (grub_dprintf): New macro.
52812 (grub_real_dprintf): New prototype.
52813 (grub_strword): Likewise.
52814 (grub_iswordseparator): Likewise.
52815 * kern/misc.c (grub_real_dprintf): New function.
52816 (grub_strword): Likewise.
52817 (grub_iswordseparator): Likewise.
52818
52819 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52820
52821 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52822 (roundup): Remove macro.
52823 (grub_ieee1275_flags): Make static.
52824 (grub_ieee1275_realmode): Remove.
52825 (grub_ieee1275_test_flag): New function.
52826 (grub_ieee1275_set_flag): Likewise.
52827 (find_options): Rename to `grub_ieee1275_find_options'; update
52828 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52829 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52830 (cmain): New prototype.
52831 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52832 `grub_ieee1275_flags' directly.
52833 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52834 machine/biosdisk.h.
52835 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52836 Don't include grub/machine/init.h.
52837 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52838 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52839 Remove prototype.
52840 (grub_ieee1275_realmode): Likewise.
52841 (grub_ieee1275_flag): New enum.
52842 (grub_ieee1275_test_flag): New prototype.
52843 (grub_ieee1275_set_flag): New prototype.
52844 * include/grub/powerpc/ieee1275/init.h: Remove file.
52845 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52846 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52847 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52848 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52849 comment.
52850 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52851 `grub_ieee1275_test_flag'.
52852 (grub_ieee1275_encode_devname): Likewise.
52853
52854 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52855
52856 * include/grub/powerpc/ieee1275/ieee1275.h
52857 (grub_ieee1275_encode_devname): New prototype.
52858 (grub_ieee1275_get_filename): Likewise.
52859 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52860 function.
52861 (grub_set_prefix): Likewise.
52862 (grub_machine_init): Call grub_set_prefix.
52863 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52864 (grub_parse_type): New enum.
52865 (grub_ieee1275_get_devargs): New function.
52866 (grub_ieee1275_get_devname): Likewise.
52867 (grub_ieee1275_parse_args): Likewise.
52868 (grub_ieee1275_get_filename): Likewise.
52869 (grub_ieee1275_encode_devname): Likewise.
52870
52871 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52872
52873 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52874 `grub_loader_unset'.
52875
52876 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52877
52878 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52879 instead of grub_ieee1275_interpret.
52880 (grub_halt_init): New function.
52881 (grub_halt_fini): Likewise.
52882 (GRUB_MOD_INIT): Correct message grammar.
52883 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52884 instead of grub_ieee1275_interpret.
52885 (grub_reboot_init): New function.
52886 (grub_reboot_fini): Likewise.
52887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52888 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52889 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52890 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52891 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52892 function.
52893 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52894 Add prototype.
52895 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52896 prototype.
52897 (grub_halt): Likewise.
52898 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52899 (cmain): Remove __attribute__((unused)).
52900 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52901 (grub_heap_len): Likewise.
52902 (grub_machine_fini): New function.
52903 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52904 (grub_halt): Likewise.
52905 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52906 function.
52907 * util/powerpc/ieee1275/misc.c: New file.
52908
52909 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52910
52911 * DISTLIST: New file.
52912 * gendistlist.sh: Likewise.
52913
52914 * Makefile.in (COMMON_DISTFILES): Removed.
52915 (BOOT_DISTFILES): Likewise.
52916 (CONF_DISTFILES): Likewise.
52917 (DISK_DISTFILES): Likewise.
52918 (FS_DISTFILES): Likewise.
52919 (INCLUDE_DISTFILES): Likewise.
52920 (KERN_DISTFILES): Likewise.
52921 (LOADER_DISTFILES): Likewise.
52922 (TERM_DISTFILES): Likewise.
52923 (UTIL_DISTFILES): Likewise.
52924 (DISTFILES): Likewise.
52925 (uninstall): Uninstall files in $(pkgdata_DATA).
52926 (DISTLIST): New target.
52927 (distdir): Use the contents of the file DISTLIST to get a list of
52928 distributed files.
52929
52930 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52931
52932 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52933 descriptor. This is ported from GRUB Legacy.
52934
52935 * gencmdlist.sh: Added an extra semicolon to make it work with
52936 old sed versions. Reported by Robert Bihlmeyer
52937 <robbe@orcus.priv.at>.
52938
52939 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52940
52941 Automatic loading of commands is supported.
52942
52943 * normal/main.c (read_command_list): New function.
52944 (grub_normal_execute): Call read_command_list.
52945
52946 * normal/command.c (grub_register_command): Return zero or CMD.
52947 Allocate CMD->NAME from the heap.
52948 Initialize CMD->MODULE_NAME to zero.
52949 Find the same name as well. If the same command is found and it is
52950 a dummy command, overwrite members. If it is not a dummy command,
52951 return zero.
52952 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52953 (grub_command_find): If a dummy command is found, load a module
52954 and retry to find a command only once.
52955
52956 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52957 make sure that each command is loaded.
52958
52959 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52960 macro.
52961 (struct grub_command): Remove const from the member `name'.
52962 Add a new member `module_name'.
52963 (grub_register_command): Return grub_command_t.
52964
52965 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52966 sure that each command is loaded.
52967
52968 * genmk.rb (PModule::rule): Specify a module name without the
52969 suffix ".mod" to gencmdlist.sh.
52970
52971 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52972
52973 * gencmdlist.sh: New file.
52974
52975 * genmk.rb (PModule::rule): Generate a rule for a command list.
52976 Clean command.lst.
52977 Generate command.lst from $(COMMANDFILES).
52978
52979 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52980 (DATA): Added $(pkgdata_DATA).
52981 (install-local): Install files in $(pkgdata_DATA).
52982
52983 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52984
52985 * term/i386/pc/vga.c (debug_command): Removed.
52986 (GRUB_MOD_INIT): Do not register the command "debug".
52987
52988 From Hollis Blanchard:
52989 * commands/configfile.c: New file.
52990 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52991 commands/configfile.c.
52992 (pkgdata_MODULES): Added configfile.mod.
52993 (configfile_mod_SOURCES): New variable.
52994 (configfile_mod_CFLAGS): Likewise.
52995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52996 commands/configfile.c.
52997 (pkgdata_MODULES): Added configfile.mod.
52998 (configfile_mod_SOURCES): New variable.
52999 (configfile_mod_CFLAGS): Likewise.
53000 * util/grub-emu.c (main): Call grub_configfile_init and
53001 grub_configfile_fini.
53002 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53003 prototype.
53004 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53005
53006 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53007
53008 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53009 address.
53010
53011 * commands/help.c (grub_cmd_help): Do not print newlines after
53012 the last command in print_command_help.
53013
53014 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53015
53016 * commands/default.h: New file.
53017 * commands/timeout.h: Likewise.
53018 * normal/context.c: Likewise.
53019
53020 * util/misc.c: Do not include sys/times.h.
53021 Include sys/time.h and grub/machine/time.h.
53022 (grub_get_rtc): Rewritten with gettimeofday.
53023
53024 * util/grub-emu.c (main): Call grub_default_init and
53025 grub_timeout_init before grub_normal_init, and call
53026 grub_timeout_fini and grub_default_fini after grub_main.
53027
53028 * util/console.c (grub_ncurses_checkkey): Return the read
53029 character or -1.
53030
53031 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53032 timeouts.
53033
53034 * normal/main.c (read_config_file): Push MENU. If this fails,
53035 print an error and wait for a user input.
53036 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53037 If a menu is empty or an error occurs, pop MENU.
53038 (grub_normal_execute): Pop and free MENU after grub_menu_run
53039 returns.
53040
53041 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53042
53043 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53044 include time.h.
53045 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53046 without GRUB_UTIL.
53047 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53048 time.h.
53049 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53050 without GRUB_UTIL.
53051
53052 * include/grub/normal.h (struct grub_menu_list): New struct.
53053 (grub_menu_list_t): New type.
53054 (struct grub_context): New struct.
53055 (grub_context_t): New type.
53056 (grub_register_command): Got rid of EXPORT_FUNC.
53057 (grub_unregister_command): Likewise.
53058 (grub_context_get): New prototype.
53059 (grub_context_get_current_menu): Likewise.
53060 (grub_context_push_menu): Likewise.
53061 (grub_context_pop_menu): Likewise.
53062 [GRUB_UTIL] (grub_default_init): Likewise.
53063 [GRUB_UTIL] (grub_default_fini): Likewise.
53064 [GRUB_UTIL] (grub_timeout_init): Likewise.
53065 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53066
53067 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53068 commands/timeout.c and normal/context.c.
53069 (pkgdata_MODULES): Added default.mod and timeout.mod.
53070 (normal_mod_SOURCES): Added normal/context.c.
53071 (default_mod_SOURCES): New variable.
53072 (default_mod_CFLAGS): Likewise.
53073 (timeout_mod_SOURCES): Likewise.
53074 (timeout_mod_CFLAGS): Likewise.
53075 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53076 conf/i386-pc.rmk.
53077 (pkgdata_MODULES): Added default.mod and timeout.mod.
53078 (normal_mod_SOURCES): Added normal/context.c.
53079 (default_mod_SOURCES): New variable.
53080 (default_mod_CFLAGS): Likewise.
53081 (timeout_mod_SOURCES): Likewise.
53082 (timeout_mod_CFLAGS): Likewise.
53083
53084 * Makefile.in (all-local): Added $(MKFILES).
53085
53086 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53087
53088 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53089 (grub_emu_SOURCES): Likewise.
53090 (pkgdata_MODULES): Add `sun.mod'.
53091 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53093 `partmap/sun.c'.
53094 (pkgdata_MODULES): Add `sun.mod'.
53095 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53096 * include/grub/partition.h (grub_sun_partition_map_init): New
53097 prototype.
53098 (grub_sun_partition_map_fini): Likewise.
53099 * partmap/sun.c: New file.
53100 * util/grub-emu.c (main): Initialize and de-initialize the sun
53101 partitionmap support.
53102
53103 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53104
53105 This implements an Emacs-like menu entry editor.
53106
53107 * normal/menu_entry.c: New file.
53108
53109 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53110 characters to ASCII.
53111 (saved_char): New variable.
53112 (grub_ncurses_checkkey): Rewritten completely.
53113 (grub_ncurses_getkey): Likewise.
53114 (grub_ncurses_init): Call raw instead of cbreak.
53115
53116 * normal/menu.c (print_entry): Do not put a space.
53117 (init_page): Renamed to ...
53118 (grub_menu_init_page): ... this. All callers changed.
53119 (edit_menu_entry): Removed.
53120 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53121
53122 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53123
53124 * kern/misc.c (grub_vprintf): Call grub_refresh.
53125
53126 * normal/menu.c (DISP_LEFT): Renamed to ...
53127 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53128 * normal/menu.c (DISP_UP): Renamed to ...
53129 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53130 * normal/menu.c (DISP_RIGHT): Renamed to ...
53131 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53132 * normal/menu.c (DISP_DOWN): Renamed to ...
53133 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53134 * normal/menu.c (DISP_HLINE): Renamed to ...
53135 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53136 * normal/menu.c (DISP_VLINE): Renamed to ...
53137 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53138 * normal/menu.c (DISP_UL): Renamed to ...
53139 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53140 * normal/menu.c (DISP_UR): Renamed to ...
53141 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53142 * normal/menu.c (DISP_LL): Renamed to ...
53143 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53144 * normal/menu.c (DISP_LR): Renamed to ...
53145 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53146 * normal/menu.c (TERM_WIDTH): Renamed to ...
53147 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53148 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53149 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53150 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53151 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53152 * normal/menu.c (TERM_MARGIN): Renamed to ...
53153 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53154 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53155 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53156 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53157 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53158 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53159 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53160 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53161 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53162 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53163 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53164 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53165 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53166 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53167 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53168 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53169 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53170 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53171 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53172 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53173 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53174 All callers changed.
53175
53176 * include/grub/normal.h: New prototype.
53177
53178 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53179 normal/menu_entry.c.
53180 (normal_mod_SOURCES): Likewise.
53181 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53182 (normal_mod_SOURCES): Likewise.
53183
53184 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53185
53186 * include/grub/normal.h (grub_halt_init): New prototype.
53187 (grub_halt_fini): Likewise.
53188 (grub_reboot_init): Likewise.
53189 (grub_reboot_fini): Likewise.
53190
53191 * util/grub-emu.c: Include signal.h.
53192 (main_env): New global variable.
53193 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53194 catch C-c.
53195 (grub_machine_fini): New function.
53196 (main): Call grub_halt_init and grub_reboot_init before
53197 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53198 Call setjmp with MAIN_ENV to go back afterwards.
53199 Call grub_machine_fini right before return.
53200
53201 * include/grub/util/misc.h: Include setjmp.h.
53202 (main_env): New prototype.
53203
53204 * include/grub/kernel.h (grub_machine_fini): New prototype.
53205 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53206 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53207
53208 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53209 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53210 * term/i386/pc/console.c (grub_console_fini): Likewise.
53211
53212 * util/i386/pc/misc.c: New file.
53213
53214 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53215 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53216 commands/i386/pc/reboot.c.
53217
53218 2005-02-14 Guillem Jover <guillem@hadrons.org>
53219
53220 * include/grub/dl.h (grub_dl_check_header): New prototype.
53221 (grub_arch_dl_check_header): Change return type to grub_err_t,
53222 remove size parameter and export function. Update all callers.
53223 * kern/dl.c (grub_dl_check_header): New function.
53224 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53225 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53226 are inside the core.
53227 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53228 independent ELF header checks.
53229 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53230 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53231 `grub_dl_check_header' instead of explicit checks. Check for the
53232 ELF type.
53233 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53234 `grub_dl_check_header' instead of explicit checks. Remove arch
53235 specific ELF header checks.
53236
53237 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53238 argument SIZE.
53239
53240 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53241
53242 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53243 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53244
53245 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53246
53247 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53248 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53249 (part_map_iterate): Clear `grub_errno' and return 0 if
53250 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53251 * partmap/amiga.c (amiga_partition_map_iterate): Return
53252 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53253 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53254
53255 2005-02-01 Guillem Jover <guillem@hadrons.org>
53256
53257 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53258 help info.
53259
53260 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53261
53262 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53263 Removed prototype.
53264 (grub_rescue_cmd_linux): New prototype.
53265 (grub_rescue_cmd_initrd): Likewise.
53266 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53267 `bi_rec'.
53268 (grub_linux_release_mem): Release the memory for the initrd.
53269 (grub_load_linux): Renamed from this...
53270 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53271 Changed `entry' not to be static. Loop over memory regions to
53272 find another one when the default fails.
53273 (grub_rescue_cmd_initrd): New function.
53274 (grub_linux_init): Remove function.
53275 (grub_linux_fini): Likewise.
53276 (GRUB_MOD_INIT): Register `initrd'.
53277 (GRUB_MOD_FINI): Unregister `initrd'.
53278 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53279 Function removed.
53280 (grub_linux_normal_fini): Likewise.
53281 (GRUB_MOD_INIT): Register `initrd'.
53282 (GRUB_MOD_FINI): Unregister `initrd'.
53283
53284 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53285
53286 * commands/help.c: New file.
53287 * normal/arg.c (show_help): Renamed to...
53288 (grub_arg_show_help): ... this.
53289 * commands/i386/pc/halt.c: New file.
53290 * commands/i386/pc/reboot.c: Likewise.
53291 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53292 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53293 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53294 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53295 variables.
53296 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53297 `commands/help.c'.
53298 (pkgdata_MODULES): Add `help.mod'.
53299 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53300 * grub/i386/pc/init.h (grub_reboot): New prototype.
53301 (grub_halt): Likewise.
53302 * include/grub/normal.h (grub_arg_show_help): New prototype.
53303 (grub_help_init): Likewise.
53304 (grub_help_fini): Likewise.
53305 * util/grub-emu.c (main): Initialize and deinitialize the help
53306 command.
53307
53308 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53309
53310 * normal/command.c (grub_command_init): Fixed the description of
53311 the `set' and `unset' commands.
53312
53313 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53314
53315 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53316 function.
53317 * commands/ieee1275/halt.c: New file.
53318 * commands/ieee1275/reboot.c: Likewise.
53319 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53320 `__attribute__ ((unused))'. Some GCS related fixed.
53321 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53322 (grub_suspend_fini): Likewise.
53323 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53324 and `halt.mod'.
53325 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53326 (halt_mod_CFLAGS): New variables.
53327 * include/grub/powerpc/ieee1275/ieee1275.h
53328 (grub_ieee1275_interpret): New prototype.
53329
53330 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53331
53332 * include/grub/misc.h (memmove): New prototype.
53333 (memcpy): Likewise.
53334
53335 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53336
53337 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53338 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53339
53340 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53341
53342 * kern/misc.c (grub_strndup): Function rewritten.
53343
53344 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53345
53346 * normal/menu.c (TERM_WIDTH): Macro redefined.
53347 (TERM_TOP_BORDER_Y): Likewise.
53348 (draw_border): Replaced while-loop by a for-loop. Make the number
53349 of lines consistent with the number of lines displayed in
53350 print_entries. Added a margin below the rectangle.
53351 (print_entry): Make the entry fit in the rectangle.
53352 (print_entries): Display the scroll arrows next to the right
53353 border.
53354
53355 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53356
53357 * fs/minix.c (grub_minix_find_file): Reserve more space for
53358 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53359 `grub_strncpy' to copy `path' into it.
53360
53361 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53362
53363 Add the loopback device, a device via which files can be accessed
53364 as devices.
53365
53366 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53367 (pkgdata_MODULES): Add loopback.mod.
53368 (loopback_mod_SOURCES): New variable.
53369 (loopback_mod_CFLAGS): Likewise.
53370 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53371 `disk/loopback.c'.
53372 (pkgdata_MODULES): Add loopback.mod.
53373 (loopback_mod_SOURCES): New variable.
53374 (loopback_mod_CFLAGS): Likewise.
53375 * disk/loopback.c: new file.
53376 * include/grub/normal.h (grub_loop_init): New prototype.
53377 (grub_loop_fini): New prototype.
53378 * util/grub-emu.c (main): Initialize and de-initialize loopback
53379 support.
53380 * include/grub/disk.h (grub_disk_dev_id): Add
53381 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53382
53383 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53384
53385 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53386 function.
53387 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53388 (suspend_mod_SOURCES): New variable.
53389 (suspend_mod_CFLAGS): Likewise.
53390 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53391 New prototype.
53392 * commands/ieee1275/suspend.c: New file.
53393
53394 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53395
53396 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53397 ((unused))' to `__attribute__ ((used))'.
53398 (GRUB_MOD_FINI): Likewise.
53399 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53400 * genmk.rb (PModule): Assign space to common symbols when linking
53401 modules.
53402
53403 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53404
53405 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53406 `unsigned' arguments to `grub_size_t'.
53407 (grub_malloc): Likewise.
53408 (grub_realloc): Likewise.
53409 (grub_memalign): Likewise.
53410 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53411 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53412 * util/misc.c (grub_malloc): Likewise.
53413 (grub_realloc): Likewise.
53414 * kern/mm.c (get_header_from_pointer): Change the casts to
53415 `unsigned' into a cast to `grub_size_t'.
53416
53417 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53418 point to `currnode' when `currnode' is changed.
53419
53420 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53421 Schottelius <nico-linux@schottelius.org>.
53422
53423 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53424
53425 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53426 (note_path): Remove variable.
53427 (GRUB_IEEE1275_NOTE_NAME): New macro.
53428 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53429 (grub_ieee1275_note_hdr): New structure.
53430 (grub_ieee1275_note_desc): Likewise.
53431 (grub_ieee1275_note): Likewise.
53432 (load_note): Remove `dir' argument. All callers updated. Remove
53433 `note_img' and `path'. Do not load a file from `note_path'.
53434 Initialize a struct grub_ieee1275_note and write that to `out'.
53435 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53436
53437 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53438
53439 * util/misc.c (grub_util_read_image): Revert last change. It
53440 called `grub_util_read_at', which seeks from the beginning of the
53441 file.
53442
53443 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53444
53445 * TODO: Add note about endianness in grub-mkimage.
53446 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53447 section.
53448 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53449 (grub_mkimage_SOURCES): New target.
53450 * include/grub/kernel.h (grub_start_addr): Remove variable.
53451 (grub_end_addr): Likewise.
53452 (grub_total_module_size): Likewise.
53453 (grub_kernel_image_size): Likewise.
53454 (GRUB_MODULE_MAGIC): New constant.
53455 (grub_module_info): New structure.
53456 (grub_arch_modules_addr): New prototype.
53457 (grub_get_end_addr): Remove prototype.
53458 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53459 * include/grub/powerpc/ieee1275/kernel.h: New file.
53460 * include/grub/util/misc.h (grub_util_get_fp_size): New
53461 prototype.
53462 (grub_util_read_at): Likewise.
53463 (grub_util_write_image_at): Likewise.
53464 * kern/main.c (grub_get_end_addr): Remove function.
53465 (grub_load_modules): Call grub_arch_modules_addr instead of using
53466 grub_end_addr. Look for a grub_module_info struct in memory. Use
53467 the grub_module_info fields instead of calling grub_get_end_addr
53468 as loop conditions. Move grub_add_unused_region code here.
53469 (grub_add_unused_region): Remove function.
53470 * kern/i386/pc/init.c: Include grub/cache.h.
53471 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53472 one call to add_mem_region.
53473 (grub_arch_modules_addr): New function.
53474 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53475 (grub_total_module_size): Likewise.
53476 Include grub/machine/kernel.h.
53477 (grub_arch_modules_addr): New function.
53478 * util/grub-emu.c (grub_end_addr): Remove variable.
53479 (grub_total_module_size): Likewise.
53480 (grub_arch_modules_addr): New function.
53481 * util/misc.c: Include unistd.h.
53482 (grub_util_get_fp_size): New function.
53483 (grub_util_read_at): Likewise.
53484 (grub_util_write_image_at): Likewise.
53485 (grub_util_read_image): Call grub_util_read_at.
53486 (grub_util_write_image): Call grub_util_write_image_at.
53487 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53488 additional memory in kernel_img for a struct grub_module_info.
53489 Fill in that grub_module_info.
53490 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53491
53492 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53493
53494 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53495 New function.
53496 * include/grub/powerpc/ieee1275/ieee1275.h
53497 (grub_ieee1275_milliseconds): New prototype.
53498 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53499 Change to 1000.
53500 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53501 grub_ieee1275_milliseconds.
53502
53503 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53504
53505 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53506 variable.
53507 (find_options): New function.
53508 (cmain): Call find_options.
53509 * include/grub/powerpc/ieee1275/ieee1275.h
53510 (grub_ieee1275_realmode): New extern variable.
53511 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53512 grub_map if grub_ieee1275_realmode is false.
53513
53514 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53515
53516 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53517 lines are inserted and make it work like readline. Reported by
53518 Vincent Pelletier <subdino2004@yahoo.fr>.
53519
53520 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53521
53522 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53523
53524 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53525 `kern/powerpc/cache.S'.
53526
53527 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53528
53529 * genmk.rb: Handle the `Program' class in the main loop. Written
53530 by Johan Rydberg <jrydberg@gnu.org>.
53531 (Program): New class.
53532 (programs): New variable.
53533 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53534 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53535 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53536 (help_arch): Function removed.
53537 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53538 `powerpc/libgcc.h' and `loader.h'.
53539 (pkgdata_PROGRAMS): New variable.
53540 (sbin_UTILITIES): Variable removed.
53541 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53542 (grubof_SOURCES): Variable re-defined so it only includes the
53543 core functionality.
53544 (grubof_CFLAGS): Remove `-DGRUBOF'.
53545 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53546 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53547 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53548 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53549 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53550 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53551 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53552 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53553 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53554 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53555 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53556 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53557 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53558 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53559 (pc_mod_CFLAGS): New variables.
53560 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53561 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53562 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53563 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53564 Moved from here...
53565 * include/grub/i386/pc/init.h (grub_os_area_addr)
53566 (rub_os_area_size): ... to here.
53567 * include/grub/powerpc/ieee1275/ieee1275.h
53568 (grub_ieee1275_entry_fn): Export symbol.
53569 * include/grub/powerpc/ieee1275/init.h: New file.
53570 * include/grub/powerpc/libgcc.h: Likewise.
53571 * include/grub/cache.h: Likewise.
53572 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53573 <hollis@penguinppc.org>.
53574 * kern/dl.c: Include <grub/cache.h>.
53575 (grub_dl_flush_cache): New function.
53576 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53577 for this module.
53578 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53579 (grub_console_init): Removed prototypes.
53580 (grub_machine_init): Don't initialize the modules anymore.
53581 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53582 static.
53583 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53584 Macro undef removed.
53585 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53586 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53587 relocation `R_PPC_REL32'. Return an error when the relocation is
53588 unknown.
53589 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53590 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53591 * util/misc.c (grub_arch_sync_caches): Likewise.
53592
53593 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53594
53595 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53596 `symlist.c', add `grubof_symlist.c'.
53597 (symlist.c): Variable removed.
53598 (grubof_HEADERS): Variable added.
53599 (grubof_symlist.c): New target.
53600 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53601 `kernel_img_HEADERS'.
53602 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53603 * kern/powerpc/dl.c: New file.
53604 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53605 Function removed.
53606 (grub_arch_dl_relocate_symbols): Likewise.
53607 (grub_register_exported_symbols): Likewise.
53608
53609 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53610
53611 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53612 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53613 to fail instead. Reported by Vincent Pelletier
53614 <subdino2004@yahoo.fr>.
53615
53616 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53617 it is not allocated. Reported by Vincent Pelletier
53618 <subdino2004@yahoo.fr>.
53619
53620 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53621 output so the output looks better.
53622
53623 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53624
53625 Modulize the partition map support and add support for the amiga
53626 partition map.
53627
53628 * commands/ls.c: Include <grub/partition.h> instead of
53629 <grub/machine/partition.h>.
53630 * kern/disk.c: Likewise.
53631 * kern/rescue.c: Likewise.
53632 * loader/i386/pc/chainloader.c: Likewise.
53633 * normal/cmdline.c: Likewise.
53634 * kern/powerpc/ieee1275/init.c: Likewise.
53635 (grub_machine_init): Call `grub_pc_partition_map_init',
53636 `grub_amiga_partition_map_init' and
53637 `grub_apple_partition_map_init'.
53638 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53639 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53640 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53641 `partition.h' and `pc_partition.h'.
53642 (grub_setup_SOURCES): Remove
53643 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53644 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53645 (grub_emu_SOURCES): Likewise.
53646 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53647 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53648 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53650 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53651 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53652 (grubof_SOURCES): Likewise.
53653 * disk/i386/pc/partition.c: File removed.
53654 * disk/powerpc/ieee1275/partition.c: Likewise.
53655 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53656 * include/grub/i386/pc/partition.h: Likewise.
53657 * kern/partition.c: New file.
53658 * partmap/amiga.c: Likewise.
53659 * partmap/apple.c: Likewise.
53660 * partmap/pc.c: Likewise.
53661 * include/grub/partition.h: Likewise..
53662 * include/grub/pc_partition.h: Likewise.
53663 * util/grub-emu.c: Include <grub/partition.h> instead of
53664 <grub/machine/partition.h>.
53665 (main): Call `grub_pc_partition_map_init',
53666 `grub_amiga_partition_map_init' and
53667 `grub_apple_partition_map_init' and deinitialize afterwards.
53668 * util/i386/pc/biosdisk.c: Include `#include
53669 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53670 `<grub/machine/partition.h>'.
53671 * util/i386/pc/grub-setup.c: Likewise.
53672 * util/i386/pc/biosdisk.c: Likewise.
53673 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53674 partition information in case of a PC partition.
53675 * util/i386/pc/grub-setup.c: Include `#include
53676 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53677 `<grub/machine/partition.h>'.
53678 (setup): Only access the PC specific partition information in case
53679 of a PC partition.
53680
53681 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53682
53683 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53684 (grub_longjmp): Likewise.
53685 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53686 20.
53687 * normal/powerpc/setjmp.S: New file.
53688 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53689 `normal/powerpc/setjmp.S'.
53690 (grubof_CFLAGS): Add `-DGRUBOF'.
53691 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53692 [GRUB_UTIL && !GRUBOF].
53693
53694 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53695
53696 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53697 property named `name'. Correctly handle the error returned by
53698 `grub_ieee1275_finddevice' if a device can not be opened.
53699
53700 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53701
53702 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53703 `actual' for negativity.
53704 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53705 kern/fshelp.c.
53706
53707 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53708
53709 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53710 (PAGE_OFFSET): New macro.
53711 (CRTC_ADDR_PORT): Likewise.
53712 (CRTC_DATA_PORT): Likewise.
53713 (START_ADDR_HIGH_REGISTER): Likewise.
53714 (START_ADDR_LOW_REGISTER): Likewise.
53715 (GRAPHICS_ADDR_PORT): Likewise.
53716 (GRAPHICS_DATA_PORT): Likewise.
53717 (READ_MAP_REGISTER): Likewise.
53718 (INPUT_STATUS1_REGISTER): Likewise.
53719 (INPUT_STATUS1_VERTR_BIT): Likewise.
53720 (page): New variable.
53721 (wait_vretrace): New function.
53722 (set_read_map): Likewise.
53723 (set_start_address): Likewise.
53724 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53725 the right page.
53726 (check_vga_mem): Take the page into account.
53727 (write_char): Likewise.
53728 (write_cursor): Likewise.
53729 (scroll_up): Likewise. Copy the page to the page that is not
53730 shown and switch between both pages.
53731 (grub_vga_putchar): Fix off by one error.
53732 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53733 account.
53734
53735 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53736
53737 Add support for iso9660 (including rockridge).
53738
53739 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53740 (iso9660_mod_SOURCES): New variable.
53741 (iso9660_mod_CFLAGS): Likewise.
53742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53743 * include/grub/fs.h (grub_iso9660_init): New prototype.
53744 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53745 * fs/iso9660.c: New file.
53746
53747 * include/grub/misc.h (grub_strncat): New prototype.
53748 * kern/misc.c (grub_strncat): New function.
53749
53750 * fs/hfs.c (grub_hfs_mount): Translate the error
53751 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53752 * fs/jfs.c (grub_jfs_mount): Likewise.
53753 * fs/ufs.c (grub_ufs_mount): Likewise.
53754
53755 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53756
53757 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53758 which initialized BAT registers.
53759 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53760 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53761 Move from here...
53762 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53763 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53764 ... to here.
53765 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53766 (grub_mapclaim): Likewise.
53767 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53768 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53769 hand.
53770
53771 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53772
53773 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53774 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53775 -ffreestanding and -msoft-float.
53776
53777 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53778
53779 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53780 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53781 set in grub_ieee1275_flags.
53782
53783 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53784
53785 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53786 prototype.
53787 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53788 grub_console_init first.
53789 Change the memory range used for grub_ieee1275_claim and
53790 grub_mm_init_region.
53791 Print an error message if the claim fails.
53792 Include <grub/misc.h>.
53793
53794 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53795
53796 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53797 Call grub_children_iterate for device nodes of type `scsi',
53798 `ide', or `ata'.
53799 (grub_ofdisk_open): Remove manual device alias resolution.
53800 Fix memory leak when device cannot be opened.
53801 * include/grub/powerpc/ieee1275/ieee1275.h
53802 (grub_children_iterate): New prototype.
53803 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53804 New function.
53805 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53806 Return -1 if args.size was -1.
53807
53808 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53809
53810 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53811 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53812 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53813 Open Firmware's memory for it; claim memory from _start to _end.
53814 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53815 (_end): New extern.
53816 (_start): Zero BSS from __bss_start to _end.
53817 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53818 New extern.
53819 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53820
53821 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53822
53823 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53824 -1 if args.base was -1.
53825
53826 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53827
53828 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53829 escape sequence instead of a literal ^L. Also call
53830 grub_ofconsole_gotoxy.
53831
53832 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53833
53834 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53835 void * arguments to grub_addr_t. All callers updated. Also make
53836 the `result' argument optional.
53837 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53838 All callers updated.
53839
53840 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53841
53842 * commands/ls.c (grub_ls_list_files): Use the string following the
53843 initial ')', if present, as the filesystem path.
53844 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53845
53846 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53847
53848 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53849
53850 Make the source code of the menu interface more readable.
53851
53852 * normal/menu.c: Include grub/mm.h.
53853 (TERM_WIDTH): New macro.
53854 (TERM_HEIGHT): Likewise.
53855 (TERM_INFO_HEIGHT): Likewise.
53856 (TERM_MARGIN): Likewise.
53857 (TERM_SCROLL_WIDTH): Likewise.
53858 (TERM_TOP_BORDER_Y): Likewise.
53859 (TERM_LEFT_BORDER_X): Likewise.
53860 (TERM_BORDER_WIDTH): Likewise.
53861 (TERM_MESSAGE_HEIGHT): Likewise.
53862 (TERM_BORDER_HEIGHT): Likewise.
53863 (TERM_NUM_ENTRIES): Likewise.
53864 (TERM_FIRST_ENTRY_Y): Likewise.
53865 (TERM_ENTRY_WIDTH): Likewise.
53866 (TERM_CURSOR_X): Likewise.
53867 (draw_border): Use macros instead of magic numbers.
53868 (print_entry): Likewise.
53869 (print_entries): Likewise.
53870 (run_menu): Likewise. Also, handle the key 'e'.
53871 (run_menu_entry): Ignore empty command lines.
53872 (print_message): Added a new argument EDIT. If EDIT is true,
53873 print a different message.
53874 (init_page): Likewise.
53875 (edit_menu_entry): New function. Not implemented yet.
53876
53877 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53878
53879 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53880 can be loaded from normal mode.
53881
53882 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53883 `multiboot.mod'.
53884 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53885 (multiboot_mod_CFLAGS): New variables.
53886 * loader/i386/pc/linux_normal.c: New file.
53887 * loader/i386/pc/multiboot_normal.c: Likewise.
53888
53889 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53890 attribute `unused'.
53891
53892 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53893 `fdiro' to read the mode information from instead of `diro'.
53894
53895 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53896 looking up a symlink.
53897
53898 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53899 macro.
53900 * normal/command.c (grub_command_execute): Don't parse the
53901 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53902 flags of the command.
53903
53904 * normal/menu.c (grub_menu_run): Fix typo.
53905
53906 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53907
53908 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53909
53910 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53911 `y + 1' instead of `y - 1'.
53912
53913 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53914
53915 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53916
53917 From Hollis Blanchard <hollis@penguinppc.org>:
53918 * kern/misc.c (memmove): New alias for grub_memmove.
53919 (memcmp): New alias for grub_memcmp.
53920 (memset): New alias for grub_memset.
53921 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53922 Change "int handle" to "grub_ieee1275_phandle_t handle".
53923 * include/grub/powerpc/ieee1275/ieee1275.h
53924 (grub_ieee1275_get_property): Likewise.
53925
53926 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53927
53928 Added normal mode command `chainloader' as module chain.mod, which
53929 depends on normal.mod and _chain.mod.
53930
53931 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53932 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53933 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53934 Deleted prototype.
53935 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53936 but arguments parsing moved to ...
53937 (grub_chainloader_cmd): ... here. New function.
53938 * include/grub/i386/pc/chainloader.h: New file.
53939 * loader/i386/pc/chainloader_normal.c: Likewise.
53940
53941 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53942
53943 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53944 (grub_mkimage_LDFLAGS): Likewise.
53945 (grub_emu_SOURCES): Likewise.
53946 (kernel_img_HEADERS): Added fshelp.h.
53947 * fs/ext2.c: Include <grub/fshelp.h>.
53948 (FILETYPE_REG): New macro.
53949 (FILETYPE_INO_REG): Likewise.
53950 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53951 Changed all users.
53952 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53953 all users.
53954 (grub_fshelp_node): New struct.
53955 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53956 to a pointer.
53957 (grub_ext2_get_file_block): Removed function.
53958 (grub_ext2_read_block): New function.
53959 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53960 This function was written.
53961 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53962 (grub_ext2_find_file): Removed function.
53963 (grub_ext2_read_symlink): New function.
53964 (grub_ext2_iterate_dir): Likewise.
53965 (grub_ext2_open): Rewritten.
53966 (grub_ext2_dir): Rewritten.
53967 * include/grub/fshelp.h: New file.
53968 * fs/fshelp.c: Likewise.
53969
53970 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53971
53972 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53973 (print_message): Add a missing newline.
53974 (run_menu): Added timeout support.
53975 (run_menu_entry): New local function.
53976 (grub_menu_run): Added support for booting.
53977
53978 * kern/loader.c (grub_loader_is_loaded): New function.
53979
53980 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53981 (grub_get_rtc): Exported.
53982
53983 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53984 (grub_get_rtc): Exported.
53985
53986 * include/grub/normal.h (struct grub_command_list): Remove
53987 constant from the member `command'.
53988
53989 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53990
53991 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53992
53993 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53994
53995 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53996
53997 Add support for the JFS filesystem.
53998
53999 * fs/jfs.c: New file.
54000 * include/grub/fs.h (grub_jfs_init): New prototype.
54001 (grub_jfs_fini): New prototype.
54002 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54003 (grub_emu_SOURCES): Likewise.
54004 (pkgdata_MODULES): Add jfs.mod.
54005 (jfs_mod_SOURCES): New variable.
54006 (jfs_mod_CFLAGS): Likewise.
54007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54008 (grubof_SOURCES): Likewise.
54009 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54010
54011 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54012 endian to the host endian.
54013 (grub_fat_utf16_to_utf8): Move function from there...
54014 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54015 the endianness of the source string anymore.
54016 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54017
54018 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54019
54020 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54021 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54022 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54023 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54024
54025 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54026 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54027 for `node_found' and `it_dir'.
54028 (grub_hfs_dir): Add prototype for `dir_hook'.
54029
54030 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54031 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54032 and `indir32' to silence a gcc warning.
54033
54034 * include/grub/fs.h (grub_hfs_init): New prototype.
54035 (grub_hfs_fini): Likewise.
54036
54037
54038 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54039
54040 Each disk device has its own id now. This is useful to make use
54041 of multiple disk devices.
54042
54043 * include/grub/disk.h (grub_disk_dev_id): New enum.
54044 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54045 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54046
54047 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54048 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54049
54050 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54051 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54052
54053 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54054 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54055
54056 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54057 "id" which is used by the cache manager.
54058
54059 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54060 of just "GRUB".
54061
54062 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54063
54064 * fs/hfs.c: New file.
54065 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54066 (grub_emu_SOURCES): Likewise.
54067 (pkgdata_MODULES): Add hfs.mod.
54068 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54069 (grubof_SOURCES): Likewise.
54070 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54071
54072 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54073 * kern/misc.c (grub_strncasecmp): Add function.
54074
54075 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54076
54077 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54078 with parentheses.
54079
54080 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54081 (grub_ext2_dir): In case the directory entry type is unknown, read
54082 it from the inode.
54083
54084 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54085
54086 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54087 grub_load_linux instead of grub_rescue_cmd_linux as second
54088 argument of grub_rescue_register_command.
54089
54090 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54091
54092 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54093
54094 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54095 function.
54096 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54097 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54098 `loader/powerpc/ieee1275/linux.c',
54099 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54100 * include/grub/powerpc/ieee1275/ieee1275.h
54101 (grub_ieee1275_release): New prototype.
54102 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54103 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54104 normal, boot, linux and linux_normal.
54105 * loader/powerpc/ieee1275/linux.c: New file.
54106 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54107
54108 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54109
54110 * normal/arg.c (grub_arg_parse): Correct error handling after
54111 reallocating the argumentlist (check if `argl' is not null instead
54112 of checking if `args' is not null).
54113 * kern/mm.c (grub_realloc): Return the same pointer when using the
54114 same region, instead of returning the header address.
54115
54116 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54117
54118 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54119 one block instead of two when looking for the initial partition.
54120 (grub_partition_probe): Initialize the local variable `p' with 0.
54121 Use base 10 for the grub_strtoul call.
54122 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54123 need for one local variable.
54124 (grub_strtoul): Don't add the new value to `num', instead of that
54125 just assign it.
54126
54127 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54128
54129 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54130 (pxeboot_img_SOURCES): New variable.
54131 (pxeboot_img_ASFLAGS): Likewise.
54132 (pxeboot_img_LDFLAGS): Likewise.
54133 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54134 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54135 <lode_leroy@hotmail.com>.
54136
54137 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54138
54139 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54140 there was no input.
54141
54142 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54143
54144 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54145 the history buffer logic.
54146
54147 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54148
54149 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54150 (FILETYPE_INO_SYMLINK): New macros.
54151 (grub_ext2_find_file): Check if the node is a directory using the
54152 inode stat information instead of using the filetype in the
54153 dirent. Exclude the first character of an absolute symlink.
54154 (grub_ext2_dir): Mask out the filetype part of the mode member of
54155 the inode.
54156
54157 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54158
54159 Add support for UFS version 1 and 2. Add support for the minix
54160 filesystem version 1 and 2, both the variants with 14 and 30 long
54161 filenames.
54162
54163 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54164 fs/minix.c.
54165 (grub_emu_SOURCES): Likewise.
54166 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54167 (ufs_mod_SOURCES): New variable.
54168 (ufs_mod_CFLAGS): Likewise.
54169 (minix_mod_SOURCES): Likewise.
54170 (minix_mod_CFLAGS): Likewise.
54171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54172 fs/minix.c.
54173 (grubof_SOURCES): Likewise.
54174 * fs/ufs.c: New file.
54175 * fs/minix.c: New file.
54176 * include/grub/fs.h (grub_ufs_init): New prototype.
54177 (grub_ufs_fini): Likewise.
54178 (grub_minix_init): Likewise.
54179 (grub_minix_fini): Likewise.
54180 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54181 minix fs.
54182
54183 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54184
54185 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54186 commands/ls.c, commands/terminal.c, commands/boot.c,
54187 commands/cmp.c and commands/cat.c.
54188 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54189
54190 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54191 "env.h"
54192
54193 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54194
54195 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54196 and grub_, respectively. Because the conversion is trivial and
54197 mechanical, I omit the details here. Please refer to the CVS
54198 if you need more information.
54199
54200 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54201
54202 * include/pupa: Renamed to ...
54203 * include/grub: ... this.
54204 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54205 * util/i386/pc/grub-mkimage.c: ... this.
54206 * util/i386/pc/pupa-setup.c: Renamed to ...
54207 * util/i386/pc/grub-setup.c: ... this.
54208 * util/pupa-emu.c: Renamed to ...
54209 * util/grub-emu.c: ... this.
54210
54211 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54212
54213 Add support for the newworld apple macintosh (PPC). This has been
54214 tested on the powerbook 2000 only. It only adds support for
54215 generic ieee1275 functions, console and disk support. This should
54216 be easy to port to other architectures with support for Open
54217 Firmware.
54218
54219 * configure.ac: Accept the powerpc as host_cpu. In the case of
54220 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54221 specific tests are only executed while building for the i386.
54222 Inverse test for crosscompile.
54223 * genmk.rb (Utility): Allow assembler files.
54224 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54225 * conf/powerpc-ieee1275.rmk: New file.
54226 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54227 * disk/powerpc/ieee1275/partition.c: Likewise.
54228 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54229 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54230 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54231 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54232 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54233 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54234 * include/pupa/powerpc/ieee1275/loader.h
54235 * include/pupa/powerpc/setjmp.h: Likewise.
54236 * include/pupa/powerpc/types.h: Likewise.
54237 * kern/powerpc/ieee1275/init.c: Likewise.
54238 * kern/powerpc/ieee1275/openfw.c: Likewise.
54239 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54240
54241 These files were written by Johan Rydberg
54242 (jrydberg@night.trouble.net) and I only modified them slightly.
54243
54244 * boot/powerpc/ieee1275/cmain.c: New file.
54245 * boot/powerpc/ieee1275/crt0.S: Likewise.
54246 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54247 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54248
54249 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54250
54251 * Makefile.in: Update copyright.
54252 * genmodsrc.sh: Likewise.
54253 * gensymlist.sh: Likewise.
54254 * term/i386/pc/vga.c: Indent correctly.
54255
54256 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54257 bugreporting address.
54258 * util/i386/pc/pupa-setup.c (usage): Likewise,
54259 (main): Call pupa_ext2_init and pupa_ext2_fini.
54260
54261 * fs/fat.c (log2): Renamed to ...
54262 (fat_log2): ... this.
54263 All callers changed.
54264 * kern/misc.c (memcpy): Alias to pupa_memmove.
54265 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54266 lvalue cast.
54267 * util/console.c (pupa_ncurses_fini): Return 0.
54268
54269 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54270 Move fail label here.
54271 [__GNU__]: Don't warn when using stat.
54272 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54273 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54274 long int. Use strtol instead of strtoul.
54275
54276 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54277
54278 * commands/boot.c: New file.
54279 * commands/cat.c: Likewise.
54280 * commands/cmp.c: Likewise.
54281 * commands/ls.c: Likewise.
54282 * commands/terminal.c: Likewise.
54283 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54284 (pupa_register_command): Changed interface to match the new
54285 argument parser.
54286 (pupa_command_execute): Changed (almost rewritten) so it uses
54287 pupa_split_command. Added support for setting variables using the
54288 syntax `foo=bar'.
54289 (rescue_command): Changed to work with the new argument parser.
54290 (terminal_command): Moved from here to commands/terminal.c.
54291 (set_command): New function.
54292 (unset_command): New function.
54293 (insmod_command): New function.
54294 (rmmod_command): New function.
54295 (lsmod_command): New function.
54296 (pupa_command_init): Don't initialize the command terminal
54297 anymore. Initialize the commands set, unset, insmod, rmmod and
54298 lsmod.
54299 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54300 (kernel_img_HEADERS): Add arg.h and env.h.
54301 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54302 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54303 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54304 normal/arg.c.
54305 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54306 terminal.mod.
54307 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54308 (boot_mod_SOURCES): New variable.
54309 (terminal_mod_SOURCES): Likewise.
54310 (ls_mod_SOURCES): Likewise.
54311 (cmp_mod_SOURCES): Likewise.
54312 (cat_mod_SOURCES): Likewise.
54313
54314 * normal/arg.c: New file.
54315 * kern/env.c: Likewise.
54316 * include/pupa/arg.h: Likewise.
54317 * include/pupa/env.h: Likewise.
54318 * font/manager.c (font_command): Changed to match argument parsing
54319 interface changes.
54320 (PUPA_MOD_INIT): Likewise.
54321 * hello/hello.c (pupa_cmd_hello): Likewise.
54322 (PUPA_MOD_INIT): Likewise.
54323 * include/pupa/disk.h: Include <pupa/device.h>.
54324 (pupa_print_partinfo): New prototype.
54325 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54326 (pupa_dl_get_prefix): Likewise.
54327 * include/pupa/misc.h: Include <pupa/err.h>.
54328 (pupa_isgraph): New prototype.
54329 (pupa_isdigit): Likewise.
54330 (pupa_split_cmdline): Likewise.
54331 * include/pupa/normal.h: Include <pupa/arg.h>.
54332 (pupa_command): Changed the prototype of the member `func' to
54333 match the argument parsing interface. Added member `options'.
54334 (pupa_register_command): Updated to match function.
54335 (pupa_arg_parse): New prototype.
54336 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54337 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54338 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54339 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54340 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54341 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54342 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54343 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54344 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54345 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54346 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54347 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54348 * kern/disk.c: Include <pupa/file.h>.
54349 (pupa_print_partinfo): New function.
54350 * kern/dl.c: Include <pupa/env.h>.
54351 (pupa_dl_dir): Variable removed.
54352 (pupa_dl_load): Use the environment variable `prefix' instead of
54353 the variable pupa_dl_dir.
54354 (pupa_dl_set_prefix): Function removed.
54355 (pupa_dl_get_prefix): Likewise.
54356 * kern/i386/pc/init.c: Include <pupa/env.h>.
54357 (pupa_machine_init): Use the environment variable `prefix' instead of
54358 using pupa_dl_set_prefix to set the prefix.
54359 * kern/main.c: Include <pupa/env.h>.
54360 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54361 using pupa_dl_get_prefix to get the prefix.
54362 * kern/misc.c: Include <pupa/env.h>.
54363 (pupa_isdigit): New function.
54364 (pupa_isgraph): Likewise.
54365 (pupa_ftoa): Likewise.
54366 (pupa_vsprintf): Added support for printing values of the type
54367 `double'. Make it possible to format variable output when using
54368 formatting like `%1.2%f'.
54369 (pupa_split_cmdline): New function.
54370 * kern/rescue.c: Include <pupa/env.h>.
54371 (next_word): Removed function.
54372 (pupa_rescue_cmd_prefix): Likewise.
54373 (pupa_rescue_cmd_set): New function.
54374 (pupa_rescue_cmd_unset): New function.
54375 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54376 split the command line instead of splitting it here. Added
54377 support for setting variables using the syntax `foo=bar'. Don't
54378 initialize the prefix command anymore. Initialized the set and
54379 unset commands.
54380 * normal/cmdline.c: Include <pupa/env.h>.
54381 (pupa_tab_complete): Added prototypes for print_simple_completion,
54382 print_partition_completion, add_completion, iterate_commands,
54383 iterate_dev, iterate_part and iterate_dir. Moved code to print
54384 partition information from here to kern/disk.c.
54385 (pupa_cmdline_run): Don't check if the function exists anymore.
54386 * normal/main.c: Include <pupa/env.h>.
54387 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54388 instead of using pupa_dl_get_prefix to get the prefix.
54389 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54390 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54391 warning.
54392 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54393 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54394 ((unused))' to silence a gcc warning.
54395 (pupa_vga_setcolor): Likewise.
54396 (debug_command): Changed to match argument parsing
54397 interface changes.
54398 * util/pupa-emu.c: Include <pupa/env.h>.
54399 (options): Added 0's for unused fields to silence a gcc warning.
54400 (argp): Likewise.
54401 (main): Use the environment variable `prefix' instead of using
54402 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54403 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54404 and terminal.
54405
54406 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54407 * util/misc.c: Include <malloc.h>.
54408 (pupa_malloc): Rewritten so errors are correctly reported.
54409 (pupa_realloc): Likewise.
54410 (pupa_memalign): Likewise.
54411 (pupa_mm_init_region): Declare unused variables with
54412 `__attribute__ ((unused))' to silence a gcc warning.
54413 * normal/i386/setjmp.S: Remove tab at the end of the file to
54414 silence a gcc warning.
54415 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54416 variables with `__attribute__ ((unused))' to silence a gcc
54417 warning.
54418 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54419 local variable i unsigned to silence a gcc warning.
54420
54421 * kern/term.c: Include <pupa/misc.h>.
54422 (pupa_more_lines): New variable.
54423 (pupa_more): Likewise.
54424 (pupa_putcode): When the pager is active pause at the end of every
54425 screen.
54426 (pupa_set_more): New function.
54427 * include/pupa/term.h (pupa_set_more): New prototype.
54428
54429
54430 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54431
54432 Now this project is GRUB 2 rather than PUPA. The location of
54433 the CVS repository was moved to GRUB's.
54434
54435 * configure.ac: Use bug-grub as the reporting address.
54436 Use GRUB instead of PUPA.
54437 Change the version number to 1.90.
54438
54439 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54440
54441 * genkernsyms.sh: Updated copyright information.
54442 * genmk.rb: Likewise.
54443 * genmodsrc.sh: Likewise.
54444 * gensymlist.sh: Likewise.
54445 * boot/i386/pc/boot.S: Likewise.
54446 * boot/i386/pc/diskboot.S: Likewise.
54447 * disk/i386/pc/biosdisk.c: Likewise.
54448 * disk/i386/pc/partition.c: Likewise.
54449 * font/manager.c: Likewise.
54450 * fs/ext2.c: Likewise.
54451 * fs/fat.c: Likewise.
54452 * include/pupa/boot.h: Likewise.
54453 * include/pupa/device.h: Likewise.
54454 * include/pupa/disk.h: Likewise.
54455 * include/pupa/dl.h: Likewise.
54456 * include/pupa/elf.h: Likewise.
54457 * include/pupa/err.h: Likewise.
54458 * include/pupa/file.h: Likewise.
54459 * include/pupa/font.h: Likewise.
54460 * include/pupa/fs.h: Likewise.
54461 * include/pupa/kernel.h: Likewise.
54462 * include/pupa/loader.h: Likewise.
54463 * include/pupa/misc.h: Likewise.
54464 * include/pupa/mm.h: Likewise.
54465 * include/pupa/net.h: Likewise.
54466 * include/pupa/normal.h: Likewise.
54467 * include/pupa/rescue.h: Likewise.
54468 * include/pupa/setjmp.h: Likewise.
54469 * include/pupa/symbol.h: Likewise.
54470 * include/pupa/term.h: Likewise.
54471 * include/pupa/types.h: Likewise.
54472 * include/pupa/i386/setjmp.h: Likewise.
54473 * include/pupa/i386/types.h: Likewise.
54474 * include/pupa/i386/pc/biosdisk.h: Likewise.
54475 * include/pupa/i386/pc/boot.h: Likewise.
54476 * include/pupa/i386/pc/console.h: Likewise.
54477 * include/pupa/i386/pc/init.h: Likewise.
54478 * include/pupa/i386/pc/kernel.h: Likewise.
54479 * include/pupa/i386/pc/linux.h: Likewise.
54480 * include/pupa/i386/pc/loader.h: Likewise.
54481 * include/pupa/i386/pc/memory.h: Likewise.
54482 * include/pupa/i386/pc/multiboot.h: Likewise.
54483 * include/pupa/i386/pc/partition.h: Likewise.
54484 * include/pupa/i386/pc/time.h: Likewise.
54485 * include/pupa/i386/pc/vga.h: Likewise.
54486 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54487 * include/pupa/util/getroot.h: Likewise.
54488 * include/pupa/util/misc.h: Likewise.
54489 * include/pupa/util/resolve.h: Likewise.
54490 * kern/device.c: Likewise.
54491 * kern/disk.c: Likewise.
54492 * kern/dl.c: Likewise.
54493 * kern/err.c: Likewise.
54494 * kern/file.c: Likewise.
54495 * kern/fs.c: Likewise.
54496 * kern/loader.c: Likewise.
54497 * kern/main.c: Likewise.
54498 * kern/misc.c: Likewise.
54499 * kern/mm.c: Likewise.
54500 * kern/rescue.c: Likewise.
54501 * kern/term.c: Likewise.
54502 * kern/i386/dl.c: Likewise.
54503 * kern/i386/pc/init.c: Likewise.
54504 * kern/i386/pc/lzo1x.S: Likewise.
54505 * kern/i386/pc/startup.S: Likewise.
54506 * loader/i386/pc/chainloader.c: Likewise.
54507 * loader/i386/pc/linux.c: Likewise.
54508 * loader/i386/pc/multiboot.c: Likewise.
54509 * normal/cmdline.c: Likewise.
54510 * normal/command.c: Likewise.
54511 * normal/main.c: Likewise.
54512 * normal/menu.c: Likewise.
54513 * normal/i386/setjmp.S: Likewise.
54514 * term/i386/pc/console.c: Likewise.
54515 * term/i386/pc/vga.c: Likewise.
54516 * util/console.c: Likewise.
54517 * util/genmoddep.c: Likewise.
54518 * util/misc.c: Likewise.
54519 * util/pupa-emu.c: Likewise.
54520 * util/resolve.c: Likewise.
54521 * util/unifont2pff.rb: Likewise.
54522 * util/i386/pc/biosdisk.c: Likewise.
54523 * util/i386/pc/getroot.c: Likewise.
54524 * util/i386/pc/pupa-mkimage.c: Likewise.
54525 * util/i386/pc/pupa-setup.c: Likewise.
54526
54527 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54528
54529 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54530 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54531 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54532 reading and reset it after reading.
54533 (pupa_ext2_close): Return PUPA_ERR_NONE.
54534
54535 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54536 Correct value.
54537 (struct linux_kernel_header): Add kernel_version and
54538 initrd_addr_max.
54539 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54540 pupa_file_read succeeds.
54541 (pupa_rescue_cmd_initrd): Implement.
54542
54543 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54544
54545 * fs/ext2.c (pupa_ext2_label): New function.
54546 (pupa_ext2_fs): Added label.
54547 * fs/fat.c (pupa_fat_label): New function.
54548 (pupa_fat_fs): Added label.
54549 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54550
54551 * kern/misc.c (pupa_strndup): New function.
54552 * include/pupa/misc.h (pupa_strndup): New prototype.
54553
54554 * include/pupa/normal.h: Include <pupa/err.h>.
54555 (pupa_set_history): New prototype.
54556 (pupa_iterate_commands): New prototype.
54557 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54558 <pupa/disk.h>, <pupa/file.h>.
54559 (hist_size): New variable.
54560 (hist_lines): Likewise.
54561 (hist_end): Likewise.
54562 (hist_used): Likewise.
54563 (pupa_set_history): New function.
54564 (pupa_history_get): Likewise.
54565 (pupa_history_add): Likewise.
54566 (pupa_history_replace): Likewise.
54567 (pupa_tab_complete): Likewise.
54568 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54569 completion shows partitionnames while completing partitions, this
54570 feature was suggested by Jeff Bailey.
54571 * normal/command.c (pupa_iterate_commands): New function.
54572 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54573 (pupa_normal_init): Initialize history buffer.
54574 (PUPA_MOD_INIT): Likewise.
54575 (pupa_normal_fini): Free the history buffer.
54576 (PUPA_MOD_FINI): Likewise.
54577
54578 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54579 key.
54580
54581 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54582 * configure.ac [i386]: Check for regparam bug.
54583 (NESTED_FUNC_ATTR) [! i386]: Defined.
54584
54585 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54586
54587 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54588 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54589 (pupa_emu_SOURCES): New variable.
54590 (pupa_emu_LDFLAGS): Likewise.
54591 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54592 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54593 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54594 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54595 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54596 (pupa_jmp_buf): New typedef.
54597 (pupa_setjmp) [PUPA_UTIL]: New macro.
54598 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54599 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54600 (pupa_refresh): New prototype.
54601 * include/pupa/util/getroot.h: New file.
54602 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54603 it.
54604 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54605 (pupa_rescue_cmd_cat): Likewise.
54606 (pupa_rescue_cmd_ls): Likewise.
54607 (pupa_rescue_cmd_testload): Likewise.
54608 (pupa_rescue_cmd_lsmod): Likewise.
54609 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54610 * normal/menu.c (run_menu): Likewise.
54611 * kern/term.c (pupa_cls): Likewise.
54612 (pupa_refresh): New function.
54613 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54614 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54615 * util/console.c: New file.
54616
54617 * util/i386/pc/getroot.c: New file.
54618 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54619 (pupa_putchar): New function.
54620 (pupa_refresh): Likewise.
54621 (xgetcwd): Function moved to ...
54622 (strip_extra_slashes): Likewise.
54623 (get_prefix): Likewise.
54624 * util/i386/pc/getroot.c: ... here.
54625 (find_root_device): Function moved and renamed to...
54626 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54627 Changed all callers.
54628 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54629 and renamed to...
54630 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54631 Changed all callers.
54632 * util/misc.c (pupa_memalign): New function.
54633 (pupa_mm_init_region): Likewise.
54634 (pupa_register_exported_symbols): Likewise.
54635 (pupa_putchar): Function removed.
54636 * util/pupa-emu.c: New file.
54637
54638 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54639
54640 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54641 (_multiboot_mod_SOURCES): New variable.
54642 (_multiboot_mod_CFLAGS): Likewise.
54643 * loader/i386/pc/multiboot.c: New file.
54644 * include/pupa/i386/pc/multiboot.h: Likewise.
54645 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54646 (pupa_multiboot_real_boot): New function.
54647 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54648 (pupa_multiboot_real_boot): New prototype.
54649 (pupa_rescue_cmd_multiboot): Likewise
54650 (pupa_rescue_cmd_module): Likewise.
54651
54652 * kern/loader.c (pupa_loader_set): Continue when
54653 pupa_loader_unload_func() fails.
54654 (pupa_loader_unset): New function.
54655 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54656
54657 * kern/misc.c (pupa_stpcpy): New function.
54658 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54659
54660 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54661
54662 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54663 for available extensions.
54664
54665 * include/pupa/i386/pc/time.h: New file.
54666 * kern/disk.c: Include <pupa/machine/time.h>.
54667 (PUPA_CACHE_TIMEOUT): New macro.
54668 (pupa_last_time): New variable.
54669 (pupa_disk_open): Flush the cache when there was a timeout.
54670 (pupa_disk_close): Reset the timer.
54671 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54672 pupa_currticks.
54673 * util/misc.c: Include <sys/times.h>
54674 (pupa_get_rtc): New function.
54675
54676 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54677
54678 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54679 as blocks.
54680 (pupa_ext2_get_file_block): Use blocks member.
54681
54682 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54683 first block. Return -1 instead of pupa_errno on error.
54684
54685 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54686
54687 * README: In the pupa-mkimage example use _chain instead of chain
54688 and ext2 instead of fat.
54689 * TODO: Replace ext2fs with jfs as an example. Add an item for
54690 adding journal playback for ext2fs.
54691 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54692 (pkgdata_MODULES): Added ext2.mod.
54693 (ext2_mod_SOURCES): New variable.
54694 (ext2_mod_CFLAGS): Likewise.
54695 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54696 * include/pupa/misc.h (pupa_strncpy): New prototype.
54697 (pupa_strcat): Likewise.
54698 (pupa_strncmp): Likewise.
54699 * kern/misc.c (pupa_strcat): Enable function.
54700 (pupa_strncpy): New function.
54701 (pupa_strncmp): Likewise.
54702 * fs/ext2.c: New file.
54703
54704 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54705 when the read failed before retrying.
54706 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54707 (_FILE_OFFSET_BITS): Likewise.
54708 * configure.ac: Added AC_SYS_LARGEFILE.
54709
54710 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54711
54712 * genmk.rb (PModule#rule): Make sure to get only symbol names
54713 from the output of nm.
54714 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54715
54716 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54717
54718 I forgot to check in these changes for a long time. This adds
54719 incomplete support for VGA console, and this is still very
54720 buggy. Also, a lot of consideration is required for I18N,
54721 UNICODE, and VGA font issues. Therefore, assume that this is
54722 such that "better than nothing".
54723
54724 * font/manager.c: New file.
54725 * include/pupa/font.h: Likewise.
54726 * include/pupa/i386/pc/vga.h: Likewise.
54727 * term/i386/pc/vga.c: Likewise.
54728 * util/unifont2pff.rb: Likewise.
54729
54730 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54731 (pkgdata_MODULES): Added vga.mod and font.mod.
54732 (vga_mod_SOURCES): New variables.
54733 (vga_mod_CFLAGS): Likewise.
54734 (font_mod_SOURCES): Likewise.
54735 (font_mod_CFLAGS): Likewise.
54736
54737 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54738
54739 * include/pupa/term.h: Include pupa/err.h.
54740 (struct pupa_term): Added init and fini.
54741 Changed the argument of putchar to pupa_uint32_t.
54742
54743 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54744 (pupa_console_real_putchar): New prototype.
54745 (pupa_console_putchar): Removed.
54746 (pupa_console_checkkey): Exported.
54747 (pupa_console_getkey): Likewise.
54748
54749 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54750 characters.
54751
54752 * kern/term.c (pupa_term_set_current): Rewritten.
54753 (pupa_putchar): Likewise.
54754 (pupa_putcode): New function.
54755
54756 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54757 (pupa_console_real_putchar): ... this.
54758 (pupa_vga_set_mode): New function.
54759 (pupa_vga_get_font): Likewise.
54760
54761 * normal/command.c: Include pupa/term.h.
54762 (terminal_command): New function.
54763 (pupa_command_init): Register the command "terminal".
54764
54765 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54766 (DISP_UP): Likewise.
54767 (DISP_RIGHT): Likewise.
54768 (DISP_DOWN): Likewise.
54769 (DISP_HLINE): Likewise.
54770 (DISP_VLINE): Likewise.
54771 (DISP_UL): Likewise.
54772 (DISP_UR): Likewise.
54773 (DISP_LL): Likewise.
54774 (DISP_LR): Likewise.
54775
54776 * term/i386/pc/console.c (pupa_console_putchar): New function.
54777
54778 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54779
54780 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54781 FIX. Reverse the path_list.
54782
54783 * include/pupa/normal.h: Export pupa_register_command and
54784 pupa_unregister_command.
54785
54786 * hello/hello.c (pupa_cmd_hello): New module.
54787 * conf/i386-pc.rmk: Added hello.mod.
54788
54789 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54790
54791 * kern/i386/pc/lzo1x.S: New file.
54792
54793 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54794 (compress_kernel): New variable.
54795 (generate_image): Heavily modified to support compressing a
54796 large part of the core image.
54797
54798 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54799 leak.
54800 (pupa_util_load_image): New function.
54801
54802 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54803 (pupa_compressed_size): New variable.
54804 (codestart): Enable Gate A20 here.
54805 Decompress the compressed part of the core image.
54806 Rearrange the code to put functions and variables which are
54807 required for initialization in the non-compressed part.
54808 Include lzo1x.S.
54809
54810 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54811 here.
54812
54813 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54814
54815 * include/pupa/i386/pc/kernel.h
54816 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54817 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54818 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54819 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54820 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54821
54822 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54823
54824 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54825 (Utility#rule): Likewise.
54826
54827 * configure.ac: Check if LZO is available.
54828
54829 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54830
54831 * include/pupa/normal.h: New file.
54832 * include/pupa/setjmp.h: Likewise.
54833 * include/pupa/i386/setjmp.h: Likewise.
54834 * normal/cmdline.c: Likewise.
54835 * normal/command.c: Likewise.
54836 * normal/main.c: Likewise.
54837 * normal/menu.c: Likewise.
54838 * normal/i386/setjmp.S: Likewise.
54839
54840 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54841 (pupa_rescue_cmd_initrd): Likewise.
54842
54843 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54844 Likewise.
54845
54846 * kern/i386/pc/startup.S (translation_table): New variable.
54847 (translate_keycode): New function.
54848 (pupa_console_getkey): Call translate_keycode.
54849
54850 * kern/rescue.c (attempt_normal_mode): New function.
54851 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54852 it failed, print a message.
54853
54854 * kern/mm.c (pupa_real_malloc): Print more information when a
54855 free magic is broken.
54856 (pupa_free): If the first free header is not free actually, set
54857 it to P.
54858
54859 * kern/main.c (pupa_load_normal_mode): Just load the module
54860 "normal".
54861 (pupa_main): Don't print the message
54862 "Entering into rescue mode..." here.
54863
54864 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54865 Declared.
54866 (pupa_rescue_cmd_initrd): Likewise.
54867 (pupa_rescue_cmd_initrd): Likewise.
54868
54869 * include/pupa/symbol.h (FUNCTION): Specify the type.
54870 (VARIABLE): Likewise.
54871
54872 * include/pupa/err.h (pupa_err_t): Added
54873 PUPA_ERR_UNKNOWN_COMMAND.
54874
54875 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54876 (pupa_dl_get_prefix): Likewise.
54877
54878 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54879 Added _chain.mod and _linux.mod instead of chain.mod and
54880 linux.mod.
54881 (chain_mod_SOURCES): Renamed to ...
54882 (_chain_mod_SOURCES): ... this.
54883 (chain_mod_CFLAGS): Renamed to ...
54884 (_chain_mod_CFLAGS): ... this.
54885 (linux_mod_SOURCES): Renamed to ...
54886 (_linux_mod_SOURCES): ... this.
54887 (linux_mod_CFLAGS): Renamed to ...
54888 (_linux_mod_CFLAGS): ... this.
54889 (normal_mod_SOURCES): New variable.
54890 (normal_mod_CFLAGS): Likewise.
54891 (normal_mod_ASFLAGS): Likewise.
54892
54893 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54894
54895 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54896 possible.
54897
54898 * kern/dl.c (pupa_dl_ref): Refer depending modules
54899 recursively.
54900 (pupa_dl_unref): Unrefer depending modules recursively.
54901 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54902 a module is unloaded before one depending on that module is
54903 unloaded.
54904 (pupa_dl_unload): Unload depending modules explicitly,
54905 if possible.
54906
54907 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54908
54909 * include/pupa/i386/pc/linux.h: New file.
54910 * loader/i386/pc/linux.c: Likewise.
54911
54912 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54913 Removed.
54914 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54915 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54916 of PUPA_CHAINLOADER_BOOT_SECTOR.
54917
54918 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54919 (pupa_linux_prot_size): New variable.
54920 (pupa_linux_tmp_addr): Likewise.
54921 (pupa_linux_real_addr): Likewise.
54922 (pupa_linux_boot_zimage): New function.
54923 (pupa_linux_boot_bzimage): Likewise.
54924
54925 * kern/i386/pc/init.c (struct mem_region): New structure.
54926 (MAX_REGIONS): New macro.
54927 (mem_regions): New variable.
54928 (num_regions): Likewise.
54929 (pupa_os_area_addr): Likewise.
54930 (pupa_os_area_size): Likewise.
54931 (pupa_lower_mem): Likewise.
54932 (pupa_upper_mem): Likewise.
54933 (add_mem_region): New function.
54934 (compact_mem_regions): Likewise.
54935 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54936 the size of the conventional memory and that of so-called upper
54937 memory (before the first memory hole).
54938 Instead of adding each found region to free memory, use
54939 add_mem_region and add them after removing overlaps.
54940 Also, add only 1/4 of the upper memory to free memory. The rest
54941 is used for loading OS images. Maybe this is ad hoc, but this
54942 makes it much easier to relocate OS images when booting.
54943
54944 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54945 (pupa_enter_rescue_mode): Don't register initrd and module.
54946
54947 * kern/mm.c: Include pupa/dl.h.
54948
54949 * kern/main.c: Include pupa/file.h and pupa/device.h.
54950
54951 * kern/loader.c (pupa_loader_load_module_func): Removed.
54952 (pupa_loader_load_module): Likewise.
54953
54954 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54955 ``.o''.
54956
54957 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54958 (pupa_linux_tmp_addr): Likewise.
54959 (pupa_linux_real_addr): Likewise.
54960 (pupa_linux_boot_zimage): Likewise.
54961 (pupa_linux_boot_bzimage): Likewise.
54962
54963 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54964 (pupa_upper_mem): Likewise.
54965 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54966 module is too dangerous.
54967
54968 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54969 (pupa_os_area_size): Likewise.
54970 (pupa_loader_set): Remove the first argument. Loader doesn't
54971 manage modules or initrd any longer.
54972 (pupa_loader_load_module): Removed.
54973
54974 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54975 (linux_mod_SOURCES): New variable.
54976 (linux_mod_CFLAGS): Likewise.
54977
54978 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54979
54980 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54981 the length of a blocklist correctly.
54982
54983 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54984 Use ioctl only if the OS file is a block device.
54985 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54986 not very useful for normal files.
54987
54988 * kern/main.c (pupa_set_root_dev): New function.
54989 (pupa_load_normal_mode): Likewise.
54990 (pupa_main): Call those above.
54991
54992 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54993 pupa_uint16_t.
54994
54995 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54996
54997 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54998
54999 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55000 (setup): Configure the installed partition information and the
55001 dl prefix.
55002
55003 * loader/i386/pc/chainloader.c (my_mod): New variable.
55004 (pupa_chainloader_unload): New function.
55005 (pupa_rescue_cmd_chainloader): Refer itself.
55006 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55007
55008 * kern/i386/pc/startup.S (install_partition): Removed.
55009 (version_string): Likewise.
55010 (config_file): Likewise.
55011 (pupa_install_dos_part): New variable.
55012 (pupa_install_bsd_part): Likewise.
55013 (pupa_prefix): Likewise.
55014 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55015
55016 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55017 and pupa/misc.h.
55018 (make_install_device): New function.
55019 (pupa_machine_init): Set the dl prefix.
55020
55021 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55022 (buf): Renamed to ...
55023 (linebuf): ... this.
55024 (pupa_rescue_cmd_prefix): New function.
55025 (pupa_rescue_cmd_insmod): Likewise.
55026 (pupa_rescue_cmd_rmmod): Likewise.
55027 (pupa_rescue_cmd_lsmod): Likewise.
55028 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55029 rmmod and lsmod.
55030
55031 * kern/mm.c (pupa_memalign): If failed even after invalidating
55032 disk caches, unload unneeded modules and retry.
55033
55034 * kern/misc.c (pupa_memmove): New function.
55035 (pupa_memcpy): Removed.
55036 (pupa_strcpy): New function.
55037 (pupa_itoa): Made static.
55038
55039 * kern/dl.c (pupa_dl_iterate): New function.
55040 (pupa_dl_ref): Likewise.
55041 (pupa_dl_unref): Likewise.
55042 (pupa_dl_unload): Return if succeeded or not.
55043 (pupa_dl_unload_unneeded): New function.
55044 (pupa_dl_unload_all): Likewise.
55045 (pupa_dl_init): Renamed to ...
55046 (pupa_dl_set_prefix): ... this.
55047 (pupa_dl_get_prefix): New function.
55048
55049 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55050 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55051 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55052 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55053 (pupa_install_dos_part): Declared.
55054 (pupa_install_bsd_part): Likewise.
55055 (pupa_prefix): Likewise.
55056 (pupa_boot_drive): Likewise.
55057
55058 * include/pupa/types.h: Fix a typo.
55059
55060 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55061 pupa_memmove.
55062 (pupa_memmove): Declared.
55063 (pupa_strcpy): Likewise.
55064
55065 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55066 pupa_mod_init takes one argument, its own module.
55067 (pupa_dl_unload_unneeded): Declared.
55068 (pupa_dl_unload_all): Likewise.
55069 (pupa_dl_ref): Likewise.
55070 (pupa_dl_unref): Likewise.
55071 (pupa_dl_iterate): Likewise.
55072 (pupa_dl_init): Renamed to ...
55073 (pupa_dl_set_prefix): ... this.
55074 (pupa_dl_get_prefix): Declared.
55075
55076 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55077 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55078 unloaded.
55079 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55080 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55081
55082 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55083 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55084
55085 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55086
55087 * util/i386/pc/pupa-setup.c (setup): Define the internal
55088 function find_first_partition_start at the top level, because GCC
55089 3.0.x cannot compile internal functions in deeper scopes
55090 correctly.
55091 (find_root_device): Use lstat instead of stat.
55092 Don't follow symbolic links.
55093 Fix the path-constructing code.
55094
55095 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55096 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55097 by a BLKGETSIZE ioctl first, because block devices don't fill
55098 the member st_mode of the structure stat on Linux.
55099 [__linux__] (linux_find_partition): Use a temporary buffer
55100 REAL_DEV for the working space. Copy it to DEV before returning.
55101 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55102 buffer cache consistent.
55103 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55104 strncmp. The previous value was merely wrong.
55105 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55106
55107 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55108 FAT size is 12. The previous value was merely wrong.
55109
55110 * kern/main.c (pupa_main): Don't split the starting message from
55111 newlines.
55112
55113 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55114 LF, because BIOS goes crazy about character attributes in this
55115 case.
55116
55117 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55118
55119 * include/i386/pc/util/biosdisk.h: New file.
55120 * util/i386/pc/biosdisk.c: Likewise.
55121 * util/i386/pc/pupa-setup.c: Likewise.
55122
55123 * Makefile.in (INCLUDE_DISTFILES): Added
55124 include/pupa/i386/pc/util/biosdisk.h.
55125 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55126 directory util/i386/pc.
55127 (install-local): Added a rule for sbin_UTILITIES.
55128 (uninstall): Likewise.
55129
55130 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55131
55132 * util/misc.c (xrealloc): New function.
55133 (pupa_malloc): Likewise.
55134 (pupa_free): Likewise.
55135 (pupa_realloc): Likewise.
55136 (pupa_stop): Likewise.
55137 (pupa_putchar): Likewise.
55138
55139 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55140
55141 * include/pupa/util/misc.h (xrealloc): Declared.
55142
55143 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55144 macro.
55145 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55146 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55147
55148 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55149 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55150
55151 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55152 way should be implemented.
55153 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55154
55155 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55156 the size of NAME for safety.
55157 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55158 0x88.
55159
55160 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55161 (pupa_setup_SOURCES): Likewise.
55162
55163 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55164
55165 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55166
55167 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55168 bunch of pushl's from pusha, because this destroys the return
55169 value.
55170
55171 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55172
55173 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55174 This means that any missing prototypes could be fatal. Also, you
55175 must take care when writing assembly code. See the comments at
55176 the beginning of startup.S, for more details.
55177
55178 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55179 compilation mechanism.
55180 (pupa_chainloader_real_boot): Likewise.
55181 (pupa_biosdisk_rw_int13_extensions): Likewise.
55182 (pupa_biosdisk_rw_standard): Likewise.
55183 (pupa_biosdisk_check_int13_extensions): Likewise.
55184 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55185 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55186 (pupa_get_memsize): Likewise.
55187 (pupa_get_mmap_entry): Likewise.
55188 (pupa_console_putchar): Likewise.
55189 (pupa_console_setcursor): Likewise.
55190 (pupa_getrtsecs): Use pushl instead of push.
55191
55192 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55193 memory instead of the stack for a mmap entry, because some
55194 BIOSes may ignore the maximum size and overflow.
55195
55196 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55197
55198 * genmk.rb (PModule#rule): Compile automatically generated
55199 sources with module-specific CFLAGS as well as other sources.
55200
55201 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55202
55203 * configure.ac: Check ld.
55204 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55205 respectively, before checking endianness and sizes.
55206
55207 * Makefile.in (LD): New variable.
55208
55209 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55210
55211 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55212
55213 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55214
55215 * Changelog: New file.
55216